fixed color when charged

This commit is contained in:
aminnairi
2023-04-13 09:23:03 +02:00
parent 2734cc5726
commit ec8a5bd926
+1 -1
View File
@@ -145,7 +145,7 @@ const getBattery = async () => {
const battery = Number(rawBattery.trim()) || 0; const battery = Number(rawBattery.trim()) || 0;
const status = rawStatus.trim(); const status = rawStatus.trim();
const icon = status === "Discharging" ? "" : ""; const icon = status === "Discharging" ? "" : "";
const color = getHexadecimalColorBetween(red, green, battery / 100); const color = status === "Discharging" ? getHexadecimalColorBetween(red, green, battery / 100) : "#00FF00";
return { return {
color, color,