diff options
author | Daniel Lezcano <daniel.lezcano@free.fr> | 2011-03-26 22:06:17 +0100 |
---|---|---|
committer | Amit Kucheria <amit.kucheria@linaro.org> | 2011-04-04 03:09:02 +0300 |
commit | eeb137699e1bfa86ba6c5cf0ab8efd1b3bfb3a8c (patch) | |
tree | dc80d4be10066066e0152f92a0cf9e07d19202ad /display.c | |
parent | ca17a72ffd538c9e8a1832831ef8a4b6b3c17664 (diff) |
Replace colors definition by enum
and reduce the scope by moving it to the c file.
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Diffstat (limited to 'display.c')
-rw-r--r-- | display.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -20,6 +20,16 @@ #define print(w, x, y, fmt, args...) do { mvwprintw(w, y, x, fmt, ##args); } while (0) #define NUM_FOOTER_ITEMS 5 +enum { PT_COLOR_DEFAULT = 1, + PT_COLOR_HEADER_BAR, + PT_COLOR_ERROR, + PT_COLOR_RED, + PT_COLOR_YELLOW, + PT_COLOR_GREEN, + PT_COLOR_BRIGHT, + PT_COLOR_BLUE, +}; + static WINDOW *header_win; static WINDOW *regulator_win; static WINDOW *clock_win; |