diff options
author | Frederic Culot <calcurse@culot.org> | 2007-03-04 16:11:20 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2007-03-04 16:11:20 +0000 |
commit | d28058d9828ed23c7235b47a368d00c695260e09 (patch) | |
tree | e2176d103de12d8bbebed28d250aa88abe6c39b0 /src | |
parent | 767aa66080697f979ad3576fdded63a084c6e17a (diff) | |
download | calcurse-d28058d9828ed23c7235b47a368d00c695260e09.tar.gz calcurse-d28058d9828ed23c7235b47a368d00c695260e09.zip |
color pairs enum added
color_config() prototype updated to custom_color_config()
custom_load_color() added
Diffstat (limited to 'src')
-rwxr-xr-x | src/custom.h | 23 |
1 files changed, 19 insertions, 4 deletions
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 */ |