commit a8a304c681e4c62870c295c4579dc3495730a161 parent 335bfa411655b6c60b027db81ee82ca02f43a0cb Author: hhvn <hayden@haydenvh.com> Date: Mon, 12 Oct 2020 20:22:20 +0100 Use ATTR_REVERSE for the cursor - this gives more contrast, and makes it easier to know the status of the currently selected feed/item Diffstat:
M | sfeed_curses.c | | | 20 | ++++++++++---------- |
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/sfeed_curses.c b/sfeed_curses.c @@ -32,17 +32,17 @@ #define SCROLLBAR_SYMBOL_TICK "\x1b[37m|" #define PAD_TRUNCATE_SYMBOL "\xe2\x80\xa6" /* symbol: "ellipsis" */ -#define THEME_ITEM_NORMAL() do { ttywrite("\x1b[32m"); } while(0) -#define THEME_ITEM_FOCUS() do { ttywrite("\x1b[33m"); } while(0) -#define THEME_ITEM_BOLD() do { ttywrite("\x1b[34;1m"); } while(0) -#define THEME_ITEM_SELECTED() do { ttywrite("\x1b[93;40m"); } while(0) /* bright yellow fg, blue bg */ -#define THEME_SCROLLBAR_FOCUS() do { ttywrite("\x1b[35m"); } while(0) /* blue fg */ -#define THEME_SCROLLBAR_NORMAL() do { ttywrite("\x1b[30m"); } while(0) -#define THEME_SCROLLBAR_TICK_FOCUS() do { ttywrite("\x1b[35m"); } while(0) /* blue bg */ -#define THEME_SCROLLBAR_TICK_NORMAL() do { ttywrite("\x1b[30m"); } while(0) +#define THEME_ITEM_NORMAL() do { ttywrite("\x1b[32m"); } while(0) +#define THEME_ITEM_FOCUS() do { ttywrite("\x1b[33m"); } while(0) +#define THEME_ITEM_BOLD() do { ttywrite("\x1b[34;1m"); } while(0) +#define THEME_ITEM_SELECTED() do { attrmode(ATTR_REVERSE_ON); } while(0) +#define THEME_SCROLLBAR_FOCUS() do { ttywrite("\x1b[35m"); } while(0) +#define THEME_SCROLLBAR_NORMAL() do { ttywrite("\x1b[30m"); } while(0) +#define THEME_SCROLLBAR_TICK_FOCUS() do { ttywrite("\x1b[35m"); } while(0) +#define THEME_SCROLLBAR_TICK_NORMAL() do { ttywrite("\x1b[30m"); } while(0) #define THEME_STATUSBAR() do { attrmode(ATTR_BOLD_ON); ttywrite("\x1b[40m\x1b[92m"); } while(0) -#define THEME_INPUT_LABEL() do { } while(0) -#define THEME_INPUT_NORMAL() do { } while(0) +#define THEME_INPUT_LABEL() do { } while(0) +#define THEME_INPUT_NORMAL() do { } while(0) static char *plumbercmd = "urlhand2"; /* env variable: $SFEED_PLUMBER */ static char *pipercmd = "sfeed_content"; /* env variable: $SFEED_PIPER */