xref: /dragonfly/contrib/dialog/dlg_colors.h (revision 5940c9ab)
1 /*
2  *  $Id: dlg_colors.h,v 1.18 2019/09/23 09:14:30 tom Exp $
3  *
4  *  colors.h -- color attribute definitions
5  *
6  *  Copyright 2000-2011,2019	Thomas E. Dickey
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU Lesser General Public License, version 2.1
10  *  as published by the Free Software Foundation.
11  *
12  *  This program is distributed in the hope that it will be useful, but
13  *  WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  *  Lesser General Public License for more details.
16  *
17  *  You should have received a copy of the GNU Lesser General Public
18  *  License along with this program; if not, write to
19  *	Free Software Foundation, Inc.
20  *	51 Franklin St., Fifth Floor
21  *	Boston, MA 02110, USA.
22  *
23  *  An earlier version of this program lists as authors
24  *	Savio Lam (lam836@cs.cuhk.hk)
25  */
26 
27 #ifndef COLORS_H_included
28 #define COLORS_H_included 1
29 
30 #include <dialog.h>
31 
32 /*
33  *   Default color definitions (DLGC means "Dialog Color")
34  *
35  *   DLGC_FG_xxx = foreground for "xxx"
36  *   DLGC_BG_xxx = background for "xxx"
37  *   DLGC_HL_xxx = highlight for "xxx"
38  *   DLGC_UL_xxx = underline for "xxx"
39  *   DLGC_RV_xxx = reverse for "xxx"
40  */
41 #define DLGC_FG_SCREEN                 COLOR_CYAN
42 #define DLGC_BG_SCREEN                 COLOR_BLUE
43 #define DLGC_HL_SCREEN                 TRUE
44 #define DLGC_UL_SCREEN                 FALSE
45 #define DLGC_RV_SCREEN                 FALSE
46 
47 #define DLGC_FG_SHADOW                 COLOR_BLACK
48 #define DLGC_BG_SHADOW                 COLOR_BLACK
49 #define DLGC_HL_SHADOW                 TRUE
50 #define DLGC_UL_SHADOW                 FALSE
51 #define DLGC_RV_SHADOW                 FALSE
52 
53 #define DLGC_FG_DIALOG                 COLOR_BLACK
54 #define DLGC_BG_DIALOG                 COLOR_WHITE
55 #define DLGC_HL_DIALOG                 FALSE
56 #define DLGC_UL_DIALOG                 FALSE
57 #define DLGC_RV_DIALOG                 FALSE
58 
59 #define DLGC_FG_TITLE                  COLOR_BLUE
60 #define DLGC_BG_TITLE                  COLOR_WHITE
61 #define DLGC_HL_TITLE                  TRUE
62 #define DLGC_UL_TITLE                  FALSE
63 #define DLGC_RV_TITLE                  FALSE
64 
65 #define DLGC_FG_BORDER                 COLOR_WHITE
66 #define DLGC_BG_BORDER                 COLOR_WHITE
67 #define DLGC_HL_BORDER                 TRUE
68 #define DLGC_UL_BORDER                 FALSE
69 #define DLGC_RV_BORDER                 FALSE
70 
71 #define DLGC_FG_BORDER2                DLGC_FG_DIALOG
72 #define DLGC_BG_BORDER2                DLGC_BG_DIALOG
73 #define DLGC_HL_BORDER2                DLGC_HL_DIALOG
74 #define DLGC_UL_BORDER2                FALSE
75 #define DLGC_RV_BORDER2                FALSE
76 
77 #define DLGC_FG_BUTTON_ACTIVE          COLOR_WHITE
78 #define DLGC_BG_BUTTON_ACTIVE          COLOR_BLUE
79 #define DLGC_HL_BUTTON_ACTIVE          TRUE
80 #define DLGC_UL_BUTTON_ACTIVE          FALSE
81 #define DLGC_RV_BUTTON_ACTIVE          FALSE
82 
83 #define DLGC_FG_BUTTON_INACTIVE        COLOR_BLACK
84 #define DLGC_BG_BUTTON_INACTIVE        COLOR_WHITE
85 #define DLGC_HL_BUTTON_INACTIVE        FALSE
86 #define DLGC_UL_BUTTON_INACTIVE        FALSE
87 #define DLGC_RV_BUTTON_INACTIVE        FALSE
88 
89 #define DLGC_FG_BUTTON_KEY_ACTIVE      COLOR_WHITE
90 #define DLGC_BG_BUTTON_KEY_ACTIVE      COLOR_BLUE
91 #define DLGC_HL_BUTTON_KEY_ACTIVE      TRUE
92 #define DLGC_UL_BUTTON_KEY_ACTIVE      FALSE
93 #define DLGC_RV_BUTTON_KEY_ACTIVE      FALSE
94 
95 #define DLGC_FG_BUTTON_KEY_INACTIVE    COLOR_RED
96 #define DLGC_BG_BUTTON_KEY_INACTIVE    COLOR_WHITE
97 #define DLGC_HL_BUTTON_KEY_INACTIVE    FALSE
98 #define DLGC_UL_BUTTON_KEY_INACTIVE    FALSE
99 #define DLGC_RV_BUTTON_KEY_INACTIVE    FALSE
100 
101 #define DLGC_FG_BUTTON_LABEL_ACTIVE    COLOR_YELLOW
102 #define DLGC_BG_BUTTON_LABEL_ACTIVE    COLOR_BLUE
103 #define DLGC_HL_BUTTON_LABEL_ACTIVE    TRUE
104 #define DLGC_UL_BUTTON_LABEL_ACTIVE    FALSE
105 #define DLGC_RV_BUTTON_LABEL_ACTIVE    FALSE
106 
107 #define DLGC_FG_BUTTON_LABEL_INACTIVE  COLOR_BLACK
108 #define DLGC_BG_BUTTON_LABEL_INACTIVE  COLOR_WHITE
109 #define DLGC_HL_BUTTON_LABEL_INACTIVE  TRUE
110 #define DLGC_UL_BUTTON_LABEL_INACTIVE  FALSE
111 #define DLGC_RV_BUTTON_LABEL_INACTIVE  FALSE
112 
113 #define DLGC_FG_FORM_ITEM_READONLY     COLOR_CYAN
114 #define DLGC_BG_FORM_ITEM_READONLY     COLOR_WHITE
115 #define DLGC_HL_FORM_ITEM_READONLY     TRUE
116 #define DLGC_UL_FORM_ITEM_READONLY     FALSE
117 #define DLGC_RV_FORM_ITEM_READONLY     FALSE
118 
119 #define DLGC_FG_INPUTBOX               COLOR_BLACK
120 #define DLGC_BG_INPUTBOX               COLOR_WHITE
121 #define DLGC_HL_INPUTBOX               FALSE
122 #define DLGC_UL_INPUTBOX               FALSE
123 #define DLGC_RV_INPUTBOX               FALSE
124 
125 #define DLGC_FG_INPUTBOX_BORDER        COLOR_BLACK
126 #define DLGC_BG_INPUTBOX_BORDER        COLOR_WHITE
127 #define DLGC_HL_INPUTBOX_BORDER        FALSE
128 #define DLGC_UL_INPUTBOX_BORDER        FALSE
129 #define DLGC_RV_INPUTBOX_BORDER        FALSE
130 
131 #define DLGC_FG_INPUTBOX_BORDER2       DLGC_FG_INPUTBOX
132 #define DLGC_BG_INPUTBOX_BORDER2       DLGC_BG_INPUTBOX
133 #define DLGC_HL_INPUTBOX_BORDER2       DLGC_HL_INPUTBOX
134 #define DLGC_UL_INPUTBOX_BORDER2       FALSE
135 #define DLGC_RV_INPUTBOX_BORDER2       FALSE
136 
137 #define DLGC_FG_SEARCHBOX              COLOR_BLACK
138 #define DLGC_BG_SEARCHBOX              COLOR_WHITE
139 #define DLGC_HL_SEARCHBOX              FALSE
140 #define DLGC_UL_SEARCHBOX              FALSE
141 #define DLGC_RV_SEARCHBOX              FALSE
142 
143 #define DLGC_FG_SEARCHBOX_TITLE        COLOR_BLUE
144 #define DLGC_BG_SEARCHBOX_TITLE        COLOR_WHITE
145 #define DLGC_HL_SEARCHBOX_TITLE        TRUE
146 #define DLGC_UL_SEARCHBOX_TITLE        FALSE
147 #define DLGC_RV_SEARCHBOX_TITLE        FALSE
148 
149 #define DLGC_FG_SEARCHBOX_BORDER       COLOR_WHITE
150 #define DLGC_BG_SEARCHBOX_BORDER       COLOR_WHITE
151 #define DLGC_HL_SEARCHBOX_BORDER       TRUE
152 #define DLGC_UL_SEARCHBOX_BORDER       FALSE
153 #define DLGC_RV_SEARCHBOX_BORDER       FALSE
154 
155 #define DLGC_FG_SEARCHBOX_BORDER2      DLGC_FG_SEARCHBOX
156 #define DLGC_BG_SEARCHBOX_BORDER2      DLGC_BG_SEARCHBOX
157 #define DLGC_HL_SEARCHBOX_BORDER2      DLGC_HL_SEARCHBOX
158 #define DLGC_UL_SEARCHBOX_BORDER2      FALSE
159 #define DLGC_RV_SEARCHBOX_BORDER2      FALSE
160 
161 #define DLGC_FG_POSITION_INDICATOR     COLOR_BLUE
162 #define DLGC_BG_POSITION_INDICATOR     COLOR_WHITE
163 #define DLGC_HL_POSITION_INDICATOR     TRUE
164 #define DLGC_UL_POSITION_INDICATOR     FALSE
165 #define DLGC_RV_POSITION_INDICATOR     FALSE
166 
167 #define DLGC_FG_MENUBOX                COLOR_BLACK
168 #define DLGC_BG_MENUBOX                COLOR_WHITE
169 #define DLGC_HL_MENUBOX                FALSE
170 #define DLGC_UL_MENUBOX                FALSE
171 #define DLGC_RV_MENUBOX                FALSE
172 
173 #define DLGC_FG_MENUBOX_BORDER         COLOR_WHITE
174 #define DLGC_BG_MENUBOX_BORDER         COLOR_WHITE
175 #define DLGC_HL_MENUBOX_BORDER         TRUE
176 #define DLGC_UL_MENUBOX_BORDER         FALSE
177 #define DLGC_RV_MENUBOX_BORDER         FALSE
178 
179 #define DLGC_FG_MENUBOX_BORDER2        DLGC_FG_MENUBOX
180 #define DLGC_BG_MENUBOX_BORDER2        DLGC_BG_MENUBOX
181 #define DLGC_HL_MENUBOX_BORDER2        DLGC_HL_MENUBOX
182 #define DLGC_UL_MENUBOX_BORDER2        FALSE
183 #define DLGC_RV_MENUBOX_BORDER2        FALSE
184 
185 #define DLGC_FG_ITEM                   COLOR_BLACK
186 #define DLGC_BG_ITEM                   COLOR_WHITE
187 #define DLGC_HL_ITEM                   FALSE
188 #define DLGC_UL_ITEM                   FALSE
189 #define DLGC_RV_ITEM                   FALSE
190 
191 #define DLGC_FG_ITEM_SELECTED          COLOR_WHITE
192 #define DLGC_BG_ITEM_SELECTED          COLOR_BLUE
193 #define DLGC_HL_ITEM_SELECTED          TRUE
194 #define DLGC_UL_ITEM_SELECTED          FALSE
195 #define DLGC_RV_ITEM_SELECTED          FALSE
196 
197 #define DLGC_FG_TAG                    COLOR_BLUE
198 #define DLGC_BG_TAG                    COLOR_WHITE
199 #define DLGC_HL_TAG                    TRUE
200 #define DLGC_UL_TAG                    FALSE
201 #define DLGC_RV_TAG                    FALSE
202 
203 #define DLGC_FG_TAG_SELECTED           COLOR_YELLOW
204 #define DLGC_BG_TAG_SELECTED           COLOR_BLUE
205 #define DLGC_HL_TAG_SELECTED           TRUE
206 #define DLGC_UL_TAG_SELECTED           FALSE
207 #define DLGC_RV_TAG_SELECTED           FALSE
208 
209 #define DLGC_FG_TAG_KEY                COLOR_RED
210 #define DLGC_BG_TAG_KEY                COLOR_WHITE
211 #define DLGC_HL_TAG_KEY                FALSE
212 #define DLGC_UL_TAG_KEY                FALSE
213 #define DLGC_RV_TAG_KEY                FALSE
214 
215 #define DLGC_FG_TAG_KEY_SELECTED       COLOR_RED
216 #define DLGC_BG_TAG_KEY_SELECTED       COLOR_BLUE
217 #define DLGC_HL_TAG_KEY_SELECTED       TRUE
218 #define DLGC_UL_TAG_KEY_SELECTED       FALSE
219 #define DLGC_RV_TAG_KEY_SELECTED       FALSE
220 
221 #define DLGC_FG_CHECK                  COLOR_BLACK
222 #define DLGC_BG_CHECK                  COLOR_WHITE
223 #define DLGC_HL_CHECK                  FALSE
224 #define DLGC_UL_CHECK                  FALSE
225 #define DLGC_RV_CHECK                  FALSE
226 
227 #define DLGC_FG_CHECK_SELECTED         COLOR_WHITE
228 #define DLGC_BG_CHECK_SELECTED         COLOR_BLUE
229 #define DLGC_HL_CHECK_SELECTED         TRUE
230 #define DLGC_UL_CHECK_SELECTED         FALSE
231 #define DLGC_RV_CHECK_SELECTED         FALSE
232 
233 #define DLGC_FG_UARROW                 COLOR_GREEN
234 #define DLGC_BG_UARROW                 COLOR_WHITE
235 #define DLGC_HL_UARROW                 TRUE
236 #define DLGC_UL_UARROW                 FALSE
237 #define DLGC_RV_UARROW                 FALSE
238 
239 #define DLGC_FG_DARROW                 COLOR_GREEN
240 #define DLGC_BG_DARROW                 COLOR_WHITE
241 #define DLGC_HL_DARROW                 TRUE
242 #define DLGC_UL_DARROW                 FALSE
243 #define DLGC_RV_DARROW                 FALSE
244 
245 #define DLGC_FG_ITEMHELP               COLOR_WHITE
246 #define DLGC_BG_ITEMHELP               COLOR_BLACK
247 #define DLGC_HL_ITEMHELP               FALSE
248 #define DLGC_UL_ITEMHELP               FALSE
249 #define DLGC_RV_ITEMHELP               FALSE
250 
251 #define DLGC_FG_FORM_ACTIVE_TEXT       COLOR_WHITE
252 #define DLGC_BG_FORM_ACTIVE_TEXT       COLOR_BLUE
253 #define DLGC_HL_FORM_ACTIVE_TEXT       TRUE
254 #define DLGC_UL_FORM_ACTIVE_TEXT       FALSE
255 #define DLGC_RV_FORM_ACTIVE_TEXT       FALSE
256 
257 #define DLGC_FG_FORM_TEXT              COLOR_WHITE
258 #define DLGC_BG_FORM_TEXT              COLOR_CYAN
259 #define DLGC_HL_FORM_TEXT              TRUE
260 #define DLGC_UL_FORM_TEXT              FALSE
261 #define DLGC_RV_FORM_TEXT              FALSE
262 
263 #define DLGC_FG_GAUGE                  COLOR_BLUE
264 #define DLGC_BG_GAUGE                  COLOR_WHITE
265 #define DLGC_HL_GAUGE                  TRUE
266 #define DLGC_UL_GAUGE                  FALSE
267 #define DLGC_RV_GAUGE                  FALSE
268 
269 /* End of default color definitions */
270 
271 /*
272  * Global variables
273  */
274 
275 typedef struct {
276     const char *name;
277     int value;
278 } color_names_st;
279 
280 #endif /* COLORS_H_included */
281