Je ne suis pas spécialement pro du thémage, j'ai beaucoup l'habitude du CSS par ailleurs (du moins, le vrai, celui pour HTML/SVG), et je ne vois pas en quoi ceci :
@define-color bg_color #efefe0;
@define-color tab_color #a07000;
.notebook tab {
padding: 2px;
border-radius: 5px;
background-image: -gtk-gradient(linear,
left top, left bottom,
from(shade(@base_color, 1.6)),
color-stop(0.04, shade (@base_color, 1.2)),
color-stop(0.45, @bg_color),
to(shade(@bg_color, 0.9)));
}
.notebook tab * {
background-color: transparent;
}
.notebook tab:active {
border-color: shade(@bg_color, 0.4);
background-image: -gtk-gradient(linear,
left top, left bottom,
from(alpha(shade(@tab_color, 1.6), 0.4)),
color-stop(0.15, alpha(shade(@tab_color, 1.2), 0.4)),
color-stop(0.75, @bg_color),
to(shade(@bg_color, 1.2)));
}
serait particulièrement plus simple que ceci :
gtk_color_scheme = "bg_color:#efefe0\ntab_color:#a07000"
style "notebook" {
xthickness = 2
ythickness = 2
engine "clearlooks" {
radius = 3.0
style = GLOSSY
}
bg[SELECTED] = @tab_color
}
widget_class "*<GtkNotebook>" style "notebook"
J'ai même envie de dire « au contraire » ^^