Ticket #4185: 0002-Notebook-make-scroll-arrows-2.5-times-bigger-for-tou.patch

File 0002-Notebook-make-scroll-arrows-2.5-times-bigger-for-tou.patch, 1.4 KB (added by manuq, 11 years ago)

Patch that makes the scroll arrows bigger

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

    From 365725c4855afc5902ca641df34e5a6a0aa9cfde Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Mon, 14 Jan 2013 12:26:07 -0300
    Subject: [PATCH artwork 2/2] Notebook: make scroll arrows 2.5 times bigger
     for touch interaction - SL #4185
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    In gtk+ gtknotebook.c gtk_notebook_get_arrow_rect [1] we can see that
    the size of the rect that contains the arrow is set by the style
    properties scroll-arrow-hlength and scroll-arrow-vlength [2].
    
    [1] http://git.gnome.org/browse/gtk+/tree/gtk/gtknotebook.c#n2696
    [2] http://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget--s-scroll-arrow-hlength
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     gtk3/theme/gtk-widgets.css.em | 2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
    index 80ef6af..dd32a1c 100644
    a b GtkComboBox .separator { 
    322322    padding: 0px;
    323323    -GtkNotebook-tab-overlap: -2;
    324324    -GtkNotebook-tab-curvature: $default_padding;
     325    -GtkWidget-scroll-arrow-hlength: $(my_floor(2.5 * subcell_size));
     326    -GtkWidget-scroll-arrow-vlength: $(my_floor(2.5 * subcell_size));
    325327}
    326328
    327329.notebook tab {