[gtk+] Adwaita: GtkTreeView insensitive state style.
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Adwaita: GtkTreeView insensitive state style.
- Date: Fri, 28 Nov 2014 16:05:00 +0000 (UTC)
commit 6962dcffac869a74a9ad9eb856947843b3f09c85
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Fri Nov 28 17:03:53 2014 +0100
Adwaita: GtkTreeView insensitive state style.
See https://bugzilla.gnome.org/show_bug.cgi?id=740770.
gtk/resources/theme/Adwaita/_common.scss | 11 +++++++++++
gtk/resources/theme/Adwaita/gtk-contained-dark.css | 8 ++++++++
gtk/resources/theme/Adwaita/gtk-contained.css | 8 ++++++++
3 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss
index 7b9f319..4c755e3 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -1360,10 +1360,21 @@ GtkTreeView.view {
border-left-color: mix($selected_fg_color, $selected_bg_color, 0.5);
border-top-color: transparentize($fg_color, 0.9); // doesn't work unfortunatelly
}
+
+ &:insensitive {
+ color: $insensitive_fg_color;
+ &:selected {
+ color: mix($selected_fg_color, $selected_bg_color, 40%);
+ &:backdrop { color: mix($backdrop_selected_fg_color, $selected_bg_color, 30%); }
+ }
+ &:backdrop { color: $backdrop_insensitive_color; }
+ }
+
&:backdrop {
border-left-color: mix($backdrop_fg_color, $backdrop_bg_color, 0.5);
border-top: $backdrop_bg_color;
}
+
&.expander {
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
&:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
index f00f8b6..7d6eb03 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
@@ -1968,6 +1968,14 @@ GtkTreeView.view {
GtkTreeView.view:selected, GtkTreeView.view:backdrop:selected {
border-left-color: #225d9c;
border-top-color: rgba(238, 238, 236, 0.1); }
+ GtkTreeView.view:insensitive {
+ color: #939695; }
+ GtkTreeView.view:insensitive:selected {
+ color: #799dc3; }
+ GtkTreeView.view:insensitive:selected:backdrop {
+ color: #638db9; }
+ GtkTreeView.view:insensitive:backdrop {
+ color: #5d6767; }
GtkTreeView.view:backdrop {
border-left-color: #393f3f;
border-top: #393f3f; }
diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css
index a6b73eb..cd3b6e5 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained.css
@@ -1968,6 +1968,14 @@ GtkTreeView.view {
GtkTreeView.view:selected, GtkTreeView.view:backdrop:selected {
border-left-color: #4a90d9;
border-top-color: rgba(46, 52, 54, 0.1); }
+ GtkTreeView.view:insensitive {
+ color: #8d9091; }
+ GtkTreeView.view:insensitive:selected {
+ color: #92bce8; }
+ GtkTreeView.view:insensitive:selected:backdrop {
+ color: #80b1e4; }
+ GtkTreeView.view:insensitive:backdrop {
+ color: #c7c7c7; }
GtkTreeView.view:backdrop {
border-left-color: #ececec;
border-top: #ededed; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]