Hi,
in Fedora 41 with GNOME Wayland, I experience strange dark mode inconsistencies. Sometimes, all apps are displayed in dark mode, but sometimes, after restarting or logging out and in, some (not all) apps are displayed in white mode.
This only affects GTK-4 apps, meaning sometimes, the Files, Settings etc. app turn white, but the Terminal app (GTK-3) stays dark. This all happens while system wide dark mode is enabled.
When this “phenomenon” of GTK-4 apps suddenly turning white happens, it also doesn’t revert back later on. I can set gtk-application-prefer-dark-theme=1
in .config/gtk-3
and .config/gtk-4
, it has no effect. gsettings get org.gnome.desktop.interface color-scheme
already reports prefer-dark
, which is correct, which also changes nothing.
I don’t have any external themes installed, and GTK_THEME
is not set. I tried setting legacy theme in GNOME-Tweaks to adwaita-dark
, with no effect (which makes sense, as GTK-3 apps are not affected, only GTK-4 apps).
I don’t know what else to try, because this phenomenon happens across multiple devices. Before one can think of a solution, I would first like to find out what even the problem is. How can it be that initially, dark mode works for all apps, then after a few log outs/reboots, suddenly, GTK-4 apps turn white, despite no setting being changed, and then those apps stay white no matter what?
The only thing that helps is deleting the gtk-3.0 and gtk-4.0 folder in .config. But well, you cannot delete those folders all the time.
What can I do?