Configuring GTK 3 appearance outside GNOME 3
Now that Natty has shipped GTK 3, and Oneiric has already updated some core GNOME applications like Nautilus, Evince and Brasero, people are going to ask how to configure the appearance of GTK 3 applications.
Some have suggested linking the ~/.config/gtk-3.0 directory to /usr/share/themes/Adwaita/gtk-3.0, but I do not recommend this approach. It hardcodes the location of the theme (in disregard of the XDG specification) and makes it impossible to configure anything else.
The correct way to configure this, assuming you do not run gnome-shell and thus gnome-tweak-tool settings are ignored, is:
- Create a directory named
gtk-3.0in~/.config(that is, in the.configsubdirectory of your home directory). - Inside that directory, create a file named
settings.iniwith contents like this (using my settings as an example):
[Settings]
gtk-theme-name=Adwaita
gtk-icon-theme-name=Humanity
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-font-name=Ubuntu 10
Adjust the settings the same way you would in .gtkrc-2.0 for GTK 2 applications. Obviously, to use the Adwaita theme, you need it installed (the gnome-themes-standard package). There should be no spaces around the = sign for the gtk-toolbar-style setting—the other settings seem to work with spaces, but I removed them for consistency.
Below is a screenshot of Evince 3 running on Oneiric with the Adwaita Improved theme.