https://bugs.kde.org/show_bug.cgi?id=511083
Bug ID: 511083
Summary: kde-gtk-config shouldn't set
gtk-application-prefer-dark-theme
Classification: Applications
Product: systemsettings
Version First 6.4.5
Reported In:
Platform: NixOS
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: kcm_style
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
SUMMARY
gtk-application-prefer-dark-theme is meant for the app itself to force dark
mode, not for the desktop environment to tell whether the app should use dark
mode, thus there's no way to force GTK to re-read its value.
The only proper way to switch GTK between light and dark theme is to let the
user to set a light GTK theme and a dark GTK theme in the interface and then
switch between them as needed.
A more stupid way is to add -dark to theme name when switching to dark color
scheme like this GNOME extension
(https://github.com/mukul29/legacy-theme-auto-switcher-gnome-extension/blob/09bb3cf10f8787c17f459af53fbc41d252876532/extension.js#L30-L40)
is doing but there's no guarantee that the theme follows this naming scheme
(although is likely to be right in most cases).
STEPS TO REPRODUCE
1. Switch Plasma to dark color scheme
2. Start a GTK3 app
3. Switch Plasma to light color scheme
OBSERVED RESULT
The app is still dark
EXPECTED RESULT
The app switches to light colors
SOFTWARE/OS VERSIONS
Operating System: NixOS 25.11
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.17.0-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 64 ГиБ of RAM (62.7 ГиБ usable)
Graphics Processor: AMD Radeon RX 6400
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C94
System Version: 1.0
--
You are receiving this mail because:
You are watching all bug changes.