From d28058d9828ed23c7235b47a368d00c695260e09 Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Sun, 4 Mar 2007 16:11:20 +0000 Subject: color pairs enum added color_config() prototype updated to custom_color_config() custom_load_color() added --- src/custom.h | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'src/custom.h') diff --git a/src/custom.h b/src/custom.h index a7f133b..b3cd448 100755 --- a/src/custom.h +++ b/src/custom.h @@ -1,8 +1,8 @@ -/* $calcurse: custom.h,v 1.1 2006/07/31 21:00:02 culot Exp $ */ +/* $calcurse: custom.h,v 1.2 2007/03/04 16:11:20 culot Exp $ */ /* * Calcurse - text-based organizer - * Copyright (c) 2004-2006 Frederic Culot + * Copyright (c) 2004-2007 Frederic Culot * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,16 +27,31 @@ #ifndef CALCURSE_CUSTOM_H #define CALCURSE_CUSTOM_H +#define NBUSERCOLORS 6 + +enum { /* Color pairs */ + COLR_RED = 1, + COLR_GREEN, + COLR_YELLOW, + COLR_BLUE, + COLR_MAGENTA, + COLR_CYAN, + COLR_DEFAULT, + COLR_HIGH, + COLR_CUSTOM +}; + struct attribute_s { int color[7]; int nocolor[7]; }; -void custom_init_attr(int colr); +void custom_init_attr(void); void custom_apply_attr(WINDOW *win, int attr_num); void custom_remove_attr(WINDOW *win, int attr_num); void config_bar(); int layout_config(int layout, int colr); -int color_config(int colr); +void custom_color_config(int notify_bar); +void custom_load_color(char *color, int background); #endif /* CALCURSE_CUSTOM_H */ -- cgit v1.2.3-54-g00ecf