From c0f099cb84e8903750f0ef79670d3cc368dd4c30 Mon Sep 17 00:00:00 2001 From: Frank Zschockelt Date: Sat, 29 Oct 2016 17:27:32 +0200 Subject: Added main.help.header theme option --- src/ui/console.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/ui') 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."); -- cgit 1.4.1-2-gfad0