From 7464b808eb12b1df650952e3c8214acff1d1360f Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Thu, 15 Mar 2012 16:42:24 +0000 Subject: Mimic the behaviour and style of the sugar GTK+ 2 sub-toolbars in GTK+ 3 This patch takes care of the background color of the toolbutton when pressed and hovered. Furthermore the border radius for the highlightning when pressed is defined. There is a follow up patch in sugar-toolkit-gtk3 to make use of this. Signed-off-by: Gonzalo Odiard Signed-off-by: Manuel QuiƱones Acked-by: Simon Schampijer --- diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em index c5f8ee0..8c038cb 100644 --- a/gtk3/theme/gtk-widgets.css.em +++ b/gtk3/theme/gtk-widgets.css.em @@ -470,19 +470,35 @@ GtkVSeparator, GtkHSeparator, /* Tool buttons */ +.toolbar { +padding: 0px; +} + .toolbar GtkToolButton .button, SugarPaletteWindowWidget GtkToolButton .button { border-radius: $(toolbutton_padding)px; + padding: $(default_padding)px; } .toolbar GtkToolButton .button:prelight, SugarPaletteWindowWidget GtkToolButton .button:prelight { background-color: @black; + border-radius: 0px; + border-width: 0px; +} + +.toolbar GtkToolButton .button:active, +SugarPaletteWindowWidget GtkToolButton .button:active { + background-color: @black; + border-radius: 0px; } .toolbar GtkToolButton .button:active:prelight, SugarPaletteWindowWidget GtkToolButton .button:active:prelight { background-color: @button_grey; + border-radius: $(subcell_size)px; + border-width: $(default_padding)px; + border-color: transparent; } /* Scales */ -- cgit v0.9.1