[gtk+/gtk-3-20] Adwaita: relocate a selector



commit 4ece50a13c833b96e79cc6ecbb175290bc1a2b49
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Fri May 6 18:50:37 2016 +0200

    Adwaita: relocate a selector
    
    relocate treview acceleditor > label in the treeview section and
    add a comment for a testcase.

 gtk/theme/Adwaita/_common.scss           |    6 ++----
 gtk/theme/Adwaita/gtk-contained-dark.css |    5 ++---
 gtk/theme/Adwaita/gtk-contained.css      |    5 ++---
 3 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index aed905b..6ba6355 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -422,10 +422,6 @@ entry {
   }
 }
 
-treeview acceleditor > label {
-    background-color: $selected_bg_color;
-}
-
 treeview entry {
   &:focus {
     &:dir(rtl), &:dir(ltr) { // specificity bump hack
@@ -1789,6 +1785,8 @@ treeview.view {
       text-shadow: none;
     }
   }
+
+  acceleditor > label { background-color: $selected_bg_color; } // see tests/testaccel to test
 }
 
 %column_header_button {
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index ee14270..e975dc1 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -400,9 +400,6 @@ entry:drop(active):not(:only-child) + button,
 entry:drop(active):not(:only-child) + combobox > box > button.combo {
   border-top-color: #4e9a06; }
 
-treeview acceleditor > label {
-  background-color: #215d9c; }
-
 treeview entry:focus:dir(rtl), treeview entry:focus:dir(ltr) {
   background-color: #292929;
   transition-property: color, background; }
@@ -2086,6 +2083,8 @@ treeview.view {
     border-style: none;
     box-shadow: inset 0 0 0 1px #292929;
     text-shadow: none; }
+  treeview.view acceleditor > label {
+    background-color: #215d9c; }
 
 treeview.view header button, treeview.view header button:hover, treeview.view header button:active {
   padding: 0 6px;
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 0b1e154..4f14f71 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -400,9 +400,6 @@ entry:drop(active):not(:only-child) + button,
 entry:drop(active):not(:only-child) + combobox > box > button.combo {
   border-top-color: #4e9a06; }
 
-treeview acceleditor > label {
-  background-color: #4a90d9; }
-
 treeview entry:focus:dir(rtl), treeview entry:focus:dir(ltr) {
   background-color: #ffffff;
   transition-property: color, background; }
@@ -2099,6 +2096,8 @@ treeview.view {
     border-style: none;
     box-shadow: inset 0 0 0 1px #ffffff;
     text-shadow: none; }
+  treeview.view acceleditor > label {
+    background-color: #4a90d9; }
 
 treeview.view header button, treeview.view header button:hover, treeview.view header button:active {
   padding: 0 6px;


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