From 920a15d2ea01a8e44a68e4f2c0fe69e18a07d6cb Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sat, 10 Oct 2020 20:53:10 +1100 Subject: [PATCH] ui: hack to disable embossing Fixes #1217 while Qt 5.15's palette system is still broken --- app/widget/menu/menu.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/widget/menu/menu.cpp b/app/widget/menu/menu.cpp index 5d1f7321c..f0558614b 100644 --- a/app/widget/menu/menu.cpp +++ b/app/widget/menu/menu.cpp @@ -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); }