[gnome-themes-standard] treeview: properly theme treeview separator lines



commit d322fa5c5f76d66852c929575fc3891c52c56ae6
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Mar 17 17:16:02 2011 -0400

    treeview: properly theme treeview separator lines

 src/adwaita_engine.c           |    6 ++++--
 themes/Adwaita/gtk-3.0/gtk.css |    4 ++++
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/adwaita_engine.c b/src/adwaita_engine.c
index f50dfc9..b99d837 100644
--- a/src/adwaita_engine.c
+++ b/src/adwaita_engine.c
@@ -1705,8 +1705,10 @@ adwaita_engine_render_line (GtkThemingEngine *engine,
 
 	path = gtk_theming_engine_get_path (engine);
 
-	if (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_MARK) &&
-	    gtk_widget_path_is_type (path, GTK_TYPE_SCALE)) {
+	if ((gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_MARK) &&
+	     gtk_widget_path_is_type (path, GTK_TYPE_SCALE)) ||
+	    (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_SEPARATOR) &&
+	     gtk_widget_path_is_type (path, GTK_TYPE_TREE_VIEW))) {
 		GtkStateFlags state;
 		GdkRGBA bg;
 
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index 06d9852..ba77393 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -1003,6 +1003,10 @@ GtkTreeView {
     -adwaita-focus-border-color: @keyboard_focus_border_a;
 }
 
+GtkTreeView.separator {
+    background-color: darker (@theme_bg_color);
+}
+
 column-header {
     padding: 1 2;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]