theme: add a version of the mono theme which highlights the active panel - sfee… | |
git clone git://git.codemadness.org/sfeed_curses | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 434cd340170d74620aaaa1bc56e681d59cb56864 | |
parent 215e57201ba7b6354cda15ed0904570b1b9277b4 | |
Author: Hiltjo Posthuma <[email protected]> | |
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(-) | |
--- | |
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(… | |
+#define THEME_ITEM_FOCUS() do { } while(… | |
+#define THEME_ITEM_BOLD() do { if (!selected) attrmode(ATTR_BOLD_O… | |
+#define THEME_ITEM_SELECTED() do { if (!p->focused) attrmode(ATTR_FAIN… | |
+#define THEME_SCROLLBAR_FOCUS() do { } while(… | |
+#define THEME_SCROLLBAR_NORMAL() do { attrmode(ATTR_FAINT_ON); } while(… | |
+#define THEME_SCROLLBAR_TICK_FOCUS() do { attrmode(ATTR_REVERSE_ON); } while(… | |
+#define THEME_SCROLLBAR_TICK_NORMAL() do { attrmode(ATTR_REVERSE_ON); } while(… | |
+#define THEME_LINEBAR() do { attrmode(ATTR_FAINT_ON); } while(… | |
+#define THEME_STATUSBAR() do { attrmode(ATTR_REVERSE_ON); } while(… | |
+#define THEME_INPUT_LABEL() do { attrmode(ATTR_REVERSE_ON); } while(… | |
+#define THEME_INPUT_NORMAL() do { } while(… |