This commit is contained in:
Vince 2021-08-20 10:34:05 +08:00
parent c0144697e5
commit 7c7f5e65b9
2 changed files with 44 additions and 34 deletions

View file

@ -546,7 +546,7 @@ check_param() {
fi fi
done ;; done ;;
-i) -i)
for i in {0..8}; do for i in {0..12}; do
if [[ "${value}" == "${ICON_VARIANTS[i]}" ]]; then if [[ "${value}" == "${ICON_VARIANTS[i]}" ]]; then
icon="${ICON_VARIANTS[i]}"; variant_found="true"; break icon="${ICON_VARIANTS[i]}"; variant_found="true"; break
fi fi

View file

@ -11,37 +11,6 @@
transition-duration: 250ms; transition-duration: 250ms;
@include font(body-1); @include font(body-1);
// transparent panel on lock & login screens
&:overview,
&.unlock-screen,
&.login-screen,
&.lock-screen {
background-color: if($trans == 'false' and $variant == 'light', transparent, transparent);
box-shadow: none;
StLabel, StIcon { color: $light_alt_fg_color; }
.panel-button {
&:hover {
color: $light_fg_color;
background-color: $light_divider_color;
}
&:active, &:overview, &:focus, &:checked {
&, &:hover {
color: $light_fg_color;
background-color: $light_track_color;
}
}
}
.panel-corner {
-panel-corner-radius: 0;
-panel-corner-background-color: transparent;
-panel-corner-border-color: transparent;
}
}
// the rounded outset corners // the rounded outset corners
.panel-corner { .panel-corner {
-panel-corner-radius: 0; -panel-corner-radius: 0;
@ -83,6 +52,8 @@
background-color: $panel_divider; background-color: $panel_divider;
&.clock-display { &.clock-display {
background: none;
.clock { .clock {
background-color: $panel_divider; background-color: $panel_divider;
} }
@ -95,6 +66,8 @@
box-shadow: none; box-shadow: none;
&.clock-display { &.clock-display {
background: none;
.clock { .clock {
background-color: $panel_track; background-color: $panel_track;
} }
@ -131,7 +104,7 @@
// we want to exclude the do-not-disturb indicator from the background // we want to exclude the do-not-disturb indicator from the background
&.clock-display { &.clock-display {
box-shadow: none; box-shadow: none;
background-color: transparent; background-color: transparent !important;
.clock { .clock {
box-shadow: none; box-shadow: none;
@ -178,10 +151,41 @@
font-weight: bold !important; font-weight: bold !important;
} }
// transparent panel on lock & login screens
&:overview,
&.unlock-screen, &.unlock-screen,
&.login-screen, &.login-screen,
&:overview { &.lock-screen {
background-color: if($trans == 'false' and $variant == 'light', transparent, transparent);
box-shadow: none;
StLabel, StIcon { color: $light_alt_fg_color; }
.panel-button { .panel-button {
&: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;
}
}
}
&:hover, &:active, &:overview, &:focus, &:checked { &:hover, &:active, &:overview, &:focus, &:checked {
box-shadow: none; box-shadow: none;
@ -194,6 +198,12 @@
} }
} }
} }
.panel-corner {
-panel-corner-radius: 0;
-panel-corner-background-color: transparent;
-panel-corner-border-color: transparent;
}
} }
.panel-status-indicators-box, .panel-status-indicators-box,