diff options
author | Manuel Quiñones <manuq@laptop.org> | 2012-12-03 19:09:35 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2012-12-10 12:20:44 (GMT) |
commit | 7a0b1b51e7fce8782dd15b899071747f2cfd6ba2 (patch) | |
tree | f014fb5fe5122ef0f89a2b601000ee5d00c86902 | |
parent | 9d22561f5d8c589e0a0e3bc2c9e5c94b7e0bff5c (diff) |
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 <manuq@laptop.org>
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
Tested-by: Gary Martin <gary@garycmartin.com>
Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r-- | gtk3/theme/gtk-widgets.css.em | 9 |
1 files changed, 8 insertions, 1 deletions
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, |