Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was looking at the gtk-widgets.css files in Ambiance and Radiance (/usr/share/themes/theme_name/gtk-3.0/) after the recent light-themes update. One difference I noted in the section titled notebook is given below.

Ambiance:

.notebook tab:active {
    color: @fg_color;
}

.notebook tab {
    color: shade (@bg_color, 0.48);
}

Radiance:

.notebook tab GtkLabel:active {
    color: @fg_color;
}

.notebook tab GtkLabel {
    color: shade (@bg_color, 0.48);
}

Radiance has GtkLabel but Ambiance doesn't. My question is: does anyone know the significance of GtkLabel, and why one theme has it and the other doesn't?

share|improve this question

1 Answer 1

up vote 1 down vote accepted
+50

I updated my system recently and my gtk-widgets.css are the same in this part, for Ambiance or Radiance.

Although GtkLabel is invoked to set attributes that may differ from the default pattern, so it was used to modify some defaults of tabs that may fit Ambiance, but not Radiance.

When calling gtk.Notebook you don't need to specify an attribute, it will be used a default pattern, but in case of Radiance they wanted to set a different attribute from the deafult, so they called GtkLabel that was specified prior in the css:

/*********
 * label *
 *********/
GtkLabel,
GtkLabel:insensitive {
    background-color: transparent;
}

Defining the background-color of widgets that use GtkLabel (widget that displays a small amount of text) on it, such as gtk.Notebook (a tabbed notebook container).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.