[gnome-themes-standard] button: edge highlight tweak



commit e67b44282df90b06c52e7958e0b6d84b8c8132d2
Author: Jakub Steiner <jimmac gmail com>
Date:   Tue May 27 13:24:17 2014 +0200

    button: edge highlight tweak

 themes/Adwaita/gtk-3.0/_drawing.scss     |    3 +--
 themes/Adwaita/gtk-3.0/gtk-contained.css |    8 ++++----
 2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/_drawing.scss b/themes/Adwaita/gtk-3.0/_drawing.scss
index a758bf0..45b2465 100644
--- a/themes/Adwaita/gtk-3.0/_drawing.scss
+++ b/themes/Adwaita/gtk-3.0/_drawing.scss
@@ -60,8 +60,7 @@ $widget_bottom_hilight: 0 1px $borders_edge; //outer hilight "used" on
   border-width: 1px;
   border-style: solid;
 
-  $_top_hilight: white;
-  @if $variant == 'dark' { $_top_hilight: transparentize(white,0.9); }
+  $_top_hilight: if(lightness($c)> 70%, white, transparentize(white,0.9));
 
   @if $t==normal { // normal button
     color: $tc;
diff --git a/themes/Adwaita/gtk-3.0/gtk-contained.css b/themes/Adwaita/gtk-3.0/gtk-contained.css
index 6413ab4..15932f1 100644
--- a/themes/Adwaita/gtk-3.0/gtk-contained.css
+++ b/themes/Adwaita/gtk-3.0/gtk-contained.css
@@ -240,7 +240,7 @@ GtkGrid:insensitive {
     border-color: #184472;
     text-shadow: 0 -1px rgba(0, 0, 0, 0.54353);
     icon-shadow: 0 -1px rgba(0, 0, 0, 0.54353);
-    box-shadow: inset 0 1px white, 0 1px white; }
+    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 1px white; }
     .button.suggested-action:hover {
       border-width: 1px;
       border-style: solid;
@@ -249,7 +249,7 @@ GtkGrid:insensitive {
       background-image: linear-gradient(to bottom, #85b4e5, #5b9add 40%, #4a90d9);
       text-shadow: 0 -1px rgba(0, 0, 0, 0.51153);
       icon-shadow: 0 -1px rgba(0, 0, 0, 0.51153);
-      box-shadow: inset 0 1px white, 0 1px white; }
+      box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 1px white; }
     .button.suggested-action:active {
       border-width: 1px;
       border-style: solid;
@@ -291,7 +291,7 @@ GtkGrid:insensitive {
     border-color: #760909;
     text-shadow: 0 -1px rgba(0, 0, 0, 0.56078);
     icon-shadow: 0 -1px rgba(0, 0, 0, 0.56078);
-    box-shadow: inset 0 1px white, 0 1px white; }
+    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 1px white; }
     .button.destructive-action:hover {
       border-width: 1px;
       border-style: solid;
@@ -300,7 +300,7 @@ GtkGrid:insensitive {
       background-image: linear-gradient(to bottom, #f46b6b, #f03c3c 40%, #ef2929);
       text-shadow: 0 -1px rgba(0, 0, 0, 0.52878);
       icon-shadow: 0 -1px rgba(0, 0, 0, 0.52878);
-      box-shadow: inset 0 1px white, 0 1px white; }
+      box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 1px white; }
     .button.destructive-action:active {
       border-width: 1px;
       border-style: solid;


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