SUMMARY Some GTK apps (as for instance Gajim 1.5.2+, Xournal++ 1.1.1+, using the setting "Dark Theme: System") do not follow the color scheme in "Global Theme --> Application Style --> GNOME/GTK Application Style". Let's assume the GTK theme it's set to "default" or "Adwaita". If the global theme is changed from Breeze to Breeze Dark, all Qt/Plasma apps change their appearance, but the mentioned GTK app keeps using the light theme. It'd be very convenient if the GTK themes would also change accordingly. SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20221008 KDE Plasma Version: 5.25.5 KDE Frameworks Version: 5.98.0 Qt Version: 5.15.6 Graphics Platform: Wayland
Thank you for the bug report! Please note that Plasma 5.25.5 is not supported for much longer by KDE; supported versions are 5.24, and 5.26 or newer. If at all possible please upgrade to a supported version and verify that the bug is still happening there.
*** This bug has been marked as a duplicate of bug 421745 ***
(In reply to Nate Graham from comment #2) > > *** This bug has been marked as a duplicate of bug 421745 *** Not a duplicate, becauses restarting the app does not help here. Only changing the GTK theme in SystemSettings.
> Not a duplicate, becauses restarting the app does not help here. Only changing the GTK theme in SystemSettings ... works and in this case the gtk app's color changes immediately.
To my knowledge, there's no such theme as "Adwaita dark" that we could switch to, right? Are you saying that within the existing Adwaita theme, apps using this theme that are already known to have dark/light mode support should use switch appropriately in response to relevant changes to Global Theme changing in Plasma?
Created attachment 152982 [details] Screenshot: Gtk Themes (In reply to Nate Graham from comment #5) > To my knowledge, there's no such theme as "Adwaita dark" that we could > switch to, right? At least under openSUSE TW "Adwaita dark" came pre-installed. Will need to check it on Fedora with Plasma as well. On Fedora 36 Gnome 42, you can switch to a dark theme as well, which is likely "Adwaita dark", since "Adwaita" is the default light theme.
> apps using this theme that are already known to have dark/light mode support should use switch appropriately in response to relevant changes to Global Theme changing in Plasma? I would say so, yes or at least that'd be my usecase: In the night hours, I switch the global theme from Breeze Twilight to Breeze Dark as it feels more pleasant and it'd be great if all GTK apps would follow automatically. GTK apps, which currently do so are Thunderbird and Firefox for example.
On Fedora, the combobox shows: - Breeze - Default (which seems to map to Adwaita) - Emacs > GTK apps, which currently do so are Thunderbird and Firefox for example. Are they using breeze-gtk, or their own theme?
(In reply to Nate Graham from comment #8) > > GTK apps, which currently do so are Thunderbird and Firefox for example. > Are they using breeze-gtk, or their own theme? I see, Thunderbird and Firefox ship their own dark/light themes and just follow the system theme in this regard.
So the way this works is fairly complicated, and there are multiple ways it *can* work: 1. App has its own styling and behaves appropriately in response to changes to the systemwide "dark mode" setting. Examples: Thunderbird, Firefox. 2. App is styled with Adwaita + Libadwaita and behaves appropriately in response to changes to the systemwide "dark mode" setting. Example: Nautilus 3. App is styled with Breeze-GTK theme, which respects the system's active color scheme. Examples: Gedit, Inkscape 4. App uses GTK theme with hardcoded light and dark colors, and changing the Global Theme would swap between them If I'm understanding, you're asking for 4. In fact we already do have this: global themes can indeed specify GTK themes. But our Breeze Light and Breeze Dark global themes don't specify Adwaita, by design; they specify breeze-gtk! So I think this is not something we can change. If the apps in question fall into categories 1 or 2 and something isn't working, then either it's an app bug, or we're not emitting changes to the global dark mode setting correctly. If the apps in question fall into category 3, there's probably a bug in KDE code somewhere. Can you Investigate a bit and file new bug reports? Thanks!
(In reply to Nate Graham from comment #10) > Can you Investigate a bit and file new bug reports? Thanks! I will do so!
It looks like an downstream issue in case of Xournal++. For Gajim it works now, since I have changed the GTK theme setting from "Default" to "Adwaita". On Fedora it looks like you need to install the gnome-theme-extra [1] package to make Adwaita Dark available. [1] https://src.fedoraproject.org/rpms/gnome-themes-extra/blob/rawhide/f/gnome-themes-extra.spec
If there's a difference between "Default" and "Adwaita", that seems weird. Maybe worth reporting to the Fedora folks at https://pagure.io/fedora-kde/SIG/issues?
(In reply to Nate Graham from comment #13) > If there's a difference between "Default" and "Adwaita", that seems weird. That was on openSUSE TW. > Maybe worth reporting to the Fedora folks at https://pagure.io/fedora-kde/SIG/issues? I will check if it's reproducible on Fedora as well.
I had a look, and it seems like the "Adwaita" and "Adwaita Dark" themes are actually GTK2 themes. Not having them installed would indeed explain why old apps still using GTK2 didn't have the right appearance, since breeze-gtk dropped its GTK2 support a few years ago.