You are not logged in.

#1 2018-08-17 04:50:24

dedmass
Member
Registered: 2017-01-05
Posts: 3

[SOLVED] GTK3 Theme Not Detected in Some Applications

I am using the Adwaita-Dark theme installed through gnome-themes-extra. I use lxappearance to set my themes so here are the automatically generated files:

~/.gtkrc-2.0:

# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.

include "/home/carloabelli/.gtkrc-2.0.mine"
gtk-theme-name="Adwaita-dark"
gtk-icon-theme-name="Adwaita"
gtk-font-name="Sans 10"
gtk-cursor-theme-name="Adwaita"
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintfull"

~/.config/gtk-3.0/settings.ini:

[Settings]
gtk-theme-name=Adwaita-dark
gtk-icon-theme-name=Adwaita
gtk-font-name=Sans 10
gtk-cursor-theme-name=Adwaita
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintfull

Running gtk2 applications works fine. However running most gtk3 applications, the theme is not picked up. This is true for gtk3-demo, evince, and others. However; firefox does pick up the Adwaita-Dark theme. This also happens with other themes for example arc.

Last edited by dedmass (2018-08-17 13:08:04)

Offline

#2 2018-08-17 07:11:42

justasug
Member
Registered: 2014-08-03
Posts: 165

Re: [SOLVED] GTK3 Theme Not Detected in Some Applications

Is there a GTK3 theme named Adwaita-dark?

I think that there's a GTK2 theme named Adwaita-dark and it comes with the gnome-themes-extra package. GTK3 themes can have a dark variant by default and I think Adwaita (the GTK3 version) has that. You just need add "gtk-application-prefer-dark-theme=1" to your GTK3 config (and set it to plain Adwaita) to make it prefer the dark version. GTK2 themes don't have that feature I think and that's why there has to be a separate theme, Adwaita-dark in this case.

Offline

#3 2018-08-17 13:07:36

dedmass
Member
Registered: 2017-01-05
Posts: 3

Re: [SOLVED] GTK3 Theme Not Detected in Some Applications

It appears that there is still the GTK3 theme Adwaita-dark, but it appears to be exactly the same as Adwaita. So in order to get the dark theme you have to set "gtk-application-prefer-dark-theme=1" with either Adwaita or Adwaita-dark.

Offline

Board footer

Powered by FluxBB