ui: hack to disable embossing

Fixes #1217 while Qt 5.15's palette system is still broken
This commit is contained in:
itsmattkc
2020-10-10 20:53:10 +11:00
parent 221e0efb96
commit 920a15d2ea
+6
View File
@@ -110,6 +110,12 @@ void Menu::SetBooleanAction(QAction *a, bool* boolean)
void Menu::Init()
{
// HACK: Disables embossing on disabled text for a slightly nicer UI
QPalette p = palette();
p.setColor(QPalette::Disabled, QPalette::Light, QColor(0, 0, 0, 0));
setPalette(p);
// If a native palette is available, it should override the one above
StyleManager::UseOSNativeStyling(this);
}