https://bugs.kde.org/show_bug.cgi?id=493550
--- Comment #1 from Sahil Gautam <sa...@libreoffice.org> --- ``` QPalette QtCustomStyle::GetMenuBarPalette() { if (StyleSettings::GetThemeState() == ThemeState::NOT_LOADED || QApplication::palette() != QtCustomStyle::customPalette()) return QApplication::palette(); QPalette aPal; const ThemeColors& aThemeColors = StyleSettings::GetThemeColors(); aPal.setColor(QPalette::Text, toQColor(aThemeColors.GetMenuBarTextColor())); aPal.setColor(QPalette::ButtonText, toQColor(aThemeColors.GetMenuBarTextColor())); aPal.setColor(QPalette::Window, toQColor(aThemeColors.GetMenuBarColor())); aPal.setColor(QPalette::Highlight, toQColor(aThemeColors.GetMenuBarHighlightColor())); aPal.setColor(QPalette::HighlightedText, toQColor(aThemeColors.GetMenuBarHighlightTextColor())); return aPal; } ``` ``` if (mpQMenuBar && StyleSettings::GetThemeState() != ThemeState::NOT_LOADED) mpQMenuBar->setPalette(QtCustomStyle::GetMenuBarPalette()); ``` This is basically it. If the theme is loaded (the feature is not disabled), then create a custom palette ... -- You are receiving this mail because: You are watching all bug changes.