theme: add a version of the mono theme which highlights the active panel - sfeed_curses - sfeed curses UI (now part of sfeed, development is in sfeed)
 (HTM) git clone git://git.codemadness.org/sfeed_curses
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 434cd340170d74620aaaa1bc56e681d59cb56864
 (DIR) parent 215e57201ba7b6354cda15ed0904570b1b9277b4
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sun, 30 May 2021 12:01:05 +0200
       
       theme: add a version of the mono theme which highlights the active panel
       
       This may not work on terminals that do not support the faint attribute though.
       
       To compile and use it:
       
               make SFEED_THEME=mono_highlight
       
       Diffstat:
         A themes/mono_highlight.h             |      15 +++++++++++++++
       
       1 file changed, 15 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/themes/mono_highlight.h b/themes/mono_highlight.h
       @@ -0,0 +1,15 @@
       +/* mono theme with highlighting of the active panel.
       +   The faint attribute may not work on all terminals though.
       +   The combination bold with faint generally does not work either. */
       +#define THEME_ITEM_NORMAL()           do {                            } while(0)
       +#define THEME_ITEM_FOCUS()            do {                            } while(0)
       +#define THEME_ITEM_BOLD()             do { if (!selected) attrmode(ATTR_BOLD_ON); } while(0)
       +#define THEME_ITEM_SELECTED()         do { if (!p->focused) attrmode(ATTR_FAINT_ON); attrmode(ATTR_REVERSE_ON); } while(0)
       +#define THEME_SCROLLBAR_FOCUS()       do {                            } while(0)
       +#define THEME_SCROLLBAR_NORMAL()      do { attrmode(ATTR_FAINT_ON);   } while(0)
       +#define THEME_SCROLLBAR_TICK_FOCUS()  do { attrmode(ATTR_REVERSE_ON); } while(0)
       +#define THEME_SCROLLBAR_TICK_NORMAL() do { attrmode(ATTR_REVERSE_ON); } while(0)
       +#define THEME_LINEBAR()               do { attrmode(ATTR_FAINT_ON);   } while(0)
       +#define THEME_STATUSBAR()             do { attrmode(ATTR_REVERSE_ON); } while(0)
       +#define THEME_INPUT_LABEL()           do { attrmode(ATTR_REVERSE_ON); } while(0)
       +#define THEME_INPUT_NORMAL()          do {                            } while(0)