Summary: | Breeze doesn't allow "menubar color customization by setting cusotm QPalette" anymore | ||
---|---|---|---|
Product: | [Plasma] Breeze | Reporter: | Sahil Gautam <sahil> |
Component: | QStyle | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | m.weghorn, nate, noahadvs, uhhadd |
Priority: | NOR | Keywords: | regression |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Sahil Gautam
2024-09-23 20:32:19 UTC
``` 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 ... Is the active color scheme "Breeze Light" or "Breeze Dark", or is it "Breeze Classic"? Because titlebars colors only take effect when using Breeze Classic or another similar color scheme that doesn't have header colors in it. (In reply to Nate Graham from comment #2) > Is the active color scheme "Breeze Light" or "Breeze Dark", or is it "Breeze > Classic"? Because titlebars colors only take effect when using Breeze > Classic or another similar color scheme that doesn't have header colors in > it. The active color scheme is breeze (the one which comes as default with plasma. I see two options when I open system settings in plasma kde, on the left the light, and on the right dark variant of breeze). It's not about titlebars, but about the menubar (QMenuBar). |