From c06518bbaf13bcaa04694fe5a4425789255a1bf7 Mon Sep 17 00:00:00 2001 From: Vince Date: Wed, 26 Oct 2022 23:05:41 +0800 Subject: [PATCH] update --- src/sass/gtk/_common-4.0.scss | 41 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/src/sass/gtk/_common-4.0.scss b/src/sass/gtk/_common-4.0.scss index 6256136f..19a17b6b 100644 --- a/src/sass/gtk/_common-4.0.scss +++ b/src/sass/gtk/_common-4.0.scss @@ -4411,12 +4411,22 @@ colorchooser .popover.osd { * Window Decorations * **********************/ window { + border: none; transition: $transition-shadow; - border-radius: $window-radius; - outline-color: highlight($background); - outline-offset: -1px; - outline-style: solid; - outline-width: 1px; + + &.csd { + border-radius: $window-radius; + outline-offset: -1px; + outline: 1px solid highlight($background); + + &.maximized, + &.fullscreen, + &.tiled, + &.tiled-top, + &.tiled-right, + &.tiled-bottom, + &.tiled-left { border-radius: 0; } + } @if $rimless == 'true' { box-shadow: $shadow-z16, 0 0 36px transparent; @@ -4436,15 +4446,7 @@ window { } } - &.popup { - border-radius: $menu-radius; - } - - &.dialog.message { - border-radius: $window-radius; - } - - .solid-csd & { + &.solid-csd { margin: 0; padding: 2px; border-radius: 0; @@ -4454,13 +4456,10 @@ window { &:backdrop { background-color: $titlebar-backdrop; } } - &.maximized, - &.fullscreen, - &.tiled, - &.tiled-top, - &.tiled-right, - &.tiled-bottom, - &.tiled-left { border-radius: 0; } + &.ssd { + // just doing borders, wm draws actual shadows + box-shadow: 0 0 0 1px $border; + } } // Windows button