From 7a0a2151fa1b0f52cfef6b26cfe5b029fa040f85 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
Date: Mon, 10 Sep 2012 09:47:20 -0300
Subject: [PATCH sugar-artwork 2/2] Make the main toolbar the right size - SL
#3388
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
Set to 0 the GtkWidget-focus-padding which was changing the size of
the buttons, and was noticeable in the toolbar because the toolbar
buttons were changing the toolbar height. And set to 1
-GtkWidget-focus-line-width, this is the same value as in theme gtk2
gtkrc. To get the correct toolbar height, Use the toolbutton_padding
variable instead. It was used before only for the tool buttons
border-radius, but a look at the gtk2 theme gtkrc shows that its used
there for the inner-border, which is the padding in gtk3 CSS.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
---
gtk3/theme/gtk-widgets.css.em | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
index 96aa3fa..2644737 100644
a
|
b
|
icon_large = icon_base * 5 |
73 | 73 | |
74 | 74 | -GtkTextView-interior-focus: 1; |
75 | 75 | |
76 | | -GtkWidget-focus-line-width: 0; /* Prevents some drawing glitches */ |
| 76 | -GtkWidget-focus-line-width: 1; /* Prevents some drawing glitches */ |
77 | 77 | -GtkEntry-focus-line-width: 0; |
78 | 78 | -GtkScale-focus-line-width: 0; |
79 | 79 | -GtkScale-focus-line-width: 0; |
80 | | -GtkWidget-focus-padding: 3; |
| 80 | -GtkWidget-focus-padding: 0; |
81 | 81 | /* 0.05 works good for both the sugar and sugar-xo themes */ |
82 | 82 | -GtkWidget-cursor-aspect-ratio: 0.05; |
83 | 83 | |
… |
… |
background-color: @black; |
527 | 527 | .toolbar GtkToolButton .button, |
528 | 528 | .toolbar SugarRadioToolButton *, |
529 | 529 | SugarPaletteWindowWidget SugarRadioToolButton *, |
530 | | SugarPaletteWindowWidget GtkToolButton .button{ |
| 530 | SugarPaletteWindowWidget GtkToolButton .button { |
531 | 531 | background-color: transparent; |
532 | 532 | border-radius: $(toolbutton_padding)px; |
533 | | padding: $(default_padding)px; |
| 533 | padding: $(toolbutton_padding)px; |
534 | 534 | } |
535 | 535 | |
536 | 536 | .toolbar GtkToolButton .button:prelight, |