Pull esi-support into release branch
[linux-2.6] / scripts / kconfig / lxdialog / colors.h
1 /*
2  *  colors.h -- color attribute definitions
3  *
4  *  AUTHOR: Savio Lam (lam836@cs.cuhk.hk)
5  *
6  *  This program is free software; you can redistribute it and/or
7  *  modify it under the terms of the GNU General Public License
8  *  as published by the Free Software Foundation; either version 2
9  *  of the License, or (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19  */
20
21 /*
22  *   Default color definitions
23  *
24  *   *_FG = foreground
25  *   *_BG = background
26  *   *_HL = highlight?
27  */
28 #define SCREEN_FG                    COLOR_CYAN
29 #define SCREEN_BG                    COLOR_BLUE
30 #define SCREEN_HL                    TRUE
31
32 #define SHADOW_FG                    COLOR_BLACK
33 #define SHADOW_BG                    COLOR_BLACK
34 #define SHADOW_HL                    TRUE
35
36 #define DIALOG_FG                    COLOR_BLACK
37 #define DIALOG_BG                    COLOR_WHITE
38 #define DIALOG_HL                    FALSE
39
40 #define TITLE_FG                     COLOR_YELLOW
41 #define TITLE_BG                     COLOR_WHITE
42 #define TITLE_HL                     TRUE
43
44 #define BORDER_FG                    COLOR_WHITE
45 #define BORDER_BG                    COLOR_WHITE
46 #define BORDER_HL                    TRUE
47
48 #define BUTTON_ACTIVE_FG             COLOR_WHITE
49 #define BUTTON_ACTIVE_BG             COLOR_BLUE
50 #define BUTTON_ACTIVE_HL             TRUE
51
52 #define BUTTON_INACTIVE_FG           COLOR_BLACK
53 #define BUTTON_INACTIVE_BG           COLOR_WHITE
54 #define BUTTON_INACTIVE_HL           FALSE
55
56 #define BUTTON_KEY_ACTIVE_FG         COLOR_WHITE
57 #define BUTTON_KEY_ACTIVE_BG         COLOR_BLUE
58 #define BUTTON_KEY_ACTIVE_HL         TRUE
59
60 #define BUTTON_KEY_INACTIVE_FG       COLOR_RED
61 #define BUTTON_KEY_INACTIVE_BG       COLOR_WHITE
62 #define BUTTON_KEY_INACTIVE_HL       FALSE
63
64 #define BUTTON_LABEL_ACTIVE_FG       COLOR_YELLOW
65 #define BUTTON_LABEL_ACTIVE_BG       COLOR_BLUE
66 #define BUTTON_LABEL_ACTIVE_HL       TRUE
67
68 #define BUTTON_LABEL_INACTIVE_FG     COLOR_BLACK
69 #define BUTTON_LABEL_INACTIVE_BG     COLOR_WHITE
70 #define BUTTON_LABEL_INACTIVE_HL     TRUE
71
72 #define INPUTBOX_FG                  COLOR_BLACK
73 #define INPUTBOX_BG                  COLOR_WHITE
74 #define INPUTBOX_HL                  FALSE
75
76 #define INPUTBOX_BORDER_FG           COLOR_BLACK
77 #define INPUTBOX_BORDER_BG           COLOR_WHITE
78 #define INPUTBOX_BORDER_HL           FALSE
79
80 #define SEARCHBOX_FG                 COLOR_BLACK
81 #define SEARCHBOX_BG                 COLOR_WHITE
82 #define SEARCHBOX_HL                 FALSE
83
84 #define SEARCHBOX_TITLE_FG           COLOR_YELLOW
85 #define SEARCHBOX_TITLE_BG           COLOR_WHITE
86 #define SEARCHBOX_TITLE_HL           TRUE
87
88 #define SEARCHBOX_BORDER_FG          COLOR_WHITE
89 #define SEARCHBOX_BORDER_BG          COLOR_WHITE
90 #define SEARCHBOX_BORDER_HL          TRUE
91
92 #define POSITION_INDICATOR_FG        COLOR_YELLOW
93 #define POSITION_INDICATOR_BG        COLOR_WHITE
94 #define POSITION_INDICATOR_HL        TRUE
95
96 #define MENUBOX_FG                   COLOR_BLACK
97 #define MENUBOX_BG                   COLOR_WHITE
98 #define MENUBOX_HL                   FALSE
99
100 #define MENUBOX_BORDER_FG            COLOR_WHITE
101 #define MENUBOX_BORDER_BG            COLOR_WHITE
102 #define MENUBOX_BORDER_HL            TRUE
103
104 #define ITEM_FG                      COLOR_BLACK
105 #define ITEM_BG                      COLOR_WHITE
106 #define ITEM_HL                      FALSE
107
108 #define ITEM_SELECTED_FG             COLOR_WHITE
109 #define ITEM_SELECTED_BG             COLOR_BLUE
110 #define ITEM_SELECTED_HL             TRUE
111
112 #define TAG_FG                       COLOR_YELLOW
113 #define TAG_BG                       COLOR_WHITE
114 #define TAG_HL                       TRUE
115
116 #define TAG_SELECTED_FG              COLOR_YELLOW
117 #define TAG_SELECTED_BG              COLOR_BLUE
118 #define TAG_SELECTED_HL              TRUE
119
120 #define TAG_KEY_FG                   COLOR_YELLOW
121 #define TAG_KEY_BG                   COLOR_WHITE
122 #define TAG_KEY_HL                   TRUE
123
124 #define TAG_KEY_SELECTED_FG          COLOR_YELLOW
125 #define TAG_KEY_SELECTED_BG          COLOR_BLUE
126 #define TAG_KEY_SELECTED_HL          TRUE
127
128 #define CHECK_FG                     COLOR_BLACK
129 #define CHECK_BG                     COLOR_WHITE
130 #define CHECK_HL                     FALSE
131
132 #define CHECK_SELECTED_FG            COLOR_WHITE
133 #define CHECK_SELECTED_BG            COLOR_BLUE
134 #define CHECK_SELECTED_HL            TRUE
135
136 #define UARROW_FG                    COLOR_GREEN
137 #define UARROW_BG                    COLOR_WHITE
138 #define UARROW_HL                    TRUE
139
140 #define DARROW_FG                    COLOR_GREEN
141 #define DARROW_BG                    COLOR_WHITE
142 #define DARROW_HL                    TRUE
143
144 /* End of default color definitions */
145
146 #define C_ATTR(x,y)                  ((x ? A_BOLD : 0) | COLOR_PAIR((y)))
147 #define COLOR_NAME_LEN               10
148 #define COLOR_COUNT                  8
149
150 /*
151  * Global variables
152  */
153
154 extern int color_table[][3];