_window-picker.scss
ASCII text
1/* Window Picker */ 2 3@use "../../../../theme"; 4@use "../../../../theme-color"; 5@use "../../../../st-theme"; 6@use "../../gnome-shell"; 7 8// Window picker 9.window-picker { 10// Space between window thumbnails 11@if gnome-shell.$version >= 3.38 { 12spacing: 8px; 13} @else { 14-horizontal-spacing: 16px; 15-vertical-spacing: 16px; 16} 17 18@if gnome-shell.$version < 40 { 19// Padding for container around window thumbnails 20padding: 0 16px 32px; 21 22&.external-monitor { 23padding: 16px; 24} 25} 26} 27 28@if gnome-shell.$version < 40 { 29// Borders on window thumbnails 30.window-clone-border { 31border: 4px solid theme-color.stroke(theme-color.$on-dark); 32border-radius: theme.$corner-radius; 33// For window decorations with round corners we can't match 34// the exact shape when the window is scaled. So apply a shadow 35// to fix that case 36box-shadow: inset 0 0 0 1px theme-color.stroke(theme-color.$on-dark); 37} 38} 39 40// Window titles 41.window-caption { 42padding: 4px 8px; 43border-radius: theme.$corner-radius; 44background-color: theme-color.$scrim; 45color: theme-color.$on-scrim; 46 47@if gnome-shell.$version < 40 { 48spacing: 0; 49border: 0; 50font-size: 1em; 51font-weight: normal; 52} 53} 54 55// Close button 56.window-close { 57transition-duration: st-theme.$duration; 58height: theme.$medium-size; 59width: theme.$medium-size; 60padding: 0; 61border: 0; 62border-radius: theme.$medium-size / 2; 63box-shadow: theme.$shadow-z2; 64background-color: theme-color.$error; 65color: theme-color.$on-error; 66 67background-image: url("assets/window-close.svg"); 68background-size: 24px; 69 70@if gnome-shell.$version < 3.38 { 71-shell-close-overlap: theme.$medium-size / 2; 72} 73 74&:hover { 75box-shadow: theme.$shadow-z4; 76border-color: transparent; 77background-color: theme-color.hover-overlay(theme-color.$on-error, $on: theme-color.$error); 78color: theme-color.$on-error; 79 80@if gnome-shell.$version < 3.32 { 81background-image: url("assets/window-close.svg"); 82} 83} 84 85&:active { 86transition-duration: st-theme.$duration-ripple; 87box-shadow: theme.$shadow-z8; 88border-color: transparent; 89background-color: theme-color.pressed-overlay(theme-color.$on-error, $on: theme-color.$error); 90color: theme-color.$on-error; 91 92@if gnome-shell.$version < 3.32 { 93background-image: url("assets/window-close.svg"); 94} 95} 96 97StIcon { 98icon-size: 24px; 99color: transparent; 100} 101} 102 103@if gnome-shell.$version >= 40 { 104.workspace-background { 105// keep in sync with BACKGROUND_CORNER_RADIUS_PIXELS in workspace.js 106border-radius: 30px; 107background-color: black; 108box-shadow: theme.$shadow-z4; // use z4 for the huge card 109} 110} 111