diff options
| author | Louis Burda <quent.burda@gmail.com> | 2022-02-14 00:28:11 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2022-02-14 00:28:11 +0100 |
| commit | 72de33c4f15144e7c597fad850510dd7da88a0f2 (patch) | |
| tree | 7d349ba78f168359866b98b9424238d50e58e7f0 /src/style.h | |
| parent | 12b6c9dfd009352e0bb7f8395abd3678e3bd6265 (diff) | |
| download | tmus-72de33c4f15144e7c597fad850510dd7da88a0f2.tar.gz tmus-72de33c4f15144e7c597fad850510dd7da88a0f2.zip | |
Refactored main.c into many files
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); + |
