[libadwaita/wip/exalm/borderless: 28/32] stylesheet: Stop using $borders_color for overshoot




commit 58ec9cf94fa623b38f1ae13887475831873df28c
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Jul 21 16:21:20 2021 +0500

    stylesheet: Stop using $borders_color for overshoot
    
    Simplify it along the way.

 src/stylesheet/_drawing.scss | 20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)
---
diff --git a/src/stylesheet/_drawing.scss b/src/stylesheet/_drawing.scss
index 72f9efba..dbe3e6d6 100644
--- a/src/stylesheet/_drawing.scss
+++ b/src/stylesheet/_drawing.scss
@@ -94,13 +94,11 @@
   @else { @return darken($c, 15%); }
 }
 
-@mixin overshoot($p, $c:$fg_color) {
+@mixin overshoot($p) {
 //
 // overshoot
 //
 // $p: position
-// $t: type
-// $c: base color
 //
 // possible $p values:
 // top, bottom, right, left
@@ -117,21 +115,13 @@
     $_big_gradient_size: $_big_gradient_length 100%;
   }
 
-  $_small_gradient_color: $c;
-  $_big_gradient_color: transparentize($c, 0.93);
-
-  @if $c==$fg_color {
-    $_small_gradient_color: darken($borders_color, 10%);
-    $_big_gradient_color: transparentize($fg_color, 0.93);
-  }
-
   $_small_gradient: radial-gradient(farthest-side at $p,
-                                    $_small_gradient_color 85%,
-                                    transparentize($_small_gradient_color, 1));
+                                    gtkalpha(currentColor, 0.2) 85%,
+                                    gtkalpha(currentColor, 0));
 
   $_big_gradient: radial-gradient(farthest-side at $p,
-                                  $_big_gradient_color,
-                                  transparentize($_big_gradient_color, 1));
+                                  gtkalpha(currentColor, 0.07),
+                                  gtkalpha(currentColor, 0));
 
   background-image: $_small_gradient, $_big_gradient;
   background-size: $_small_gradient_size, $_big_gradient_size;


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