Handle broadcast_playlist_loaded.
[euphoria.git] / data / themes / streamline / streamline_small_parts.edc
1 /** Minimized functionality 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                         part {
240                                 name, "previous_text";
241                                 type, TEXT;
242                                 mouse_events, 0;                /* Does part accept mouse events? */
243                                 description {
244                                         state, "default" 0.0;
245
246                                         rel1 {
247                                                 relative, 0.0 0.0;
248                                                 offset, 0 0;
249                                                 to, "previous_button";
250                                         }
251                                         rel2 {
252                                                 relative, 1.0 1.0;
253                                                 offset, -1 -1;
254                                                 to, "previous_button";
255                                         }
256
257
258                                         color, 255 255 255 255;  /* Color of text */
259                                         color2, 0 0 255 255;    /* Does nothing for SOFT_SHADOW */
260                                         color3, 0 0 0 32;      /* Color of shadow */
261
262                                         text {
263                                                 text, "Back";       /* Text String */
264                                                 font, "Vera";   /* Only font Vera works!  Use other and segv */
265                                                 size, 6;       /* Font Size */
266                                                 align,   0.5 0.5;       /* Text alignment based on rel1/rel2 */
267                                         }
268                                 }
269                         }
270                         /***** stop previous button *****/
271                         /***** start play button *****/
272                         part {
273                                 name, "play_button";
274                                 mouse_events, 1;
275                                 type, IMAGE;
276                                 description {
277                                         state, "default" 0.0;
278                                         rel1 {
279                                                 relative, 0.0 0.0;
280                                                 offset,  35 37;
281                                         }
282                                         rel2 {
283                                                 relative, 0.0 1.0;
284                                                 offset, 60 -5;
285                                         }
286                                         image {
287                                                 normal, "button-small-normal.png";
288                                         }
289                                 }
290                                 description {
291                                         state, "clicked" 0.0;
292                                         rel1 {
293                                                 relative, 0.0 0.0;
294                                                 offset, 35 37;
295                                         }
296                                         rel2 {
297                                                 relative, 0.0 1.0;
298                                                 offset, 60 -5;
299                                         }
300                                         image {
301                                                 normal, "button-small-clicked.png";
302                                         }
303                                 }
304                         }
305                         part {
306                                 name, "stop_text";
307                                 type, TEXT;
308                                 mouse_events, 0;                /* Does part accept mouse events? */
309                                 description {
310                                         state, "default" 0.0;
311
312                                         rel1 {
313                                                 relative, 0.0 0.0;
314                                                 offset, 0 0;
315                                                 to, "play_button";
316                                         }
317                                         rel2 {
318                                                 relative, 1.0 1.0;
319                                                 offset, -1 -1;
320                                                 to, "play_button";
321                                         }
322
323
324                                         color, 255 255 255 255;  /* Color of text */
325                                         color2, 0 0 255 255;    /* Does nothing for SOFT_SHADOW */
326                                         color3, 0 0 0 32;      /* Color of shadow */
327
328                                         text {
329                                                 text, "Play";       /* Text String */
330                                                 font, "Vera";   /* Only font Vera works!  Use other and segv */
331                                                 size, 6;       /* Font Size */
332                                                 align,   0.5 0.5;       /* Text alignment based on rel1/rel2 */
333                                         }
334                                 }
335                         }
336                         /***** stop play button  *****/
337                         /***** start pause button *****/
338                         part {
339                                 name, "pause_button";
340                                 mouse_events, 1;
341                                 type, IMAGE;
342                                 description {
343                                         state, "default" 0.0;
344                                         rel1 {
345                                                 relative, 0.0 0.0;
346                                                 offset,  65 37;
347                                         }
348                                         rel2 {
349                                                 relative, 0.0 1.0;
350                                                 offset, 90 -5;
351                                         }
352                                         image {
353                                                 normal, "button-small-normal.png";
354                                         }
355                                 }
356                                 description {
357                                         state, "clicked" 0.0;
358                                         rel1 {
359                                                 relative, 0.0 0.0;
360                                                 offset, 65 37;
361                                         }
362                                         rel2 {
363                                                 relative, 0.0 1.0;
364                                                 offset, 90 -5;
365                                         }
366                                         image {
367                                                 normal, "button-small-clicked.png";
368                                         }
369                                 }
370                         }
371                         part {
372                                 name, "pause_text";
373                                 type, TEXT;
374                                 mouse_events, 0;                /* Does part accept mouse events? */
375                                 description {
376                                         state, "default" 0.0;
377
378                                         rel1 {
379                                                 relative, 0.0 0.0;
380                                                 offset, 0 0;
381                                                 to, "pause_button";
382                                         }
383                                         rel2 {
384                                                 relative, 1.0 1.0;
385                                                 offset, -1 -1;
386                                                 to, "pause_button";
387                                         }
388
389
390                                         color, 255 255 255 255;  /* Color of text */
391                                         color2, 0 0 255 255;    /* Does nothing for SOFT_SHADOW */
392                                         color3, 0 0 0 32;      /* Color of shadow */
393
394                                         text {
395                                                 text, "Stop";       /* Text String */
396                                                 font, "Vera";   /* Only font Vera works!  Use other and segv */
397                                                 size, 6;       /* Font Size */
398                                                 align,   0.5 0.5;       /* Text alignment based on rel1/rel2 */
399                                         }
400                                 }
401                         }
402                         /***** stop next button *****/
403                         /***** start next button *****/
404                         part {
405                                 name, "next_button";
406                                 mouse_events, 1;
407                                 type, IMAGE;
408                                 description {
409                                         state, "default" 0.0;
410                                         rel1 {
411                                                 relative, 0.0 0.0;
412                                                 offset,  95 37;
413                                         }
414                                         rel2 {
415                                                 relative, 0.0 1.0;
416                                                 offset, 120 -5;
417                                         }
418                                         image {
419                                                 normal, "button-small-normal.png";
420                                         }
421                                 }
422                                 description {
423                                         state, "clicked" 0.0;
424                                         rel1 {
425                                                 relative, 0.0 0.0;
426                                                 offset, 95 37;
427                                         }
428                                         rel2 {
429                                                 relative, 0.0 1.0;
430                                                 offset, 120 -5;
431                                         }
432                                         image {
433                                                 normal, "button-small-clicked.png";
434                                         }
435                                 }
436                         }
437                         part {
438                                 name, "next_text";
439                                 type, TEXT;
440                                 mouse_events, 0;                /* Does part accept mouse events? */
441                                 description {
442                                         state, "default" 0.0;
443
444                                         rel1 {
445                                                 relative, 0.0 0.0;
446                                                 offset, 0 0;
447                                                 to, "next_button";
448                                         }
449                                         rel2 {
450                                                 relative, 1.0 1.0;
451                                                 offset, -1 -1;
452                                                 to, "next_button";
453                                         }
454
455
456                                         color, 255 255 255 255;  /* Color of text */
457                                         color2, 0 0 255 255;    /* Does nothing for SOFT_SHADOW */
458                                         color3, 0 0 0 32;      /* Color of shadow */
459
460                                         text {
461                                                 text, "Next";       /* Text String */
462                                                 font, "Vera";   /* Only font Vera works!  Use other and segv */
463                                                 size, 6;       /* Font Size */
464                                                 align,   0.5 0.5;       /* Text alignment based on rel1/rel2 */
465                                         }
466                                 }
467                         }
468                         /***** stop next button *****/
469                         /***** start quit button *****/
470                         part {
471                                 name, "quit_button";
472                                 mouse_events, 1;
473                                 type, IMAGE;
474                                 description {
475                                         state, "default" 0.0;
476                                         rel1 {
477                                                 relative, 0.0 0.0;
478                                                 offset,  125 37;
479                                         }
480                                         rel2 {
481                                                 relative, 0.0 1.0;
482                                                 offset, 150 -5;
483                                         }
484                                         image {
485                                                 normal, "button-small-normal.png";
486                                         }
487                                 }
488                                 description {
489                                         state, "clicked" 0.0;
490                                         rel1 {
491                                                 relative, 0.0 0.0;
492                                                 offset, 125 37;
493                                         }
494                                         rel2 {
495                                                 relative, 0.0 1.0;
496                                                 offset, 150 -5;
497                                         }
498                                         image {
499                                                 normal, "button-small-clicked.png";
500                                         }
501                                 }
502                         }
503                         part {
504                                 name, "quit_text";
505                                 type, TEXT;
506                                 mouse_events, 0;                /* Does part accept mouse events? */
507                                 description {
508                                         state, "default" 0.0;
509
510                                         rel1 {
511                                                 relative, 0.0 0.0;
512                                                 offset, 0 0;
513                                                 to, "quit_button";
514                                         }
515                                         rel2 {
516                                                 relative, 1.0 1.0;
517                                                 offset, -1 -1;
518                                                 to, "quit_button";
519                                         }
520
521
522                                         color, 255 255 255 255;  /* Color of text */
523                                         color2, 0 0 255 255;    /* Does nothing for SOFT_SHADOW */
524                                         color3, 0 0 0 32;      /* Color of shadow */
525
526                                         text {
527                                                 text, "Quit";       /* Text String */
528                                                 font, "Vera";   /* Only font Vera works!  Use other and segv */
529                                                 size, 6;       /* Font Size */
530                                                 align,   0.5 0.5;       /* Text alignment based on rel1/rel2 */
531                                         }
532                                 }
533                         }
534                         /***** stop exit button *****/
535                         /********** Volume  Controls ***************************************/
536                         part {
537                                 name, "vol_label";
538                                 mouse_events, 0;
539                                 description {
540                                         state,  "default" 0.0;
541                                         min, 21 20;
542                                         max, 21 20;
543
544                                         rel1 {
545                                                 relative, 1.0 1.0;
546                                                 offset, -115 -50;
547                                         }
548                                         rel2 {
549                                                 relative, 1.0 1.0;
550                                                 offset, 0 24;
551                                         }
552
553                                         image {
554                                                 normal, "vol-label.png";
555                                         }
556                                 }
557                         }
558
559                         part {
560                                 name, "vol_label_text";
561                                 type, TEXT;
562                                 mouse_events, 0;                /* Does part accept mouse events? */
563                                 description {
564                                         state, "default" 0.0;
565
566                                         rel1 {
567                                                 relative, 0.0 0.0;
568                                                 offset, 0 0;
569                                                 to, "vol_label";
570                                         }
571                                         rel2 {
572                                                 relative, 1.0 1.0;
573                                                 offset, -1 -1;
574                                                 to, "vol_label";
575                                         }
576
577
578                                         color, 255 255 255 255;  /* Color of text */
579                                         color2, 0 0 255 255;    /* Does nothing for SOFT_SHADOW */
580                                         color3, 0 0 0 32;        /* Color of shadow */
581
582                                         text {
583                                                 text, "VOL";       /* Text String */
584                                                 font, "Vera";   /* Only font Vera works!  Use other and segv */
585                                                 size, 5;        /* Font Size */
586                                                 align,   0.5 0.6;       /* Text alignment based on rel1/rel2 */
587                                         }
588                                 }
589                         }
590
591                         part {
592                                 name, "vol_display";
593                                 mouse_events, 0;
594                                 description {
595                                         state,  "default" 0.0;
596                                         min, 23 20;
597                                         max, 23 20;
598
599                                         rel1 {
600                                                 relative, 0.0 0.0;
601                                                 offset, -23 0;
602                                                 to, "vol_label";
603                                         }
604                                         rel2 {
605                                                 relative, 0.0 1.0;
606                                                 offset, 0 0;
607                                                 to, "vol_label";
608                                         }
609
610                                         image {
611                                                 normal, "vol-display.png";
612                                         }
613                                 }
614                         }
615                         part {
616                                 name, "vol_display_text";
617                                 type,   TEXT;
618                                 //clip_to, "vol_display";
619                                 description {
620                                         state,  "default" 0.0;
621
622                                         /* Use the relative size of the LCD itself, then position with align */
623                                         rel1 {
624                                                 relative, 0.0 0.0;
625                                                 offset, 0 0;
626                                                 to, "vol_display";
627                                         }
628
629                                         rel2 {
630                                                 relative, 1.0 1.0;
631                                                 offset, -1 -1;
632                                                 to, "vol_display";
633                                         }
634
635
636                                         color,  181 247 255 255;
637                                         text {
638                                                 text, "00";       /* Text String */
639                                                 font, "Vera";   /* Only font Vera works!  Use other and segv */
640                                                 size, 8;       /* Font Size */
641                                                 align, 0.5 0.6;       /* Text alignment based on rel1/rel2 */
642                                         }
643                                 }
644                         }
645
646                         part {
647                                 name, "vol_incr_button";
648                                 mouse_events, 1;
649                                 description {
650                                         state,  "default" 0.0;
651                                         min, 25 20;
652                                         max, 25 20;
653
654                                         rel1 {
655                                                 relative, 0.0 0.0;
656                                                 offset, -25 0;
657                                                 to, "vol_display";
658                                         }
659                                         rel2 {
660                                                 relative, 0.0 1.0;
661                                                 offset, 0 0;
662                                                 to, "vol_display";
663                                         }
664
665                                         image {
666                                                 normal, "vol-plus.png";
667                                         }
668                                 }
669                                 description {
670                                         state,  "clicked" 0.0;
671                                         min, 25 20;
672                                         max, 25 20;
673
674                                         rel1 {
675                                                 relative, 0.0 0.0;
676                                                 offset, -25 0;
677                                                 to, "vol_display";
678                                         }
679                                         rel2 {
680                                                 relative, 0.0 1.0;
681                                                 offset, 0 0;
682                                                 to, "vol_display";
683                                         }
684
685                                         image {
686                                                 normal, "vol-plus-clicked.png";
687                                         }
688                                 }
689                         }                        
690
691                         part {
692                                 name, "vol_decr_button";
693                                 mouse_events, 1;
694                                 description {
695                                         state,  "default" 0.0;
696                                         min, 29 20;
697                                         max, 29 20;
698
699                                         rel1 {
700                                                 relative, 0.0 0.0;
701                                                 offset, -29 0;
702                                                 to, "vol_incr_button";
703                                         }
704                                         rel2 {
705                                                 relative, 0.0 1.0;
706                                                 offset, 0 0;
707                                                 to, "vol_incr_button";
708                                         }
709
710                                         image {
711                                                 normal, "vol-minus.png";
712                                         }
713                                 }
714                                 description {
715                                         state,  "clicked" 0.0;
716                                         min, 29 20;
717                                         max, 29 20;
718
719                                         rel1 {
720                                                 relative, 0.0 0.0;
721                                                 offset, -29 0;
722                                                 to, "vol_incr_button";
723                                         }
724                                         rel2 {
725                                                 relative, 0.0 1.0;
726                                                 offset, 0 0;
727                                                 to, "vol_incr_button";
728                                         }
729
730                                         image {
731                                                 normal, "vol-minus-clicked.png";
732                                         }
733                                 }
734                         }