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 f8e20b82b5)
r14.0.x
Slávek Banko 4 years ago
parent 1cf3957153
commit 4a7a1571c6
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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);
}

@ -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;
}

Loading…
Cancel
Save