This commit is contained in:
Vince 2021-09-15 12:18:39 +08:00
parent 638e3ab1ad
commit 943685a2fb
2 changed files with 46 additions and 5 deletions

View file

@ -20,6 +20,7 @@ $hint_fg_color: if($variant == 'light', #565656, #999999);
$track_color: if($variant == 'light', rgba(black, 0.20), rgba(white, 0.16)); $track_color: if($variant == 'light', rgba(black, 0.20), rgba(white, 0.16));
$visit_color: if($variant == 'light', rgba(black, 0.16), rgba(white, 0.12)); $visit_color: if($variant == 'light', rgba(black, 0.16), rgba(white, 0.12));
$divider_color: if($variant == 'light', rgba(black, 0.12), rgba(white, 0.1)); $divider_color: if($variant == 'light', rgba(black, 0.12), rgba(white, 0.1));
$fill_color: if($variant == 'light', rgba(black, 0.06), rgba(white, 0.05));
$light_fg_color: white; $light_fg_color: white;
$light_alt_fg_color: rgba(white, 0.85); $light_alt_fg_color: rgba(white, 0.85);

View file

@ -1691,8 +1691,17 @@ headerbar {
min-height: 0; min-height: 0;
min-width: 120px; min-width: 120px;
padding: 0 0; padding: 0 0;
background-color: transparent;
> stack > box { padding: 0 $container_padding * 2; } > stack > box {
padding: 0 $container_padding * 2;
&.narrow {
font-size: 10px;
image { margin-top: $container_padding / 2; }
}
}
} }
> box > separator.titlebutton { @extend %header_separator; } > box > separator.titlebutton { @extend %header_separator; }
@ -4158,6 +4167,37 @@ stackswitcher {
// button.circular { @extend %circular_button; } // button.circular { @extend %circular_button; }
} }
.background viewswitcher {
button:not(.suggested-action):not(.destructive-action) {
margin: 0;
padding: 0;
box-shadow: none;
background-color: $fill_color;
background-image: none;
@extend %linked;
> stack > box {
padding: $container_padding $container_padding * 2;
&.narrow { font-size: 10px; }
}
&:hover {
background-color: $divider_color;
color: $fg_color
}
&:active, &:checked {
background-color: $track_color;
color: $fg_color;
border-color: if($variant=='light', $borders_color, $dark_borders_color);
background-clip: if($variant=='light', border-box, padding-box);
& + button { border-left-color: if($variant=='light', rgba(black, 0.3), $dark_borders_color); }
}
}
}
// //
// Dnd // Dnd
// //