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 <aborodin@vmail.ru>
Этот коммит содержится в:
родитель
aefb60a31c
Коммит
3587a3698d
10
src/help.c
10
src/help.c
@ -887,6 +887,14 @@ mousedispatch_new (int y, int x, int yl, int xl)
|
|||||||
void
|
void
|
||||||
interactive_display (const char *filename, const char *node)
|
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;
|
WButtonBar *help_bar;
|
||||||
Widget *md;
|
Widget *md;
|
||||||
char *hlpfile = NULL;
|
char *hlpfile = NULL;
|
||||||
@ -934,7 +942,7 @@ interactive_display (const char *filename, const char *node)
|
|||||||
|
|
||||||
whelp =
|
whelp =
|
||||||
create_dlg (0, 0, help_lines + 4, HELP_WINDOW_WIDTH + 4,
|
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);
|
DLG_TRYUP | DLG_CENTER | DLG_WANT_TAB);
|
||||||
|
|
||||||
selected_item = search_string_node (main_node, STRING_LINK_START) - 1;
|
selected_item = search_string_node (main_node, STRING_LINK_START) - 1;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user