diff options
author | Manuel QuiƱones <manuq@laptop.org> | 2012-12-03 19:09:35 (GMT) |
---|---|---|
committer | Ajay Garg <ajay@activitycentral.com> | 2012-12-10 18:46:06 (GMT) |
commit | 7d605c8fe9d55f777a81ed9c604f12f0db6baa97 (patch) | |
tree | 64fb22f441e6ef3bf480ce1966a3fc79e23fceb1 | |
parent | d9c81e987467ab529b515b702d2cee01cc5202bf (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>
Signed-off-by: Ajay Garg <ajay@activitycentral.com>
-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 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, |