xref: /freebsd/contrib/dialog/dlg_colors.h (revision 9a14aa017b21c292740c00ee098195cd46642730)
1 /*
2  *  $Id: dlg_colors.h,v 1.16 2011/01/17 00:20:32 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_BUTTON_ACTIVE          COLOR_WHITE
60 #define DLGC_BG_BUTTON_ACTIVE          COLOR_BLUE
61 #define DLGC_HL_BUTTON_ACTIVE          TRUE
62 
63 #define DLGC_FG_BUTTON_INACTIVE        COLOR_BLACK
64 #define DLGC_BG_BUTTON_INACTIVE        COLOR_WHITE
65 #define DLGC_HL_BUTTON_INACTIVE        FALSE
66 
67 #define DLGC_FG_BUTTON_KEY_ACTIVE      COLOR_WHITE
68 #define DLGC_BG_BUTTON_KEY_ACTIVE      COLOR_BLUE
69 #define DLGC_HL_BUTTON_KEY_ACTIVE      TRUE
70 
71 #define DLGC_FG_BUTTON_KEY_INACTIVE    COLOR_RED
72 #define DLGC_BG_BUTTON_KEY_INACTIVE    COLOR_WHITE
73 #define DLGC_HL_BUTTON_KEY_INACTIVE    FALSE
74 
75 #define DLGC_FG_BUTTON_LABEL_ACTIVE    COLOR_YELLOW
76 #define DLGC_BG_BUTTON_LABEL_ACTIVE    COLOR_BLUE
77 #define DLGC_HL_BUTTON_LABEL_ACTIVE    TRUE
78 
79 #define DLGC_FG_BUTTON_LABEL_INACTIVE  COLOR_BLACK
80 #define DLGC_BG_BUTTON_LABEL_INACTIVE  COLOR_WHITE
81 #define DLGC_HL_BUTTON_LABEL_INACTIVE  TRUE
82 
83 #define DLGC_FG_FORM_ITEM_READONLY     COLOR_CYAN
84 #define DLGC_BG_FORM_ITEM_READONLY     COLOR_WHITE
85 #define DLGC_HL_FORM_ITEM_READONLY     TRUE
86 
87 #define DLGC_FG_INPUTBOX               COLOR_BLACK
88 #define DLGC_BG_INPUTBOX               COLOR_WHITE
89 #define DLGC_HL_INPUTBOX               FALSE
90 
91 #define DLGC_FG_INPUTBOX_BORDER        COLOR_BLACK
92 #define DLGC_BG_INPUTBOX_BORDER        COLOR_WHITE
93 #define DLGC_HL_INPUTBOX_BORDER        FALSE
94 
95 #define DLGC_FG_SEARCHBOX              COLOR_BLACK
96 #define DLGC_BG_SEARCHBOX              COLOR_WHITE
97 #define DLGC_HL_SEARCHBOX              FALSE
98 
99 #define DLGC_FG_SEARCHBOX_TITLE        COLOR_BLUE
100 #define DLGC_BG_SEARCHBOX_TITLE        COLOR_WHITE
101 #define DLGC_HL_SEARCHBOX_TITLE        TRUE
102 
103 #define DLGC_FG_SEARCHBOX_BORDER       COLOR_WHITE
104 #define DLGC_BG_SEARCHBOX_BORDER       COLOR_WHITE
105 #define DLGC_HL_SEARCHBOX_BORDER       TRUE
106 
107 #define DLGC_FG_POSITION_INDICATOR     COLOR_BLUE
108 #define DLGC_BG_POSITION_INDICATOR     COLOR_WHITE
109 #define DLGC_HL_POSITION_INDICATOR     TRUE
110 
111 #define DLGC_FG_MENUBOX                COLOR_BLACK
112 #define DLGC_BG_MENUBOX                COLOR_WHITE
113 #define DLGC_HL_MENUBOX                FALSE
114 
115 #define DLGC_FG_MENUBOX_BORDER         COLOR_WHITE
116 #define DLGC_BG_MENUBOX_BORDER         COLOR_WHITE
117 #define DLGC_HL_MENUBOX_BORDER         TRUE
118 
119 #define DLGC_FG_ITEM                   COLOR_BLACK
120 #define DLGC_BG_ITEM                   COLOR_WHITE
121 #define DLGC_HL_ITEM                   FALSE
122 
123 #define DLGC_FG_ITEM_SELECTED          COLOR_WHITE
124 #define DLGC_BG_ITEM_SELECTED          COLOR_BLUE
125 #define DLGC_HL_ITEM_SELECTED          TRUE
126 
127 #define DLGC_FG_TAG                    COLOR_BLUE
128 #define DLGC_BG_TAG                    COLOR_WHITE
129 #define DLGC_HL_TAG                    TRUE
130 
131 #define DLGC_FG_TAG_SELECTED           COLOR_YELLOW
132 #define DLGC_BG_TAG_SELECTED           COLOR_BLUE
133 #define DLGC_HL_TAG_SELECTED           TRUE
134 
135 #define DLGC_FG_TAG_KEY                COLOR_RED
136 #define DLGC_BG_TAG_KEY                COLOR_WHITE
137 #define DLGC_HL_TAG_KEY                FALSE
138 
139 #define DLGC_FG_TAG_KEY_SELECTED       COLOR_RED
140 #define DLGC_BG_TAG_KEY_SELECTED       COLOR_BLUE
141 #define DLGC_HL_TAG_KEY_SELECTED       TRUE
142 
143 #define DLGC_FG_CHECK                  COLOR_BLACK
144 #define DLGC_BG_CHECK                  COLOR_WHITE
145 #define DLGC_HL_CHECK                  FALSE
146 
147 #define DLGC_FG_CHECK_SELECTED         COLOR_WHITE
148 #define DLGC_BG_CHECK_SELECTED         COLOR_BLUE
149 #define DLGC_HL_CHECK_SELECTED         TRUE
150 
151 #define DLGC_FG_UARROW                 COLOR_GREEN
152 #define DLGC_BG_UARROW                 COLOR_WHITE
153 #define DLGC_HL_UARROW                 TRUE
154 
155 #define DLGC_FG_DARROW                 COLOR_GREEN
156 #define DLGC_BG_DARROW                 COLOR_WHITE
157 #define DLGC_HL_DARROW                 TRUE
158 
159 #define DLGC_FG_ITEMHELP               COLOR_WHITE
160 #define DLGC_BG_ITEMHELP               COLOR_BLACK
161 #define DLGC_HL_ITEMHELP               FALSE
162 
163 #define DLGC_FG_FORM_ACTIVE_TEXT       COLOR_WHITE
164 #define DLGC_BG_FORM_ACTIVE_TEXT       COLOR_BLUE
165 #define DLGC_HL_FORM_ACTIVE_TEXT       TRUE
166 
167 #define DLGC_FG_FORM_TEXT              COLOR_WHITE
168 #define DLGC_BG_FORM_TEXT              COLOR_CYAN
169 #define DLGC_HL_FORM_TEXT              TRUE
170 
171 #define DLGC_FG_GAUGE                  COLOR_BLUE
172 #define DLGC_BG_GAUGE                  COLOR_WHITE
173 #define DLGC_HL_GAUGE                  TRUE
174 
175 /* End of default color definitions */
176 
177 /*
178  * Global variables
179  */
180 
181 typedef struct {
182     const char *name;
183     int value;
184 } color_names_st;
185 
186 #endif /* COLORS_H_included */
187