From 3587a3698d7fafca88579592ab8891779665b9e1 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 27 Feb 2010 09:53:45 +0000 Subject: [PATCH] Ticket #1701: set help background color using skin color. The value of help._default_ skin entry is used to set color of background and title in help window. Signed-off-by: Andrew Borodin --- src/help.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/help.c b/src/help.c index e973f1a5a..ed0a479b5 100644 --- a/src/help.c +++ b/src/help.c @@ -887,6 +887,14 @@ mousedispatch_new (int y, int x, int yl, int xl) void interactive_display (const char *filename, const char *node) { + const int help_colors[DLG_COLOR_NUM] = + { + HELP_NORMAL_COLOR, /* common text color */ + 0, /* unused in help */ + HELP_BOLD_COLOR, /* title color */ + 0 /* unused in help */ + }; + WButtonBar *help_bar; Widget *md; char *hlpfile = NULL; @@ -934,7 +942,7 @@ interactive_display (const char *filename, const char *node) whelp = create_dlg (0, 0, help_lines + 4, HELP_WINDOW_WIDTH + 4, - dialog_colors, help_callback, "[Help]", _("Help"), + help_colors, help_callback, "[Help]", _("Help"), DLG_TRYUP | DLG_CENTER | DLG_WANT_TAB); selected_item = search_string_node (main_node, STRING_LINK_START) - 1;