You are not logged in.

#1 2024-08-30 08:02:22

liblaf
Member
Registered: 2024-08-29
Posts: 2

GNOME dark mode not working

I found that all my GNOME apps (including Settings, Nautilus, Calculator, etc.) did not turn into dark mode. Here is my config:

$ echo $DESKTOP_SESSION
gnome-xorg

$ pacman --query gnome-shell gnome-themes-extra xdg-desktop-portal-gnome xdg-desktop-portal-gtk 
gnome-shell 1:46.4-1
gnome-themes-extra 3.28+r6+g45b1d457-2
xdg-desktop-portal-gnome 46.2-2
xdg-desktop-portal-gtk 1.15.1-2

$ cat ~/.config/gtk-3.0/settings.ini
[Settings]
gtk-application-prefer-dark-theme=1

$ cat ~/.config/gtk-4.0/settings.ini 
[Settings]
gtk-application-prefer-dark-theme=1

$ gsettings get org.gnome.desktop.interface color-scheme
'prefer-dark'

$ gsettings get org.gnome.desktop.interface gtk-theme
'Adwaita-dark'

Offline

#2 2024-08-30 14:46:52

seth
Member
Registered: 2012-09-03
Posts: 60,787

Re: GNOME dark mode not working

Is "gnome-xorg" true or something you just set?

In any event, try to export GTK_THEME=Adwaita:dark, https://wiki.archlinux.org/title/Dark_mode_switching
Also https://wiki.archlinux.org/title/Dark_m … ngs_daemon (see the note above)

Offline

#3 2024-08-31 10:37:57

liblaf
Member
Registered: 2024-08-29
Posts: 2

Re: GNOME dark mode not working

seth wrote:

Is "gnome-xorg" true or something you just set?

In any event, try to export GTK_THEME=Adwaita:dark, https://wiki.archlinux.org/title/Dark_mode_switching
Also https://wiki.archlinux.org/title/Dark_m … ngs_daemon (see the note above)

@seth Thanks for your kind reply.

I didn't modify the env `DESKTOP_SESSION` so "gnome-xorg" is true.

`export GTK_THEME=Adwaita:dark` did turn dark, but producing a weird appearance:
66d2f0ff37bd8.png
Without `GTK_THEME`, Nautilus would look like:
66d2f111cd2fd.png

Wiki only describes how to modify xsettings in Xfce, and I didn't find anywhere else how to modify xsettings in GNOME. I only changed the relevant settings in gsettings:

$ gsettings get org.gnome.desktop.interface color-scheme
'prefer-dark'
$ gsettings get org.gnome.desktop.interface gtk-theme
'Adwaita-dark'

Last edited by liblaf (2024-08-31 10:40:11)

Offline

#4 2024-08-31 16:59:53

seth
Member
Registered: 2012-09-03
Posts: 60,787

Re: GNOME dark mode not working

Please don't embed ("huge" > 250x250 px) images, also the server doesn't seems to like that.
Replace them with links.

What's "weird" about it?
The icon gap might be bigger but I'm not sure whether that's because of the windows size or the theme.
Other than that it superficially looks like the dark adwaita style?
Do you have a reference of what you expect?


The wiki wrote:

For desktops running with Xorg, an xsettings daemon is needed.

https://archlinux.org/packages/extra/x8 … gs-daemon/ provides /usr/lib/gsd-xsettings - should do.

The wiki wrote:

To query gsettings configuration, GTK requires the Settings XDG Desktop Portal, provided by xdg-desktop-portal-gtk, to be running.

Check whether there's anything weird about xdg-desktop-portal in the system journal.

Offline

Board footer

Powered by FluxBB