From 63c88d501360832a006b5538926f5c311491b94e Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Thu, 10 Jul 2014 13:53:37 +0200 Subject: [PATCH] Adwaita: initial and hopefully temporary treeview separation lines style --- gtk/resources/theme/Adwaita/_common.scss | 22 +++++++++++++++++++ .../theme/Adwaita/gtk-contained-dark.css | 19 ++++++++++++++++ gtk/resources/theme/Adwaita/gtk-contained.css | 19 ++++++++++++++++ 3 files changed, 60 insertions(+) diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss index 00892b8193..261004e40d 100644 --- a/gtk/resources/theme/Adwaita/_common.scss +++ b/gtk/resources/theme/Adwaita/_common.scss @@ -829,6 +829,28 @@ GtkComboBox { /************** * Tree Views * **************/ + +GtkTreeView.view { // all this mess is to theme the treeview grid lines + // which reacts to "color", hope to be able to axe this + // one day + -GtkTreeView-grid-line-width: 1; + -GtkTreeView-grid-line-pattern: ''; + color: $bg_color; // this is actually the line color + &:selected { color: $base_color; }; + &:backdrop { + color: $backdrop_bg_color; + &:selected { color: $backdrop_base_color; } + } + column { // this is to override the previously set color... + color: $fg_color; + &:selected { color: $selected_fg_color; } + &:backdrop { + color: $backdrop_fg_color; + &:selected { color: $backdrop_base_color; }; + } + } +} + column-header { .button { @extend %column_header_button; diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css b/gtk/resources/theme/Adwaita/gtk-contained-dark.css index 65bd59e1f7..4fe64d3769 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css @@ -1017,6 +1017,25 @@ GtkComboBox { /************** * Tree Views * **************/ +GtkTreeView.view { + -GtkTreeView-grid-line-width: 1; + -GtkTreeView-grid-line-pattern: ''; + color: #393f3f; } + GtkTreeView.view:selected { + color: #292929; } + GtkTreeView.view:backdrop { + color: #393f3f; } + GtkTreeView.view:backdrop:selected { + color: #2c2c2c; } + GtkTreeView.view column { + color: #eeeeec; } + GtkTreeView.view column:selected { + color: white; } + GtkTreeView.view column:backdrop { + color: #c9cbc9; } + GtkTreeView.view column:backdrop:selected { + color: #2c2c2c; } + column-header .button { color: #8b8b8a; font-weight: bold; diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css index e3f67c55dc..8c07aa2146 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained.css +++ b/gtk/resources/theme/Adwaita/gtk-contained.css @@ -1009,6 +1009,25 @@ GtkComboBox { /************** * Tree Views * **************/ +GtkTreeView.view { + -GtkTreeView-grid-line-width: 1; + -GtkTreeView-grid-line-pattern: ''; + color: #ededed; } + GtkTreeView.view:selected { + color: white; } + GtkTreeView.view:backdrop { + color: #ededed; } + GtkTreeView.view:backdrop:selected { + color: #fcfcfc; } + GtkTreeView.view column { + color: #2e3436; } + GtkTreeView.view column:selected { + color: white; } + GtkTreeView.view column:backdrop { + color: #54595a; } + GtkTreeView.view column:backdrop:selected { + color: #fcfcfc; } + column-header .button { color: #96999a; font-weight: bold;