Fixed #856 : Glitch when resizing or maximize and then minimize window

This commit is contained in:
vinceliuice 2023-04-26 01:49:56 +08:00
parent 5039b1b2b5
commit 779d7f9175
3 changed files with 10 additions and 8 deletions

View file

@ -271,6 +271,7 @@ $button_borders: if($variant == 'light', $button_border, $dar
$wm_outline_light: 0 0 0 2px rgba(black, 0.03), 0 0 0 1px rgba(black, 0.12); $wm_outline_light: 0 0 0 2px rgba(black, 0.03), 0 0 0 1px rgba(black, 0.12);
$wm_outline_dark: 0 0 0 2px rgba(black, 0.1), 0 0 0 1px rgba(black, 0.75); $wm_outline_dark: 0 0 0 2px rgba(black, 0.1), 0 0 0 1px rgba(black, 0.75);
$wm_shadow: if($variant=='light', rgba(black, 0.15), rgba(black, 0.35)); $wm_shadow: if($variant=='light', rgba(black, 0.15), rgba(black, 0.35));
$wm_shadow_backdrop: if($variant=='light', rgba(black, 0.08), rgba(black, 0.15));
$wm_outline: if($variant=='light', $wm_outline_light, $wm_outline_dark); $wm_outline: if($variant=='light', $wm_outline_light, $wm_outline_dark);
// WM Buttons // WM Buttons

View file

@ -4845,29 +4845,28 @@ window {
border: none; border: none;
&.csd { &.csd {
transition: $shadow_transition; transition: none;
border-radius: $wm_radius; border-radius: $wm_radius;
outline: 1px solid $highlight_color; outline: 1px solid $highlight_color;
outline-offset: -1px; outline-offset: -1px;
box-shadow: 0 3px 3px 0 $wm_shadow, box-shadow: 0 3px 3px 0 $wm_shadow,
0 8px 8px 0 $wm_shadow, 0 8px 8px 0 $wm_shadow,
0 16px 16px 0 $wm_shadow, 0 16px 16px 0 $wm_shadow,
0 0 0 36px transparent,
$wm_outline; $wm_outline;
margin: 0; margin: 0;
&:backdrop { &:backdrop {
transition: $shadow_transition;
// the transparent shadow here is to enforce that the shadow extents don't // the transparent shadow here is to enforce that the shadow extents don't
// change when we go to backdrop, to prevent jumping windows // change when we go to backdrop, to prevent jumping windows
box-shadow: 0 3px 3px 0 $wm_shadow, box-shadow: 0 3px 3px 0 $wm_shadow_backdrop,
0 8px 8px 0 transparent, 0 3px 5px 0 $wm_shadow_backdrop,
0 16px 16px 0 transparent, 0 6px 8px 0 $wm_shadow_backdrop,
0 0 0 36px transparent,
$wm_outline; $wm_outline;
} }
&.dialog.message {
border-radius: $wm_radius;
}
&.tiled, &.tiled,
&.tiled-top, &.tiled-top,
&.tiled-left, &.tiled-left,

View file

@ -195,6 +195,8 @@ window.background.chromium {
color: $text_color; color: $text_color;
headerbar.titlebar { headerbar.titlebar {
padding: 0 $container_padding * 2;
button.toggle { // account-button (> 64.0.3282?) button.toggle { // account-button (> 64.0.3282?)
border: none; border: none;
background-color: transparent; background-color: transparent;