summary refs log tree commit diff
path: root/bin/fbatt.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-20 23:24:39 -0400
committerJune McEnroe <june@causal.agency>2018-08-20 23:24:39 -0400
commit911274a7a166585dc4dcf052c0504eabb33df76e (patch)
tree73608fe1ab57647a97e9b05ccfa1e21af3fb12a3 /bin/fbatt.c
parentGenerate scheme.h (diff)
downloadsrc-911274a7a166585dc4dcf052c0504eabb33df76e.tar.gz
src-911274a7a166585dc4dcf052c0504eabb33df76e.zip
Use scheme.h in fbatt and fbclock
Diffstat (limited to 'bin/fbatt.c')
-rw-r--r--bin/fbatt.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/fbatt.c b/bin/fbatt.c
index 3486ba59..a8256d22 100644
--- a/bin/fbatt.c
+++ b/bin/fbatt.c
@@ -27,17 +27,19 @@
 #include <sysexits.h>
 #include <unistd.h>
 
+#include "scheme.h"
+
 static const char *CLASS = "/sys/class/power_supply";
 
 static const uint32_t RIGHT  = 5 * 8 + 1; // fbclock width.
 static const uint32_t WIDTH  = 8;
 static const uint32_t HEIGHT = 16;
 
-static const uint32_t BG     = 0x161510;
-static const uint32_t BORDER = 0x7A7155;
-static const uint32_t GRAY   = 0x4C4635;
-static const uint32_t YELLOW = 0xA37720;
-static const uint32_t RED    = 0xA32810;
+static const uint32_t BG     = SCHEME.darkBlack;
+static const uint32_t BORDER = SCHEME.darkWhite;
+static const uint32_t GRAY   = SCHEME.lightBlack;
+static const uint32_t YELLOW = SCHEME.darkYellow;
+static const uint32_t RED    = SCHEME.darkRed;
 
 int main() {
 	int error;