[gtk+/gtk-3-20] Adwaita: add a background to cellrendertext



commit 563add132573d8e93faa351eca6f91e1aaa8f60e
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Wed Apr 27 20:04:39 2016 +0200

    Adwaita: add a background to cellrendertext

 gtk/theme/Adwaita/_common.scss           |    7 +++++++
 gtk/theme/Adwaita/gtk-contained-dark.css |    3 +++
 gtk/theme/Adwaita/gtk-contained.css      |    3 +++
 3 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index b4a5994..9c1e667 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -430,6 +430,13 @@ treeview acceleditor > label {
 }
 
 treeview entry {
+  &:focus {
+    &:dir(rtl), &:dir(ltr) { // specificity bump hack
+      background-color: $base_color;
+      transition-property: color, background;
+    }
+  }
+
   &.flat, & {
     border-radius: 0;
     background-image: none;
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 36c393c..d91f4a4 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -405,6 +405,9 @@ entry:drop(active):not(:only-child) + combobox > box > button.combo {
 treeview acceleditor > label {
   background-color: #215d9c; }
 
+treeview entry:focus:dir(rtl), treeview entry:focus:dir(ltr) {
+  background-color: #232729;
+  transition-property: color, background; }
 treeview entry.flat, treeview entry {
   border-radius: 0;
   background-image: none;
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 28c4487..21d596a 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -405,6 +405,9 @@ entry:drop(active):not(:only-child) + combobox > box > button.combo {
 treeview acceleditor > label {
   background-color: #4a90d9; }
 
+treeview entry:focus:dir(rtl), treeview entry:focus:dir(ltr) {
+  background-color: #ffffff;
+  transition-property: color, background; }
 treeview entry.flat, treeview entry {
   border-radius: 0;
   background-image: none;


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