]> git.tdb.fi Git - r2c2.git/blob - marklin.res
Rework the UI elements for a smoother and more uniform look
[r2c2.git] / marklin.res
1 /* $Id$ */
2
3 default_font "dejavu-12.font";
4
5 style "root"
6 {
7         special "children";
8 };
9
10 style "label"
11 {
12         font_color 0 0 0;
13         special "text";
14 };
15
16 graphic "tooltip"
17 {
18         texture "gui.png";
19         slice 50 93 20 10;
20         border { top 2; right 2; bottom 2; left 2; };
21 };
22
23 style "label-tooltip"
24 {
25         font_color 0.0 0.0 0.0;
26
27         part
28         {
29                 graphic NORMAL "tooltip";
30         };
31
32         special "text"
33         {
34                 align 0.0 0.5;
35                 fill 0.0 0.0;
36                 margin { top 2; right 2; bottom 2; left 2; };
37         };
38 };
39
40 graphic "grey_button"
41 {
42         texture "gui.png";
43         slice 2 54 21 10;
44         border { top 2; right 3; bottom 4; left 2; };
45         shadow { top 0; right 1; bottom 2; left 0; };
46 };
47
48 graphic "grey_button_pressed"
49 {
50         texture "gui.png";
51         slice 25 54 21 10;
52         border { top 2; right 3; bottom 4; left 2; };
53         shadow { top 0; right 1; bottom 2; left 0; };
54 };
55
56 graphic "green_button"
57 {
58         texture "gui.png";
59         slice 2 43 21 10;
60         border { top 2; right 3; bottom 4; left 2; };
61         shadow { top 0; right 1; bottom 2; left 0; };
62 };
63
64 graphic "green_button_pressed"
65 {
66         texture "gui.png";
67         slice 25 43 21 10;
68         border { top 2; right 3; bottom 4; left 2; };
69         shadow { top 0; right 1; bottom 2; left 0; };
70 };
71
72 graphic "red_button"
73 {
74         texture "gui.png";
75         slice 2 32 21 10;
76         border { top 2; right 3; bottom 4; left 2; };
77         shadow { top 0; right 1; bottom 2; left 0; };
78 };
79
80 graphic "red_button_pressed"
81 {
82         texture "gui.png";
83         slice 25 32 21 10;
84         border { top 2; right 3; bottom 4; left 2; };
85         shadow { top 0; right 1; bottom 2; left 0; };
86 };
87
88 style "button"
89 {
90         font_color 0 0 0;
91
92         part
93         {
94                 graphic NORMAL "grey_button";
95                 graphic ACTIVE "grey_button_pressed";
96                 align 0.5 0.0;
97                 fill 0.0 0.0;
98         };
99
100         special "text"
101         {
102                 align 0.5 1.0;
103                 fill 0.0 0.0;
104         };
105 };
106
107 style "button-green"
108 {
109         font_color 0 0 0;
110
111         part
112         {
113                 graphic NORMAL "green_button";
114                 graphic ACTIVE "green_button_pressed";
115                 align 0.5 0.0;
116                 fill 0.0 0.0;
117         };
118
119         special "text"
120         {
121                 align 0.5 1.0;
122                 fill 0.0 0.0;
123         };
124 };
125
126 style "button-red"
127 {
128         font_color 0 0 0;
129
130         part
131         {
132                 graphic NORMAL "red_button";
133                 graphic ACTIVE "red_button_pressed";
134                 align 0.5 0.0;
135                 fill 0.0 0.0;
136         };
137
138         special "text"
139         {
140                 align 0.5 1.0;
141                 fill 0.0 0.0;
142         };
143 };
144
145 graphic "yellow_lamp"
146 {
147         texture "gui.png";
148         slice 28 105 10 10;
149 };
150
151 graphic "yellow_lamp_lit"
152 {
153         texture "gui.png";
154         slice 28 117 10 10;
155 };
156
157 graphic "green_lamp"
158 {
159         texture "gui.png";
160         slice 40 105 10 10;
161 };
162
163 graphic "green_lamp_lit"
164 {
165         texture "gui.png";
166         slice 40 117 10 10;
167 };
168
169 graphic "red_lamp"
170 {
171         texture "gui.png";
172         slice 52 105 10 10;
173 };
174
175 graphic "red_lamp_lit"
176 {
177         texture "gui.png";
178         slice 52 116 10 10;
179 };
180
181 style "indicator"
182 {
183         part
184         {
185                 graphic NORMAL "yellow_lamp";
186                 graphic ACTIVE "yellow_lamp_lit";
187                 align 0.5 0.5;
188                 fill 0.0 0.0;
189         };
190 };
191
192 style "indicator-green"
193 {
194         part
195         {
196                 graphic NORMAL "green_lamp";
197                 graphic ACTIVE "green_lamp_lit";
198                 align 0.5 0.5;
199                 fill 0.0 0.0;
200         };
201 };
202
203 style "indicator-red"
204 {
205         part
206         {
207                 graphic NORMAL "red_lamp";
208                 graphic ACTIVE "red_lamp_lit";
209                 align 0.5 0.5;
210                 fill 0.0 0.0;
211         };
212 };
213
214 graphic "raised_grey_bg"
215 {
216         texture "gui.png";
217         slice 2 74 24 16;
218         border { top 4; right 4; bottom 4; left 4; };
219 };
220
221 style "panel"
222 {
223         part
224         {
225                 graphic NORMAL "raised_grey_bg";
226         };
227         special "children";
228 };
229
230 graphic "sunken_black_bg"
231 {
232         texture "gui.png";
233         slice 2 110 24 16;
234         border { top 4; right 4; bottom 4; left 4; };
235 };
236
237 style "label-digital"
238 {
239         font "digitalreadout-16.font";
240         font_color 0.3 1 0.3;
241
242         part
243         {
244                 graphic NORMAL "sunken_black_bg";
245         };
246
247         special "text"
248         {
249                 fill 0.0 0.0;
250                 align 0.5 0.5;
251         };
252 };
253
254 graphic "sunken_white_bg"
255 {
256         texture "gui.png";
257         slice 2 92 24 16;
258         border { top 4; right 4; bottom 4; left 4; };
259 };
260
261 graphic "cursor"
262 {
263         texture "gui.png";
264         slice 40 81 2 10;
265 };
266
267 style "entry"
268 {
269         font_color 0 0 0;
270
271         part
272         {
273                 graphic NORMAL "sunken_white_bg";
274         };
275
276         special "text"
277         {
278                 align 0.0 0.5;
279                 fill 0.0 0.0;
280                 margin { left 3; right 3; };
281         };
282
283         special "cursor"
284         {
285                 graphic FOCUS "cursor";
286                 align 0.0 0.5;
287                 fill 0.0 0.0;
288                 size 2 12;
289                 margin { left 3; right 3; };
290         };
291 };
292
293 style "entry-multiline"
294 {
295         font_color 0 0 0;
296
297         part
298         {
299                 graphic NORMAL "sunken_white_bg";
300                 margin { right 10; };
301         };
302
303         special "text"
304         {
305                 align 0.0 1.0;
306                 fill 0.0 0.0;
307                 margin { top 2; right 13; left 3; bottom 2; };
308         };
309
310         special "cursor"
311         {
312                 graphic FOCUS "cursor";
313                 size 2 12;
314         };
315
316         special "slider"
317         {
318                 align 1.0 0.0;
319                 fill 0.0 1.0;
320                 size 10 0;
321         };
322 };
323
324 graphic "selection"
325 {
326         texture "gui.png";
327         slice 44 81 20 10;
328         border { top 4; right 4; bottom 4; left 4; };
329 };
330
331 style "list"
332 {
333         font_color 0.0 0.0 0.0;
334
335         part
336         {
337                 graphic NORMAL "sunken_white_bg";
338                 margin { right 10; };
339         };
340
341         special "selection"
342         {
343                 graphic NORMAL "selection";
344                 fill 1.0 1.0;
345                 margin { top 2; right 12; bottom 2; left 2; };
346         };
347
348         special "items"
349         {
350                 margin { top 2; right 12; bottom 2; left 2; };
351         };
352
353         special "slider"
354         {
355                 align 1.0 0.0;
356                 fill 0.0 1.0;
357                 size 10 0;
358         };
359 };
360
361 graphic "up_arrow_button"
362 {
363         texture "gui.png";
364         slice 2 18 13 13;
365         shadow { top 0; right 1; bottom 2; left 0; };
366 };
367
368 graphic "up_arrow_button_pressed"
369 {
370         texture "gui.png";
371         slice 17 18 13 13;
372         shadow { top 0; right 1; bottom 2; left 0; };
373 };
374
375 graphic "down_arrow_button"
376 {
377         texture "gui.png";
378         slice 2 4 13 13;
379         shadow { top 0; right 1; bottom 2; left 0; };
380 };
381
382 graphic "down_arrow_button_pressed"
383 {
384         texture "gui.png";
385         slice 17 4 13 13;
386         shadow { top 0; right 1; bottom 2; left 0; };
387 };
388
389 style "dropdown"
390 {
391         font_color 0.0 0.0 0.0;
392
393         part
394         {
395                 graphic NORMAL "sunken_white_bg";
396                 margin { right 14; };
397         };
398
399         part
400         {
401                 graphic NORMAL "down_arrow_button";
402                 graphic ACTIVE "down_arrow_button_pressed";
403                 align 1.0 0.5;
404                 fill 0.0 0.0;
405         };
406
407         special "text"
408         {
409                 align 0.0 0.5;
410                 fill 0.0 0.0;
411                 margin { left 2; };
412         };
413
414         special "list";
415 };
416
417 graphic "switch_up"
418 {
419         texture "gui.png";
420         slice 48 42 20 21;
421         shadow { top 0; right 2; bottom 3; left 0; };
422 };
423
424 graphic "switch_down"
425 {
426         texture "gui.png";
427         slice 48 20 20 21;
428         shadow { top 0; right 2; bottom 3; left 0; };
429 };
430
431 style "toggle"
432 {
433         font_color 0.0 0.0 0.0;
434
435         special "text"
436         {
437                 align 0.5 1.0;
438                 fill 0.0 0.0;
439         };
440
441         part
442         {
443                 align 0.5 0.0;
444                 fill 0.0 0.0;
445                 graphic NORMAL "switch_down";
446                 graphic ACTIVE "switch_up";
447         };
448 };
449
450 graphic "horizontal_slot"
451 {
452         texture "gui.png";
453         slice 28 93 20 10;
454         border { top 0; right 5; bottom 0; left 5; };
455 };
456
457 graphic "horizontal_knob"
458 {
459         texture "gui.png";
460         slice 70 51 32 13;
461         shadow { top 0; right 2; bottom 3; left 0; };
462 };
463
464 style "hslider"
465 {
466         part
467         {
468                 graphic NORMAL "horizontal_slot";
469                 fill 1.0 0.0;
470         };
471
472         special "slider"
473         {
474                 graphic NORMAL "horizontal_knob";
475                 fill 0.0 0.0;
476         };
477 };
478
479 graphic "vertical_slot"
480 {
481         texture "gui.png";
482         slice 28 71 10 20;
483         border { top 5; right 0; bottom 5; left 0; };
484 };
485
486 graphic "vertical_knob"
487 {
488         texture "gui.png";
489         slice 70 17 12 33;
490         shadow { top 0; right 2; bottom 3; left 0; };
491 };
492
493 style "vslider"
494 {
495         part
496         {
497                 graphic NORMAL "vertical_slot";
498                 fill 0.0 1.0;
499         };
500
501         special "slider"
502         {
503                 graphic NORMAL "vertical_knob";
504                 fill 0.0 0.0;
505         };
506 };