Add options for panel size

This commit is contained in:
Vince
2021-08-21 11:41:37 +08:00
parent 94e19c90a5
commit 4f5a1ea8d0
8 changed files with 74 additions and 33 deletions

View File

@@ -168,8 +168,8 @@ $panel_bg: if($variant == 'light', #f1f1f1, #2a2a2a);
}
$panel_fg: if($trans == 'true' and $panel_font == 'white', $light_fg_color, $text_color);
$panel_track: if($trans == 'false' or $panel_font == 'black' and $variant == 'light', rgba(black, 0.15), rgba(white, 0.28));
$panel_divider: if($trans == 'false' or $panel_font == 'black' and $variant == 'light', rgba(black, 0.08), rgba(white, 0.15));
$panel_track: if(($trans == 'false' or $panel_font == 'black') and $variant == 'light', rgba(black, 0.15), rgba(white, 0.28));
$panel_divider: if(($trans == 'false' or $panel_font == 'black') and $variant == 'light', rgba(black, 0.08), rgba(white, 0.15));
$dash_bg: if($variant == 'light', rgba(#d1d1d1, $panel_opacity + 0.33), rgba(#222222, $panel_opacity/2 + 0.6));

View File

@@ -23,5 +23,8 @@ $max_window_style: 'square';
// Panel font color
$panel_font: 'white';
// Panel height size
$panel_size: 'default';
// Monterey style
$monterey: 'false';

View File

@@ -1,10 +1,20 @@
/* Top Bar */
// a.k.a. the panel
$panel_height: $menuitem_size;
@if $panel_size == 'smaller' {
$panel_height: $menuitem_size - 4px;
}
@if $panel_size == 'bigger' {
$panel_height: $menuitem_size + 4px;
}
#panel {
background-color: $panel_bg;
font-weight: normal;
height: $menuitem_size - 4px !important;
height: $panel_height !important;
box-shadow: 0 5px 16px rgba(black, 0.05);
color: $panel_fg;
font-feature-settings: "tnum";