Ticket #3726: 0001-Set-background-color-for-GtkTreeView-rows-with-odd-e.patch

File 0001-Set-background-color-for-GtkTreeView-rows-with-odd-e.patch, 1.5 KB (added by manuq, 12 years ago)

This patch fixes the style in sugar-artwork.

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

    From ec05af34551f95447040480500a43f9771e8a5c2 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Sat, 23 Jun 2012 00:55:03 -0300
    Subject: [PATCH sugar-artwork] Set background color for GtkTreeView rows with
     odd-even flags SL #3726
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    This is only applied if the GtkTreeView has the "rules-hint" property
    set to True.
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     gtk3/theme/gtk-widgets.css.em |    7 +++++++
     gtk3/theme/gtk.css            |    2 ++
     2 files changed, 9 insertions(+)
    
    diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
    index bf4ecd6..ed585d9 100644
    a b GtkToggleButton.button:active GtkLabel { 
    215215    background-color: @white;
    216216}
    217217
     218GtkTreeView row:nth-child(even) {
     219    background-color: @row_even;
     220}
     221GtkTreeView row:nth-child(odd) {
     222    background-color: @row_odd;
     223}
     224
    218225.entry {
    219226    border-radius: $(2 * subcell_size)px;
    220227    border-width: $(thickness)px;
  • gtk3/theme/gtk.css

    diff --git a/gtk3/theme/gtk.css b/gtk3/theme/gtk.css
    index 7c95e5f..8b55cc6 100644
    a b  
    66@define-color selection_grey #A6A6A6;
    77@define-color panel_grey #C0C0C0;
    88@define-color text_field_grey #E5E5E5;
     9@define-color row_even #E5E5E5;
     10@define-color row_odd #D5D5D5;
    911@define-color white #FFFFFF;
    1012
    1113/* Default color scheme */