summaryrefslogtreecommitdiff
path: root/src/status/battery.c
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2013-10-02 15:42:39 +0200
committernorly <ny-git@enpas.org>2013-10-02 15:42:39 +0200
commit665fd156d476563148015a174d8c695a1350bfa4 (patch)
tree5210fea6823ce7f6744fc0bce5f5bac644b30800 /src/status/battery.c
parent69497249f2f423b50b3385a83da3ac9a418166c9 (diff)
Change named colors to hex values
Diffstat (limited to 'src/status/battery.c')
-rw-r--r--src/status/battery.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/status/battery.c b/src/status/battery.c
index 65fdd1b..329e531 100644
--- a/src/status/battery.c
+++ b/src/status/battery.c
@@ -79,21 +79,21 @@ void status_battery(GlobalData *g, char *batname)
if (chargePercent <= 40) {
if (chargePercent <= 25) {
if (chargePercent <= 10) {
- s.color = "red";
+ s.color = "#FF0000"; // red
} else {
// 11-25%
- s.color = "orange";
+ s.color = "#FFA500"; // orange
}
} else {
// 26-40%
- s.color = "yellow";
+ s.color = "#FFFF00"; // yellow
}
} else {
if (chargePercent > 70) {
- s.color = "white";
+ s.color = "#FFFFFF"; // white
} else {
// 41-70%
- s.color = "green";
+ s.color = "#22FF22"; // green
}
}