mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-11-13 14:19:09 +01:00
fixed color when charged
This commit is contained in:
1 parent
2734cc5726
commit
ec8a5bd926
1 file changed
+1
-1
@@ -145,7 +145,7 @@ const getBattery = async () => {
|
||||
const battery = Number(rawBattery.trim()) || 0;
|
||||
const status = rawStatus.trim();
|
||||
const icon = status === "Discharging" ? "" : "";
|
||||
const color = getHexadecimalColorBetween(red, green, battery / 100);
|
||||
const color = status === "Discharging" ? getHexadecimalColorBetween(red, green, battery / 100) : "#00FF00";
|
||||
|
||||
return {
|
||||
color,
|
||||
|
||||
Reference in new issue
Block a user