From e67ddc3a6e5db9cf4e9d2270bdc1164665d4623b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
Date: Mon, 3 Dec 2012 16:09:35 -0300
Subject: [PATCH artwork] Get back margin of toolbuttons - SL #3936
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
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>
---
gtk3/theme/gtk-widgets.css.em | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
index b6baaf5..e2d376a 100644
a
|
b
|
SugarPaletteWindowWidget GtkToolButton .button { |
580 | 580 | padding: $(toolbutton_padding)px; |
581 | 581 | } |
582 | 582 | |
| 583 | .toolbar GtkToolButton .button, |
| 584 | SugarPaletteWindowWidget GtkToolButton .button:prelight { |
| 585 | padding: $(toolbutton_padding - default_padding)px; |
| 586 | border-width: $(default_padding)px; |
| 587 | border-style: solid; |
| 588 | background-clip: padding-box; |
| 589 | } |
| 590 | |
583 | 591 | .toolbar GtkToolButton .button:prelight, |
584 | 592 | SugarPaletteWindowWidget GtkToolButton .button:prelight { |
585 | 593 | background-color: @black; |
586 | | border-radius: 0px; |
587 | 594 | } |
588 | 595 | |
589 | 596 | .toolbar SugarRadioToolButton *:active, |