[gtk+] Adwaita: add a background to cellrendertext
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Adwaita: add a background to cellrendertext
- Date: Wed, 27 Apr 2016 18:05:50 +0000 (UTC)
commit 0d55542359751d80c7ae7bf5b48806e6a9f07a23
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 b5889f4..dc1b3fd 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -427,6 +427,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 7f9d327..5d9a120 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 bf26e5d..5314278 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]