[libadwaita/wip/exalm/background-colors: 18/20] stylesheet: Remove an if() from tab bar styles




commit 4dcd3e6dcaa723fdf29656501bed4f166ee65985
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Oct 18 19:55:03 2021 +0500

    stylesheet: Remove an if() from tab bar styles
    
    It was completely unnecessary.

 src/stylesheet/widgets/_tab-view.scss | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/src/stylesheet/widgets/_tab-view.scss b/src/stylesheet/widgets/_tab-view.scss
index 5b16b077..eca92cb6 100644
--- a/src/stylesheet/widgets/_tab-view.scss
+++ b/src/stylesheet/widgets/_tab-view.scss
@@ -7,16 +7,9 @@ $tab_needs_attention_gradient: radial-gradient(ellipse at bottom,
 
 
 @mixin undershoot-gradient($dir) {
-  @if $variant == 'dark' {
-    background: linear-gradient(to #{$dir},
-                                transparentize(black, .6),
-                                transparentize(black, 1) 20px);
-  }
-  @else {
-    background: linear-gradient(to #{$dir},
-                                transparentize(black, .93),
-                                transparentize(black, 1) 20px);
-  }
+  background: linear-gradient(to #{$dir},
+                              $shade_color,
+                              transparentize(black, 1) 20px);
 }
 
 @mixin need-attention-gradient($dir) {


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