From ArchWiki
Revision as of 19:41, 22 March 2017 by DoctorJellyface (talk | contribs) (re Adwaita-dark seems broken; possible workaround.)
Jump to navigation Jump to search

Error in 3.3 Reduce widget sizes

Dunno about this section:

To use smaller icons, use a line like this:

gtk-icon-sizes = "panel-menu=16,16:panel=16,16:gtk-menu=16,16:gtk-large-toolbar=16,16\

I get an error message at the terminal when I start a GTK3 app unless I put spaces around the colons : But with the spaces it seems to have no effect anyway... maybe this is another essential feature that has been removed from the latest GTK? Alister.Hood (talk) 12:49, 14 December 2014 (UTC)

Ah - I see it works in GTK2 and is deprecated and ignored in recent versions of GTK3. But it looks to me like the need for spaces is a bug. I wonder if there is any way to get smaller icons in GTK3 apps... Alister.Hood (talk) 13:02, 14 December 2014 (UTC)


To force a theme tip is not quite correct or complete. GTK2_RC_FILES=/usr/share/themes/Industrial/gtk-2.0/gtkrc would apply only a theme but it would be useful to instead point it to a copy of .gtkrc-2.0 which includes icons, fonts and whatnot like the one created by lxappearance. This way the user could use adwaita dark system wide and apply adwaita (bright) to a select few applications with env GTK2_RC_FILES=.gtkrc-2.0.mine Ubone (talk) 18:00, 17 November 2016 (UTC)

The theme tip provides a way to easily test a GTK+ theme without editing any configuration files. Of course, the gtkrc files can be used to store any other settings like the icon theme, but this is a different purpose. --City-busz (talk) 23:31, 1 December 2016 (UTC)
Maybe add as note or hint somehow, it could save people some time if nof familiar. Ubone (talk) 04:03, 6 December 2016 (UTC)

Adwaita-dark seems broken; possible workaround.

Gnome ships a dark theme, including a dark gtk2 theme, but not in working order. This needs to be looked into more before doing anything on the wiki page.

It seems like it should be possible to specify:

export GTK_THEME=Adwaita:dark
export GTK2_RC_FILES=/usr/share/themes/Adwaita-dark/gtk-2.0/gtkrc

in ~/.xprofile (or /etc/profile.d/ and

gtk-theme-name = "Adwaita-dark"

in ~/.gtkrc-2.0 (or /etc/gtk-2.0/gtkrc) and


in ~/.config/gtk-3.0/settings.ini (or /etc/gtk-3.0/settings.ini) and

/desktop/gnome/interface/gtk_theme Adwaita-dark

in dconf and

org.gnome.desktop.interface.gtk_theme Adwaita:dark

in gconf, but that will not work.

In my desperation for a consistent theme, I set everything. While GTK3 applications were properly dark-themed, GTK2 applications refused to cooperate, sporting a standard bright theme and unreadable black buttons (the only part that got themed, and not in the right color). In fact, I noticed that GTK2 applications were basically ignoring the whole of the Adwaita-dark's CSS (no changes made to it were effective in any way).

I really don't know why it doesn't work out of the box, but I was able to work around it by symlinking /usr/share/themes/Adwaita/gtk-3.0 into /usr/share/themes/Adwaita-dark/ and specifying "Adwaita-dark" everywhere. It's worth considering to make that symlink in gnome-themes-standard's packaging. quequotion (talk) 22:10, 21 March 2017 (UTC)

A user on the Xfce talk page was also having troubles with Adwaita dark, although in this case the issue was with Adwaita dark GTK+ 3 instead of 2. Discussion is here: Talk:Xfce#XFCE and GTK3 Theme. -- Chazza (talk) 08:40, 22 March 2017 (UTC)
Gosh I feel so bad this is all my fault. I’m so sorry. I made the fix months ago but I never made a release before and I wanted to do it properly so I just kept leaving it for laters but laters never came, and the fix was so easy (in my eyes) that I never ever thought that it would waste so many people’s time like this!
Anyway, the fix landed in 3.22.3, I already marked g-t-s as out-of-date so you should have it on your machines shortly. But please, next time just open an issue on Bugzilla or shoot me an email at jurf at riseup do net or send me a message at Matrix or anything, it’s killing me to look at how much problems I’ve created when the fix takes a couple of seconds!
DoctorJellyface (talk) 19:41, 22 March 2017 (UTC)