summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-12-09 18:41:59 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-12-09 18:43:56 +0100
commit4a7a1571c64a2994d73c293d54f3597132667f49 (patch)
treef2be13341d529a5e2fa52add7dda399623d2055f
parent1cf39571536ed1c7c5d559b0bfb36d43270dc242 (diff)
downloadtde-style-domino-4a7a1571.tar.gz
tde-style-domino-4a7a1571.zip
Remove alpha blending for text color specifically for the TDE Menu.
This caused the first level of the TDE menu to be difficult to read without any useful benefit. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit f8e20b82b5c8c615fd64a52ad5fe499e3734a004)
-rw-r--r--domino/domino.cpp4
-rw-r--r--domino/eventfilter.cpp8
2 files changed, 0 insertions, 12 deletions
diff --git a/domino/domino.cpp b/domino/domino.cpp
index 2fc0231..214171e 100644
--- a/domino/domino.cpp
+++ b/domino/domino.cpp
@@ -853,10 +853,6 @@ void DominoStyle::polish( const TQStyleControlElementData &ceData, ControlElemen
installObjectEventHandler(ceData, elementFlags, ptr, this);
}
else if(dynamic_cast<TQPopupMenu*>(widget)) {
-
- if(widget->isA("PanelKMenu"))
- widget->setPaletteForegroundColor(alphaBlendColors(_popupMenuColor, tqApp->palette().active().foreground(), 150));
-
widget->setBackgroundMode( NoBackground );
installObjectEventHandler(ceData, elementFlags, ptr, this);
}
diff --git a/domino/eventfilter.cpp b/domino/eventfilter.cpp
index fc67414..af9c9e8 100644
--- a/domino/eventfilter.cpp
+++ b/domino/eventfilter.cpp
@@ -1258,14 +1258,6 @@ bool DominoStyle::objectEventHandler( const TQStyleControlElementData &ceData,
case TQEvent::Hide:
static_cast<TQWidget*>(obj)->setBackgroundMode(NoBackground);
return false;
- case TQEvent::ApplicationPaletteChange:
- if(obj->isA("PanelKMenu")) {
- TQWidget* w = static_cast<TQWidget*>(obj);
- TQPalette pal = tqApp->palette();
- pal.setColor(TQColorGroup::ButtonText, alphaBlendColors(_popupMenuColor, pal.active().foreground(), 150));
- w->setPalette(pal);
- return true;
- }
default:
return false;
}