about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-07 08:06:42 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-07 08:06:42 -0800
commit2b7ffea31612c16ab16735f6806195ab471ae409 (patch)
tree11b88511b94372b93cc6ae872ff919c805a676c9
parent22f1624728ed889ce992801c64fe68fdd99b0593 (diff)
downloadteliva-2b7ffea31612c16ab16735f6806195ab471ae409.tar.gz
fix menu colors
I had it switching to a dark background on me.
-rw-r--r--src/lcurseslib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lcurseslib.c b/src/lcurseslib.c
index be99512..0d9f604 100644
--- a/src/lcurseslib.c
+++ b/src/lcurseslib.c
@@ -29,11 +29,10 @@ void draw_string_on_menu(const char* s) {
   ++menu_column;
 }
 void draw_menu_item(const char* key, const char* name) {
-  attroff(A_REVERSE);
-  draw_string_on_menu(key);
   attron(A_REVERSE);
-  draw_string_on_menu(name);
+  draw_string_on_menu(key);
   attroff(A_REVERSE);
+  draw_string_on_menu(name);
 }
 
 void draw_menu (lua_State *L) {