_panel.scss
ASCII text
1/* Top Bar */ 2 3@use "../../../../theme"; 4@use "../../../../theme-color"; 5@use "../../../../st-theme"; 6@use "../../gnome-shell"; 7@use "../overview/overview"; 8 9$color: theme-color.$panel; 10$on-color: theme-color.$on-panel; 11 12@if gnome-shell.$version >= 3.26 and gnome-shell.$version < 3.32 { 13$color: theme-color.$scrim; 14$on-color: theme-color.$on-scrim; 15} 16 17$button-hpadding: 12px; 18 19@if theme.$compact { 20$button-hpadding: 8px; 21} 22 23#panel { 24transition-duration: overview.$transition-duration; 25height: st-theme.$menuitem-size; 26background-color: $color; 27font-weight: bold; 28font-feature-settings: "tnum"; 29 30// spacing between activities, app menu and such 31#panelLeft, 32#panelCenter { 33spacing: 0; 34} 35 36// the rounded outset corners 37.panel-corner { 38-panel-corner-radius: 0; 39-panel-corner-background-color: transparent; 40-panel-corner-border-width: 0; 41-panel-corner-border-color: transparent; 42 43@if gnome-shell.$version >= 40 { 44-panel-corner-opacity: 0; 45transition-duration: overview.$transition-duration; 46} @else { 47&:active, &:overview, &:focus { 48-panel-corner-border-color: transparent; 49} 50} 51} 52 53// panel menus 54.panel-button { 55-natural-hpadding: $button-hpadding; 56-minimum-hpadding: $button-hpadding / 2; 57transition-duration: st-theme.$duration; 58border: 0; 59border-radius: 0; 60color: theme-color.hint($on-color); 61text-shadow: none; 62font-weight: bold; 63 64@if gnome-shell.$version >= 3.36 { 65&.clock-display { 66.clock { 67transition-duration: st-theme.$duration; 68border: 0; 69border-radius: 0; 70} 71} 72} 73 74.system-status-icon, 75.app-menu-icon > StIcon, 76.popup-menu-arrow { 77icon-shadow: none; 78} 79 80&:hover { 81box-shadow: none; 82color: $on-color; 83text-shadow: none; 84 85@if gnome-shell.$version >= 3.36 { 86&.clock-display { 87box-shadow: none; 88 89.clock { 90box-shadow: none; 91} 92} 93} 94 95.system-status-icon, 96.app-menu-icon > StIcon, 97.popup-menu-arrow { 98icon-shadow: none; 99} 100} 101 102&:active, &:overview, &:focus, &:checked { 103box-shadow: inset 0 -2px $on-color; 104// Trick due to St limitations. It needs a background to draw a box-shadow 105background-color: rgba($color, .01); 106color: $on-color; 107 108@if gnome-shell.$version >= 3.36 { 109// The clock display needs to have the background on .clock because 110// we want to exclude the do-not-disturb indicator from the background 111&.clock-display { 112box-shadow: none; 113background-color: transparent; 114 115.clock { 116box-shadow: inset 0 -2px $on-color; 117background-color: rgba($color, .01); 118} 119} 120} 121 122> .system-status-icon { 123icon-shadow: none; 124} 125} 126 127// status area icons 128.system-status-icon { 129icon-size: 16px; 130padding: 0 4px; 131 132@if gnome-shell.$version >= 40 { 133margin: 0 4px; 134} 135} 136 137@if gnome-shell.$version >= 40 { 138.panel-status-indicators-box .system-status-icon, 139.panel-status-menu-box .system-status-icon { 140margin: 0; 141} 142} 143 144// app menu icon 145.app-menu-icon { 146-st-icon-style: symbolic; 147// dimensions of the icon are hardcoded 148 149@if gnome-shell.$version < 40 { 150margin-left: 4px; 151margin-right: 4px; 152} 153} 154 155@if gnome-shell.$version >= 40 { 156&#panelActivities { 157-natural-hpadding: $button-hpadding; 158} 159} 160} 161 162.panel-status-indicators-box, 163.panel-status-menu-box { 164spacing: 2px; 165} 166 167// spacing between power icon and (optional) percentage label 168.power-status.panel-status-indicators-box { 169spacing: 0; 170} 171 172// indicator for active 173.screencast-indicator, 174.remote-access-indicator { 175color: theme-color.$warning; 176} 177 178// transparent panel on lock & login screens 179@at-root %transparent-panel { 180background-color: transparent; 181 182.panel-corner { 183@if gnome-shell.$version >= 40 { 184-panel-corner-opacity: 0; 185} @else { 186-panel-corner-radius: 0; 187-panel-corner-background-color: transparent; 188-panel-corner-border-color: transparent; 189} 190} 191 192.panel-button { 193color: theme-color.hint(theme-color.$on-dark); 194 195&:hover, &:active, &:overview, &:focus, &:checked { 196color: theme-color.$on-dark; 197} 198} 199} 200 201&.unlock-screen, 202&.login-screen, 203&:overview { 204@extend %transparent-panel; 205} 206 207@if gnome-shell.$version < 3.36 { 208&.lock-screen { 209@extend %transparent-panel; 210background-color: theme-color.$scrim-alt; 211} 212} 213 214@if gnome-shell.$version >= 3.26 and gnome-shell.$version < 3.32 { 215&.solid { 216transition-duration: overview.$transition-duration; 217background-color: theme-color.$panel; 218 219.panel-corner { 220-panel-corner-background-color: transparent; 221} 222 223.panel-button { 224color: theme-color.hint(theme-color.$on-panel); 225text-shadow: none; 226 227&:hover, &:active, &:overview, &:focus, &:checked { 228color: theme-color.$on-panel; 229} 230} 231 232.system-status-icon, 233.app-menu-icon > StIcon, 234.popup-menu-arrow { 235icon-shadow: none; 236} 237} 238} 239} 240 241// App Menu 242#appMenu { 243spacing: 4px; 244 245@if gnome-shell.$version < 3.34 { 246spinner-image: url("process-working.svg"); 247} 248 249.label-shadow { 250color: transparent; 251} 252 253@if gnome-shell.$version >= 40 { 254.panel-status-menu-box { 255padding: 0; 256spacing: 4px; 257} 258} 259} 260 261.clock-display-box { 262spacing: 0; 263 264.clock { 265padding-left: $button-hpadding; 266padding-right: $button-hpadding; 267} 268} 269