[gnome-themes-standard/wip/sass] treeview: checkboxes and radios as symbols



commit 3a54e66b7a5a1893539e3718a3e580d2c9aa278a
Author: Jakub Steiner <jimmac gmail com>
Date:   Fri Jun 6 10:20:58 2014 +0200

    treeview: checkboxes and radios as symbols

 themes/Adwaita/gtk-3.0/_common.scss           |    8 +++--
 themes/Adwaita/gtk-3.0/gtk-contained-dark.css |   38 +++++++++++++++++++-----
 themes/Adwaita/gtk-3.0/gtk-contained.css      |   38 +++++++++++++++++++-----
 3 files changed, 65 insertions(+), 19 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/_common.scss b/themes/Adwaita/gtk-3.0/_common.scss
index c9703d3..3f90f7e 100644
--- a/themes/Adwaita/gtk-3.0/_common.scss
+++ b/themes/Adwaita/gtk-3.0/_common.scss
@@ -997,12 +997,14 @@ $asset_suffix: if($variant=='dark', '-dark', '');
     }    
   }
   
-  // menu and popover; FIXME: treeview
+  // treeview, menu and popover
   GtkPopover GtkModelButton.button.#{$w},
-  .menuitem.#{$w} {
+  .menuitem.#{$w},
+  GtkTreeView.#{$w} {
     background-image: none;
     background-color: transparent;
-    &:active { -gtk-icon-source: -gtk-icontheme('#{$a}-checked-symbolic'); color: $fg_color; }
+    &:hover, &:selected { background-image: none; }
+    &:active, &:active:hover { -gtk-icon-source: -gtk-icontheme('#{$a}-checked-symbolic'); color: $fg_color; 
}
     &:inconsistent { -gtk-icon-source: -gtk-icontheme('#{$a}-mixed-symbolic'); }
   }
   .menuitem.#{$w} {
diff --git a/themes/Adwaita/gtk-3.0/gtk-contained-dark.css b/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
index c03f83e..79bdaba 100644
--- a/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
@@ -1077,15 +1077,26 @@ GtkSwitch {
   background-position: center; }
 
 GtkPopover GtkModelButton.button.check,
-.menuitem.check {
+.menuitem.check,
+GtkTreeView.check {
   background-image: none;
   background-color: transparent; }
-  GtkPopover GtkModelButton.button.check:active,
-  .menuitem.check:active {
+  GtkPopover GtkModelButton.button.check:hover, GtkPopover GtkModelButton.button.check:selected,
+  .menuitem.check:hover,
+  .menuitem.check:selected,
+  GtkTreeView.check:hover,
+  GtkTreeView.check:selected {
+    background-image: none; }
+  GtkPopover GtkModelButton.button.check:active, GtkPopover GtkModelButton.button.check:active:hover,
+  .menuitem.check:active,
+  .menuitem.check:active:hover,
+  GtkTreeView.check:active,
+  GtkTreeView.check:active:hover {
     -gtk-icon-source: -gtk-icontheme("checkbox-checked-symbolic");
     color: #eeeeec; }
   GtkPopover GtkModelButton.button.check:inconsistent,
-  .menuitem.check:inconsistent {
+  .menuitem.check:inconsistent,
+  GtkTreeView.check:inconsistent {
     -gtk-icon-source: -gtk-icontheme("checkbox-mixed-symbolic"); }
 
 .menuitem.check:hover, .menuitem.check:active:hover {
@@ -1180,15 +1191,26 @@ GtkPopover GtkModelButton.button.check:hover, GtkPopover GtkModelButton.button.c
   background-position: center; }
 
 GtkPopover GtkModelButton.button.radio,
-.menuitem.radio {
+.menuitem.radio,
+GtkTreeView.radio {
   background-image: none;
   background-color: transparent; }
-  GtkPopover GtkModelButton.button.radio:active,
-  .menuitem.radio:active {
+  GtkPopover GtkModelButton.button.radio:hover, GtkPopover GtkModelButton.button.radio:selected,
+  .menuitem.radio:hover,
+  .menuitem.radio:selected,
+  GtkTreeView.radio:hover,
+  GtkTreeView.radio:selected {
+    background-image: none; }
+  GtkPopover GtkModelButton.button.radio:active, GtkPopover GtkModelButton.button.radio:active:hover,
+  .menuitem.radio:active,
+  .menuitem.radio:active:hover,
+  GtkTreeView.radio:active,
+  GtkTreeView.radio:active:hover {
     -gtk-icon-source: -gtk-icontheme("radio-checked-symbolic");
     color: #eeeeec; }
   GtkPopover GtkModelButton.button.radio:inconsistent,
-  .menuitem.radio:inconsistent {
+  .menuitem.radio:inconsistent,
+  GtkTreeView.radio:inconsistent {
     -gtk-icon-source: -gtk-icontheme("radio-mixed-symbolic"); }
 
 .menuitem.radio:hover, .menuitem.radio:active:hover {
diff --git a/themes/Adwaita/gtk-3.0/gtk-contained.css b/themes/Adwaita/gtk-3.0/gtk-contained.css
index f2226fe..e081669 100644
--- a/themes/Adwaita/gtk-3.0/gtk-contained.css
+++ b/themes/Adwaita/gtk-3.0/gtk-contained.css
@@ -1077,15 +1077,26 @@ GtkSwitch {
   background-position: center; }
 
 GtkPopover GtkModelButton.button.check,
-.menuitem.check {
+.menuitem.check,
+GtkTreeView.check {
   background-image: none;
   background-color: transparent; }
-  GtkPopover GtkModelButton.button.check:active,
-  .menuitem.check:active {
+  GtkPopover GtkModelButton.button.check:hover, GtkPopover GtkModelButton.button.check:selected,
+  .menuitem.check:hover,
+  .menuitem.check:selected,
+  GtkTreeView.check:hover,
+  GtkTreeView.check:selected {
+    background-image: none; }
+  GtkPopover GtkModelButton.button.check:active, GtkPopover GtkModelButton.button.check:active:hover,
+  .menuitem.check:active,
+  .menuitem.check:active:hover,
+  GtkTreeView.check:active,
+  GtkTreeView.check:active:hover {
     -gtk-icon-source: -gtk-icontheme("checkbox-checked-symbolic");
     color: #2e3436; }
   GtkPopover GtkModelButton.button.check:inconsistent,
-  .menuitem.check:inconsistent {
+  .menuitem.check:inconsistent,
+  GtkTreeView.check:inconsistent {
     -gtk-icon-source: -gtk-icontheme("checkbox-mixed-symbolic"); }
 
 .menuitem.check:hover, .menuitem.check:active:hover {
@@ -1180,15 +1191,26 @@ GtkPopover GtkModelButton.button.check:hover, GtkPopover GtkModelButton.button.c
   background-position: center; }
 
 GtkPopover GtkModelButton.button.radio,
-.menuitem.radio {
+.menuitem.radio,
+GtkTreeView.radio {
   background-image: none;
   background-color: transparent; }
-  GtkPopover GtkModelButton.button.radio:active,
-  .menuitem.radio:active {
+  GtkPopover GtkModelButton.button.radio:hover, GtkPopover GtkModelButton.button.radio:selected,
+  .menuitem.radio:hover,
+  .menuitem.radio:selected,
+  GtkTreeView.radio:hover,
+  GtkTreeView.radio:selected {
+    background-image: none; }
+  GtkPopover GtkModelButton.button.radio:active, GtkPopover GtkModelButton.button.radio:active:hover,
+  .menuitem.radio:active,
+  .menuitem.radio:active:hover,
+  GtkTreeView.radio:active,
+  GtkTreeView.radio:active:hover {
     -gtk-icon-source: -gtk-icontheme("radio-checked-symbolic");
     color: #2e3436; }
   GtkPopover GtkModelButton.button.radio:inconsistent,
-  .menuitem.radio:inconsistent {
+  .menuitem.radio:inconsistent,
+  GtkTreeView.radio:inconsistent {
     -gtk-icon-source: -gtk-icontheme("radio-mixed-symbolic"); }
 
 .menuitem.radio:hover, .menuitem.radio:active:hover {


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