Bug 460630

Summary: Switching color schemes doesn't update all colors in "Configure" sidebar while editing a page until System Monitoris restarted
Product: [Applications] plasma-systemmonitor Reporter: guimarcalsilva
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: CONFIRMED ---    
Severity: minor CC: ahiemstra, kde, nate, noahadvs, notmart, plasma-bugs-null
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Dark to light Software Updates KCM - Wrong background colors for checkboxes and radio buttons
Light to dark Discover settings page
Light to dark System Monitor edit page

Description guimarcalsilva 2022-10-17 23:28:02 UTC
Created attachment 152974 [details]
Dark to light Software Updates KCM - Wrong background colors for checkboxes and radio buttons

SUMMARY

Hopefully, this is the right component to file the bug against. This doesn't affect apps like Dolphin or some older System Settings pages, so I suspect it has something to do with QtQuick or Kirigami.

If you switch color schemes/global themes while some applications are open, some colors do not get updated as they should, and the user must restart the app to see the correct colors.

Some of the affected items include list items, text colors, and checkbox/radio buttons background colors.

STEPS TO REPRODUCE
1. Open an application like Discover on the settings page, the edit mode on System Monitor, or use System Settings itself.
2. Switch color schemes between dark/light
3. Check the Discover window, the System Monitor edit page (the part with checkboxes), or go to another system settings page like Software Updates.

OBSERVED RESULT

On System Settings, the radio buttons/checkboxes will have the wrong background color. On the Discover settings page the first list item will have the wrong text and background, and on System Monitor, the edit page will have dark text against a dark background (if you switch from a light to dark color scheme). Check the attached screenshots.

EXPECTED RESULT

All colors should be updated even if the apps are still open.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Kernel Version: 6.0.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
Memory: 3.7 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520
Manufacturer: Acer
Product Name: Aspire F5-573
System Version: V1.27

ADDITIONAL INFORMATION
Does not affect some older System Settings pages or older QWidget apps like Dolphin.
Comment 1 guimarcalsilva 2022-10-17 23:28:32 UTC
Created attachment 152975 [details]
Light to dark Discover settings page
Comment 2 guimarcalsilva 2022-10-17 23:28:54 UTC
Created attachment 152976 [details]
Light to dark System Monitor edit page
Comment 3 guimarcalsilva 2023-11-26 23:38:32 UTC
Tested with Plasma 6. Doesn't happen with Discover anymore, but it still happens with System Monitor.
Comment 4 Nate Graham 2024-02-16 18:31:27 UTC
Unfortunately the places where this happens will benerally be caused by app bugs. Moving to System Monitor; can reproduce that issue.