From edba560b1e27db99fac7b203d7b0a65adc2b1af8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
Date: Wed, 30 May 2012 14:54:39 -0300
Subject: [PATCH sugar-artwork] Theme GtkSpinButton buttons SL #3406
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
This patch sets border radius to the buttons, so the layout is like
(value [-][+)) .
Also removes two unneeded variables.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
---
gtk3/theme/gtk-widgets.css.em | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
index 9671e29..d268053 100644
a
|
b
|
icon_large = icon_base * 5 |
173 | 173 | |
174 | 174 | ${ spin_ythickness = my_ceil(3*subcell_size - font_height) } |
175 | 175 | ${ spin_xthickness = subcell_size } |
176 | | ${ spin_btn_ythickness = spin_ythickness } |
177 | | ${ spin_btn_xthickness = subcell_size * 2 } |
178 | 176 | |
179 | 177 | .spinbutton.button, |
180 | 178 | .spinbutton.button:focused, |
181 | 179 | .spinbutton.button:active { |
182 | 180 | padding: $(spin_ythickness)px $(spin_xthickness)px; |
183 | | border-color: @button_grey; |
184 | | border-width: $(thickness)px; |
| 181 | border-radius: 0px; |
| 182 | border-width: 0px; |
185 | 183 | background-color: @button_grey; |
186 | 184 | color: @white; |
187 | 185 | } |
188 | 186 | |
| 187 | .spinbutton.button:last-child { |
| 188 | border-radius: 0px $(subcell_size)px $(subcell_size)px 0px; |
| 189 | } |
| 190 | |
189 | 191 | .spinbutton.button:active { |
190 | 192 | background-color: @white; |
191 | 193 | color: @black; |