Ticket #4172: 0002-Style-insensitive-state-of-buttons-SL-4172.2.patch

File 0002-Style-insensitive-state-of-buttons-SL-4172.2.patch, 1.2 KB (added by manuq, 11 years ago)

v2 of the artwork patch, make the background of insensitive buttons transparent

  • gtk3/theme/gtk-widgets.css.em

    From f190a409737729905fa6a40d9c5d807d54fc0a60 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Thu, 8 Nov 2012 18:18:26 -0300
    Subject: [PATCH artwork 2/2] Style insensitive state of buttons - SL #4172
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    Do them transparent background so they look insensitive in all cases.
    Tested in white background like in the Sugar intro window, black
    background like in the wireless password dialoge, and panel_grey
    background which is the default activity canvas color.
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     gtk3/theme/gtk-widgets.css.em | 4 ++++
     1 file changed, 4 insertions(+)
    
    diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
    index 6664a6a..2896e15 100644
    a b GtkLabel, GtkLabel:insensitive { 
    174174    background-color: @white;
    175175}
    176176
     177.button:insensitive {
     178    background-color: transparent;
     179}
     180
    177181.button:active:focused {
    178182    color: @black;
    179183    border-color: @button_grey;