GTK4 apps don't respect dark theme in i3 #5896
Replies: 6 comments 9 replies
-
|
Stab in the dark here, but have you tried ? Maybe give https://wiki.archlinux.org/title/Dark_mode_switching and https://wiki.archlinux.org/title/GTK#Dark_theme_variant a good read. |
Beta Was this translation helpful? Give feedback.
-
|
I have the same issue, have not been able to fix, even with [Settings]
gtk-application-prefer-dark-theme=1I note that I get an error with Nautilus, which is which is weird, because |
Beta Was this translation helpful? Give feedback.
-
|
have you checked the solution from https://unix.stackexchange.com/questions/761808/how-to-globally-set-dark-mode-for-gtk-4-apps |
Beta Was this translation helpful? Give feedback.
-
|
I fixed this on 23.10 by creating After a restart it was fixed for me. See also: https://discourse.gnome.org/t/using-adwaita-dark-on-another-compositor/17563/10 |
Beta Was this translation helpful? Give feedback.
-
|
I recently faced this issue in GTK2 and 3 apps where they wouldn't respect the dark theme, but didnt have any issue with GTK4 apps. |
Beta Was this translation helpful? Give feedback.
-
|
This is what worked for me: mine looks like this: You can choose any theme you like |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, this might be a bit of an obscure issue and could be more related to gnome rather than i3 so apologies in advance if this might not be the best place to put it.
i3 v4.22
Ubuntu 23.10
GNOME 45
Ive been a long-time GNOME user but recently, I wanted to try a tiling window manager so I have both GNOME and i3 co-existing on my system. When I log in after a fresh boot into GNOME, all my GTK3/4 apps are in dark mode as they should be. When I logout and log back in but this time using i3, GTK 4 apps like nautilus, gnome-clocks, gnome-calendar are in light mode.
Wierdly, if I log out again and back into gnome, the GTK apps are still in lightmode there too, regardless of whether I toggle the dark mode slider on or off. It is only if I do a full reboot that they are in dark mode again.
I have tried the following solutions:
Making sure in the
settings.inifile in both~/.config/gtk-4.0/and~/.config/gtk-3.0/haveapplication-gtk-prefer-dark-themeset to1Making sure the following are set through dconf-editor:
gsd-xsettingsorxsettingsdto apply my current GTK settings.Beta Was this translation helpful? Give feedback.
All reactions