From 7ac79196976a8f6a810706cddf0029ff80d6e7c7 Mon Sep 17 00:00:00 2001 From: Alexander Mikhaylenko Date: Thu, 12 Nov 2020 22:17:52 +0500 Subject: [PATCH 1/2] theme: Restructure window style --- gtk/theme/Adwaita/_common.scss | 40 +++++++++++++++++----------------- 1 file 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); + } - &:backdrop { box-shadow: inset 0 0 0 3px $backdrop_bg_color, inset 0 1px $top_hilight; } + &.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; } + } } &.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 { From e46522e4b522aa163ca757436dc948b1d989530d Mon Sep 17 00:00:00 2001 From: Alexander Mikhaylenko Date: Thu, 12 Nov 2020 22:19:00 +0500 Subject: [PATCH 2/2] theme: Round all window corners --- gtk/theme/Adwaita/_common.scss | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 552fcdc376..ae2c0b7cfd 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -3874,7 +3874,7 @@ window { box-shadow: 0 3px 9px 1px transparentize(black, 0.5), 0 0 0 1px $_wm_border; //doing borders with box-shadow margin: 0px; - border-radius: $window_radius $window_radius 0 0; + border-radius: $window_radius; &:backdrop { // the transparent shadow here is to enforce that the shadow extents don't // change when we go to backdrop, to prevent jumping windows. @@ -3893,7 +3893,6 @@ window { } &.dialog.message { - border-radius: $window_radius; box-shadow: 0 1px 2px transparentize(black, 0.8), 0 0 0 1px transparentize($_wm_border, 0.1); }