Bug 451367 - Light and Dark theme settings put GTK apps in the opposite color mode from what's expected
Summary: Light and Dark theme settings put GTK apps in the opposite color mode from wh...
Status: RESOLVED DUPLICATE of bug 421745
Alias: None
Product: systemsettings
Classification: Applications
Component: Quick Settings (show other bugs)
Version: 5.24.2
Platform: Fedora RPMs Linux
: HI normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-10 15:46 UTC by Chase Lau
Modified: 2022-04-18 15:02 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screen recording of the issue (1.57 MB, video/mp4)
2022-03-10 15:46 UTC, Chase Lau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chase Lau 2022-03-10 15:46:22 UTC
Created attachment 147422 [details]
Screen recording of the issue

SUMMARY

On my system, I use the theme toggle in Plasma's Quick Settings to jump between light and dark mode, depending on the time of day. I've noticed that whichever mode I select, GTK apps will be set to the opposing mode (e.g. if KDE is in light mode, GTK apps will be dark). This is confirmed with the preview function of GTK themes in Plasma, and by viewing VS Code (which instantly changes themes).


STEPS TO REPRODUCE
1. Open System Settings
2. Switch to light mode
3. Switch to dark mode

OBSERVED RESULT
GTK apps will not respect your theme preference 

EXPECTED RESULT
GTK apps respect your theme preference

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 35 with 
(available in About System)
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
kde-gtk-config is installed and has been uninstalled and reinstalled to test.
Changing the accent color to anything will give GTK a little "kick" and get things working as expected.
Comment 1 Nate Graham 2022-03-23 14:30:21 UTC
Sounds like the toggle in Quick Settings isn't notifying kde-gtk-config properly. Can confirm.
Comment 2 Marcel 2022-04-15 14:14:00 UTC
Hello! About this problem I notice that when we change the theme in Settings > Quick Settings menu to Light, ~/.kde4/share/config/kdeglobals update  "[General]  ColorScheme" as "BreezeDark"  and vice versa. Maybe GTK is getting this value as a reference to change theme color?

After logout and login, "[General]  ColorScheme" in ~/.kde4/share/config/kdeglobals shows the actual theme selected correctly and GTK apps getting the right theme.

I hope this helps in some way, Thanks!

Operating System that i tested: Arch Linux
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Comment 3 Bacteria 2022-04-17 13:13:17 UTC
Duplicate of bug 421745?
Comment 4 Nate Graham 2022-04-18 14:39:49 UTC
Right you are!

*** This bug has been marked as a duplicate of bug 421745 ***