[libadwaita/wip/tbernard/soft-shadows: 71/71] window shadows: add transparent shadow layers to fix transition on x11




commit 984ad5219bdea1fa4fb91d144d93fea8a9a8936a
Author: Tobias Bernard <tbernard gnome org>
Date:   Wed Jul 28 16:06:52 2021 +0200

    window shadows: add transparent shadow layers to fix transition on x11

 src/stylesheet/widgets/_window.scss | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/stylesheet/widgets/_window.scss b/src/stylesheet/widgets/_window.scss
index 1257a100..e447e189 100644
--- a/src/stylesheet/widgets/_window.scss
+++ b/src/stylesheet/widgets/_window.scss
@@ -8,7 +8,8 @@ window {
   $_wm_border_backdrop: if($variant=='light', transparentize(black, 0.82), transparentize(black, 0.25));
 
   &.csd {
-    box-shadow: 0 2px 8px 2px transparentize(black, 0.87),
+    box-shadow: 0 1px 3px 3px transparent,
+                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
@@ -29,6 +30,7 @@ window {
       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 6px 32px 16px transparent,
                   0 0 0 1px $_wm_border_backdrop;
       transition: $backdrop_transition;
     }


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