xref: /freebsd/contrib/dialog/dlg_colors.h (revision d3d381b2b194b4d24853e92eecef55f262688d1a)
1 /*
2  *  $Id: dlg_colors.h,v 1.17 2011/10/14 21:19:59 tom Exp $
3  *
4  *  colors.h -- color attribute definitions
5  *
6  *  Copyright 2000-2007,2011	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  */
39 #define DLGC_FG_SCREEN                 COLOR_CYAN
40 #define DLGC_BG_SCREEN                 COLOR_BLUE
41 #define DLGC_HL_SCREEN                 TRUE
42 
43 #define DLGC_FG_SHADOW                 COLOR_BLACK
44 #define DLGC_BG_SHADOW                 COLOR_BLACK
45 #define DLGC_HL_SHADOW                 TRUE
46 
47 #define DLGC_FG_DIALOG                 COLOR_BLACK
48 #define DLGC_BG_DIALOG                 COLOR_WHITE
49 #define DLGC_HL_DIALOG                 FALSE
50 
51 #define DLGC_FG_TITLE                  COLOR_BLUE
52 #define DLGC_BG_TITLE                  COLOR_WHITE
53 #define DLGC_HL_TITLE                  TRUE
54 
55 #define DLGC_FG_BORDER                 COLOR_WHITE
56 #define DLGC_BG_BORDER                 COLOR_WHITE
57 #define DLGC_HL_BORDER                 TRUE
58 
59 #define DLGC_FG_BORDER2                DLGC_FG_DIALOG
60 #define DLGC_BG_BORDER2                DLGC_BG_DIALOG
61 #define DLGC_HL_BORDER2                DLGC_HL_DIALOG
62 
63 #define DLGC_FG_BUTTON_ACTIVE          COLOR_WHITE
64 #define DLGC_BG_BUTTON_ACTIVE          COLOR_BLUE
65 #define DLGC_HL_BUTTON_ACTIVE          TRUE
66 
67 #define DLGC_FG_BUTTON_INACTIVE        COLOR_BLACK
68 #define DLGC_BG_BUTTON_INACTIVE        COLOR_WHITE
69 #define DLGC_HL_BUTTON_INACTIVE        FALSE
70 
71 #define DLGC_FG_BUTTON_KEY_ACTIVE      COLOR_WHITE
72 #define DLGC_BG_BUTTON_KEY_ACTIVE      COLOR_BLUE
73 #define DLGC_HL_BUTTON_KEY_ACTIVE      TRUE
74 
75 #define DLGC_FG_BUTTON_KEY_INACTIVE    COLOR_RED
76 #define DLGC_BG_BUTTON_KEY_INACTIVE    COLOR_WHITE
77 #define DLGC_HL_BUTTON_KEY_INACTIVE    FALSE
78 
79 #define DLGC_FG_BUTTON_LABEL_ACTIVE    COLOR_YELLOW
80 #define DLGC_BG_BUTTON_LABEL_ACTIVE    COLOR_BLUE
81 #define DLGC_HL_BUTTON_LABEL_ACTIVE    TRUE
82 
83 #define DLGC_FG_BUTTON_LABEL_INACTIVE  COLOR_BLACK
84 #define DLGC_BG_BUTTON_LABEL_INACTIVE  COLOR_WHITE
85 #define DLGC_HL_BUTTON_LABEL_INACTIVE  TRUE
86 
87 #define DLGC_FG_FORM_ITEM_READONLY     COLOR_CYAN
88 #define DLGC_BG_FORM_ITEM_READONLY     COLOR_WHITE
89 #define DLGC_HL_FORM_ITEM_READONLY     TRUE
90 
91 #define DLGC_FG_INPUTBOX               COLOR_BLACK
92 #define DLGC_BG_INPUTBOX               COLOR_WHITE
93 #define DLGC_HL_INPUTBOX               FALSE
94 
95 #define DLGC_FG_INPUTBOX_BORDER        COLOR_BLACK
96 #define DLGC_BG_INPUTBOX_BORDER        COLOR_WHITE
97 #define DLGC_HL_INPUTBOX_BORDER        FALSE
98 
99 #define DLGC_FG_INPUTBOX_BORDER2       DLGC_FG_INPUTBOX
100 #define DLGC_BG_INPUTBOX_BORDER2       DLGC_BG_INPUTBOX
101 #define DLGC_HL_INPUTBOX_BORDER2       DLGC_HL_INPUTBOX
102 
103 #define DLGC_FG_SEARCHBOX              COLOR_BLACK
104 #define DLGC_BG_SEARCHBOX              COLOR_WHITE
105 #define DLGC_HL_SEARCHBOX              FALSE
106 
107 #define DLGC_FG_SEARCHBOX_TITLE        COLOR_BLUE
108 #define DLGC_BG_SEARCHBOX_TITLE        COLOR_WHITE
109 #define DLGC_HL_SEARCHBOX_TITLE        TRUE
110 
111 #define DLGC_FG_SEARCHBOX_BORDER       COLOR_WHITE
112 #define DLGC_BG_SEARCHBOX_BORDER       COLOR_WHITE
113 #define DLGC_HL_SEARCHBOX_BORDER       TRUE
114 
115 #define DLGC_FG_SEARCHBOX_BORDER2      DLGC_FG_SEARCHBOX
116 #define DLGC_BG_SEARCHBOX_BORDER2      DLGC_BG_SEARCHBOX
117 #define DLGC_HL_SEARCHBOX_BORDER2      DLGC_HL_SEARCHBOX
118 
119 #define DLGC_FG_POSITION_INDICATOR     COLOR_BLUE
120 #define DLGC_BG_POSITION_INDICATOR     COLOR_WHITE
121 #define DLGC_HL_POSITION_INDICATOR     TRUE
122 
123 #define DLGC_FG_MENUBOX                COLOR_BLACK
124 #define DLGC_BG_MENUBOX                COLOR_WHITE
125 #define DLGC_HL_MENUBOX                FALSE
126 
127 #define DLGC_FG_MENUBOX_BORDER         COLOR_WHITE
128 #define DLGC_BG_MENUBOX_BORDER         COLOR_WHITE
129 #define DLGC_HL_MENUBOX_BORDER         TRUE
130 
131 #define DLGC_FG_MENUBOX_BORDER2        DLGC_FG_MENUBOX
132 #define DLGC_BG_MENUBOX_BORDER2        DLGC_BG_MENUBOX
133 #define DLGC_HL_MENUBOX_BORDER2        DLGC_HL_MENUBOX
134 
135 #define DLGC_FG_ITEM                   COLOR_BLACK
136 #define DLGC_BG_ITEM                   COLOR_WHITE
137 #define DLGC_HL_ITEM                   FALSE
138 
139 #define DLGC_FG_ITEM_SELECTED          COLOR_WHITE
140 #define DLGC_BG_ITEM_SELECTED          COLOR_BLUE
141 #define DLGC_HL_ITEM_SELECTED          TRUE
142 
143 #define DLGC_FG_TAG                    COLOR_BLUE
144 #define DLGC_BG_TAG                    COLOR_WHITE
145 #define DLGC_HL_TAG                    TRUE
146 
147 #define DLGC_FG_TAG_SELECTED           COLOR_YELLOW
148 #define DLGC_BG_TAG_SELECTED           COLOR_BLUE
149 #define DLGC_HL_TAG_SELECTED           TRUE
150 
151 #define DLGC_FG_TAG_KEY                COLOR_RED
152 #define DLGC_BG_TAG_KEY                COLOR_WHITE
153 #define DLGC_HL_TAG_KEY                FALSE
154 
155 #define DLGC_FG_TAG_KEY_SELECTED       COLOR_RED
156 #define DLGC_BG_TAG_KEY_SELECTED       COLOR_BLUE
157 #define DLGC_HL_TAG_KEY_SELECTED       TRUE
158 
159 #define DLGC_FG_CHECK                  COLOR_BLACK
160 #define DLGC_BG_CHECK                  COLOR_WHITE
161 #define DLGC_HL_CHECK                  FALSE
162 
163 #define DLGC_FG_CHECK_SELECTED         COLOR_WHITE
164 #define DLGC_BG_CHECK_SELECTED         COLOR_BLUE
165 #define DLGC_HL_CHECK_SELECTED         TRUE
166 
167 #define DLGC_FG_UARROW                 COLOR_GREEN
168 #define DLGC_BG_UARROW                 COLOR_WHITE
169 #define DLGC_HL_UARROW                 TRUE
170 
171 #define DLGC_FG_DARROW                 COLOR_GREEN
172 #define DLGC_BG_DARROW                 COLOR_WHITE
173 #define DLGC_HL_DARROW                 TRUE
174 
175 #define DLGC_FG_ITEMHELP               COLOR_WHITE
176 #define DLGC_BG_ITEMHELP               COLOR_BLACK
177 #define DLGC_HL_ITEMHELP               FALSE
178 
179 #define DLGC_FG_FORM_ACTIVE_TEXT       COLOR_WHITE
180 #define DLGC_BG_FORM_ACTIVE_TEXT       COLOR_BLUE
181 #define DLGC_HL_FORM_ACTIVE_TEXT       TRUE
182 
183 #define DLGC_FG_FORM_TEXT              COLOR_WHITE
184 #define DLGC_BG_FORM_TEXT              COLOR_CYAN
185 #define DLGC_HL_FORM_TEXT              TRUE
186 
187 #define DLGC_FG_GAUGE                  COLOR_BLUE
188 #define DLGC_BG_GAUGE                  COLOR_WHITE
189 #define DLGC_HL_GAUGE                  TRUE
190 
191 /* End of default color definitions */
192 
193 /*
194  * Global variables
195  */
196 
197 typedef struct {
198     const char *name;
199     int value;
200 } color_names_st;
201 
202 #endif /* COLORS_H_included */
203