GTK_THEME: Shouldn't in-app dark toggles not be disabled if no :variant override is specified?
Steps to reproduce
- Supply
GTK_THEME=Default
(Default can be any existing stylesheet name) - Run a GTK application
- Check the GTK Debugger of the respective application, or check the application's respective dark mode trigger
Current behavior
While GTK_THEME=Default
causes an application to use Default as their GTK stylesheet, irregardless of xsettings and gtk-4.0 preferences, it also causes an application to be unable to switch to Default's stylesheet's dark variant on demand._
Expected outcome
While GTK_THEME=Default:light
should disable in-app dark mode switching, and GTK_THEME=Default:dark
should disable in-app light mode switching, GTK_THEME=Default
should still allow the application to switch to the dark and light variants of Default on demand.
Version information
GTK Version: 4.8.3 (also affects GTK 3) GDK Backend: X11 Part of multiple Flatpaks
Additional information
This would make sense for GTK_THEME=Default:light
and GTK_THEME=Default:dark
as they would be specifying an override for the variant of the stylesheet as well as the stylesheet. However, for GTK_THEME=Default
, the user/developer is not intending to force the application to use the light variant of the stylesheet specified, so unintentionally breaks theme-preference functionality of affected applications.
(ignore the bugged close button, that's something entirely unrelated from a gtk.css override - said gtk.css has no relation to this Issue)