adwaita: move backdrop box shadows to .csd
authorTimm Bäder <mail@baedert.org>
Mon, 25 May 2020 08:36:29 +0000 (10:36 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 25 May 2020 08:36:29 +0000 (10:36 +0200)
Fixes #2781

gtk/theme/Adwaita/_common.scss

index 93a23d27c5bcd7bf90fb1e6cc4e9754ba20dd58d..33dd5d6fade4292a8e25545136ddd34dafa5b445 100644 (file)
@@ -4044,6 +4044,16 @@ window {
                 0 0 0 1px $_wm_border; //doing borders with box-shadow
     margin: 0px;
     border-radius: $window_radius $window_radius 0 0;
+    &:backdrop {
+      // the transparent shadow here is to enforce that the shadow extents don't
+      // 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),
+                  0 0 0 1px $_wm_border_backdrop;
+      transition: $backdrop_transition;
+    }
   }
 
   &.solid-csd {
@@ -4056,19 +4066,6 @@ window {
     &:backdrop { box-shadow: inset 0 0 0 3px $backdrop_bg_color, inset 0 1px $top_hilight; }
   }
 
-  // FIXME rationalize shadows
-
-  &:backdrop {
-    // the transparent shadow here is to enforce that the shadow extents don't
-    // 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),
-                0 0 0 1px $_wm_border_backdrop;
-    transition: $backdrop_transition;
-  }
-
   &.maximized,
   &.fullscreen,
   &.tiled,