[gnome-themes-standard/wip/sass] scale: active and fine-tune modes



commit a9fa7dd51c11453f6a7f1154c45203b4a6db8ea5
Author: Jakub Steiner <jimmac gmail com>
Date:   Wed May 28 15:01:02 2014 +0200

    scale: active and fine-tune modes

 themes/Adwaita/gtk-3.0/_common.scss           |    8 ++++----
 themes/Adwaita/gtk-3.0/gtk-contained-dark.css |    6 ++++--
 themes/Adwaita/gtk-3.0/gtk-contained.css      |    6 ++++--
 3 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/_common.scss b/themes/Adwaita/gtk-3.0/_common.scss
index 16dd47c..e67ca37 100644
--- a/themes/Adwaita/gtk-3.0/_common.scss
+++ b/themes/Adwaita/gtk-3.0/_common.scss
@@ -765,11 +765,11 @@ GtkSwitch {
     &:insensitive { @include button(insensitive); }
     &:backdrop { @include button(backdrop); }
     &:backdrop:insensitive { @include button(backdrop-insensitive); }
-    &:active { }
-    
+    &:active { border: 1px solid $selected_bg_color; }
     &.fine-tune:active {
-      -GtkScale-slider-length: 8;
-      -GtkRange-slider-width: 8;
+      // Lapo, look away, this is nastiness
+      border: 4px solid transparent; //margin
+      box-shadow: inset 0 0 0 1px $selected_bg_color; //border
     }
   }
   &.trough {
diff --git a/themes/Adwaita/gtk-3.0/gtk-contained-dark.css b/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
index 371eb53..25836e5 100644
--- a/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
@@ -924,9 +924,11 @@ GtkSwitch {
       color: white;
       border-color: #1c1f1f;
       box-shadow: inset 0 1px rgba(255, 255, 255, 0); }
+    .scale.slider:active {
+      border: 1px solid #2a76c6; }
     .scale.slider.fine-tune:active {
-      -GtkScale-slider-length: 8;
-      -GtkRange-slider-width: 8; }
+      border: 4px solid transparent;
+      box-shadow: inset 0 0 0 1px #2a76c6; }
   .scale.trough {
     color: #c9cbc9;
     background-image: linear-gradient(to bottom, #303535 5%, #333838 20%, #333838 90%, #393f3f);
diff --git a/themes/Adwaita/gtk-3.0/gtk-contained.css b/themes/Adwaita/gtk-3.0/gtk-contained.css
index 0bf3bc6..62ee62a 100644
--- a/themes/Adwaita/gtk-3.0/gtk-contained.css
+++ b/themes/Adwaita/gtk-3.0/gtk-contained.css
@@ -924,9 +924,11 @@ GtkSwitch {
       color: #c7c7c7;
       border-color: #a1a1a1;
       box-shadow: inset 0 1px rgba(255, 255, 255, 0); }
+    .scale.slider:active {
+      border: 1px solid #4a90d9; }
     .scale.slider.fine-tune:active {
-      -GtkScale-slider-length: 8;
-      -GtkRange-slider-width: 8; }
+      border: 4px solid transparent;
+      box-shadow: inset 0 0 0 1px #4a90d9; }
   .scale.trough {
     color: #54595a;
     background-image: linear-gradient(to bottom, #c9c9c9 5%, #d5d5d5 20%, #d5d5d5 90%, #ededed);


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