From 7e42399ad0b048f53f84f362fdecb82b24eaa344 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 2 May 2015 20:23:02 +0200 Subject: degesch; user color constants from curses --- degesch.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/degesch.c b/degesch.c index 3246d30..27886f0 100644 --- a/degesch.c +++ b/degesch.c @@ -797,18 +797,18 @@ init_colors (struct app_context *ctx) INIT_ATTR (PROMPT, enter_bold_mode); INIT_ATTR (RESET, exit_attribute_mode); - INIT_ATTR (WARNING, g_terminal.color_set_fg[3]); - INIT_ATTR (ERROR, g_terminal.color_set_fg[1]); + INIT_ATTR (WARNING, g_terminal.color_set_fg[COLOR_YELLOW]); + INIT_ATTR (ERROR, g_terminal.color_set_fg[COLOR_RED]); - INIT_ATTR (EXTERNAL, g_terminal.color_set_fg[7]); - INIT_ATTR (TIMESTAMP, g_terminal.color_set_fg[7]); - INIT_ATTR (ACTION, g_terminal.color_set_fg[1]); - INIT_ATTR (JOIN, g_terminal.color_set_fg[2]); - INIT_ATTR (PART, g_terminal.color_set_fg[1]); + INIT_ATTR (EXTERNAL, g_terminal.color_set_fg[COLOR_WHITE]); + INIT_ATTR (TIMESTAMP, g_terminal.color_set_fg[COLOR_WHITE]); + INIT_ATTR (ACTION, g_terminal.color_set_fg[COLOR_RED]); + INIT_ATTR (JOIN, g_terminal.color_set_fg[COLOR_GREEN]); + INIT_ATTR (PART, g_terminal.color_set_fg[COLOR_RED]); char *highlight = xstrdup_printf ("%s%s%s", - g_terminal.color_set_fg[3], - g_terminal.color_set_bg[5], + g_terminal.color_set_fg[COLOR_YELLOW], + g_terminal.color_set_bg[COLOR_MAGENTA], enter_bold_mode); INIT_ATTR (HIGHLIGHT, highlight); free (highlight); -- cgit v1.2.3-70-g09d2