1 #ifndef COLORS_H
2 #define COLORS_H
4 #include "config.h"
6 #include <ncurses.h>
8 enum color {
9 COLOR_TITLE = 1,
10 COLOR_TITLE_BOLD,
11 COLOR_LINE,
12 COLOR_LINE_BOLD,
13 COLOR_LIST,
14 COLOR_LIST_BOLD,
15 COLOR_PROGRESSBAR,
16 COLOR_STATUS,
17 COLOR_STATUS_BOLD,
18 COLOR_STATUS_TIME,
19 COLOR_STATUS_ALERT,
20 COLOR_END
21 };
23 short colors_str2color(const char *str);
25 #ifdef ENABLE_COLORS
26 int colors_assign(const char *name, const char *value);
27 int colors_define(const char *name, short r, short g, short b);
28 int colors_start(void);
29 #endif
31 int colors_use(WINDOW *w, enum color id);
33 #endif /* COLORS_H */