gnome-shell/data/theme/gnome-shell-sass/widgets/_window-picker.scss
Florian Müllner 42c2bf709e windowPreview: Overhaul chrome style
- increase close button size
 - use custom close icon that's better suited
   for the non-default 24pxp size
 - use translucent light gray for both close button
   and window caption

https://gitlab.gnome.org/Teams/Design/os-mockups/-/issues/81

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1605>
2021-02-02 10:06:23 +01:00

48 lines
1.3 KiB
SCSS

/* Window Picker */
$window_picker_spacing: $base_spacing; // 6px
$window_picker_padding: $base_padding * 2; // 12px
$window_thumbnail_chrome_color: transparentize($osd_fg_color, 0.4);
$window_thumbnail_chrome_border: transparentize($osd_bg_color, 0.7);
$window_close_button_size: 30px;
$window_close_button_padding: 3px;
// Window picker
.window-picker {
// Space between window thumbnails
spacing: $window_picker_spacing;
}
// Window titles
.window-caption {
color: $osd_bg_color;
background-color: $window_thumbnail_chrome_color;
border-radius: 99px;
border: 1px solid $window_thumbnail_chrome_border;
padding: $base_padding $base_padding * 2;
}
// Close button
.window-close {
background-color: $window_thumbnail_chrome_color;
color: $osd_bg_color;
border: 1px solid $window_thumbnail_chrome_border;
border-radius: $window_close_button_size * 0.5 + $window_close_button_padding * 2;
padding: $window_close_button_padding;
height: $window_close_button_size;
width: $window_close_button_size;
box-shadow: -1px 1px 5px 0px rgba(0,0,0,0.5);
& StIcon { icon-size: 24px; }
&:hover {
background-color: lighten($window_thumbnail_chrome_color, 5%);
}
&:active {
background-color: darken($window_thumbnail_chrome_color, 5%);
}
}