Skip to content

Commit 026588f

Browse files
committed
gnome-shell: Refactor window-close
Use SASS variables for window-close button sizing.
1 parent 03b97a7 commit 026588f

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

common/gnome-shell/40/sass/_common.scss

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,30 +1556,29 @@ StScrollBar {
15561556
//
15571557
// Close buttons
15581558
//
1559+
$window_close_button_size: 22px;
1560+
$window_close_button_padding: 0;
1561+
15591562
.window-close {
15601563
background-color: lighten(saturate($destructive_color, 6%), 4%);
1561-
border-radius: 22px;
1564+
border-radius: $window_close_button_size * 0.5 + $window_close_button_padding * 2;;
15621565
border: none;
15631566
box-shadow: 0 1px 0 0 rgba(0,0,0,0.1);;
15641567
color: $destructive_fg_color;
1565-
height: 22px;
1566-
width: 22px;
1567-
padding: 0;
1568+
height: $window_close_button_size;
1569+
width: $window_close_button_size;
1570+
padding: $window_close_button_padding;
15681571

15691572
& > StIcon { icon-size: 16px; }
15701573

15711574
&:hover {
15721575
background-color: lighten(saturate($destructive_color, 15%), 12%);
15731576
color: $destructive_fg_color;
1574-
height: 22px;
1575-
width: 22px;
15761577
}
15771578

15781579
&:active {
15791580
background-color: darken(adjust-hue(desaturate($destructive_color, 18%), -5%), 9%);
15801581
color: $destructive_fg_color;
1581-
height: 22px;
1582-
width: 22px;
15831582
}
15841583
}
15851584

0 commit comments

Comments
 (0)