Summary: | QtWidgets KCM headers don't change colors immediately; need to restart the app | ||
---|---|---|---|
Product: | [Plasma] Breeze | Reporter: | Nate Graham <nate> |
Component: | QStyle | Assignee: | Plasma Bugs List <plasma-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 4wy78uwh, noahadvs, notmart, postix, qydwhotmail, uhhadd |
Priority: | NOR | Keywords: | regression |
Version First Reported In: | master | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=495694 | ||
Latest Commit: | https://invent.kde.org/plasma/systemsettings/-/commit/bd4d17996062ad0a78a0157cdc17603ccbf8a0ea | Version Fixed In: | 6.4.0 |
Sentry Crash Report: | |||
Attachments: | Wrong colors |
Downgrading severity as the workaround is to simply restart the app after changing colors. *** Bug 499998 has been marked as a duplicate of this bug. *** An interesting fact is that if i have a widgets kcm open in kcmshell6 at the sametime the colors kcm is open in systemsettings, its header changes color immediately, is only those that are in systemsettings itself if i do the opposite, widget kcm like fontinst loaded in systemsettings and the coolors on in kcmshell, then the header color does *not* update automatically A possibly relevant merge request was started @ https://invent.kde.org/plasma/systemsettings/-/merge_requests/360 Git commit 314c6e87bdca262b3ce7e863d7a79657e937f51f by Marco Martin. Committed on 27/05/2025 at 09:43. Pushed by mart into branch 'master'. Fix header colors of QWidget based KCMs If we create a QPalette from scratch for the KCM header, we won't be notified anymore about palette changes, so when changing the color scheme the PaletteChanged events won't arrive. if we instead start form QWidget::palette() and then modify it we will get the events and the color scheme changes will be applied immediately M +1 -1 app/ModuleView.cpp https://invent.kde.org/plasma/systemsettings/-/commit/314c6e87bdca262b3ce7e863d7a79657e937f51f Git commit bd4d17996062ad0a78a0157cdc17603ccbf8a0ea by Marco Martin. Committed on 27/05/2025 at 09:53. Pushed by mart into branch 'Plasma/6.4'. Fix header colors of QWidget based KCMs If we create a QPalette from scratch for the KCM header, we won't be notified anymore about palette changes, so when changing the color scheme the PaletteChanged events won't arrive. if we instead start form QWidget::palette() and then modify it we will get the events and the color scheme changes will be applied immediately (cherry picked from commit 314c6e87bdca262b3ce7e863d7a79657e937f51f) 314c6e87 Fix header colors of QWidget based KCMs Co-authored-by: Marco Martin <notmart@gmail.com> M +1 -1 app/ModuleView.cpp https://invent.kde.org/plasma/systemsettings/-/commit/bd4d17996062ad0a78a0157cdc17603ccbf8a0ea |
Created attachment 175292 [details] Wrong colors Current git master. See attached screenshot. Looks like the colors have gotten stuck to Breeze Light.