[libadwaita/wip/exalm/backdrop: 3/5] stylesheet: Use a flat gradient for backdrop header bar




commit 50a3685b090272be89954b4a1f6a83c117308162
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Apr 30 17:37:02 2021 +0500

    stylesheet: Use a flat gradient for backdrop header bar
    
    Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/102

 src/stylesheet/widgets/_header-bar.scss | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/stylesheet/widgets/_header-bar.scss b/src/stylesheet/widgets/_header-bar.scss
index f77bdc6..00409ec 100644
--- a/src/stylesheet/widgets/_header-bar.scss
+++ b/src/stylesheet/widgets/_header-bar.scss
@@ -23,8 +23,7 @@ headerbar {
   }
 
   &:backdrop {
-    background-color: $bg_color;
-    background-image: none;
+    background-image: linear-gradient(to top, $bg_color, $bg_color);
 
     transition: $backdrop_transition;
 
@@ -183,7 +182,8 @@ window.devel {
 
     &:backdrop {
       background: $bg_color cross-fade(10% -gtk-icontheme("system-run-symbolic"), image(transparent)) 90% 
0/256px 256px no-repeat,
-                  image($bg_color); /* background-color would flash */
+                  linear-gradient(to right, transparent 65%, transparent),
+                  linear-gradient(to top, $bg_color, $bg_color);
     }
   }
 }


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