[gnome-themes-standard] switch: render a gradient on the border



commit 01578923e0ddf6cf2d36314f0534bb1a0da68a4b
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Mar 17 21:03:47 2011 -0400

    switch: render a gradient on the border
    
    The mockups have it.

 themes/Adwaita/gtk-3.0/gtk.css |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index 0a2ad58..2a567fd 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -950,7 +950,10 @@ GtkSwitch.trough {
 
 GtkSwitch.trough:active {
     color: @theme_base_color;
-    border-color: shade (@theme_selected_bg_color, 0.66);
+    -adwaita-border-gradient: -gtk-gradient (linear,
+                                             left top, left bottom,
+                                             from (shade (@selected_bg_color, 0.70)),
+                                             to (shade (@selected_bg_color, 0.94)));
     background-image: -gtk-gradient (linear,
                                      left top, left bottom,
                                      from (@active_switch_bg_color_a),
@@ -961,6 +964,7 @@ GtkSwitch.trough:insensitive {
     background-image: none;
     background-color: shade (@theme_bg_color, 0.9);
     border-color: shade (@inactive_frame_color, 0.845);
+    -adwaita-border-gradient: none;
 }
 
 GtkSwitch.slider {



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