[gtk+] High Contrast Inverse: switches



commit ac62bc0df9a363de37da70d7cd3da80ea32f7f22
Author: Jakub Steiner <jimmac gmail com>
Date:   Thu Mar 24 16:43:20 2016 +0100

    High Contrast Inverse: switches
    
    - make sure both non active and active states are contrasty
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763802

 gtk/theme/HighContrast/_common.scss              |    6 +++---
 gtk/theme/HighContrast/gtk-contained-inverse.css |    6 +++---
 gtk/theme/HighContrast/gtk-contained.css         |    6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss
index 7eaac03..e08ec7e 100644
--- a/gtk/theme/HighContrast/_common.scss
+++ b/gtk/theme/HighContrast/_common.scss
@@ -1971,11 +1971,11 @@ switch {
     border-style: solid;
     border-radius: 3px;
     border-color: $borders_color;
-    background-color: mix($bg_color,$borders_color,60%);
+    background-color: $dark_fill;
     box-shadow: inset 0 1px transparentize(black, 0.9); /*outset not working*/
     text-shadow: 0 1px transparentize(black, 0.9);
-    &:checked {
-        color: white;
+    &:active {
+        color: $selected_fg_color;
         border-color: $selected_borders_color;
         background-color: $selected_bg_color;
         text-shadow: 0 0 2px white;
diff --git a/gtk/theme/HighContrast/gtk-contained-inverse.css 
b/gtk/theme/HighContrast/gtk-contained-inverse.css
index 3075254..83dc0cc 100644
--- a/gtk/theme/HighContrast/gtk-contained-inverse.css
+++ b/gtk/theme/HighContrast/gtk-contained-inverse.css
@@ -2023,12 +2023,12 @@ switch {
   border-style: solid;
   border-radius: 3px;
   border-color: gray;
-  background-color: #333333;
+  background-color: #1a1a1a;
   box-shadow: inset 0 1px rgba(0, 0, 0, 0.1);
   /*outset not working*/
   text-shadow: 0 1px rgba(0, 0, 0, 0.1); }
-  switch:checked {
-    color: white;
+  switch:active {
+    color: #000;
     border-color: #aaa;
     background-color: #ddd;
     text-shadow: 0 0 2px white; }
diff --git a/gtk/theme/HighContrast/gtk-contained.css b/gtk/theme/HighContrast/gtk-contained.css
index 7955d1e..86af6bc 100644
--- a/gtk/theme/HighContrast/gtk-contained.css
+++ b/gtk/theme/HighContrast/gtk-contained.css
@@ -2027,12 +2027,12 @@ switch {
   border-style: solid;
   border-radius: 3px;
   border-color: gray;
-  background-color: #cccccc;
+  background-color: gray;
   box-shadow: inset 0 1px rgba(0, 0, 0, 0.1);
   /*outset not working*/
   text-shadow: 0 1px rgba(0, 0, 0, 0.1); }
-  switch:checked {
-    color: white;
+  switch:active {
+    color: #fff;
     border-color: #000;
     background-color: #000;
     text-shadow: 0 0 2px white; }


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