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 { |
215 | 215 | background-color: @white; |
216 | 216 | } |
217 | 217 | |
| 218 | GtkTreeView row:nth-child(even) { |
| 219 | background-color: @row_even; |
| 220 | } |
| 221 | GtkTreeView row:nth-child(odd) { |
| 222 | background-color: @row_odd; |
| 223 | } |
| 224 | |
218 | 225 | .entry { |
219 | 226 | border-radius: $(2 * subcell_size)px; |
220 | 227 | border-width: $(thickness)px; |
diff --git a/gtk3/theme/gtk.css b/gtk3/theme/gtk.css
index 7c95e5f..8b55cc6 100644
a
|
b
|
|
6 | 6 | @define-color selection_grey #A6A6A6; |
7 | 7 | @define-color panel_grey #C0C0C0; |
8 | 8 | @define-color text_field_grey #E5E5E5; |
| 9 | @define-color row_even #E5E5E5; |
| 10 | @define-color row_odd #D5D5D5; |
9 | 11 | @define-color white #FFFFFF; |
10 | 12 | |
11 | 13 | /* Default color scheme */ |