Initial commit.
[euphoria.git] / data / themes / default / default_small_parts.edc
1 /*** Minimized Interface for Default theme - by digitalfallout ***/
2                         part {
3                                 name, "background";
4                                 mouse_events, 1;
5                                 repeat_events, 1;
6                                 type, IMAGE;
7
8                                 description {
9                                         state, "default" 0.0;
10                                         rel1 {
11                                                 relative, 0.0 0.0;
12                                                 offset, 0 0;
13                                         }
14                                         rel2 {
15                                                 relative, 1.0 1.0;
16                                                 offset, -1 -1;
17                                         }
18                                         image {
19                                                 normal, "border-scale.png";
20                                                 border, 6 6 6 6;
21                                         }
22                                         fill {
23                                                 smooth, 0;
24                                         }
25                                 }
26                         }
27                         part {
28                                 name, "title";
29                                 type,   TEXT;
30                                 mouse_events, 1;
31                                 repeat_events, 1;
32                                 description {
33                                         state,  "default" 0.0;
34
35                                         rel1 {
36                                                 relative, 0.0 0.0;
37                                                 offset, 0 0;
38                                         }
39                                         rel2 {
40                                                 relative, 1.0 1.0;
41                                                 offset, -4 -4;
42                                         }
43                                         color,  255 255 255 255;
44                                         text {
45                                                 text, "Euphoria";
46                                                 font, "Vera";   /* Only font Vera works!  Use other and segv */
47                                                 size, 6;       /* Font Size */
48                                                 align,   1.0 1.0;       /* Text alignment based on rel1/rel2 */
49                                         }
50                                 }
51                         }
52                         /***** START LCD AREA *****/
53                         /* LCD Backdrop Image */
54                         part {
55                                 name, "lcd_backdrop";
56                                 type, IMAGE;
57                                 mouse_events, 0;
58                                 description {
59                                         state,  "default" 0.0;
60
61                                         /* Part should fill from the far left, 20 pixels down */
62                                         rel1 {
63                                                 relative, 0.0 0.0;
64                                                 offset, 4 4;
65                                         }
66
67                                         /* all the way to the far right, 40 pixels north of the bottom right corner */
68                                         rel2 {
69                                                 relative, 1.0 0.0;
70                                                 offset, -6 35;
71                                         }
72
73                                         image {
74                                                 normal, "lcd_area.png";
75                                                 border, 5 5 5 5;
76                                         }
77
78                                         fill {
79                                                 smooth, 0;
80                                         }
81                                 }
82                         }
83                         /* LCD Clipping Area - Invisible Rect */
84                         part {
85                                 name, "lcd_clip";
86                                 type, RECT;
87                                 mouse_events, 0;
88                                 description {
89                                         state,  "default" 0.0;
90
91                                         rel1 {
92                                                 relative, 0.0 0.0;
93                                                 offset, 5 5;
94                                                 to, "lcd_backdrop";
95                                         }
96
97                                         rel2 {
98                                                 relative, 1.0 1.0;
99                                                 offset, -5 -5;
100                                                 to, "lcd_backdrop";
101                                         }
102
103                                 }
104                         }
105
106                         part {
107                                 name, "artist_name";
108                                 type,   TEXT;
109                                 mouse_events, 0;
110                                 clip_to, "lcd_clip";
111                                 description {
112                                         state,  "default" 0.0;
113
114                                         /* Use the relative size of the LCD itself, then position with align */
115                                         rel1 {
116                                                 relative, 0.0 0.0;
117                                                 offset, 8 0;
118                                                 to, "lcd_backdrop";
119                                         }
120
121                                         rel2 {
122                                                 relative, 1.0 1.0;
123                                                 offset, -1 -1;
124                                                 to, "lcd_backdrop";
125                                         }
126
127
128                                         color,  181 247 255 255;
129                                         text {
130                                                 text, "Artist Name";       /* Text String */
131                                                 font, "redensek";   /* Only font Vera works!  Use other and segv */
132                                                 size, 12;       /* Font Size */
133                                                 align, 0.0 0.1;       /* Text alignment based on rel1/rel2 */
134                                         }
135                                 }
136                         }
137
138                         part {
139                                 name, "song_name";
140                                 type,   TEXT;
141                                 mouse_events, 0;
142                                 clip_to, "lcd_clip";
143                                 description {
144                                         state,  "default" 0.0;
145
146                                         /* Use the relative size of the LCD itself, then position with align */
147                                         rel1 {
148                                                 relative, 0.0 0.0;
149                                                 offset, 8 5;
150                                                 to, "lcd_backdrop";
151                                         }
152
153                                         rel2 {
154                                                 relative, 1.0 1.0;
155                                                 offset, -1 -1;
156                                                 to, "lcd_backdrop";
157                                         }
158
159
160                                         color,  181 247 255 255;
161                                         text {
162                                                 text, "Song Name";       /* Text String */
163                                                 font, "redensek";   /* Only font Vera works!  Use other and segv */
164                                                 size, 12;       /* Font Size */
165                                                 align, 0.0 0.5;       /* Text alignment based on rel1/rel2 */
166                                         }
167                                 }
168                         }
169                         /* Time Counter  */
170                         part {
171                                 name, "time_text";
172                                 type,   TEXT;
173                                 clip_to, "lcd_clip";
174                                 mouse_events, 1;
175                                 description {
176                                         state,  "default" 0.0;
177
178                                         /* Use the relative size of the LCD itself, then position with align */
179                                         rel1 {
180                                                 relative, 0.0 0.0;
181                                                 offset, 0 0;
182                                                 to, "lcd_backdrop";
183                                         }
184
185                                         rel2 {
186                                                 relative, 1.0 1.0;
187                                                 offset, -9 -1;
188                                                 to, "lcd_backdrop";
189                                         }
190
191
192                                         color,  181 247 255 255;
193                                         text {
194                                                 text, "0:00";       /* Text String */
195                                                 font, "micro";   /* Only font Vera works!  Use other and segv */
196                                                 size, 32;       /* Font Size */
197                                                 align, 1.0 1.0;       /* Text alignment based on rel1/rel2 */
198                                         }
199                                 }
200                         }
201                         /***** END LCD AREA *****/
202
203                         /***** START BUTTON AREA *****/
204
205                         /***** start previous button *****/
206                         part {
207                                 name, "previous_button";
208                                 mouse_events, 1;
209                                 type, IMAGE;
210                                 description {
211                                         state, "default" 0.0;
212                                         rel1 {
213                                                 relative, 0.0 0.0;
214                                                 offset,  5 37;
215                                         }
216                                         rel2 {
217                                                 relative, 0.0 1.0;
218                                                 offset, 30 -5;
219                                         }
220                                         image {
221                                                 normal, "button-small-normal.png";
222                                         }
223                                 }
224                                 description {
225                                         state, "clicked" 0.0;
226                                         rel1 {
227                                                 relative, 0.0 0.0;
228                                                 offset, 5 37;
229                                         }
230                                         rel2 {
231                                                 relative, 0.0 1.0;
232                                                 offset, 30 -5;
233                                         }
234                                         image {
235                                                 normal, "button-small-clicked.png";
236                                         }
237                                 }
238                         }
239
240                         part {
241                                 name, "previous_text";
242                                 type, TEXT;
243                                 mouse_events, 0;                /* Does part accept mouse events? */
244                                 description {
245                                         state, "default" 0.0;
246
247                                         rel1 {
248                                                 relative, 0.0 0.0;
249                                                 offset, 0 0;
250                                                 to, "previous_button";
251                                         }
252                                         rel2 {
253                                                 relative, 1.0 1.0;
254                                                 offset, -1 -1;
255                                                 to, "previous_button";
256                                         }
257
258
259                                         color, 255 255 255 255;  /* Color of text */
260                                         color2, 0 0 255 255;    /* Does nothing for SOFT_SHADOW */
261                                         color3, 0 0 0 32;      /* Color of shadow */
262
263                                         text {
264                                                 text, "Back";       /* Text String */
265                                                 font, "Vera";   /* Only font Vera works!  Use other and segv */
266                                                 size, 6;       /* Font Size */
267                                                 align,   0.5 0.5;       /* Text alignment based on rel1/rel2 */
268                                         }
269                                 }
270                         }
271                         /***** stop previous button *****/
272                         /***** start play button *****/
273                         part {
274                                 name, "play_button";
275                                 mouse_events, 1;
276                                 type, IMAGE;
277                                 description {
278                                         state, "default" 0.0;
279                                         rel1 {
280                                                 relative, 0.0 0.0;
281                                                 offset,  35 37;
282                                         }
283                                         rel2 {
284                                                 relative, 0.0 1.0;
285                                                 offset, 60 -5;
286                                         }
287                                         image {
288                                                 normal, "button-small-normal.png";
289                                         }
290                                 }
291                                 description {
292                                         state, "clicked" 0.0;
293                                         rel1 {
294                                                 relative, 0.0 0.0;
295                                                 offset, 35 37;
296                                         }
297                                         rel2 {
298                                                 relative, 0.0 1.0;
299                                                 offset, 60 -5;
300                                         }
301                                         image {
302                                                 normal, "button-small-clicked.png";
303                                         }
304                                 }
305                         }
306
307                         part {
308                                 name, "stop_text";
309                                 type, TEXT;
310                                 mouse_events, 0;                /* Does part accept mouse events? */
311                                 description {
312                                         state, "default" 0.0;
313
314                                         rel1 {
315                                                 relative, 0.0 0.0;
316                                                 offset, 0 0;
317                                                 to, "play_button";
318                                         }
319                                         rel2 {
320                                                 relative, 1.0 1.0;
321                                                 offset, -1 -1;
322                                                 to, "play_button";
323                                         }
324
325
326                                         color, 255 255 255 255;  /* Color of text */
327                                         color2, 0 0 255 255;    /* Does nothing for SOFT_SHADOW */
328                                         color3, 0 0 0 32;      /* Color of shadow */
329
330                                         text {
331                                                 text, "Play";       /* Text String */
332                                                 font, "Vera";   /* Only font Vera works!  Use other and segv */
333                                                 size, 6;       /* Font Size */
334                                                 align,   0.5 0.5;       /* Text alignment based on rel1/rel2 */
335                                         }
336                                 }
337                         }
338                         /***** stop play button  *****/
339                         /***** start pause button *****/
340                         part {
341                                 name, "pause_button";
342                                 mouse_events, 1;
343                                 type, IMAGE;
344                                 description {
345                                         state, "default" 0.0;
346                                         rel1 {
347                                                 relative, 0.0 0.0;
348                                                 offset,  65 37;
349                                         }
350                                         rel2 {
351                                                 relative, 0.0 1.0;
352                                                 offset, 90 -5;
353                                         }
354                                         image {
355                                                 normal, "button-small-normal.png";
356                                         }
357                                 }
358                                 description {
359                                         state, "clicked" 0.0;
360                                         rel1 {
361                                                 relative, 0.0 0.0;
362                                                 offset, 65 37;
363                                         }
364                                         rel2 {
365                                                 relative, 0.0 1.0;
366                                                 offset, 90 -5;
367                                         }
368                                         image {
369                                                 normal, "button-small-clicked.png";
370                                         }
371                                 }
372                         }
373
374                         part {
375                                 name, "pause_text";
376                                 type, TEXT;
377                                 mouse_events, 0;                /* Does part accept mouse events? */
378                                 description {
379                                         state, "default" 0.0;
380
381                                         rel1 {
382                                                 relative, 0.0 0.0;
383                                                 offset, 0 0;
384                                                 to, "pause_button";
385                                         }
386                                         rel2 {
387                                                 relative, 1.0 1.0;
388                                                 offset, -1 -1;
389                                                 to, "pause_button";
390                                         }
391
392
393                                         color, 255 255 255 255;  /* Color of text */
394                                         color2, 0 0 255 255;    /* Does nothing for SOFT_SHADOW */
395                                         color3, 0 0 0 32;      /* Color of shadow */
396
397                                         text {
398                                                 text, "Stop";       /* Text String */
399                                                 font, "Vera";   /* Only font Vera works!  Use other and segv */
400                                                 size, 6;       /* Font Size */
401                                                 align,   0.5 0.5;       /* Text alignment based on rel1/rel2 */
402                                         }
403                                 }
404                         }
405                         /***** stop next button *****/
406                         /***** start next button *****/
407                         part {
408                                 name, "next_button";
409                                 mouse_events, 1;
410                                 type, IMAGE;
411                                 description {
412                                         state, "default" 0.0;
413                                         rel1 {
414                                                 relative, 0.0 0.0;
415                                                 offset,  95 37;
416                                         }
417                                         rel2 {
418                                                 relative, 0.0 1.0;
419                                                 offset, 120 -5;
420                                         }
421                                         image {
422                                                 normal, "button-small-normal.png";
423                                         }
424                                 }
425                                 description {
426                                         state, "clicked" 0.0;
427                                         rel1 {
428                                                 relative, 0.0 0.0;
429                                                 offset, 95 37;
430                                         }
431                                         rel2 {
432                                                 relative, 0.0 1.0;
433                                                 offset, 120 -5;
434                                         }
435                                         image {
436                                                 normal, "button-small-clicked.png";
437                                         }
438                                 }
439                         }
440
441                         part {
442                                 name, "next_text";
443                                 type, TEXT;
444                                 mouse_events, 0;                /* Does part accept mouse events? */
445                                 description {
446                                         state, "default" 0.0;
447
448                                         rel1 {
449                                                 relative, 0.0 0.0;
450                                                 offset, 0 0;
451                                                 to, "next_button";
452                                         }
453                                         rel2 {
454                                                 relative, 1.0 1.0;
455                                                 offset, -1 -1;
456                                                 to, "next_button";
457                                         }
458
459
460                                         color, 255 255 255 255;  /* Color of text */
461                                         color2, 0 0 255 255;    /* Does nothing for SOFT_SHADOW */
462                                         color3, 0 0 0 32;      /* Color of shadow */
463
464                                         text {
465                                                 text, "Next";       /* Text String */
466                                                 font, "Vera";   /* Only font Vera works!  Use other and segv */
467                                                 size, 6;       /* Font Size */
468                                                 align,   0.5 0.5;       /* Text alignment based on rel1/rel2 */
469                                         }
470                                 }
471                         }
472                         /***** stop next button *****/
473                         /***** start quit button *****/
474                         part {
475                                 name, "quit_button";
476                                 mouse_events, 1;
477                                 type, IMAGE;
478                                 description {
479                                         state, "default" 0.0;
480                                         rel1 {
481                                                 relative, 0.0 0.0;
482                                                 offset,  125 37;
483                                         }
484                                         rel2 {
485                                                 relative, 0.0 1.0;
486                                                 offset, 150 -5;
487                                         }
488                                         image {
489                                                 normal, "button-small-normal.png";
490                                         }
491                                 }
492                                 description {
493                                         state, "clicked" 0.0;
494                                         rel1 {
495                                                 relative, 0.0 0.0;
496                                                 offset, 125 37;
497                                         }
498                                         rel2 {
499                                                 relative, 0.0 1.0;
500                                                 offset, 150 -5;
501                                         }
502                                         image {
503                                                 normal, "button-small-clicked.png";
504                                         }
505                                 }
506                         }
507
508                         part {
509                                 name, "quit_text";
510                                 type, TEXT;
511                                 mouse_events, 0;                /* Does part accept mouse events? */
512                                 description {
513                                         state, "default" 0.0;
514
515                                         rel1 {
516                                                 relative, 0.0 0.0;
517                                                 offset, 0 0;
518                                                 to, "quit_button";
519                                         }
520                                         rel2 {
521                                                 relative, 1.0 1.0;
522                                                 offset, -1 -1;
523                                                 to, "quit_button";
524                                         }
525
526
527                                         color, 255 255 255 255;  /* Color of text */
528                                         color2, 0 0 255 255;    /* Does nothing for SOFT_SHADOW */
529                                         color3, 0 0 0 32;      /* Color of shadow */
530
531                                         text {
532                                                 text, "Quit";       /* Text String */
533                                                 font, "Vera";   /* Only font Vera works!  Use other and segv */
534                                                 size, 6;       /* Font Size */
535                                                 align,   0.5 0.5;       /* Text alignment based on rel1/rel2 */
536                                         }
537                                 }
538                         }
539                         /***** stop exit button *****/
540                         /********** Volume  Controls ***************************************/
541                         part {
542                                 name, "vol_label";
543                                 mouse_events, 0;
544                                 description {
545                                         state,  "default" 0.0;
546                                         min, 21 20;
547                                         max, 21 20;
548
549                                         rel1 {
550                                                 relative, 1.0 1.0;
551                                                 offset, -115 -50;
552                                         }
553                                         rel2 {
554                                                 relative, 1.0 1.0;
555                                                 offset, 0 24;
556                                         }
557
558                                         image {
559                                                 normal, "vol-label.png";
560                                         }
561                                 }
562                         }
563
564                         part {
565                                 name, "vol_label_text";
566                                 type, TEXT;
567                                 mouse_events, 0;                /* Does part accept mouse events? */
568                                 description {
569                                         state, "default" 0.0;
570
571                                         rel1 {
572                                                 relative, 0.0 0.0;
573                                                 offset, 0 0;
574                                                 to, "vol_label";
575                                         }
576                                         rel2 {
577                                                 relative, 1.0 1.0;
578                                                 offset, -1 -1;
579                                                 to, "vol_label";
580                                         }
581
582
583                                         color, 255 255 255 255;  /* Color of text */
584                                         color2, 0 0 255 255;    /* Does nothing for SOFT_SHADOW */
585                                         color3, 0 0 0 32;        /* Color of shadow */
586
587                                         text {
588                                                 text, "VOL";       /* Text String */
589                                                 font, "Vera";   /* Only font Vera works!  Use other and segv */
590                                                 size, 5;        /* Font Size */
591                                                 align,   0.5 0.6;       /* Text alignment based on rel1/rel2 */
592                                         }
593                                 }
594                         }
595                         part {
596                                 name, "vol_display";
597                                 mouse_events, 0;
598                                 description {
599                                         state,  "default" 0.0;
600                                         min, 23 20;
601                                         max, 23 20;
602
603                                         rel1 {
604                                                 relative, 0.0 0.0;
605                                                 offset, -23 0;
606                                                 to, "vol_label";
607                                         }
608                                         rel2 {
609                                                 relative, 0.0 1.0;
610                                                 offset, 0 0;
611                                                 to, "vol_label";
612                                         }
613
614                                         image {
615                                                 normal, "vol-display.png";
616                                         }
617                                 }
618                         }
619
620                         part {
621                                 name, "vol_display_text";
622                                 type,   TEXT;
623                                 //clip_to, "vol_display";
624                                 description {
625                                         state,  "default" 0.0;
626
627                                         /* Use the relative size of the LCD itself, then position with align */
628                                         rel1 {
629                                                 relative, 0.0 0.0;
630                                                 offset, 0 0;
631                                                 to, "vol_display";
632                                         }
633
634                                         rel2 {
635                                                 relative, 1.0 1.0;
636                                                 offset, -1 -1;
637                                                 to, "vol_display";
638                                         }
639
640
641                                         color,  181 247 255 255;
642                                         text {
643                                                 text, "00";       /* Text String */
644                                                 font, "Vera";   /* Only font Vera works!  Use other and segv */
645                                                 size, 8;       /* Font Size */
646                                                 align, 0.5 0.6;       /* Text alignment based on rel1/rel2 */
647                                         }
648                                 }
649                         }
650
651
652                         part {
653                                 name, "vol_incr_button";
654                                 mouse_events, 1;
655                                 description {
656                                         state,  "default" 0.0;
657                                         min, 25 20;
658                                         max, 25 20;
659
660                                         rel1 {
661                                                 relative, 0.0 0.0;
662                                                 offset, -25 0;
663                                                 to, "vol_display";
664                                         }
665                                         rel2 {
666                                                 relative, 0.0 1.0;
667                                                 offset, 0 0;
668                                                 to, "vol_display";
669                                         }
670
671                                         image {
672                                                 normal, "vol-plus.png";
673                                         }
674                                 }
675                                 description {
676                                         state,  "clicked" 0.0;
677                                         min, 25 20;
678                                         max, 25 20;
679
680                                         rel1 {
681                                                 relative, 0.0 0.0;
682                                                 offset, -25 0;
683                                                 to, "vol_display";
684                                         }
685                                         rel2 {
686                                                 relative, 0.0 1.0;
687                                                 offset, 0 0;
688                                                 to, "vol_display";
689                                         }
690
691                                         image {
692                                                 normal, "vol-plus-clicked.png";
693                                         }
694                                 }
695                         }
696
697                         part {
698                                 name, "vol_decr_button";
699                                 mouse_events, 1;
700                                 description {
701                                         state,  "default" 0.0;
702                                         min, 29 20;
703                                         max, 29 20;
704
705                                         rel1 {
706                                                 relative, 0.0 0.0;
707                                                 offset, -29 0;
708                                                 to, "vol_incr_button";
709                                         }
710                                         rel2 {
711                                                 relative, 0.0 1.0;
712                                                 offset, 0 0;
713                                                 to, "vol_incr_button";
714                                         }
715
716                                         image {
717                                                 normal, "vol-minus.png";
718                                         }
719                                 }
720                                 description {
721                                         state,  "clicked" 0.0;
722                                         min, 29 20;
723                                         max, 29 20;
724
725                                         rel1 {
726                                                 relative, 0.0 0.0;
727                                                 offset, -29 0;
728                                                 to, "vol_incr_button";
729                                         }
730                                         rel2 {
731                                                 relative, 0.0 1.0;
732                                                 offset, 0 0;
733                                                 to, "vol_incr_button";
734                                         }
735
736                                         image {
737                                                 normal, "vol-minus-clicked.png";
738                                         }
739                                 }
740                         }
741
742 /************** EOF ********************/