]> git.tdb.fi Git - r2c2.git/blob - data/r2c2.res
Add a dialog and necessary support code to display departures
[r2c2.git] / data / r2c2.res
1 default_font "dejavu-12.font";
2
3 style "root"
4 {
5         part "children";
6 };
7
8 style "label"
9 {
10         font_color 0 0 0;
11         part "text"
12         {
13                 align 0.0 0.5;
14                 fill 0.0 0.0;
15         };
16 };
17
18 style "label-title"
19 {
20         font_color 0 0 0;
21         part "text"
22         {
23                 align 0.5 1.0;
24                 fill 0.0 0.0;
25                 margin { bottom 5; };
26         };
27 };
28
29 style "image"
30 {
31         part "image"
32         {
33                 fill 1.0 1.0;
34         };
35 };
36
37 graphic "tooltip"
38 {
39         texture "gui.png";
40         slice 50 93 20 10;
41         border { horizontal 2; vertical 2; };
42 };
43
44 style "label-tooltip"
45 {
46         font_color 0.0 0.0 0.0;
47
48         part
49         {
50                 graphic NORMAL "tooltip";
51         };
52
53         part "text"
54         {
55                 align 0.0 0.5;
56                 fill 0.0 0.0;
57                 margin { horizontal 2; vertical 2; };
58         };
59 };
60
61 graphic "grey_button"
62 {
63         texture "gui.png";
64         slice 2 54 21 10;
65         border { top 2; right 3; bottom 4; left 2; };
66         shadow { top 0; right 1; bottom 2; left 0; };
67 };
68
69 graphic "grey_button_pressed"
70 {
71         texture "gui.png";
72         slice 25 54 21 10;
73         border { top 2; right 3; bottom 4; left 2; };
74         shadow { top 0; right 1; bottom 2; left 0; };
75 };
76
77 graphic "green_button"
78 {
79         texture "gui.png";
80         slice 2 43 21 10;
81         border { top 2; right 3; bottom 4; left 2; };
82         shadow { top 0; right 1; bottom 2; left 0; };
83 };
84
85 graphic "green_button_pressed"
86 {
87         texture "gui.png";
88         slice 25 43 21 10;
89         border { top 2; right 3; bottom 4; left 2; };
90         shadow { top 0; right 1; bottom 2; left 0; };
91 };
92
93 graphic "red_button"
94 {
95         texture "gui.png";
96         slice 2 32 21 10;
97         border { top 2; right 3; bottom 4; left 2; };
98         shadow { top 0; right 1; bottom 2; left 0; };
99 };
100
101 graphic "red_button_pressed"
102 {
103         texture "gui.png";
104         slice 25 32 21 10;
105         border { top 2; right 3; bottom 4; left 2; };
106         shadow { top 0; right 1; bottom 2; left 0; };
107 };
108
109 graphic "up_arrow_button"
110 {
111         texture "gui.png";
112         slice 2 18 13 13;
113         shadow { right 1; bottom 2; };
114 };
115
116 graphic "up_arrow_button_pressed"
117 {
118         texture "gui.png";
119         slice 17 19 13 12;
120         shadow { right 1; bottom 1; };
121 };
122
123 graphic "down_arrow_button"
124 {
125         texture "gui.png";
126         slice 2 4 13 13;
127         shadow { right 1; bottom 2; };
128 };
129
130 graphic "down_arrow_button_pressed"
131 {
132         texture "gui.png";
133         slice 17 5 13 12;
134         shadow { right 1; bottom 1; };
135 };
136
137 graphic "right_arrow_button"
138 {
139         texture "gui.png";
140         slice 32 17 12 14;
141         shadow { right 1; bottom 2; };
142 };
143
144 graphic "right_arrow_button_pressed"
145 {
146         texture "gui.png";
147         slice 32 3 12 13;
148         shadow { right 1; bottom 1; };
149 };
150
151 graphic "left_arrow_button"
152 {
153         texture "gui.png";
154         slice 46 2 12 14;
155         shadow { right 1; bottom 2; };
156 };
157
158 graphic "left_arrow_button_pressed"
159 {
160         texture "gui.png";
161         slice 60 3 12 13;
162         shadow { right 1; bottom 1; };
163 };
164
165 graphic "red_cross_button"
166 {
167         texture "gui.png";
168         slice 74 2 13 14;
169         shadow { right 1; bottom 2; };
170 };
171
172 graphic "red_cross_button_pressed"
173 {
174         texture "gui.png";
175         slice 89 3 13 13;
176         shadow { right 1; bottom 1; };
177 };
178
179 style "button"
180 {
181         font_color 0 0 0;
182
183         part
184         {
185                 graphic NORMAL "grey_button";
186                 graphic ACTIVE "grey_button_pressed";
187                 align 0.5 0.0;
188                 fill 0.0 0.0;
189                 margin { horizontal 5; };
190         };
191
192         part "text"
193         {
194                 align 0.5 1.0;
195                 fill 0.0 0.0;
196                 margin { bottom 10; };
197         };
198 };
199
200 style "button-green"
201 {
202         font_color 0 0 0;
203
204         part
205         {
206                 graphic NORMAL "green_button";
207                 graphic ACTIVE "green_button_pressed";
208                 align 0.5 0.0;
209                 fill 0.0 0.0;
210                 margin { horizontal 5; };
211         };
212
213         part "text"
214         {
215                 align 0.5 1.0;
216                 fill 0.0 0.0;
217                 margin { bottom 10; };
218         };
219 };
220
221 style "button-red"
222 {
223         font_color 0 0 0;
224
225         part
226         {
227                 graphic NORMAL "red_button";
228                 graphic ACTIVE "red_button_pressed";
229                 align 0.5 0.0;
230                 fill 0.0 0.0;
231                 margin { horizontal 5; };
232         };
233
234         part "text"
235         {
236                 align 0.5 1.0;
237                 fill 0.0 0.0;
238                 margin { bottom 10; };
239         };
240 };
241
242 style "button-arrow_up"
243 {
244         part
245         {
246                 graphic NORMAL "up_arrow_button";
247                 graphic ACTIVE "up_arrow_button_pressed";
248                 align 0.5 0.5;
249                 fill 0.0 0.0;
250         };
251 };
252
253 style "button-arrow_down"
254 {
255         part
256         {
257                 graphic NORMAL "down_arrow_button";
258                 graphic ACTIVE "down_arrow_button_pressed";
259                 align 0.5 0.5;
260                 fill 0.0 0.0;
261         };
262 };
263
264 style "button-arrow_right"
265 {
266         part
267         {
268                 graphic NORMAL "right_arrow_button";
269                 graphic ACTIVE "right_arrow_button_pressed";
270                 align 0.5 0.5;
271                 fill 0.0 0.0;
272         };
273 };
274
275 style "button-arrow_left"
276 {
277         part
278         {
279                 graphic NORMAL "left_arrow_button";
280                 graphic ACTIVE "left_arrow_button_pressed";
281                 align 0.5 0.5;
282                 fill 0.0 0.0;
283         };
284 };
285
286 style "button-red_cross"
287 {
288         part
289         {
290                 graphic NORMAL "red_cross_button";
291                 graphic ACTIVE "red_cross_button_pressed";
292                 align 0.5 0.5;
293                 fill 0.0 0.0;
294         };
295 };
296
297 graphic "yellow_lamp"
298 {
299         texture "gui.png";
300         slice 28 105 10 10;
301 };
302
303 graphic "yellow_lamp_lit"
304 {
305         texture "gui.png";
306         slice 28 117 10 10;
307 };
308
309 graphic "green_lamp"
310 {
311         texture "gui.png";
312         slice 40 105 10 10;
313 };
314
315 graphic "green_lamp_lit"
316 {
317         texture "gui.png";
318         slice 40 117 10 10;
319 };
320
321 graphic "red_lamp"
322 {
323         texture "gui.png";
324         slice 52 105 10 10;
325 };
326
327 graphic "red_lamp_lit"
328 {
329         texture "gui.png";
330         slice 52 116 10 10;
331 };
332
333 style "indicator"
334 {
335         part
336         {
337                 graphic NORMAL "yellow_lamp";
338                 graphic ACTIVE "yellow_lamp_lit";
339                 align 0.5 0.5;
340                 fill 0.0 0.0;
341         };
342 };
343
344 style "indicator-green"
345 {
346         part
347         {
348                 graphic NORMAL "green_lamp";
349                 graphic ACTIVE "green_lamp_lit";
350                 align 0.5 0.5;
351                 fill 0.0 0.0;
352         };
353 };
354
355 style "indicator-red"
356 {
357         part
358         {
359                 graphic NORMAL "red_lamp";
360                 graphic ACTIVE "red_lamp_lit";
361                 align 0.5 0.5;
362                 fill 0.0 0.0;
363         };
364 };
365
366 graphic "raised_grey_bg"
367 {
368         texture "gui.png";
369         slice 2 74 24 16;
370         border { horizontal 4; vertical 4; };
371 };
372
373 style "panel"
374 {
375         part
376         {
377                 graphic NORMAL "raised_grey_bg";
378         };
379         part "children";
380 };
381
382 style "panel-group"
383 {
384         part "children";
385 };
386
387 graphic "sunken_black_bg"
388 {
389         texture "gui.png";
390         slice 2 110 24 16;
391         border { horizontal 4; vertical 4; };
392 };
393
394 style "label-digital"
395 {
396         font "digitalreadout-16.font";
397         font_color 0.3 1 0.3;
398
399         part
400         {
401                 graphic NORMAL "sunken_black_bg";
402         };
403
404         part "text"
405         {
406                 fill 0.0 0.0;
407                 align 0.5 0.5;
408                 margin { horizontal 4; top 2; bottom 1; };
409         };
410 };
411
412 style "label-digital_borderless"
413 {
414         font "digitalreadout-16.font";
415         font_color 0.3 1 0.3;
416
417         part "text"
418         {
419                 fill 0.0 0.0;
420                 align 0.0 0.5;
421         };
422 };
423
424 style "panel-digital_background"
425 {
426         part
427         {
428                 graphic NORMAL "sunken_black_bg";
429         };
430
431         part "children";
432 };
433
434 graphic "sunken_white_bg"
435 {
436         texture "gui.png";
437         slice 2 92 24 16;
438         border { horizontal 4; vertical 4; };
439 };
440
441 graphic "cursor"
442 {
443         texture "gui.png";
444         slice 40 81 2 10;
445 };
446
447 style "entry"
448 {
449         font_color 0 0 0;
450
451         part
452         {
453                 graphic NORMAL "sunken_white_bg";
454         };
455
456         part "text"
457         {
458                 align 0.0 0.5;
459                 fill 0.0 0.0;
460                 margin { horizontal 3; vertical 2; };
461         };
462
463         part "cursor"
464         {
465                 graphic FOCUS "cursor";
466                 align 0.0 0.5;
467                 fill 0.0 0.0;
468                 size 2 12;
469                 margin { left 3; right 3; };
470         };
471 };
472
473 style "entry-multiline"
474 {
475         font_color 0 0 0;
476
477         part
478         {
479                 graphic NORMAL "sunken_white_bg";
480         };
481
482         part "text"
483         {
484                 align 0.0 1.0;
485                 fill 0.0 0.0;
486                 margin { vertical 2; right 13; left 3; };
487         };
488
489         part "cursor"
490         {
491                 graphic FOCUS "cursor";
492                 size 2 12;
493         };
494
495         part "slider"
496         {
497                 align 1.0 0.0;
498                 fill 0.0 1.0;
499                 size 10 0;
500                 margin { vertical 3; right 2; };
501         };
502 };
503
504 graphic "selection"
505 {
506         texture "gui.png";
507         slice 44 81 20 10;
508         border { horizontal 4; vertical 4; };
509 };
510
511 style "list"
512 {
513         part
514         {
515                 graphic NORMAL "sunken_white_bg";
516         };
517
518         part "items"
519         {
520                 margin { vertical 2; right 13; left 2; };
521         };
522
523         part "slider"
524         {
525                 align 1.0 0.0;
526                 fill 0.0 1.0;
527                 size 10 0;
528                 margin { vertical 3; right 2; };
529         };
530 };
531
532 style "listitem"
533 {
534         part
535         {
536                 graphic ACTIVE "selection";
537                 fill 1.0 1.0;
538         };
539
540         part "children"
541         {
542                 margin { vertical 1; horizontal 2; };
543         };
544 };
545
546 style "dropdown"
547 {
548         font_color 0.0 0.0 0.0;
549
550         part
551         {
552                 graphic NORMAL "sunken_white_bg";
553                 margin { right 14; };
554         };
555
556         part
557         {
558                 graphic NORMAL "down_arrow_button";
559                 graphic ACTIVE "down_arrow_button_pressed";
560                 align 1.0 0.5;
561                 fill 0.0 0.0;
562         };
563
564         part "text"
565         {
566                 align 0.0 0.5;
567                 fill 0.0 0.0;
568                 margin { vertical 2; left 3; right 17; };
569         };
570
571         part "list";
572 };
573
574 graphic "switch_up"
575 {
576         texture "gui.png";
577         slice 48 42 20 21;
578         shadow { top 0; right 2; bottom 3; left 0; };
579 };
580
581 graphic "switch_down"
582 {
583         texture "gui.png";
584         slice 48 20 20 21;
585         shadow { top 0; right 2; bottom 3; left 0; };
586 };
587
588 style "toggle"
589 {
590         font_color 0.0 0.0 0.0;
591
592         part "text"
593         {
594                 align 0.5 1.0;
595                 fill 0.0 0.0;
596                 margin { bottom 10; };
597         };
598
599         part
600         {
601                 align 0.5 0.0;
602                 fill 0.0 0.0;
603                 graphic NORMAL "switch_down";
604                 graphic ACTIVE "switch_up";
605         };
606 };
607
608 graphic "horizontal_slot"
609 {
610         texture "gui.png";
611         slice 32 97 12 2;
612         border { horizontal 1; };
613 };
614
615 graphic "horizontal_knob"
616 {
617         texture "gui.png";
618         slice 70 51 32 13;
619         shadow { top 0; right 2; bottom 3; left 0; };
620 };
621
622 style "hslider"
623 {
624         part
625         {
626                 graphic NORMAL "horizontal_slot";
627                 align 0.5 0.5;
628                 fill 1.0 0.0;
629                 margin { horizontal 4; };
630         };
631
632         part "slider"
633         {
634                 graphic NORMAL "horizontal_knob";
635                 align 0.0 0.5;
636                 fill 0.0 0.0;
637         };
638 };
639
640 graphic "vertical_slot"
641 {
642         texture "gui.png";
643         slice 32 75 2 12;
644         border { vertical 1; };
645 };
646
647 graphic "vertical_knob"
648 {
649         texture "gui.png";
650         slice 70 17 12 33;
651         shadow { top 0; right 2; bottom 3; left 0; };
652 };
653
654 style "vslider"
655 {
656         part
657         {
658                 graphic NORMAL "vertical_slot";
659                 align 0.5 0.5;
660                 fill 0.0 1.0;
661                 margin { vertical 4; };
662         };
663
664         part "slider"
665         {
666                 graphic NORMAL "vertical_knob";
667                 fill 0.0 0.0;
668                 align 0.0 1.0;
669         };
670 };
671
672 style "draghandle";
673
674 graphic "pointer_down"
675 {
676         texture "gui.png";
677         slice 98 36 13 14;
678         shadow { right 1; bottom 2; };
679 };
680
681 graphic "pointer_up"
682 {
683         texture "gui.png";
684         slice 83 36 13 14;
685         shadow { right 1; bottom 2; };
686 };
687
688 graphic "pointer_left"
689 {
690         texture "gui.png";
691         slice 83 21 13 14;
692         shadow { right 1; bottom 2; };
693 };
694
695 graphic "pointer_right"
696 {
697         texture "gui.png";
698         slice 98 21 13 14;
699         shadow { right 1; bottom 2; };
700 };
701
702 style "toggle-pointer_left"
703 {
704         font_color 0.0 0.0 0.0;
705
706         part "text"
707         {
708                 align 0.0 0.5;
709                 fill 0.0 0.0;
710                 margin { vertical 2; right 4; left 2; };
711         };
712
713         part
714         {
715                 graphic NORMAL "vertical_slot";
716                 align 1.0 0.0;
717                 fill 0.0 1.0;
718         };
719
720         part
721         {
722                 graphic ACTIVE "pointer_left";
723                 align 1.0 0.5;
724                 fill 0.0 0.0;
725         };
726 };
727
728 graphic "lever_down"
729 {
730         texture "gui.png";
731         slice 103 52 20 22;
732         shadow { right 3; bottom 4; };
733 };
734
735 graphic "lever_up"
736 {
737         texture "gui.png";
738         slice 103 76 20 22;
739         shadow { right 3; bottom 4; };
740 };
741
742 style "toggle-lever"
743 {
744         font_color 0.0 0.0 0.0;
745
746         part
747         {
748                 align 0.5 0.5;
749                 fill 0.0 0.0;
750                 graphic NORMAL "lever_down";
751                 graphic ACTIVE "lever_up";
752         };
753 };
754
755 style "clock"
756 {
757         part "hourhand";
758         part "minutehand";
759 };