Fixed Gnome 45 Virtual Desktop Indicator #962

This commit is contained in:
vinceliuice
2023-10-24 23:14:52 +08:00
parent 8057614759
commit f9e8e68108
5 changed files with 72 additions and 33 deletions

View File

@@ -29,6 +29,9 @@ $panel_font: 'white';
// Panel height size
$panel_size: 'default';
// Panel Activities button style
$activities: 'apple';
// Monterey style
$monterey: 'false';

View File

@@ -47,6 +47,61 @@ $panel_height: $menuitem_size;
}
}
%normal_activites {
-natural-hpadding: $base_padding * 3;
color: $panel_fg;
StBoxLayout {
spacing: $container_padding;
}
.workspace-dot {
background-color: $panel_fg;
}
&:overview {
.workspace-dot {
background-color: $light_fg_color;
}
}
}
%apple_activites {
-natural-hpadding: $base_padding * 2;
background-image: url("assets/activities.svg");
background-position: center center;
background-size: 24px 24px;
width: 24px;
height: 24px;
color: transparent;
font-size: 0;
> * { width: $medium_size; }
StBoxLayout {
spacing: 0;
}
.workspace-dot {
background-color: transparent;
}
&:active, &:overview, &:focus, &:checked {
border: none;
color: transparent;
}
&:overview { background-color: transparent; }
@if $variant == 'light' {
@if $panel_font == 'black' or $trans == 'false' {
&:overview {
background-image: url("assets/activities-white.svg");
}
}
}
}
#panel {
background-color: $panel_bg;
font-weight: 500;
@@ -196,41 +251,13 @@ $panel_height: $menuitem_size;
}
&#panelActivities { // Activities button
-natural-hpadding: $base_padding * 2;
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; }
StBoxLayout {
spacing: 0;
}
.workspace-dot {
background-color: transparent;
}
&: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");
}
}
@if $activities == 'apple' {
@extend %apple_activites;
} @else {
@extend %normal_activites;
}
}
}

View File

@@ -74,7 +74,7 @@ UnityPanelWidget,
background-color: lighten($header_bg, 8);
border-radius: 0px;
padding: 0px;
color: white;
color: $header_fg;
}
.lightdm.menu .menuitem *,