[gtk+] Adwaita: explicitelly set label caret-color to currentColor



commit 0c387b27ee9b0ac2f4041c78404cd0b489207d82
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Mon May 30 14:20:33 2016 +0200

    Adwaita: explicitelly set label caret-color to currentColor
    
    since it doesn't always inherit 'color' color as it should.

 gtk/theme/Adwaita/_common.scss           |    2 ++
 gtk/theme/Adwaita/gtk-contained-dark.css |   26 ++++++++++++++------------
 gtk/theme/Adwaita/gtk-contained.css      |   26 ++++++++++++++------------
 3 files changed, 30 insertions(+), 24 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index f477e7e..5855913 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -144,6 +144,8 @@ flowbox {
 }
 
 label {
+  caret-color: currentColor; // this shouldn't be needed.
+
   &.separator {
     @extend .dim-label;
 
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index ffc271d..9a85536 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -90,19 +90,21 @@ flowbox flowboxchild {
   flowbox flowboxchild:selected {
     outline-offset: -2px; }
 
-label.separator {
-  color: #eeeeec; }
-  label.separator:backdrop {
+label {
+  caret-color: currentColor; }
+  label.separator {
+    color: #eeeeec; }
+    label.separator:backdrop {
+      color: #919494; }
+  label selection {
+    background-color: #215d9c;
+    color: #ffffff; }
+  label:disabled {
+    color: #919494; }
+    label:disabled:backdrop {
+      color: #566164; }
+  label:backdrop {
     color: #919494; }
-label selection {
-  background-color: #215d9c;
-  color: #ffffff; }
-label:disabled {
-  color: #919494; }
-  label:disabled:backdrop {
-    color: #566164; }
-label:backdrop {
-  color: #919494; }
 
 .dim-label, label.separator, .titlebar:not(headerbar) .subtitle,
 headerbar .subtitle {
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 3d8680c..4a7ccc7 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -90,19 +90,21 @@ flowbox flowboxchild {
   flowbox flowboxchild:selected {
     outline-offset: -2px; }
 
-label.separator {
-  color: #2e3436; }
-  label.separator:backdrop {
+label {
+  caret-color: currentColor; }
+  label.separator {
+    color: #2e3436; }
+    label.separator:backdrop {
+      color: #8b8e8f; }
+  label selection {
+    background-color: #4a90d9;
+    color: #ffffff; }
+  label:disabled {
+    color: #8b8e8f; }
+    label:disabled:backdrop {
+      color: #c3c3c0; }
+  label:backdrop {
     color: #8b8e8f; }
-label selection {
-  background-color: #4a90d9;
-  color: #ffffff; }
-label:disabled {
-  color: #8b8e8f; }
-  label:disabled:backdrop {
-    color: #c3c3c0; }
-label:backdrop {
-  color: #8b8e8f; }
 
 .dim-label, label.separator, .titlebar:not(headerbar) .subtitle,
 headerbar .subtitle {


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