212 lines
4.9 KiB
SCSS
212 lines
4.9 KiB
SCSS
/* Top Bar */
|
|
// a.k.a. the panel
|
|
|
|
$privacy_indicator_color: if($variant == 'light', $orange_4, $red_3);
|
|
$recording_indicator_color: $red_3;
|
|
|
|
$transparent_panel_fg_color: $light_1; // always white for transparent lock screens
|
|
$system_panel_fg_color: $system_fg_color; // always light for lockscreen, overview
|
|
|
|
$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;
|
|
|
|
// panel menus
|
|
.panel-button {
|
|
@include panel_button();
|
|
-natural-hpadding: 6px;
|
|
-minimum-hpadding: 4px;
|
|
|
|
// status area icons
|
|
.system-status-icon {
|
|
icon-size: $scalable_icon_size;
|
|
padding: 0;
|
|
margin: 0 $base_margin;
|
|
}
|
|
|
|
// app menu icon
|
|
.app-menu-icon {
|
|
-st-icon-style: symbolic;
|
|
// dimensions of the icon are hardcoded
|
|
}
|
|
|
|
// reduce margin between icons in combined menu
|
|
.panel-status-menu-box,
|
|
.panel-status-indicators-box {
|
|
spacing: 0px;
|
|
|
|
> .system-status-icon {
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
&#panelActivities {
|
|
-natural-hpadding: 10px;
|
|
-minimum-hpadding: 8px;
|
|
|
|
& StBoxLayout {
|
|
padding: 0 $scaled_padding * 0.5; // use em padding to keep proportion
|
|
spacing: 5px;
|
|
}
|
|
|
|
& .workspace-dot {
|
|
border-radius: $forced_circular_radius;
|
|
min-width: $scalable_icon_size * 0.5;
|
|
min-height: $scalable_icon_size * 0.5;
|
|
background-color: $panel_fg_color;
|
|
}
|
|
}
|
|
|
|
// screen activity indicators
|
|
&.screen-recording-indicator,
|
|
&.screen-sharing-indicator {
|
|
StBoxLayout {
|
|
spacing: $scaled_padding;
|
|
}
|
|
|
|
StIcon {
|
|
icon-size: $scalable_icon_size;
|
|
|
|
&:first-child {
|
|
margin-left: 3px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.screen-recording-indicator {
|
|
@include panel_button($bg:$recording_indicator_color, $fg:$_base_color_light, $style: filled);
|
|
}
|
|
|
|
&.screen-sharing-indicator {
|
|
@include panel_button($bg:$privacy_indicator_color, $fg:$_base_color_light, $style: filled);
|
|
}
|
|
|
|
// 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');
|
|
-natural-hpadding: 0px;
|
|
-minimum-hpadding: 0px;
|
|
padding-left: 0px;
|
|
padding-right: 0px;
|
|
|
|
.clock {
|
|
// the highlighted child
|
|
}
|
|
|
|
.messages-indicator {
|
|
icon-size: $scalable_icon_size;
|
|
}
|
|
}
|
|
}
|
|
|
|
@if $laptop {
|
|
#panelActivities {
|
|
border-radius: 18px 3px 3px 3px;
|
|
}
|
|
|
|
#panelRight > *:last-child > * {
|
|
border-radius: 3px 18px 3px 3px;
|
|
}
|
|
}
|
|
|
|
// transparent panel on overview, lock & login screens
|
|
&:overview,
|
|
&.unlock-screen,
|
|
&.login-screen {
|
|
background-color: transparent;
|
|
|
|
// unfortunate duplication to keep indicator style in these states
|
|
.panel-button {
|
|
&.screen-recording-indicator {
|
|
@include panel_button($bg:$recording_indicator_color, $fg:$_base_color_light, $style: filled);
|
|
}
|
|
|
|
&.screen-sharing-indicator {
|
|
@include panel_button($bg:$privacy_indicator_color, $fg:$_base_color_light, $style: filled);
|
|
}
|
|
}
|
|
}
|
|
|
|
// use transparent text styles for lock & login screen panels
|
|
&.unlock-screen,
|
|
&.login-screen {
|
|
.panel-button {
|
|
@include panel_button($fg:$transparent_panel_fg_color);
|
|
|
|
// clock
|
|
&.clock-display {
|
|
@include panel_button($fg:$transparent_panel_fg_color, $highlighted_child: true, $child_class: '.clock');
|
|
}
|
|
}
|
|
}
|
|
|
|
// use system text styles for overview panel
|
|
&:overview {
|
|
.panel-button {
|
|
@include panel_button($fg:$system_panel_fg_color);
|
|
|
|
&#panelActivities .workspace-dot {
|
|
background-color: $system_panel_fg_color;
|
|
}
|
|
|
|
// clock
|
|
&.clock-display {
|
|
@include panel_button($fg:$system_panel_fg_color, $highlighted_child: true, $child_class: '.clock');
|
|
}
|
|
}
|
|
}
|
|
|
|
.panel-status-indicators-box,
|
|
.panel-status-menu-box {
|
|
spacing: 2px;
|
|
}
|
|
|
|
// spacing between power icon and (optional) percentage label
|
|
.power-status.panel-status-indicators-box {
|
|
padding-left: 0px;
|
|
spacing: 0;
|
|
|
|
@if $laptop {
|
|
margin-bottom: 2px;
|
|
} @else {
|
|
margin-left: 0px;
|
|
}
|
|
}
|
|
|
|
// important privacy related indicators
|
|
.privacy-indicator { color: $privacy_indicator_color; }
|
|
}
|
|
|
|
// App Menu
|
|
#appMenu {
|
|
spacing: $scaled_padding;
|
|
.label-shadow { color: transparent; }
|
|
}
|
|
|
|
#appMenu .panel-status-menu-box {
|
|
padding: 0 $scaled_padding;
|
|
spacing: $scaled_padding;
|
|
}
|
|
|
|
|
|
// Clock
|
|
.clock-display-box {
|
|
spacing: 2px;
|
|
.clock {
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
}
|
|
|
|
StIcon:last-child {
|
|
margin-right: 3px;
|
|
}
|
|
}
|