Debian Codegraph @

src/gtk2/widgets/buttons

raw
1 style "button"
2 {
3 xthickness = 4
4 ythickness = 5
5
6 engine "pixmap"
7 {
8 image
9 {
10 function = BOX
11 state = NORMAL
12 file = "../assets/button.png"
13 border = {4, 4, 4, 4 }
14 stretch = TRUE
15 }
16 image
17 {
18 function = BOX
19 state = PRELIGHT
20 file = "../assets/button-hover.png"
21 border = { 4, 4, 4, 4 }
22 stretch = TRUE
23 }
24 image
25 {
26 function = BOX
27 state = ACTIVE
28 file = "../assets/button-active.png"
29 border = { 4, 4, 4, 4 }
30 stretch = TRUE
31 }
32 image
33 {
34 function = BOX
35 state = INSENSITIVE
36 file = "../assets/button-insensitive.png"
37 border = { 4, 4, 4, 4 }
38 stretch = TRUE
39 }
40
41
42
43 # Arrows
44
45 image
46 {
47 function = ARROW
48 state = NORMAL
49 overlay_file = "../assets/arrow-up.png"
50 overlay_border = { 0, 0, 0, 0 }
51 overlay_stretch = FALSE
52 arrow_direction = UP
53 }
54 image
55 {
56 function = ARROW
57 state = PRELIGHT
58 overlay_file = "../assets/arrow-up.png"
59 overlay_border = { 0, 0, 0, 0 }
60 overlay_stretch = FALSE
61 arrow_direction = UP
62 }
63 image
64 {
65 function = ARROW
66 state = ACTIVE
67 overlay_file = "../assets/arrow-up.png"
68 overlay_border = { 0, 0, 0, 0 }
69 overlay_stretch = FALSE
70 arrow_direction = UP
71 }
72 image
73 {
74 function = ARROW
75 state = INSENSITIVE
76 overlay_file = "../assets/arrow-up-insensitive.png"
77 overlay_border = { 0, 0, 0, 0 }
78 overlay_stretch = FALSE
79 arrow_direction = UP
80 }
81
82 image
83 {
84 function = ARROW
85 state = NORMAL
86 overlay_file = "../assets/arrow-down.png"
87 overlay_border = { 0, 0, 0, 0 }
88 overlay_stretch = FALSE
89 arrow_direction = DOWN
90 }
91 image
92 {
93 function = ARROW
94 state = PRELIGHT
95 overlay_file = "../assets/arrow-down.png"
96 overlay_border = { 0, 0, 0, 0 }
97 overlay_stretch = FALSE
98 arrow_direction = DOWN
99 }
100 image
101 {
102 function = ARROW
103 state = ACTIVE
104 overlay_file = "../assets/arrow-down.png"
105 overlay_border = { 0, 0, 0, 0 }
106 overlay_stretch = FALSE
107 arrow_direction = DOWN
108 }
109
110 image
111 {
112 function = ARROW
113 state = INSENSITIVE
114 overlay_file = "../assets/arrow-down-insensitive.png"
115 overlay_border = { 0, 0, 0, 0 }
116 overlay_stretch = FALSE
117 arrow_direction = DOWN
118 }
119
120 image
121 {
122 function = ARROW
123 state = NORMAL
124 overlay_file = "../assets/arrow-left.png"
125 overlay_border = { 0, 0, 0, 0 }
126 overlay_stretch = FALSE
127 arrow_direction = LEFT
128 }
129 image
130 {
131 function = ARROW
132 state = PRELIGHT
133 overlay_file = "../assets/arrow-left.png"
134 overlay_border = { 0, 0, 0, 0 }
135 overlay_stretch = FALSE
136 arrow_direction = LEFT
137 }
138 image
139 {
140 function = ARROW
141 state = ACTIVE
142 overlay_file = "../assets/arrow-left.png"
143 overlay_border = { 0, 0, 0, 0 }
144 overlay_stretch = FALSE
145 arrow_direction = LEFT
146 }
147 image
148 {
149 function = ARROW
150 state = INSENSITIVE
151 overlay_file = "../assets/arrow-left-insensitive.png"
152 overlay_border = { 0, 0, 0, 0 }
153 overlay_stretch = FALSE
154 arrow_direction = LEFT
155 }
156
157 image
158 {
159 function = ARROW
160 state = NORMAL
161 overlay_file = "../assets/arrow-right.png"
162 overlay_border = { 0, 0, 0, 0 }
163 overlay_stretch = FALSE
164 arrow_direction = RIGHT
165 }
166 image
167 {
168 function = ARROW
169 state = PRELIGHT
170 overlay_file = "../assets/arrow-right.png"
171 overlay_border = { 0, 0, 0, 0 }
172 overlay_stretch = FALSE
173 arrow_direction = RIGHT
174 }
175 image
176 {
177 function = ARROW
178 state = ACTIVE
179 overlay_file = "../assets/arrow-right.png"
180 overlay_border = { 0, 0, 0, 0 }
181 overlay_stretch = FALSE
182 arrow_direction = RIGHT
183 }
184 image
185 {
186 function = ARROW
187 state = INSENSITIVE
188 overlay_file = "../assets/arrow-right-insensitive.png"
189 overlay_border = { 0, 0, 0, 0 }
190 overlay_stretch = FALSE
191 arrow_direction = RIGHT
192 }
193
194
195
196
197 image
198 {
199 function = TAB
200 state = INSENSITIVE
201 overlay_file = "../assets/arrow-down-insensitive.png"
202 overlay_stretch = FALSE
203 }
204 image
205 {
206 function = TAB
207 state = NORMAL
208 overlay_file = "../assets/arrow-down.png"
209 overlay_border = { 0, 0, 0, 0 }
210 overlay_stretch = FALSE
211 }
212 image
213 {
214 function = TAB
215 state = PRELIGHT
216 overlay_file = "../assets/arrow-down.png"
217 overlay_border = { 0, 0, 0, 0 }
218 overlay_stretch = FALSE
219 }
220 }
221 }
222
223 style "togglebutton"
224 {
225 xthickness = 4
226 ythickness = 5
227
228 engine "pixmap"
229 {
230 image
231 {
232 function = BOX
233 state = NORMAL
234 file = "../assets/togglebutton.png"
235 border = {4, 4, 4, 4 }
236 stretch = TRUE
237 }
238 image
239 {
240 function = BOX
241 state = PRELIGHT
242 file = "../assets/togglebutton-hover.png"
243 border = { 4, 4, 4, 4 }
244 stretch = TRUE
245 }
246 image
247 {
248 function = BOX
249 state = ACTIVE
250 file = "../assets/togglebutton-active.png"
251 border = { 4, 4, 4, 4 }
252 stretch = TRUE
253 }
254 image
255 {
256 function = BOX
257 state = INSENSITIVE
258 file = "../assets/togglebutton-insensitive.png"
259 border = { 4, 4, 4, 4 }
260 stretch = TRUE
261 }
262 }
263 }
264
265 style "spinbutton" = "default"
266 {
267 #bg[NORMAL] = @bg_color
268
269 xthickness = 3
270 ythickness = 3
271 GtkWidget::interior_focus = 1
272
273 engine "pixmap"
274 {
275 image
276 {
277 function = ARROW
278 }
279
280 #Spin-up
281 image
282 {
283 function = BOX
284 state = NORMAL
285 detail = "spinbutton_up"
286 file = "../assets/spinbutton-up.png"
287 border = { 5, 5, 5, 5 }
288 stretch = TRUE
289 overlay_file = "../assets/arrow-small-up.png"
290 overlay_stretch = FALSE
291 }
292 image
293 {
294 function = BOX
295 state = PRELIGHT
296 detail = "spinbutton_up"
297 file = "../assets/spinbutton-up.png"
298 border = { 5, 5, 5, 5 }
299 stretch = TRUE
300 overlay_file = "../assets/arrow-small-up-hover.png"
301 overlay_stretch = FALSE
302 }
303 image
304 {
305 function = BOX
306 state = INSENSITIVE
307 detail = "spinbutton_up"
308 file = "../assets/spinbutton-up-insensitive.png"
309 border = { 5, 5, 5, 5 }
310 stretch = TRUE
311 overlay_file = "../assets/arrow-small-up-insensitive.png"
312 overlay_stretch = FALSE
313 }
314 image
315 {
316 function = BOX
317 state = ACTIVE
318 detail = "spinbutton_up"
319 file = "../assets/spinbutton-up.png"
320 border = { 5, 5, 5, 5 }
321 stretch = TRUE
322 overlay_file = "../assets/arrow-small-up-active.png"
323 overlay_stretch = FALSE
324 }
325
326 # Spin-Down
327 image
328 {
329 function = BOX
330 state = NORMAL
331 detail = "spinbutton_down"
332 file = "../assets/spinbutton-down.png"
333 border = { 5, 5, 5, 5 }
334 stretch = TRUE
335 overlay_file = "../assets/arrow-small-down.png"
336 overlay_stretch = FALSE
337 }
338 image
339 {
340 function = BOX
341 state = PRELIGHT
342 detail = "spinbutton_down"
343 file = "../assets/spinbutton-down.png"
344 border = { 5, 5, 5, 5 }
345 stretch = TRUE
346 overlay_file = "../assets/arrow-small-down-hover.png"
347 overlay_stretch = FALSE
348 }
349 image
350 {
351 function = BOX
352 state = INSENSITIVE
353 detail = "spinbutton_down"
354 file = "../assets/spinbutton-down-insensitive.png"
355 border = { 5, 5, 5, 5 }
356 stretch = TRUE
357 overlay_file = "../assets/arrow-small-down-insensitive.png"
358 overlay_stretch = FALSE
359 }
360 image
361 {
362 function = BOX
363 state = ACTIVE
364 detail = "spinbutton_down"
365 file = "../assets/spinbutton-down.png"
366 border = { 5, 5, 5, 5 }
367 stretch = TRUE
368 overlay_file = "../assets/arrow-small-down-hover.png"
369 overlay_stretch = FALSE
370 }
371 }
372 }
373
374 style "button_label" {
375 fg[NORMAL] = @button_fg_color
376 fg[ACTIVE] = @button_fg_color
377 fg[INSENSITIVE] = @button_insensitive_fg_color
378 }
379
380 style "combobox_separator"
381 {
382 xthickness = 0
383 ythickness = 0
384 GtkWidget::wide-separators = 1
385 }