| Summary: | kde-gtk-config shouldn't set gtk-application-prefer-dark-theme | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | Ilya Fedin <fedin-ilja2010> |
| Component: | kcm_style | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | mail, nate |
| Priority: | NOR | ||
| Version First Reported In: | 6.4.5 | ||
| Target Milestone: | --- | ||
| Platform: | NixOS | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Ilya Fedin
2025-10-25 11:09:30 UTC
If we did what you suggest, then GTK apps wouldn't automatically switch to dark mode when you change the KDE color scheme. That would be unexpected, I think. How do you think we should handle that, if we implemented the suggestion? I have enumerated two more proper alternatives right in the summary, did you read it? Not very well, apparently. :/ But let's back up a bit. Can you clarify what exactly you mean by "Switch Plasma to dark color scheme"? Strictly speaking, you can't do this. You can switch the color scheme (which might affect Plasma, if it's a color-scheme-aware Plasma theme) or you can switch the Plasma theme (which doesn't affect the colors of any apps, KDE and GTK alike), or you can switch the global theme (which will affect all of them). Which one do you mean? Switch colors or global theme in system settings, either should work. I was checking via colors. And which apps are you testing with? Any gtk3 application should suffice. You can check e.g. those provided by gtk itself (gtk3-demo, gtk3-widget-factory, etc). And, well, if I run non-KDE Qt apps (like qBittorrent) with QT_QPA_PLATFORMTHEME=gtk3 set, they get affected by this, too... Looks like Qt does a good job of getting colors from GTK3 even repeating the bugged behavior. Looks like GTK learned to follow system light/dark mode only 3 months ago (GTK 4.20+). Previously only libadiwata apps were supporting this. It reads org.freedesktop.appearance.color-scheme from portal and maps it to gtk-interface-color-scheme property in GtkSettings: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/8803 All previous GTK versions, including GTK 3, just have no support for this, with the best possible workaround of switching between GTK themes. |