From 7d605c8fe9d55f777a81ed9c604f12f0db6baa97 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 Signed-off-by: Ajay Garg --- diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em index ff8483e..7b65a52 100644 --- a/gtk3/theme/gtk-widgets.css.em +++ b/gtk3/theme/gtk-widgets.css.em @@ -585,10 +585,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