cbcb56972f
To have a shared style for various privacy related indicators. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2840>
127 lines
3.0 KiB
SCSS
127 lines
3.0 KiB
SCSS
/* Top Bar */
|
|
// a.k.a. the panel
|
|
|
|
$panel_bg_color: if($variant == 'light', $light_3, $dark_5);
|
|
$panel_fg_color: if($variant == 'light', $fg_color, darken($fg_color, 5%));
|
|
$panel_border_color: if($variant == 'light', darken($panel_bg_color, 2%), $panel_bg_color);
|
|
|
|
$panel_system_fg_color: $system_fg_color; // always light for lockscreen, overview and other transparent panels
|
|
$panel_height: 2.2em;
|
|
$panel_transition_duration: 250ms; // same as the overview transition duration
|
|
|
|
#panel {
|
|
background-color: $panel_bg_color;
|
|
font-weight: bold;
|
|
height: $panel_height;
|
|
@extend %numeric;
|
|
transition-duration: $panel_transition_duration;
|
|
box-shadow: inset 0 -1px 0 0 $panel_border_color;
|
|
|
|
// transparent panel on lock & login screens
|
|
&.unlock-screen,
|
|
&.login-screen,
|
|
&:overview {
|
|
background-color: transparent;
|
|
box-shadow: none;
|
|
|
|
.panel-button {
|
|
@include panel_button($panel_system_fg_color);
|
|
}
|
|
}
|
|
|
|
// panel menus
|
|
.panel-button {
|
|
@include panel_button($panel_fg_color);
|
|
-natural-hpadding: $base_padding * 2;
|
|
-minimum-hpadding: $base_padding;
|
|
|
|
// status area icons
|
|
.system-status-icon {
|
|
icon-size: $base_icon_size;
|
|
padding: $base_padding - 1px;
|
|
margin: 0 $base_margin;
|
|
}
|
|
|
|
.panel-status-indicators-box .system-status-icon,
|
|
.panel-status-menu-box .system-status-icon {
|
|
margin: 0;
|
|
}
|
|
|
|
// app menu icon
|
|
.app-menu-icon {
|
|
-st-icon-style: symbolic;
|
|
// dimensions of the icon are hardcoded
|
|
}
|
|
|
|
&#panelActivities {
|
|
-natural-hpadding: $base_padding * 3;
|
|
}
|
|
|
|
// screen activity indicators
|
|
&.screen-recording-indicator,
|
|
&.screen-sharing-indicator {
|
|
StBoxLayout {
|
|
spacing: $base_padding;
|
|
}
|
|
|
|
StIcon {
|
|
icon-size: $base_icon_size;
|
|
}
|
|
}
|
|
|
|
&.screen-recording-indicator {
|
|
@include panel_button($screenshot_ui_button_red, $flat: false);
|
|
}
|
|
|
|
&.screen-sharing-indicator {
|
|
@include panel_button($warning_color, transparentize(black, 0.2), $flat: false);
|
|
}
|
|
|
|
// clock
|
|
&.clock-display {
|
|
// The clock display needs to have the background on .clock because
|
|
// we want to exclude the do-not-disturb indicator from the background
|
|
// see _drawing.scss for override details
|
|
@include panel_button($highlighted_child: true, $child_class:".clock");
|
|
|
|
.clock {
|
|
// the highlighted child
|
|
}
|
|
}
|
|
}
|
|
|
|
.panel-status-indicators-box,
|
|
.panel-status-menu-box {
|
|
spacing: 2px;
|
|
}
|
|
|
|
// spacing between power icon and (optional) percentage label
|
|
.power-status.panel-status-indicators-box {
|
|
spacing: 0;
|
|
}
|
|
|
|
// important privacy related indicators
|
|
.privacy-indicator { color: $warning_color; }
|
|
}
|
|
|
|
// App Menu
|
|
#appMenu {
|
|
spacing: $base_padding;
|
|
.label-shadow { color: transparent; }
|
|
}
|
|
|
|
#appMenu .panel-status-menu-box {
|
|
padding: 0 $base_padding;
|
|
spacing: $base_padding;
|
|
}
|
|
|
|
|
|
// Clock
|
|
.clock-display-box {
|
|
spacing: 2px;
|
|
.clock {
|
|
padding-left: $base_padding * 2;
|
|
padding-right: $base_padding * 2;
|
|
}
|
|
}
|