Bug 574454 - Add window frame css styles. r=dbaron.
[mozilla-central.git] / gfx / src / nsThemeConstants.h
blob047d0da07baf65dfcd4c798d6698448e031b9f48
1 // No appearance at all.
2 #define NS_THEME_NONE 0
4 // A typical dialog button.
5 #define NS_THEME_BUTTON 1
7 // A radio element within a radio group.
8 #define NS_THEME_RADIO 2
10 // A checkbox element.
11 #define NS_THEME_CHECKBOX 3
13 // A rectangular button that contains complex content
14 // like images (e.g. HTML <button> elements)
15 #define NS_THEME_BUTTON_BEVEL 7
17 // The toolbox that contains the toolbars.
18 #define NS_THEME_TOOLBOX 11
20 // A toolbar in an application window.
21 #define NS_THEME_TOOLBAR 12
23 // A single toolbar button (with no associated dropdown)
24 #define NS_THEME_TOOLBAR_BUTTON 13
26 // A dual toolbar button (e.g., a Back button with a dropdown)
27 #define NS_THEME_TOOLBAR_DUAL_BUTTON 14
29 // The dropdown portion of a toolbar button
30 #define NS_THEME_TOOLBAR_BUTTON_DROPDOWN 15
32 // Various arrows that go in buttons
33 #define NS_THEME_BUTTON_ARROW_UP 16
34 #define NS_THEME_BUTTON_ARROW_DOWN 17
35 #define NS_THEME_BUTTON_ARROW_NEXT 18
36 #define NS_THEME_BUTTON_ARROW_PREVIOUS 19
38 // A separator. Can be horizontal or vertical.
39 #define NS_THEME_TOOLBAR_SEPARATOR 20
41 // The gripper for a toolbar.
42 #define NS_THEME_TOOLBAR_GRIPPER 21
44 // A splitter. Can be horizontal or vertical.
45 #define NS_THEME_SPLITTER 22
47 // A status bar in a main application window.
48 #define NS_THEME_STATUSBAR 23
50 // A single pane of a status bar.
51 #define NS_THEME_STATUSBAR_PANEL 24
53 // The resizer background area in a status bar
54 // for the resizer widget in the corner of a window.
55 #define NS_THEME_STATUSBAR_RESIZER_PANEL 25
57 // The resizer itself.
58 #define NS_THEME_RESIZER 26
60 // List boxes
61 #define NS_THEME_LISTBOX 31
63 // A listbox item
64 #define NS_THEME_LISTBOX_LISTITEM 32
66 // A tree widget
67 #define NS_THEME_TREEVIEW 41
69 // A tree item
70 #define NS_THEME_TREEVIEW_TREEITEM 42
72 // A tree widget twisty
73 #define NS_THEME_TREEVIEW_TWISTY 43
75 // A tree widget branch line
76 #define NS_THEME_TREEVIEW_LINE 44
78 // A listbox or tree widget header
79 #define NS_THEME_TREEVIEW_HEADER 45
81 // An individual header cell
82 #define NS_THEME_TREEVIEW_HEADER_CELL 46
84 // The sort arrow for a header.
85 #define NS_THEME_TREEVIEW_HEADER_SORTARROW 47
87 // Open tree widget twisty
88 #define NS_THEME_TREEVIEW_TWISTY_OPEN 48
90 // A horizontal progress bar.
91 #define NS_THEME_PROGRESSBAR 51
93 // The progress bar's progress indicator
94 #define NS_THEME_PROGRESSBAR_CHUNK 52
96 // A vertical progress bar.
97 #define NS_THEME_PROGRESSBAR_VERTICAL 53
99 // A vertical progress chunk
100 #define NS_THEME_PROGRESSBAR_CHUNK_VERTICAL 54
102 // A single tab in a tab widget.
103 #define NS_THEME_TAB 61
105 // A single pane (inside the tabpanels container)
106 #define NS_THEME_TAB_PANEL 62
108 // The tab panels container.
109 #define NS_THEME_TAB_PANELS 65
111 // The tabs scroll arrows (left/right)
112 #define NS_THEME_TAB_SCROLLARROW_BACK 66
113 #define NS_THEME_TAB_SCROLLARROW_FORWARD 67
115 // A tooltip
116 #define NS_THEME_TOOLTIP 71
118 // A spin control (up/down control for time/date pickers)
119 #define NS_THEME_SPINNER 72
121 // The up button of a spin control
122 #define NS_THEME_SPINNER_UP_BUTTON 73
124 // The down button of a spin control
125 #define NS_THEME_SPINNER_DOWN_BUTTON 74
127 // The textfield of a spin control
128 #define NS_THEME_SPINNER_TEXTFIELD 75
130 // A scrollbar.
131 #define NS_THEME_SCROLLBAR 80
133 // A small scrollbar.
134 #define NS_THEME_SCROLLBAR_SMALL 81
136 // A scrollbar button (up/down/left/right)
137 #define NS_THEME_SCROLLBAR_BUTTON_UP 82
138 #define NS_THEME_SCROLLBAR_BUTTON_DOWN 83
139 #define NS_THEME_SCROLLBAR_BUTTON_LEFT 84
140 #define NS_THEME_SCROLLBAR_BUTTON_RIGHT 85
142 // The scrollbar track
143 #define NS_THEME_SCROLLBAR_TRACK_HORIZONTAL 86
144 #define NS_THEME_SCROLLBAR_TRACK_VERTICAL 87
146 // The scrollbar thumb
147 #define NS_THEME_SCROLLBAR_THUMB_HORIZONTAL 88
148 #define NS_THEME_SCROLLBAR_THUMB_VERTICAL 89
150 // A textfield or text area
151 #define NS_THEME_TEXTFIELD 95
153 // The caret of a text area
154 #define NS_THEME_TEXTFIELD_CARET 96
156 // A multiline text field
157 #define NS_THEME_TEXTFIELD_MULTILINE 97
159 // A searchfield
160 #define NS_THEME_SEARCHFIELD 98
162 // A dropdown list.
163 #define NS_THEME_DROPDOWN 101
165 // The dropdown button(s) that open up a dropdown list.
166 #define NS_THEME_DROPDOWN_BUTTON 102
168 // The text part of a dropdown list, to left of button
169 #define NS_THEME_DROPDOWN_TEXT 103
171 // An editable textfield with a dropdown list (a combobox)
172 #define NS_THEME_DROPDOWN_TEXTFIELD 104
174 // A slider
175 #define NS_THEME_SCALE_HORIZONTAL 111
176 #define NS_THEME_SCALE_VERTICAL 112
178 // A slider's thumb
179 #define NS_THEME_SCALE_THUMB_HORIZONTAL 113
180 #define NS_THEME_SCALE_THUMB_VERTICAL 114
182 // If the platform supports it, the left/right chunks
183 // of the slider thumb
184 #define NS_THEME_SCALE_THUMB_START 115
185 #define NS_THEME_SCALE_THUMB_END 116
187 // The ticks for a slider.
188 #define NS_THEME_SCALE_TICK 117
190 // A groupbox
191 #define NS_THEME_GROUPBOX 149
193 // A generic container that always repaints on state
194 // changes. This is a hack to make checkboxes and
195 // radio buttons work.
196 #define NS_THEME_CHECKBOX_CONTAINER 150
197 #define NS_THEME_RADIO_CONTAINER 151
199 // The label part of a checkbox or radio button, used for painting
200 // a focus outline.
201 #define NS_THEME_CHECKBOX_LABEL 152
202 #define NS_THEME_RADIO_LABEL 153
204 // The focus outline box inside of a button
205 #define NS_THEME_BUTTON_FOCUS 154
207 // Window and dialog backgrounds
208 #define NS_THEME_WINDOW 200
209 #define NS_THEME_DIALOG 201
211 // Menu Bar background
212 #define NS_THEME_MENUBAR 210
213 // Menu Popup background
214 #define NS_THEME_MENUPOPUP 211
215 // <menu> and <menuitem> appearances
216 #define NS_THEME_MENUITEM 212
217 #define NS_THEME_CHECKMENUITEM 213
218 #define NS_THEME_RADIOMENUITEM 214
220 // menu checkbox/radio appearances
221 #define NS_THEME_MENUCHECKBOX 215
222 #define NS_THEME_MENURADIO 216
223 #define NS_THEME_MENUSEPARATOR 217
224 #define NS_THEME_MENUARROW 218
225 // An image in the menu gutter, like in bookmarks or history
226 #define NS_THEME_MENUIMAGE 219
227 // For text on non-iconic menuitems only
228 #define NS_THEME_MENUITEMTEXT 220
230 // Vista Rebars
231 #define NS_THEME_WIN_COMMUNICATIONS_TOOLBOX 221
232 #define NS_THEME_WIN_MEDIA_TOOLBOX 222
233 #define NS_THEME_WIN_BROWSER_TAB_BAR_TOOLBOX 223
235 // Unified toolbar on the Mac
236 #define NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR 224
238 // Vista glass
239 #define NS_THEME_WIN_GLASS 230
241 // Windows themed window frame elements
242 #define NS_THEME_WINDOW_TITLEBAR 231
243 #define NS_THEME_WINDOW_TITLEBAR_MAXIMIZED 232
244 #define NS_THEME_WINDOW_FRAME_LEFT 233
245 #define NS_THEME_WINDOW_FRAME_RIGHT 234
246 #define NS_THEME_WINDOW_FRAME_BOTTOM 235
247 #define NS_THEME_WINDOW_BUTTON_CLOSE 236
248 #define NS_THEME_WINDOW_BUTTON_MINIMIZE 237
249 #define NS_THEME_WINDOW_BUTTON_MAXIMIZE 238
250 #define NS_THEME_WINDOW_BUTTON_RESTORE 239