Bug 448044 - GTK apps do not change colors when switching Global Themes that specify color schemes
Summary: GTK apps do not change colors when switching Global Themes that specify color...
Status: RESOLVED DUPLICATE of bug 421745
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_lookandfeel (show other bugs)
Version: 5.23.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-07 00:11 UTC by Mohan
Modified: 2022-04-19 15:34 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mohan 2022-01-07 00:11:57 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
In Wayland if you have dark breeze theme then all GTK app are also dark (which is what it supposed to do) but when you switch to light then they won’t switch back until you log out and log back in. I have this issue with both .deb and snap gtk apps. Not sure if this issue has been brought up yet. If not I would be happy to submit a bug if pointed at the right direction. Thanks.

STEPS TO REPRODUCE
1. Launch Setting, choose Dark Theme
2. Launch a GTK application
3. In Setting switch to Light Theme, GTK application will stay in dark while Qt based apps switch to Light them.

OBSERVED RESULT
GTk based application staying in dark/light when you switch to dark/light breeze theme

EXPECTED RESULT
Should change the to the appropriate theme without having to log off and log back on.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.10
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-23-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-3770S CPU @ 3.10GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4000

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-01-07 00:34:31 UTC
Do they change after you quit them and launch them again? Or are they still the wrong color after that?
Comment 2 Mohan 2022-01-07 01:54:18 UTC
Hello Nate,
No quitting the app and relaunching it won't do anything. Initially I thought it was because I was using a snap version (I use LibreOffice, Firefox, and Thunderbird that are snap), but deb version also suffer from the same fate.
Comment 3 Nate Graham 2022-01-07 16:29:16 UTC
Thanks. Does it work when you explicitly change the color scheme to Breeze Dark in System Settings > Appearance > Colors and then restart the app?

Are you positive that these apps are using the Breeze GTK theme?
Comment 4 Mohan 2022-01-07 19:53:45 UTC
(In reply to Nate Graham from comment #3)
> Thanks. Does it work when you explicitly change the color scheme to Breeze
> Dark in System Settings > Appearance > Colors and then restart the app?
> 
> Are you positive that these apps are using the Breeze GTK theme?

Yes that works. To confirm going into  System Settings > Appearance > Colors changing it there and closing out of the app and opening back up works. For both snap and deb version.
Comment 5 Nate Graham 2022-01-10 15:50:07 UTC
Thanks for the info. Does it work when you explicitly change the Global Theme scheme to Breeze Dark in System Settings > Appearance > Global Themes and then restart the app?

Basically I'm trying to find if it's broken anywhere we set global themes, or just on the Quick Settings page.
Comment 6 Mohan 2022-01-10 15:53:26 UTC
(In reply to Nate Graham from comment #5)
> Thanks for the info. Does it work when you explicitly change the Global
> Theme scheme to Breeze Dark in System Settings > Appearance > Global Themes
> and then restart the app?
> 
> Basically I'm trying to find if it's broken anywhere we set global themes,
> or just on the Quick Settings page.

No it does not work in System Settings > Appearance > Global Themes, same issue as with Quick Settings page.
Comment 7 Nate Graham 2022-01-10 16:00:06 UTC
Thanks. I can confirm that.
Comment 8 SoilpH96 2022-03-25 09:43:16 UTC
I suffer from this bug as well, but it's worth mentioning that Firefox specifically appears to change its theme to Adwaita, even though the specified GTK theme is still Breeze according to gsettings. I can confirm that the workaround is to set the color scheme manually.
Comment 9 Nate Graham 2022-04-19 15:34:05 UTC

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