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