[gnome-themes-standard] Make the through of the active switch consistent with other throughs



commit 1a7e415fb9448eab534cd17ef5b337c2140621b1
Author: Nikita Churaev <lamefun x0r gmail com>
Date:   Mon Jan 20 18:50:27 2014 +0400

    Make the through of the active switch consistent with other throughs
    
    The new convention is that inset panels are nearly flat with a faint shadow,
    make GtkSwitch respect it too
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722606

 themes/Adwaita/gtk-3.0/gtk-main.css                |    4 ++--
 themes/Adwaita/gtk-3.0/gtk-widgets-backgrounds.css |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-main.css b/themes/Adwaita/gtk-3.0/gtk-main.css
index efb146d..17781e8 100644
--- a/themes/Adwaita/gtk-3.0/gtk-main.css
+++ b/themes/Adwaita/gtk-3.0/gtk-main.css
@@ -72,8 +72,8 @@
 
 @define-color switch_slider_color #eeeeec;
 @define-color switch_trough_active_color @theme_base_color;
- define-color switch_trough_active_bg_a #509ae7;
- define-color switch_trough_active_bg_b #a5d0ff;
+ define-color switch_trough_active_bg_a shade(@theme_selected_bg_color, 1.2);
+ define-color switch_trough_active_bg_b shade(@theme_selected_bg_color, 1.35);
 
 @define-color progressbar_background_a #76b0ec;
 @define-color progressbar_background_b #1f72c6;
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-backgrounds.css 
b/themes/Adwaita/gtk-3.0/gtk-widgets-backgrounds.css
index 7d92c03..a7cdb89 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-backgrounds.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-backgrounds.css
@@ -235,6 +235,7 @@ GtkComboBox.combobox-entry .button:insensitive:backdrop,
 /* Active switch background*/
 GtkSwitch.trough:active,
 .scale.progressbar {
+    box-shadow: inset 0 1px 1px alpha(black, 0.1);
     background-image: linear-gradient(to bottom,
                                       @switch_trough_active_bg_a,
                                       @switch_trough_active_bg_b


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