Changing the look of new Gnome 3 title bars in with a GTK3 theme

Fabian Knorr picture Fabian Knorr · Nov 5, 2013 · Viewed 16.1k times · Source

I have a GTK3/Metacity theme which uses dark title bars.

Recent versions of Gnome 3 combine title- and toolbars, e.g. in Nautilus. I want to change their color to be consistent with all other GTK windows.

enter image description here

What is the attribute I need to look for?

Answer

reece picture reece · Dec 2, 2013

The source code for the GTK+ themes is located in the https://git.gnome.org/browse/gnome-themes-standard/ git repository. The styling for the different widgets for Adwaita is located in the themes/Adwaita/gtk-3.0/gtk-widgets.css file -- see the section starting:

/***************
 * Header bars *
 ***************/

Specifically:

  • .header-bar { ... }
  • .header-bar:backdrop { ... }
  • .header-bar .button.text-button { ... }
  • .header-bar .button.image-button { ... }