gfx/src/nsThemeConstants.h

branch
TOR_BUG_9701
changeset 8
97036ab72558
equal deleted inserted replaced
-1:000000000000 0:f29157dcd579
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 // No appearance at all.
6 #define NS_THEME_NONE 0
7
8 // A typical dialog button.
9 #define NS_THEME_BUTTON 1
10
11 // A radio element within a radio group.
12 #define NS_THEME_RADIO 2
13
14 // A checkbox element.
15 #define NS_THEME_CHECKBOX 3
16
17 // A rectangular button that contains complex content
18 // like images (e.g. HTML <button> elements)
19 #define NS_THEME_BUTTON_BEVEL 7
20
21 // The toolbox that contains the toolbars.
22 #define NS_THEME_TOOLBOX 11
23
24 // A toolbar in an application window.
25 #define NS_THEME_TOOLBAR 12
26
27 // A single toolbar button (with no associated dropdown)
28 #define NS_THEME_TOOLBAR_BUTTON 13
29
30 // A dual toolbar button (e.g., a Back button with a dropdown)
31 #define NS_THEME_TOOLBAR_DUAL_BUTTON 14
32
33 // The dropdown portion of a toolbar button
34 #define NS_THEME_TOOLBAR_BUTTON_DROPDOWN 15
35
36 // Various arrows that go in buttons
37 #define NS_THEME_BUTTON_ARROW_UP 16
38 #define NS_THEME_BUTTON_ARROW_DOWN 17
39 #define NS_THEME_BUTTON_ARROW_NEXT 18
40 #define NS_THEME_BUTTON_ARROW_PREVIOUS 19
41
42 // A separator. Can be horizontal or vertical.
43 #define NS_THEME_TOOLBAR_SEPARATOR 20
44
45 // The gripper for a toolbar.
46 #define NS_THEME_TOOLBAR_GRIPPER 21
47
48 // A splitter. Can be horizontal or vertical.
49 #define NS_THEME_SPLITTER 22
50
51 // A status bar in a main application window.
52 #define NS_THEME_STATUSBAR 23
53
54 // A single pane of a status bar.
55 #define NS_THEME_STATUSBAR_PANEL 24
56
57 // The resizer background area in a status bar
58 // for the resizer widget in the corner of a window.
59 #define NS_THEME_STATUSBAR_RESIZER_PANEL 25
60
61 // The resizer itself.
62 #define NS_THEME_RESIZER 26
63
64 // List boxes
65 #define NS_THEME_LISTBOX 31
66
67 // A listbox item
68 #define NS_THEME_LISTBOX_LISTITEM 32
69
70 // A tree widget
71 #define NS_THEME_TREEVIEW 41
72
73 // A tree item
74 #define NS_THEME_TREEVIEW_TREEITEM 42
75
76 // A tree widget twisty
77 #define NS_THEME_TREEVIEW_TWISTY 43
78
79 // A tree widget branch line
80 #define NS_THEME_TREEVIEW_LINE 44
81
82 // A listbox or tree widget header
83 #define NS_THEME_TREEVIEW_HEADER 45
84
85 // An individual header cell
86 #define NS_THEME_TREEVIEW_HEADER_CELL 46
87
88 // The sort arrow for a header.
89 #define NS_THEME_TREEVIEW_HEADER_SORTARROW 47
90
91 // Open tree widget twisty
92 #define NS_THEME_TREEVIEW_TWISTY_OPEN 48
93
94 // A horizontal progress bar.
95 #define NS_THEME_PROGRESSBAR 51
96
97 // The progress bar's progress indicator
98 #define NS_THEME_PROGRESSBAR_CHUNK 52
99
100 // A vertical progress bar.
101 #define NS_THEME_PROGRESSBAR_VERTICAL 53
102
103 // A vertical progress chunk
104 #define NS_THEME_PROGRESSBAR_CHUNK_VERTICAL 54
105
106 // A horizontal meter bar.
107 #define NS_THEME_METERBAR 55
108
109 // The meter bar's meter indicator
110 #define NS_THEME_METERBAR_CHUNK 56
111
112 // A single tab in a tab widget.
113 #define NS_THEME_TAB 61
114
115 // A single pane (inside the tabpanels container)
116 #define NS_THEME_TAB_PANEL 62
117
118 // The tab panels container.
119 #define NS_THEME_TAB_PANELS 65
120
121 // The tabs scroll arrows (left/right)
122 #define NS_THEME_TAB_SCROLLARROW_BACK 66
123 #define NS_THEME_TAB_SCROLLARROW_FORWARD 67
124
125 // A tooltip
126 #define NS_THEME_TOOLTIP 71
127
128 // A spin control (up/down control for time/date pickers)
129 #define NS_THEME_SPINNER 72
130
131 // The up button of a spin control
132 #define NS_THEME_SPINNER_UP_BUTTON 73
133
134 // The down button of a spin control
135 #define NS_THEME_SPINNER_DOWN_BUTTON 74
136
137 // The textfield of a spin control
138 #define NS_THEME_SPINNER_TEXTFIELD 75
139
140 // For HTML's <input type=number>
141 #define NS_THEME_NUMBER_INPUT 76
142
143 // A scrollbar.
144 #define NS_THEME_SCROLLBAR 80
145
146 // A small scrollbar.
147 #define NS_THEME_SCROLLBAR_SMALL 81
148
149 // A scrollbar button (up/down/left/right)
150 #define NS_THEME_SCROLLBAR_BUTTON_UP 82
151 #define NS_THEME_SCROLLBAR_BUTTON_DOWN 83
152 #define NS_THEME_SCROLLBAR_BUTTON_LEFT 84
153 #define NS_THEME_SCROLLBAR_BUTTON_RIGHT 85
154
155 // The scrollbar track
156 #define NS_THEME_SCROLLBAR_TRACK_HORIZONTAL 86
157 #define NS_THEME_SCROLLBAR_TRACK_VERTICAL 87
158
159 // The scrollbar thumb
160 #define NS_THEME_SCROLLBAR_THUMB_HORIZONTAL 88
161 #define NS_THEME_SCROLLBAR_THUMB_VERTICAL 89
162
163 // A non-disappearing scrollbar.
164 #define NS_THEME_SCROLLBAR_NON_DISAPPEARING 90
165
166 // A textfield or text area
167 #define NS_THEME_TEXTFIELD 95
168
169 // The caret of a text area
170 #define NS_THEME_TEXTFIELD_CARET 96
171
172 // A multiline text field
173 #define NS_THEME_TEXTFIELD_MULTILINE 97
174
175 // A searchfield
176 #define NS_THEME_SEARCHFIELD 98
177
178 // A dropdown list.
179 #define NS_THEME_DROPDOWN 101
180
181 // The dropdown button(s) that open up a dropdown list.
182 #define NS_THEME_DROPDOWN_BUTTON 102
183
184 // The text part of a dropdown list, to left of button
185 #define NS_THEME_DROPDOWN_TEXT 103
186
187 // An editable textfield with a dropdown list (a combobox)
188 #define NS_THEME_DROPDOWN_TEXTFIELD 104
189
190 // A slider
191 #define NS_THEME_SCALE_HORIZONTAL 111
192 #define NS_THEME_SCALE_VERTICAL 112
193
194 // A slider's thumb
195 #define NS_THEME_SCALE_THUMB_HORIZONTAL 113
196 #define NS_THEME_SCALE_THUMB_VERTICAL 114
197
198 // If the platform supports it, the left/right chunks
199 // of the slider thumb
200 #define NS_THEME_SCALE_THUMB_START 115
201 #define NS_THEME_SCALE_THUMB_END 116
202
203 // The ticks for a slider.
204 #define NS_THEME_SCALE_TICK 117
205
206 // nsRangeFrame and its subparts
207 #define NS_THEME_RANGE 120
208 #define NS_THEME_RANGE_THUMB 121
209
210 // A groupbox
211 #define NS_THEME_GROUPBOX 149
212
213 // A generic container that always repaints on state
214 // changes. This is a hack to make checkboxes and
215 // radio buttons work.
216 #define NS_THEME_CHECKBOX_CONTAINER 150
217 #define NS_THEME_RADIO_CONTAINER 151
218
219 // The label part of a checkbox or radio button, used for painting
220 // a focus outline.
221 #define NS_THEME_CHECKBOX_LABEL 152
222 #define NS_THEME_RADIO_LABEL 153
223
224 // The focus outline box inside of a button
225 #define NS_THEME_BUTTON_FOCUS 154
226
227 // Window and dialog backgrounds
228 #define NS_THEME_WINDOW 200
229 #define NS_THEME_DIALOG 201
230
231 // Menu Bar background
232 #define NS_THEME_MENUBAR 210
233 // Menu Popup background
234 #define NS_THEME_MENUPOPUP 211
235 // <menu> and <menuitem> appearances
236 #define NS_THEME_MENUITEM 212
237 #define NS_THEME_CHECKMENUITEM 213
238 #define NS_THEME_RADIOMENUITEM 214
239
240 // menu checkbox/radio appearances
241 #define NS_THEME_MENUCHECKBOX 215
242 #define NS_THEME_MENURADIO 216
243 #define NS_THEME_MENUSEPARATOR 217
244 #define NS_THEME_MENUARROW 218
245 // An image in the menu gutter, like in bookmarks or history
246 #define NS_THEME_MENUIMAGE 219
247 // For text on non-iconic menuitems only
248 #define NS_THEME_MENUITEMTEXT 220
249
250 // Vista Rebars
251 #define NS_THEME_WIN_COMMUNICATIONS_TOOLBOX 221
252 #define NS_THEME_WIN_MEDIA_TOOLBOX 222
253 #define NS_THEME_WIN_BROWSER_TAB_BAR_TOOLBOX 223
254
255 // Unified toolbar and titlebar elements on the Mac
256 #define NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR 224
257 #define NS_THEME_MOZ_MAC_FULLSCREEN_BUTTON 226
258
259 // Mac help button
260 #define NS_THEME_MOZ_MAC_HELP_BUTTON 227
261
262 // Vista glass
263 #define NS_THEME_WIN_BORDERLESS_GLASS 229
264 #define NS_THEME_WIN_GLASS 230
265
266 // Windows themed window frame elements
267 #define NS_THEME_WINDOW_TITLEBAR 231
268 #define NS_THEME_WINDOW_TITLEBAR_MAXIMIZED 232
269 #define NS_THEME_WINDOW_FRAME_LEFT 233
270 #define NS_THEME_WINDOW_FRAME_RIGHT 234
271 #define NS_THEME_WINDOW_FRAME_BOTTOM 235
272 #define NS_THEME_WINDOW_BUTTON_CLOSE 236
273 #define NS_THEME_WINDOW_BUTTON_MINIMIZE 237
274 #define NS_THEME_WINDOW_BUTTON_MAXIMIZE 238
275 #define NS_THEME_WINDOW_BUTTON_RESTORE 239
276 #define NS_THEME_WINDOW_BUTTON_BOX 240
277 #define NS_THEME_WINDOW_BUTTON_BOX_MAXIMIZED 241
278
279 // moz-apperance style used in setting proper glass margins
280 #define NS_THEME_WIN_EXCLUDE_GLASS 242
281

mercurial