From 7a0b1b51e7fce8782dd15b899071747f2cfd6ba2 Mon Sep 17 00:00:00 2001 From: Manuel QuiƱones Date: Mon, 03 Dec 2012 19:09:35 +0000 Subject: Get back margin of toolbuttons - SL #3936 Like in the original GTK2 theme, buttons in toolbars have a margin that is equal to default-padding / 2 . As we can't reach to a solution with the prelight state that has black fill below an active button (rounded light grey), because we are using a transparent border for the margin, make the prelight state round too. Signed-off-by: Manuel QuiƱones Signed-off-by: Manuel Kaufmann Tested-by: Gary Martin Acked-by: Simon Schampijer --- diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em index b6baaf5..e2d376a 100644 --- a/gtk3/theme/gtk-widgets.css.em +++ b/gtk3/theme/gtk-widgets.css.em @@ -580,10 +580,17 @@ SugarPaletteWindowWidget GtkToolButton .button { padding: $(toolbutton_padding)px; } +.toolbar GtkToolButton .button, +SugarPaletteWindowWidget GtkToolButton .button:prelight { + padding: $(toolbutton_padding - default_padding)px; + border-width: $(default_padding)px; + border-style: solid; + background-clip: padding-box; +} + .toolbar GtkToolButton .button:prelight, SugarPaletteWindowWidget GtkToolButton .button:prelight { background-color: @black; - border-radius: 0px; } .toolbar SugarRadioToolButton *:active, -- cgit v0.9.1