diff options
author | Alexander Mikhaylenko <alexm@gnome.org> | 2020-11-12 22:17:52 +0500 |
---|---|---|
committer | Alexander Mikhaylenko <alexm@gnome.org> | 2020-11-12 22:17:52 +0500 |
commit | 7ac79196976a8f6a810706cddf0029ff80d6e7c7 (patch) | |
tree | 225165f875c1e7b84b35c7b4cb2867777f519cd4 | |
parent | 5d9799d4e35d407ed151bae51f9295ffbf794476 (diff) | |
download | gtk+-7ac79196976a8f6a810706cddf0029ff80d6e7c7.tar.gz |
theme: Restructure window style
-rw-r--r-- | gtk/theme/Adwaita/_common.scss | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 8b5c53bdec..552fcdc376 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -3885,16 +3885,28 @@ window { 0 0 0 1px $_wm_border_backdrop; transition: $backdrop_transition; } - } - &.solid-csd { - margin: 0; - padding: 0; - border: solid 1px $borders_color; - border-radius: 0; - box-shadow: inset 0 0 0 3px $headerbar_color, inset 0 1px $top_hilight; + &.popup { + border-radius: $menu_radius; + box-shadow: 0 1px 2px transparentize(black, 0.8), + 0 0 0 1px transparentize($_wm_border, 0.1); + } + + &.dialog.message { + border-radius: $window_radius; + box-shadow: 0 1px 2px transparentize(black, 0.8), + 0 0 0 1px transparentize($_wm_border, 0.1); + } + + &.solid-csd { + margin: 0; + padding: 0; + border: solid 1px $borders_color; + border-radius: 0; + box-shadow: inset 0 0 0 3px $headerbar_color, inset 0 1px $top_hilight; - &:backdrop { box-shadow: inset 0 0 0 3px $backdrop_bg_color, inset 0 1px $top_hilight; } + &:backdrop { box-shadow: inset 0 0 0 3px $backdrop_bg_color, inset 0 1px $top_hilight; } + } } &.maximized, @@ -3910,18 +3922,6 @@ window { // server-side decorations as used by mutter &.ssd { box-shadow: 0 0 0 1px $_wm_border; } //just doing borders, wm draws actual shadows - &.csd.popup { - border-radius: $menu_radius; - box-shadow: 0 1px 2px transparentize(black, 0.8), - 0 0 0 1px transparentize($_wm_border, 0.1); - } - - &.dialog.message.csd { - border-radius: $window_radius; - box-shadow: 0 1px 2px transparentize(black, 0.8), - 0 0 0 1px transparentize($_wm_border, 0.1); - } - } tooltip.csd { |