diff options
Diffstat (limited to 'src/style.h')
| -rw-r--r-- | src/style.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/style.h b/src/style.h new file mode 100644 index 0000000..3942c99 --- /dev/null +++ b/src/style.h @@ -0,0 +1,27 @@ +#pragma once + +#define NCURSES_WIDECHAR 1 + +#include <ncurses.h> + +#define ATTR_ON(win, attr) wattr_on(win, attr, NULL) +#define ATTR_OFF(win, attr) wattr_off(win, attr, NULL) + +enum { + STYLE_DEFAULT, + STYLE_TITLE, + STYLE_PANE_SEP, + STYLE_ITEM_SEL, + STYLE_ITEM_HOVER, + STYLE_ITEM_HOVER_SEL, + STYLE_PREV, + STYLE_ERROR, + STYLE_COUNT +}; + +void style_init(void); + +void style_add(int style, int fg, int bg, int attr); +void style_on(WINDOW *win, int style); +void style_off(WINDOW *win, int style); + |
