From ac62bc0df9a363de37da70d7cd3da80ea32f7f22 Mon Sep 17 00:00:00 2001 From: Jakub Steiner Date: Thu, 24 Mar 2016 16:43:20 +0100 Subject: [PATCH] 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 7eaac032a9..e08ec7e869 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 30752541e9..83dc0ccead 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 7955d1e6a0..86af6bca51 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; }