eww better battery
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
.cpubar { color: $base0C; }
|
||||
.gpubar { color: $base0E; }
|
||||
.membar { color: $base08; }
|
||||
.batbar { color: $base0B; } // overridden by .bat-<state> below
|
||||
.batbar { color: $base0A; } // overridden by .bat-<state> below
|
||||
.cpubar, .gpubar, .membar, .batbar { @include background-base2; margin: $gaps-window 0; }
|
||||
|
||||
// Window chrome
|
||||
@@ -66,7 +66,9 @@
|
||||
.gpu-ring-label, .vram-usage-label, .swap-section-label { margin-top: 2pt; }
|
||||
|
||||
.cpu-core-label { font-size: 0.7em; @include color-active; }
|
||||
.bat-ring-label { font-size: 0.7em; @include color-body; }
|
||||
.bat-ring-label { font-size: 0.85em; font-weight: bold; @include color-body; }
|
||||
.bat-stat-value { font-size: 1.05em; font-weight: bold; @include color-body; }
|
||||
.bat-stat-label { font-size: 0.62em; margin-top: 2pt; @include color-active; }
|
||||
.ram-total-label { font-size: 0.72em; @include color-active; }
|
||||
|
||||
// GPU stats row
|
||||
@@ -92,7 +94,18 @@
|
||||
margin: $popup-scale * 4pt;
|
||||
}
|
||||
|
||||
// Battery colour by state (scripts/sys/battery → .bat-<state>)
|
||||
.batbar, .bat-ring { color: $base0B; }
|
||||
.bat-charging { color: $base0C; }
|
||||
// Battery colour by state (scripts/sys/battery → .bat-<state>):
|
||||
// light blue on mains (charging / full / idle), on battery green, orange below
|
||||
// 25 %, red at ≤15 %
|
||||
.batbar, .bat-ring { color: $base0A; }
|
||||
.bat-charging, .bat-full, .bat-idle { color: $base0B; }
|
||||
.bat-low { color: $base08; }
|
||||
.bat-critical { color: $base0F; }
|
||||
|
||||
// Battery history plot: one vertical bar per bucket, same colours as the ring
|
||||
.bat-hist { min-height: 44px; margin-top: $popup-scale * 8pt; }
|
||||
.bat-hist-bar { @include background-base2; margin: 0 2px; }
|
||||
.bat-hist-bar trough * { background-color: $base0A; }
|
||||
.hist-charging trough *, .hist-idle trough * { background-color: $base0B; }
|
||||
.hist-low trough * { background-color: $base08; }
|
||||
.hist-critical trough * { background-color: $base0F; }
|
||||
|
||||
Reference in New Issue
Block a user