[libadwaita/wip/tbernard/soft-shadows: 70/71] style: softer window shadows




commit 1546230a55c45ede86ba05a6d48507d38f944ac7
Author: Tobias Bernard <tbernard gnome org>
Date:   Fri Jul 9 00:47:21 2021 +0200

    style: softer window shadows

 src/stylesheet/widgets/_window.scss | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/stylesheet/widgets/_window.scss b/src/stylesheet/widgets/_window.scss
index 01ec0a86..1257a100 100644
--- a/src/stylesheet/widgets/_window.scss
+++ b/src/stylesheet/widgets/_window.scss
@@ -8,8 +8,9 @@ window {
   $_wm_border_backdrop: if($variant=='light', transparentize(black, 0.82), transparentize(black, 0.25));
 
   &.csd {
-    box-shadow: 0 3px 9px 1px transparentize(black, 0.5),
-                0 2px 6px 2px transparent,
+    box-shadow: 0 2px 8px 2px transparentize(black, 0.87),
+                0 3px 20px 10px transparentize(black, 0.91),
+                0 6px 32px 16px transparentize(black, 0.96),
                 0 0 0 1px $_wm_border; //doing borders with box-shadow
     margin: 0px;
     border-radius: $window_radius;
@@ -25,8 +26,9 @@ window {
       // change when we go to backdrop, to prevent jumping windows.
       // The biggest shadow should be in the same order then in the active state
       // or the jumping will happen during the transition.
-      box-shadow: 0 3px 9px 1px transparent,
-                  0 2px 6px 2px transparentize(black, 0.8),
+      box-shadow: 0 1px 3px 3px transparentize(black, 0.91),
+                  0 2px 14px 5px transparentize(black, 0.95),
+                  0 4px 28px 12px transparentize(black, 0.97),
                   0 0 0 1px $_wm_border_backdrop;
       transition: $backdrop_transition;
     }


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