aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-05-02 20:23:02 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-05-02 20:23:02 +0200
commit7e42399ad0b048f53f84f362fdecb82b24eaa344 (patch)
tree270308866c560d463661926759cd2610212146be
parent7cffbc1b2e8361093f0b0311857df0545680611e (diff)
downloadxK-7e42399ad0b048f53f84f362fdecb82b24eaa344.tar.gz
xK-7e42399ad0b048f53f84f362fdecb82b24eaa344.tar.xz
xK-7e42399ad0b048f53f84f362fdecb82b24eaa344.zip
degesch; user color constants from curses
-rw-r--r--degesch.c18
1 files 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);