Ticket #3388: 0002-Make-the-main-toolbar-the-right-size-SL-3388.2.patch

File 0002-Make-the-main-toolbar-the-right-size-SL-3388.2.patch, 2.2 KB (added by manuq, 12 years ago)

Improved patch

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

    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 
    7373
    7474    -GtkTextView-interior-focus: 1;
    7575
    76     -GtkWidget-focus-line-width: 0;  /* Prevents some drawing glitches */
     76    -GtkWidget-focus-line-width: 1;  /* Prevents some drawing glitches */
    7777    -GtkEntry-focus-line-width: 0;
    7878    -GtkScale-focus-line-width: 0;
    7979    -GtkScale-focus-line-width: 0;
    80     -GtkWidget-focus-padding: 3;
     80    -GtkWidget-focus-padding: 0;
    8181    /* 0.05 works good for both the sugar and sugar-xo themes */
    8282    -GtkWidget-cursor-aspect-ratio: 0.05;
    8383
    background-color: @black; 
    527527.toolbar GtkToolButton .button,
    528528.toolbar SugarRadioToolButton *,
    529529SugarPaletteWindowWidget SugarRadioToolButton *,
    530 SugarPaletteWindowWidget GtkToolButton .button{
     530SugarPaletteWindowWidget GtkToolButton .button {
    531531    background-color: transparent;
    532532    border-radius: $(toolbutton_padding)px;
    533     padding: $(default_padding)px;
     533    padding: $(toolbutton_padding)px;
    534534}
    535535
    536536.toolbar GtkToolButton .button:prelight,