319 lines
7.4 KiB
SCSS
Raw Normal View History

2021-04-08 22:59:05 +08:00
/* Top Bar */
// a.k.a. the panel
2021-08-21 11:41:37 +08:00
$panel_height: $menuitem_size;
@if $panel_size == 'smaller' {
$panel_height: $menuitem_size - 4px;
}
@if $panel_size == 'bigger' {
$panel_height: $menuitem_size + 4px;
}
2021-08-23 18:42:07 +08:00
#panel.login-screen {
@if $scale != 'default' {
@include fontsize($base_font_size * 2 - 2);
height: $panel_height * 2 !important;
.panel-button {
-natural-hpadding: $container_padding * 2 + 4px !important;
-minimum-hpadding: $container_padding * 2 + 4px !important;
border-radius: $bt_radius * 2 !important;
&.clock-display {
StLabel { padding: 0 $base_padding * 2 !important; }
.clock {
border-radius: $bt_radius * 2 !important;
}
}
// status area icons
.system-status-icon {
icon-size: $base_icon_size * 2 !important;
padding: $base_padding * 2 !important;
margin: 0 $base_padding * 2 !important;
}
.panel-status-menu-box StLabel { padding: 0 0 0 $base_padding !important; }
.appindicator-trayicons-box { margin: 0 $base_padding * 2 !important; }
StIcon {
icon-size: 32px !important;
}
}
}
}
2020-12-27 18:33:02 +08:00
#panel {
2021-05-14 22:43:28 +08:00
background-color: $panel_bg;
2021-07-08 23:36:32 +08:00
font-weight: normal;
2020-12-29 09:09:22 +08:00
color: $panel_fg;
2021-04-08 22:59:05 +08:00
font-feature-settings: "tnum";
2021-04-21 12:29:03 +08:00
transition-duration: 250ms;
2021-05-07 10:12:01 +08:00
@include font(body-1);
2021-08-23 18:42:07 +08:00
height: $panel_height !important;
box-shadow: 0 5px 16px rgba(black, 0.05);
2020-12-27 18:33:02 +08:00
2021-04-08 22:59:05 +08:00
// the rounded outset corners
2020-12-27 18:33:02 +08:00
.panel-corner {
2021-10-15 17:16:55 +08:00
-panel-corner-radius: $panel-corner-radius;
2021-05-14 22:43:28 +08:00
-panel-corner-background-color: $panel_bg;
2020-12-27 18:33:02 +08:00
-panel-corner-border-width: 2px;
-panel-corner-border-color: transparent;
2021-04-08 22:59:05 +08:00
-panel-corner-opacity: 1;
2021-04-21 12:29:03 +08:00
transition-duration: 250ms;
2020-12-27 18:33:02 +08:00
}
2021-04-08 22:59:05 +08:00
// panel menus
2020-12-27 18:33:02 +08:00
.panel-button {
2021-09-22 14:56:38 +08:00
-natural-hpadding: 12px;
-minimum-hpadding: 12px;
2021-07-08 23:36:32 +08:00
font-weight: normal;
2020-12-27 18:33:02 +08:00
color: $panel_fg;
2021-04-21 12:29:03 +08:00
transition-duration: 150ms;
2020-12-27 18:33:02 +08:00
border-radius: $bt_radius;
2021-05-06 23:47:28 +08:00
StLabel {
padding: 0;
margin: 0;
}
2020-12-27 18:33:02 +08:00
2021-05-06 23:24:40 +08:00
.popup-menu-arrow { width: 0; height: 0; } // Remove arrow on panel button
2020-12-27 18:33:02 +08:00
&, &:hover, &:active, &:overview, &:focus, &:checked {
text-shadow: $panel_asset_shadow;
.system-status-icon,
.app-menu-icon > StIcon,
.popup-menu-arrow {
icon-shadow: $panel_asset_shadow;
}
}
&:hover {
color: $panel_fg;
2021-07-19 22:24:56 +08:00
background-color: $panel_divider;
2021-08-05 09:48:22 +08:00
&.clock-display {
2021-08-20 10:34:05 +08:00
background: none;
2021-08-05 09:48:22 +08:00
.clock {
background-color: $panel_divider;
}
}
2020-12-27 18:33:02 +08:00
}
&:active, &:overview, &:focus, &:checked {
2021-08-05 09:48:22 +08:00
background-color: $panel_track;
color: $panel_fg;
box-shadow: none;
&.clock-display {
2021-08-20 10:34:05 +08:00
background: none;
2021-08-05 09:48:22 +08:00
.clock {
background-color: $panel_track;
}
2020-12-27 18:33:02 +08:00
}
}
.unlock-screen &,
.login-screen &,
.lock-screen & {
2022-12-06 19:45:11 +08:00
&, &:focus, &:hover, &:active { color: $panel_fg; }
}
.login-screen &,
.lock-screen & {
box-shadow: none;
2020-12-27 18:33:02 +08:00
}
2021-04-08 22:59:05 +08:00
&.clock-display {
2021-08-05 09:48:22 +08:00
background-color: transparent;
2023-03-11 16:50:36 +08:00
&, .clock-display-box {
spacing: 0 !important;
padding: 0 !important;
margin: 0 !important;
}
2021-05-07 10:12:01 +08:00
2020-12-27 18:33:02 +08:00
.clock {
2021-04-08 22:59:05 +08:00
// transition-duration: 150ms;
border: none;
2021-08-05 09:48:22 +08:00
border-radius: $bt_radius;
background-color: transparent;
2020-12-27 18:33:02 +08:00
box-shadow: none;
2023-03-11 16:50:36 +08:00
padding: 0 $base_padding + 12px !important;
margin: 0 !important;
2020-12-27 18:33:02 +08:00
}
}
2021-04-08 22:59:05 +08:00
&:hover, &:active, &:overview, &:focus, &:checked {
2021-08-21 12:20:18 +08:00
box-shadow: none !important;
2020-12-27 18:33:02 +08:00
2021-04-08 22:59:05 +08:00
// The clock display needs to have the background on .clock because
// we want to exclude the do-not-disturb indicator from the background
&.clock-display {
2021-08-21 12:20:18 +08:00
box-shadow: none !important;
2021-08-20 10:34:05 +08:00
background-color: transparent !important;
2020-12-27 18:33:02 +08:00
2021-04-08 22:59:05 +08:00
.clock {
2021-08-21 12:20:18 +08:00
box-shadow: none !important;
2021-04-08 22:59:05 +08:00
}
}
}
2020-12-27 18:33:02 +08:00
2021-04-08 22:59:05 +08:00
// status area icons
.system-status-icon {
icon-size: $base_icon_size;
2021-05-24 12:49:48 +08:00
padding: $base_padding;
2023-03-11 16:12:19 +08:00
margin: 0;
2021-04-08 22:59:05 +08:00
}
2020-12-27 18:33:02 +08:00
2023-03-11 16:12:19 +08:00
// .panel-status-menu-box .system-status-icon { margin: 0; }
2021-05-24 19:34:56 +08:00
.panel-status-menu-box StLabel { padding: 0 0 0 $base_padding / 2; }
2020-12-27 18:33:02 +08:00
2023-03-11 17:34:24 +08:00
.appindicator-trayicons-box { margin: 0 $base_padding; }
2021-07-02 22:31:57 +08:00
2023-03-11 17:34:24 +08:00
// .appindicator-box { margin: 0; }
2021-07-02 22:31:57 +08:00
2023-03-11 16:12:19 +08:00
// .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;
// }
2021-04-08 22:59:05 +08:00
// app menu icon
.app-menu-icon {
-st-icon-style: symbolic;
// dimensions of the icon are hardcoded
2020-12-27 18:33:02 +08:00
}
2022-06-02 23:02:12 +08:00
&#panelActivities { // Activities button
2023-10-13 06:36:42 +08:00
-natural-hpadding: $base_padding * 2;
2022-06-02 23:02:12 +08:00
background-image: url("assets/activities.svg");
background-position: center center;
background-size: 24px 24px;
width: 24px;
height: 24px;
background-gradient-direction: none;
border: none;
color: transparent;
font-size: 0;
> * { width: $medium_size; }
2023-10-13 06:36:42 +08:00
StBoxLayout {
spacing: 0;
}
.workspace-dot {
background-color: transparent;
}
2022-06-02 23:02:12 +08:00
&:active, &:overview, &:focus, &:checked {
border: none;
color: transparent;
// background-image: url("assets/activities-active.svg");
}
&:overview { background-color: transparent; }
@if $variant == 'light' {
@if $panel_font == 'black' or $trans == 'false' {
&:overview {
background-image: url("assets/activities-white.svg");
}
}
}
2021-04-08 22:59:05 +08:00
}
}
2021-05-24 12:49:48 +08:00
Gjs_AggregateMenu.panel-button,
2023-03-11 16:12:19 +08:00
Gjs_ui_panel_AggregateMenu.panel-button,
Gjs_ui_panel_QuickSettings.panel-button {
2021-05-24 12:49:48 +08:00
.system-status-icon {
2022-05-05 18:47:20 +08:00
margin: 0 $base_padding / 2 !important;
2021-05-24 12:49:48 +08:00
}
}
2021-07-08 23:36:32 +08:00
Gjs_ui_panel_AppMenuButton.panel-button,
2021-07-13 12:29:53 +08:00
// .menubar-button, // For Fildem global menu
2021-07-08 23:36:32 +08:00
.desktop-name-label { // For Unite
font-weight: bold !important;
}
2023-03-11 16:12:19 +08:00
// Input indicators
Gjs_status_keyboard_InputSourceIndicator.panel-button, // Ibus
Gjs_appindicatorsupport_rgcjonas_gmail_com_indicatorStatusIcon_AppIndicatorsIndicatorStatusIcon.panel-button { // Fcitx
-natural-hpadding: 12px + $base_padding !important;
-minimum-hpadding: 12px + $base_padding !important;
}
2021-08-20 10:34:05 +08:00
// transparent panel on lock & login screens
&:overview,
2021-04-08 22:59:05 +08:00
&.unlock-screen,
&.login-screen,
2021-08-20 10:34:05 +08:00
&.lock-screen {
background-color: if($trans == 'false' and $variant == 'light', transparent, transparent);
box-shadow: none;
StLabel, StIcon { color: $light_alt_fg_color; }
2020-12-27 18:33:02 +08:00
.panel-button {
2021-08-20 10:34:05 +08:00
&:hover {
color: $light_fg_color;
background-color: $light_divider_color;
&.clock-display {
.clock {
background-color: $light_divider_color;
}
}
}
&:active, &:overview, &:focus, &:checked {
&, &:hover {
color: $light_fg_color;
background-color: $light_track_color;
}
&.clock-display {
.clock {
background-color: $light_track_color;
}
}
}
2021-04-08 22:59:05 +08:00
&:hover, &:active, &:overview, &:focus, &:checked {
box-shadow: none;
2020-12-27 18:33:02 +08:00
2021-04-08 22:59:05 +08:00
&.clock-display {
box-shadow: none;
.clock {
box-shadow: none;
}
}
2020-12-27 18:33:02 +08:00
}
}
2021-08-20 10:34:05 +08:00
.panel-corner {
-panel-corner-radius: 0;
-panel-corner-background-color: transparent;
-panel-corner-border-color: transparent;
}
2021-04-08 22:59:05 +08:00
}
2020-12-27 18:33:02 +08:00
2021-04-08 22:59:05 +08:00
// indicator for active
.screencast-indicator,
.remote-access-indicator { color: $warning_color; }
2020-12-27 18:33:02 +08:00
}