about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorFrank Zschockelt <gith12@freakysoft.de>2016-10-29 17:27:32 +0200
committerFrank Zschockelt <gith12@freakysoft.de>2016-10-29 18:19:12 +0200
commitc0f099cb84e8903750f0ef79670d3cc368dd4c30 (patch)
tree5ef78ab6db6f0641d24eca0f04856886c3639429 /src/ui
parenteac6b52e05c3d2c5c705b1f8c5a58f36358133df (diff)
downloadprofani-tty-c0f099cb84e8903750f0ef79670d3cc368dd4c30.tar.gz
Added main.help.header theme option
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/console.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index c990f69b..ba6e5b38 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -110,20 +110,20 @@ cons_show_help(const char *const cmd, CommandHelp *help)
     ProfWin *console = wins_get_console();
 
     cons_show("");
-    win_println(console, THEME_WHITE_BOLD, '-', "%s", &cmd[1]);
-    win_print(console, THEME_WHITE_BOLD, '-', "");
+    win_println(console, THEME_HELP_HEADER, '-', "%s", &cmd[1]);
+    win_print(console, THEME_HELP_HEADER, '-', "");
     int i;
     for (i = 0; i < strlen(cmd) - 1 ; i++) {
-        win_append(console, THEME_WHITE_BOLD, "-");
+        win_append(console, THEME_HELP_HEADER, "-");
     }
-    win_appendln(console, THEME_WHITE_BOLD, "");
+    win_appendln(console, THEME_HELP_HEADER, "");
     cons_show("");
 
-    win_println(console, THEME_WHITE_BOLD, '-', "Synopsis");
+    win_println(console, THEME_HELP_HEADER, '-', "Synopsis");
     ui_show_lines(console, help->synopsis);
     cons_show("");
 
-    win_println(console, THEME_WHITE_BOLD, '-', "Description");
+    win_println(console, THEME_HELP_HEADER, '-', "Description");
     win_println(console, THEME_DEFAULT, '-', "%s", help->desc);
 
     int maxlen = 0;
@@ -134,7 +134,7 @@ cons_show_help(const char *const cmd, CommandHelp *help)
 
     if (i > 0) {
         cons_show("");
-        win_println(console, THEME_WHITE_BOLD, '-', "Arguments");
+        win_println(console, THEME_HELP_HEADER, '-', "Arguments");
         for (i = 0; help->args[i][0] != NULL; i++) {
             win_println_indent(console, maxlen + 3, "%-*s: %s", maxlen + 1, help->args[i][0], help->args[i][1]);
         }
@@ -142,7 +142,7 @@ cons_show_help(const char *const cmd, CommandHelp *help)
 
     if (g_strv_length((gchar**)help->examples) > 0) {
         cons_show("");
-        win_println(console, THEME_WHITE_BOLD, '-', "Arguments");
+        win_println(console, THEME_HELP_HEADER, '-', "Arguments");
         ui_show_lines(console, help->examples);
     }
 }
@@ -2063,7 +2063,7 @@ cons_navigation_help(void)
 {
     ProfWin *console = wins_get_console();
     cons_show("");
-    win_println(console, THEME_WHITE_BOLD, '-', "Navigation");
+    win_println(console, THEME_HELP_HEADER, '-', "Navigation");
     cons_show("Alt-1..Alt-0, F1..F10    : Choose window.");
     cons_show("Alt-LEFT, Alt-RIGHT      : Previous/next chat window.");
     cons_show("PAGEUP, PAGEDOWN         : Page the main window.");