GNOME Bugzilla – Bug 691163
GtkNotebook unable to style active tab
Last modified: 2013-09-27 03:39:45 UTC
I am having trouble seeing what gtknotebook tab is active, so I came up with some css that ought to do the trick, but does not. Basically, I want the active tab to be bold. /* Has a visible effect. "lighter" doesn't parse. */ GtkNotebook tab GtkLabel { font-weight: 100; } /* This works for color; font of sub-widget not bold. */ GtkNotebook tab:active { background-color: #00dd00; font-weight: bold; } /* This seems to have no effect. */ GtkNotebook tab:active GtkLabel { background-color: #0000dd; font-weight: Bold; }
Created attachment 250841 [details] [review] Allow active tab children to be styled This allows one to style the children of an active tab label from CSS.
Review of attachment 250841 [details] [review]: This is basically working around the fact that we can't have a separate style context for each tab element, and so we use regions, which don't support propagating the style to children. I think this is a fine compromise until we have GtkActors.
Review of attachment 250841 [details] [review]: ok