Ticket #3406: 0001-Theme-GtkSpinButton-buttons-SL-3406.patch

File 0001-Theme-GtkSpinButton-buttons-SL-3406.patch, 1.6 KB (added by manuq, 12 years ago)
  • gtk3/theme/gtk-widgets.css.em

    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 
    173173
    174174${ spin_ythickness = my_ceil(3*subcell_size - font_height) }
    175175${ spin_xthickness = subcell_size }
    176 ${ spin_btn_ythickness = spin_ythickness }
    177 ${ spin_btn_xthickness = subcell_size * 2 }
    178176
    179177.spinbutton.button,
    180178.spinbutton.button:focused,
    181179.spinbutton.button:active {
    182180    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;
    185183    background-color: @button_grey;
    186184    color: @white;
    187185}
    188186
     187.spinbutton.button:last-child {
     188    border-radius: 0px $(subcell_size)px $(subcell_size)px 0px;
     189}
     190
    189191.spinbutton.button:active {
    190192    background-color: @white;
    191193    color: @black;