gnome-shell-dark-theme/gnome-shell-sass/widgets/_osd.scss

67 lines
1.5 KiB
SCSS
Raw Normal View History

/* OSD */
$osd_levelbar_height:6px;
.osd-window {
@extend %osd_panel;
@extend %heading;
text-align: center;
font-weight: bold;
2024-03-25 13:34:36 -04:00
spacing: $base_padding * 2;
padding: $base_padding * 2 $base_padding * 3;
2024-03-25 13:34:36 -04:00
& > * { spacing: $base_margin * 2; }
margin-bottom: 4em;
2024-03-25 13:34:36 -04:00
StIcon { icon-size: $large_icon_size;}
StLabel {
2024-03-25 13:34:36 -04:00
&:ltr { margin-right: $base_padding; }
&:rtl { margin-left: $base_padding; }
}
.level {
2024-03-25 13:34:36 -04:00
margin-bottom: $base_margin;
&:first-child { margin-bottom: 0; }
2024-03-25 13:34:36 -04:00
min-width: 160px;
-barlevel-height: $osd_levelbar_height;
-barlevel-background-color: transparentize($osd_fg_color, if($variant=='light', 0.7, 0.9));
-barlevel-active-background-color: $osd_fg_color;
-barlevel-overdrive-color: $destructive_color;
2024-03-25 13:34:36 -04:00
-barlevel-overdrive-separator-width: $base_padding * 0.5;
&:ltr { margin-right: $base_padding; }
&:rtl { margin-left: $base_padding; }
}
}
// Monitor number label
2024-03-25 13:34:36 -04:00
.osd-monitor-label {
2024-09-19 20:40:52 -04:00
background-color: -st-accent-color;
color: -st-accent-fg-color;
border-radius: $modal_radius;
font-size: 3em;
font-weight: bold;
2024-03-25 13:34:36 -04:00
font-feature-settings: "tnum";
margin: $base_margin * 3;
2024-03-25 13:34:36 -04:00
padding: $base_padding * 2;
text-align: center;
2024-03-25 13:34:36 -04:00
min-width: 1.5em;
}
/* Pad OSD */
.pad-osd-window {
padding: 32px;
background-color: transparentize(#000, 0.2);
.pad-osd-title-box { spacing: 12px; }
.pad-osd-title-menu-box { spacing: 6px; }
}
.combo-box-label {
width: 15em;
}
.resize-popup {
@extend %osd_panel;
}