Added configuration parameters color_menu, color_menu_highlight and
[cboard.git] / src / colors.h
blob0e99d00b6204a225ac11f726e563a828441f7f7a
1 /* vim:tw=78:ts=8:sw=4:set ft=c: */
2 /*
3 Copyright (C) 2002-2006 Ben Kibbey <bjk@luxsci.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef COLORS_H
20 #define COLORS_H
22 #define CP_BOARD_COORDS ((COLORS) ? \
23 COLOR_PAIR(1) | config.color[CONF_BCOORDS].attrs : \
24 config.color[CONF_BCOORDS].nattrs)
26 #define CP_BOARD_GRAPHICS ((COLORS) ? \
27 COLOR_PAIR(2) | config.color[CONF_BGRAPHICS].attrs : \
28 config.color[CONF_BGRAPHICS].nattrs)
30 #define CP_BOARD_WHITE ((COLORS) ? \
31 COLOR_PAIR(3) | config.color[CONF_BWHITE].attrs : \
32 config.color[CONF_BWHITE].nattrs)
34 #define CP_BOARD_BLACK ((COLORS) ? \
35 COLOR_PAIR(4) | config.color[CONF_BBLACK].attrs : \
36 config.color[CONF_BBLACK].nattrs)
38 #define CP_BOARD_SELECTED ((COLORS) ? \
39 COLOR_PAIR(5) | config.color[CONF_BSELECTED].attrs : \
40 config.color[CONF_BSELECTED].nattrs)
42 #define CP_BOARD_CURSOR ((COLORS) ? \
43 COLOR_PAIR(6) | config.color[CONF_BCURSOR].attrs : \
44 config.color[CONF_BCURSOR].nattrs)
46 #define CP_STATUS_WINDOW ((COLORS) ? \
47 COLOR_PAIR(7) | config.color[CONF_SWINDOW].attrs : \
48 config.color[CONF_SWINDOW].nattrs)
50 #define CP_STATUS_BORDER ((COLORS) ? \
51 COLOR_PAIR(8) | config.color[CONF_SBORDER].attrs : \
52 config.color[CONF_SBORDER].nattrs)
54 #define CP_STATUS_TITLE ((COLORS) ? \
55 COLOR_PAIR(9) | config.color[CONF_STITLE].attrs : \
56 config.color[CONF_STITLE].nattrs)
58 #define CP_STATUS_ENGINE ((COLORS) ? \
59 COLOR_PAIR(10) | config.color[CONF_SENGINE].attrs : \
60 config.color[CONF_SENGINE].nattrs)
62 #define CP_STATUS_NOTIFY ((COLORS) ? \
63 COLOR_PAIR(11) | config.color[CONF_SNOTIFY].attrs : \
64 config.color[CONF_SNOTIFY].nattrs)
66 #define CP_TAG_WINDOW ((COLORS) ? \
67 COLOR_PAIR(12) | config.color[CONF_TWINDOW].attrs : \
68 config.color[CONF_TWINDOW].nattrs)
70 #define CP_TAG_BORDER ((COLORS) ? \
71 COLOR_PAIR(13) | config.color[CONF_TBORDER].attrs : \
72 config.color[CONF_TBORDER].nattrs)
74 #define CP_TAG_TITLE ((COLORS) ? \
75 COLOR_PAIR(14) | config.color[CONF_TTITLE].attrs : \
76 config.color[CONF_TTITLE].nattrs)
78 #define CP_HISTORY_WINDOW ((COLORS) ? \
79 COLOR_PAIR(15) | config.color[CONF_HWINDOW].attrs : \
80 config.color[CONF_HWINDOW].nattrs)
82 #define CP_HISTORY_BORDER ((COLORS) ? \
83 COLOR_PAIR(16) | config.color[CONF_HBORDER].attrs : \
84 config.color[CONF_HBORDER].nattrs)
86 #define CP_HISTORY_TITLE ((COLORS) ? \
87 COLOR_PAIR(17) | config.color[CONF_HTITLE].attrs : \
88 config.color[CONF_HTITLE].nattrs)
90 #define CP_MESSAGE_WINDOW ((COLORS) ? \
91 COLOR_PAIR(18) | config.color[CONF_MWINDOW].attrs : \
92 config.color[CONF_MWINDOW].nattrs)
94 #define CP_MESSAGE_BORDER ((COLORS) ? \
95 COLOR_PAIR(19) | config.color[CONF_MBORDER].attrs : \
96 config.color[CONF_MBORDER].nattrs)
98 #define CP_MESSAGE_TITLE ((COLORS) ? \
99 COLOR_PAIR(20) | config.color[CONF_MTITLE].attrs : \
100 config.color[CONF_MTITLE].nattrs)
102 #define CP_MESSAGE_PROMPT ((COLORS) ? \
103 COLOR_PAIR(21) | config.color[CONF_MPROMPT].attrs : \
104 config.color[CONF_MPROMPT].nattrs)
106 #define CP_INPUT_WINDOW ((COLORS) ? \
107 COLOR_PAIR(22) | config.color[CONF_IWINDOW].attrs : \
108 config.color[CONF_IWINDOW].nattrs)
110 #define CP_INPUT_BORDER ((COLORS) ? \
111 COLOR_PAIR(23) | config.color[CONF_IBORDER].attrs : \
112 config.color[CONF_IBORDER].nattrs)
114 #define CP_INPUT_TITLE ((COLORS) ? \
115 COLOR_PAIR(24) | config.color[CONF_ITITLE].attrs : \
116 config.color[CONF_ITITLE].nattrs)
118 #define CP_INPUT_PROMPT ((COLORS) ? \
119 COLOR_PAIR(25) | config.color[CONF_IPROMPT].attrs : \
120 config.color[CONF_IPROMPT].nattrs)
122 #define CP_BOARD_MOVES_WHITE ((COLORS) ? \
123 COLOR_PAIR(26) | config.color[CONF_BMOVESW].attrs : \
124 config.color[CONF_BMOVESW].nattrs)
126 #define CP_BOARD_MOVES_BLACK ((COLORS) ? \
127 COLOR_PAIR(27) | config.color[CONF_BMOVESB].attrs : \
128 config.color[CONF_BMOVESB].nattrs)
130 #define CP_BOARD_COUNT ((COLORS) ? \
131 COLOR_PAIR(28) | config.color[CONF_BCOUNT].attrs : \
132 config.color[CONF_BCOUNT].nattrs)
134 #define CP_BOARD_WINDOW ((COLORS) ? \
135 COLOR_PAIR(29) | config.color[CONF_BDWINDOW].attrs : \
136 config.color[CONF_BDWINDOW].nattrs)
138 #define CP_MENU ((COLORS) ? \
139 COLOR_PAIR(30) | config.color[CONF_MENU].attrs : \
140 config.color[CONF_MENU].nattrs)
142 #define CP_MENU_SELECTED ((COLORS) ? \
143 COLOR_PAIR(31) | config.color[CONF_MENUS].attrs : \
144 config.color[CONF_MENUS].nattrs)
146 #define CP_MENU_HIGHLIGHT ((COLORS) ? \
147 COLOR_PAIR(32) | config.color[CONF_MENUH].attrs : \
148 config.color[CONF_MENUH].nattrs)
150 void init_color_pairs();
151 void set_default_colors();
153 #endif