Merge "[genlist] re-add item select & item update changes"
[framework/uifw/elementary.git] / data / themes / widgets / progressbar.edc
1 ///////////////////////////////////////////////////////////////////////////////
2 // FIXME: this doesn't look too hot. need to fix it up
3    group { name: "elm/progressbar/horizontal/default";
4       images {
5          image: "shelf_inset.png" COMP;
6          image: "bt_sm_base2.png" COMP;
7          image: "bt_sm_hilight.png" COMP;
8          image: "bt_sm_shine.png" COMP;
9       }
10       parts {
11          part { name: "elm.background.progressbar";
12             type: RECT;
13             mouse_events: 0;
14             description {
15                state: "default" 0.0;
16                rel1 {
17                   relative: 0.0 0.0;
18                   offset: 0 0;
19                }
20                rel2 {
21                   relative: 1.0 1.0;
22                }
23             }
24          }
25          part { name: "elm.swallow.bar";
26             mouse_events: 0;
27             type: SWALLOW;
28             description {
29                min: 48 28;
30                max: 99999 28;
31                state: "default" 0.0;
32                rel1 {
33                   to_x: "elm.text";
34                   to_y: "elm.background.progressbar";
35                   relative: 1.0 0.0;
36                }
37                rel2 {
38                   to: "elm.background.progressbar";
39                   relative: 1.0 1.0;
40                }
41             }
42          }
43          part { name: "elm.swallow.content";
44             type: SWALLOW;
45             description { state: "default" 0.0;
46                visible: 0;
47                align: 0.0 0.5;
48                rel1 {
49                   offset: 4 0;
50                   to_y: "elm.background.progressbar";
51                }
52                rel2 {
53                   offset: 3 -1;
54                   relative: 0.0 1.0;
55                   to_y: "elm.background.progressbar";
56                }
57             }
58             description { state: "visible" 0.0;
59                inherit: "default" 0.0;
60                visible: 1;
61                aspect: 1.0 1.0;
62                aspect_preference: VERTICAL;
63                rel2.offset: 4 -1;
64             }
65          }
66          part { name: "elm.text";
67             type: TEXT;
68             mouse_events: 0;
69             scale: 1;
70             description { state: "default" 0.0;
71                visible: 0;
72                fixed: 1 1;
73                align: 0.0 0.5;
74                rel1.to_x: "elm.swallow.content";
75                rel1.relative: 1.0 0.0;
76                rel1.offset: -1 4;
77                rel2.to_x: "elm.swallow.content";
78                rel2.relative: 1.0 1.0;
79                rel2.offset: -1 -5;
80                color: 0 0 0 255;
81                text {
82                   font: "Sans,Edje-Vera";
83                   size: 10;
84                   min: 0 0;
85                   align: 0.0 0.5;
86                }
87             }
88             description { state: "visible" 0.0;
89                inherit: "default" 0.0;
90                visible: 1;
91                text.min: 1 1;
92                rel1.offset: 0 4;
93                rel2.offset: 0 -5;
94             }
95          }
96
97          part { name: "background";
98             mouse_events: 0;
99             clip_to: "elm.background.progressbar";
100             description {
101                state: "default" 0.0;
102                rel1 {
103                   to: "elm.swallow.bar";
104                   relative: 0.0 0.0;
105                }
106                rel2 {
107                   to: "elm.swallow.bar";
108                   relative: 1.0 1.0;
109                   offset: -1 -1;
110                }
111                image {
112                   normal: "shelf_inset.png";
113                   border: 7 7 7 7;
114                }
115             }
116          }
117
118          part { name: "elm.text.status";
119             type: TEXT;
120             mouse_events: 0;
121             description { state: "default" 0.0;
122                fixed: 1 1;
123                visible: 1;
124                rel1 {
125                   to: "background";
126                   relative: 0.5 0.5;
127                }
128                rel2 {
129                   to: "background";
130                   relative: 0.5 0.5;
131                }
132                text {
133                   font: "Sans:style=Bold,Edje-Vera-Bold";
134                   size: 10;
135                   min: 1 1;
136                   align: 0.5 0.0;
137                }
138                color: 0 0 0 255;
139             }
140             description { state: "hidden" 0.0;
141                inherit: "default" 0.0;
142                visible: 0;
143                text.min: 0 0;
144             }
145          }
146
147          part { name: "elm.progress.progressbar";
148             mouse_events: 0;
149             clip_to: "elm.background.progressbar";
150             description {
151                state: "default" 0.0;
152                min: 14 28;
153                fixed: 1 1;
154                rel1 {
155                   to: "elm.swallow.bar";
156                   relative: 0.0 0.0;
157                }
158                rel2 {
159                   to_y: "elm.swallow.bar";
160                   to_x: "elm.cur.progressbar";
161                   offset: -1 -1;
162                }
163                image {
164                   normal: "bt_sm_base2.png";
165                   border: 6 6 6 6;
166                }
167             }
168             description {
169                state: "invert" 0.0;
170                inherit: "default" 0.0;
171                rel1 {
172                   to_y: "elm.swallow.bar";
173                   to_x: "elm.cur.progressbar";
174                }
175                rel2 {
176                   to: "elm.swallow.bar";
177                   relative: 1.0 1.0;
178                }
179             }
180             description {
181                state: "state_begin" 0.0;
182                inherit: "default" 0.0;
183                rel1 {
184                   to: "elm.swallow.bar";
185                   relative: 0.0 0.0;
186                }
187                rel2 {
188                   to: "elm.swallow.bar";
189                   relative: 0.1 1.0;
190                }
191             }
192             description {
193                state: "state_end" 0.0;
194                inherit: "default" 0.0;
195                rel1 {
196                   to: "elm.swallow.bar";
197                   relative: 0.9 0.0;
198                }
199                rel2 {
200                   to: "elm.swallow.bar";
201                   relative: 1.0 1.0;
202                }
203             }
204          }
205          part { name: "text-bar";
206             type: TEXT;
207             mouse_events: 0;
208             clip_to: "progress-rect";
209             effect: SOFT_SHADOW;
210             scale: 1;
211             description { state: "default" 0.0;
212                align: 0.0 0.0;
213                fixed: 1 1;
214                visible: 1;
215                rel1.to: "elm.text.status";
216                rel1.offset: -1 -1;
217                rel2.to: "elm.text.status";
218                text {
219                   text_source: "elm.text.status";
220                   font: "Sans:style=Bold,Edje-Vera-Bold";
221                   size: 10;
222                   min: 1 1;
223                   align: 0.0 0.0;
224                }
225                color: 224 224 224 255;
226                color3: 0 0 0 64;
227             }
228             description { state: "hidden" 0.0;
229                inherit: "default" 0.0;
230                visible: 0;
231                text.min: 0 0;
232             }
233          }
234
235          part { name: "over1";
236             mouse_events: 0;
237             description { state: "default" 0.0;
238                rel1.to: "elm.progress.progressbar";
239                rel2.to: "elm.progress.progressbar";
240                rel2.relative: 1.0 0.5;
241                image {
242                   normal: "bt_sm_hilight.png";
243                   border: 6 6 6 0;
244                }
245             }
246          }
247
248          part { name: "over2";
249             mouse_events: 1;
250             repeat_events: 1;
251             description { state: "default" 0.0;
252                rel1.to: "elm.progress.progressbar";
253                rel2.to: "elm.progress.progressbar";
254                image {
255                   normal: "bt_sm_shine.png";
256                   border: 6 6 6 0;
257                }
258             }
259          }
260
261          part { name: "elm.cur.progressbar";
262             mouse_events: 0;
263             dragable {
264                confine: "background";
265                x: 1 1 1;
266                y: 0 0 0;
267             }
268             description { state: "default" 0.0;
269                min: 14 28;
270                fixed: 1 1;
271                visible: 0;
272                rel1 {
273                   to: "background";
274                   relative: 0 0;
275                }
276                rel2.to: "background";
277            }
278          }
279          part { name: "progress-rect";
280             type: RECT;
281             mouse_events: 0;
282             description {
283                state: "default" 0.0;
284                rel1.to: "elm.progress.progressbar";
285                rel2.to: "elm.progress.progressbar";
286             }
287          }
288       }
289       programs {
290          program { name: "label_show";
291             signal: "elm,state,text,visible";
292             source: "elm";
293             action:  STATE_SET "visible" 0.0;
294             target: "elm.text";
295          }
296          program { name: "label_hide";
297             signal: "elm,state,text,hidden";
298             source: "elm";
299             action:  STATE_SET "default" 0.0;
300             target: "elm.text";
301          }
302          program { name: "icon_show";
303             signal: "elm,state,icon,visible";
304             source: "elm";
305             action:  STATE_SET "visible" 0.0;
306             target: "elm.swallow.content";
307          }
308          program { name: "icon_hide";
309             signal: "elm,state,icon,hidden";
310             source: "elm";
311             action:  STATE_SET "default" 0.0;
312             target: "elm.swallow.content";
313          }
314          program { name: "units_show";
315             signal: "elm,state,units,visible";
316             source: "elm";
317             action:  STATE_SET "default" 0.0;
318             target: "text-bar";
319             target: "elm.text.status";
320          }
321          program { name: "units_hide";
322             signal: "elm,state,units,hidden";
323             source: "elm";
324             action:  STATE_SET "hidden" 0.0;
325             target: "text-bar";
326             target: "elm.text.status";
327          }
328          program { name: "slide_to_end";
329             action:  STATE_SET "state_end" 0.0;
330             transition: LINEAR 0.5;
331             target: "elm.progress.progressbar";
332             after: "slide_to_begin";
333          }
334          program { name: "slide_to_begin";
335             signal: "elm,state,slide,begin";
336             action: STATE_SET "state_begin" 0.0;
337             target: "elm.progress.progressbar";
338             transition: LINEAR 0.5;
339             after: "slide_to_end";
340          }
341          program { name: "start_pulse";
342             signal: "elm,state,pulse,start";
343             source: "elm";
344             after: "slide_to_end";
345          }
346          program { name: "stop_pulse";
347             signal: "elm,state,pulse,stop";
348             source: "elm";
349             action: ACTION_STOP;
350             target: "slide_to_begin";
351             target: "slide_to_end";
352             target: "start_pulse";
353             after: "state_pulse";
354          }
355          program { name: "state_pulse";
356             signal: "elm,state,pulse";
357             source: "elm";
358             action: STATE_SET "state_begin" 0.0;
359             target: "elm.progress.progressbar";
360             after: "units_hide";
361          }
362          program { name: "state_fraction";
363             signal: "elm,state,fraction";
364             source: "elm";
365             action: ACTION_STOP;
366             target: "slide_to_begin";
367             target: "slide_to_end";
368             target: "start_pulse";
369             action: STATE_SET "default" 0.0;
370             target: "elm.progress.progressbar";
371          }
372          program { name: "set_invert_on";
373             signal: "elm,state,inverted,on";
374             source: "elm";
375             action:  STATE_SET "invert" 0.0;
376             target: "elm.progress.progressbar";
377          }
378          program { name: "set_invert_off";
379             signal: "elm,state,inverted,off";
380             source: "elm";
381             action:  STATE_SET "default" 0.0;
382             target: "elm.progress.progressbar";
383          }
384       }
385    }
386
387 ///////////////////////////////////////////////////////////////////////////////
388    group { name: "elm/progressbar/vertical/default";
389       images {
390          image: "shelf_inset.png" COMP;
391          image: "bt_sm_base2.png" COMP;
392          image: "bt_sm_hilight.png" COMP;
393          image: "bt_sm_shine.png" COMP;
394       }
395       parts {
396          part { name: "elm.background.progressbar";
397             type: RECT;
398             mouse_events: 0;
399             description {
400                state: "default" 0.0;
401                rel1 {
402                   relative: 0.0 0.0;
403                   offset: 0 0;
404                }
405                rel2 {
406                   relative: 1.0 1.0;
407                   offset: -1 -1;
408                }
409             }
410          }
411          part { name: "elm.swallow.bar";
412             type: SWALLOW;
413             scale: 1;
414             description { state: "default" 0.0;
415                min: 28 48;
416                max: 28 9999;
417                align: 0.5 1.0;
418                rel1 {
419                   to_y: "elm.text";
420                   relative: 0.0 1.0;
421                   offset: 0 2;
422                }
423                rel2 {
424                   to_y: "elm.text.box";
425                   relative: 1.0 0.0;
426                   offset: -1 -3;
427                }
428             }
429          }
430          part { name: "elm.swallow.content";
431             type: SWALLOW;
432             description { state: "default" 0.0;
433                visible: 0;
434                align: 0.5 0.0;
435                rel1 {
436                   offset: 0 4;
437                   to_x: "elm.swallow.bar";
438                }
439                rel2 {
440                   offset: -1 3;
441                   relative: 1.0 0.0;
442                   to_x: "elm.swallow.bar";
443                }
444             }
445             description { state: "visible" 0.0;
446                inherit: "default" 0.0;
447                visible: 1;
448                aspect: 1.0 1.0;
449                aspect_preference: HORIZONTAL;
450                rel2.offset: -1 4;
451             }
452          }
453          part { name: "elm.text";
454             type: TEXT;
455             mouse_events: 0;
456             scale: 1;
457             description { state: "default" 0.0;
458                visible: 0;
459                fixed: 1 1;
460                align: 0.5 0.0;
461                rel1.to_y: "elm.swallow.content";
462                rel1.relative: 0.5 1.0;
463                rel1.offset: 0 -1;
464                rel2.to_y: "elm.swallow.content";
465                rel2.relative: 0.5 1.0;
466                rel2.offset: -1 -1;
467                color: 0 0 0 255;
468                text {
469                   font: "Sans,Edje-Vera";
470                   size: 10;
471                   min: 0 0;
472                   align: 0.5 0.0;
473                }
474             }
475             description { state: "visible" 0.0;
476                inherit: "default" 0.0;
477                visible: 1;
478                text.min: 1 1;
479                rel1.offset: 4 0;
480                rel2.offset: -5 0;
481             }
482          }
483
484          part { name: "background";
485             mouse_events: 0;
486             clip_to: "elm.background.progressbar";
487             description {
488                state: "default" 0.0;
489                rel1 {
490                   to: "elm.swallow.bar";
491                   relative: 0.0 0.0;
492                }
493                rel2 {
494                   to: "elm.swallow.bar";
495                   relative: 1.0 1.0;
496                   offset: -1 -1;
497                }
498                image {
499                   normal: "shelf_inset.png";
500                   border: 7 7 7 7;
501                }
502             }
503          }
504
505          part { name: "elm.progress.progressbar";
506             mouse_events: 0;
507             clip_to: "elm.background.progressbar";
508             description {
509                state: "default" 0.0;
510                min: 28 14;
511                fixed: 1 1;
512                rel1 {
513                   to: "elm.swallow.bar";
514                   relative: 0.0 0.0;
515                }
516                rel2 {
517                   to_x: "elm.swallow.bar";
518                   to_y: "elm.cur.progressbar";
519                   offset: -1 -1;
520                }
521                image {
522                   normal: "bt_sm_base2.png";
523                   border: 6 6 6 6;
524                }
525             }
526             description {
527                state: "invert" 0.0;
528                inherit: "default" 0.0;
529                rel1 {
530                   to_x: "elm.swallow.bar";
531                   to_y: "elm.cur.progressbar";
532                }
533                rel2 {
534                   to: "elm.swallow.bar";
535                   relative: 1.0 1.0;
536                }
537             }
538             description {
539                state: "state_begin" 0.0;
540                inherit: "default" 0.0;
541                rel1 {
542                   to: "elm.swallow.bar";
543                   relative: 0.0 0.0;
544                }
545                rel2 {
546                   to: "elm.swallow.bar";
547                   relative: 1.0 0.1;
548                }
549             }
550             description {
551                state: "state_end" 0.0;
552                inherit: "default" 0.0;
553                rel1 {
554                   to: "elm.swallow.bar";
555                   relative: 0.0 0.9;
556                }
557                rel2 {
558                   to: "elm.swallow.bar";
559                   relative: 1.0 1.0;
560                }
561             }
562          }
563
564          part { name: "over1";
565             mouse_events: 0;
566             description { state: "default" 0.0;
567                rel1.to: "elm.progress.progressbar";
568                rel2.to: "elm.progress.progressbar";
569                rel2.relative: 1.0 0.5;
570                image {
571                   normal: "bt_sm_hilight.png";
572                   border: 6 6 6 0;
573                }
574             }
575          }
576
577          part { name: "over2";
578             mouse_events: 1;
579             repeat_events: 1;
580             description { state: "default" 0.0;
581                rel1.to: "elm.progress.progressbar";
582                rel2.to: "elm.progress.progressbar";
583                image {
584                   normal: "bt_sm_shine.png";
585                   border: 6 6 6 0;
586                }
587             }
588          }
589
590          part { name: "elm.cur.progressbar";
591             mouse_events: 0;
592             dragable {
593                confine: "background";
594                x: 0 0 0;
595                y: 1 1 1;
596             }
597             description { state: "default" 0.0;
598                min: 28 14;
599                fixed: 1 1;
600                visible: 0;
601                rel1 {
602                   to: "background";
603                   relative: 0 0;
604                }
605                rel2.to: "background";
606            }
607          }
608
609          part { name: "elm.text.box";
610             mouse_events: 0;
611             type: RECT;
612             description { state: "default" 0.0;
613                visible: 0;
614                rel1 {
615                   to: "elm.text.status";
616                   offset: -2 -2;
617                }
618                rel2 {
619                   to: "elm.text.status";
620                   offset: 2 2;
621                }
622                color: 255 255 255 0;
623             }
624             description { state: "visible" 0.0;
625                inherit: "default" 0.0;
626                visible: 1;
627             }
628          }
629          part { name: "elm.text.status";
630             type: TEXT;
631             mouse_events: 0;
632             scale: 1;
633             description { state: "default" 0.0;
634                visible: 0;
635                fixed: 1 1;
636                align: 0.5 1.0;
637                rel1.relative: 0.0 1.0;
638                rel1.offset: 2 0;
639                rel2.relative: 1.0 1.0;
640                rel2.offset: -2 0;
641                color: 0 0 0 255;
642                text {
643                   font: "Sans:style=Bold,Edje-Vera-Bold";
644                   size: 10;
645                   min: 0 0;
646                   align: 0.5 0.0;
647                }
648             }
649             description { state: "visible" 0.0;
650                inherit: "default" 0.0;
651                fixed: 1 1;
652                visible: 1;
653                text.min: 1 1;
654                rel1.offset: 8 -9;
655                rel2.offset: -9 -9;
656             }
657          }
658       }
659       programs {
660          program { name: "label_show";
661             signal: "elm,state,text,visible";
662             source: "elm";
663             action:  STATE_SET "visible" 0.0;
664             target: "elm.text";
665          }
666          program { name: "label_hide";
667             signal: "elm,state,text,hidden";
668             source: "elm";
669             action:  STATE_SET "default" 0.0;
670             target: "elm.text";
671          }
672          program { name: "icon_show";
673             signal: "elm,state,icon,visible";
674             source: "elm";
675             action:  STATE_SET "visible" 0.0;
676             target: "elm.swallow.content";
677          }
678          program { name: "icon_hide";
679             signal: "elm,state,icon,hidden";
680             source: "elm";
681             action:  STATE_SET "default" 0.0;
682             target: "elm.swallow.content";
683          }
684          program { name: "units_show";
685             signal: "elm,state,units,visible";
686             source: "elm";
687             action:  STATE_SET "visible" 0.0;
688             target: "elm.text.status";
689             target: "elm.text.box";
690          }
691          program { name: "units_hide";
692             signal: "elm,state,units,hidden";
693             source: "elm";
694             action:  STATE_SET "default" 0.0;
695             target: "elm.text.status";
696             target: "elm.text.box";
697          }
698          program { name: "slide_to_end";
699             action:  STATE_SET "state_end" 0.0;
700             transition: LINEAR 0.5;
701             target: "elm.progress.progressbar";
702             after: "slide_to_begin";
703          }
704          program { name: "slide_to_begin";
705             action:  STATE_SET "state_begin" 0.0;
706             target: "elm.progress.progressbar";
707             transition: LINEAR 0.5;
708             after: "slide_to_end";
709          }
710          program { name: "start_pulse";
711             signal: "elm,state,pulse,start";
712             source: "elm";
713             action: STATE_SET "state_begin" 0.0;
714             target: "elm.progress.progressbar";
715             after: "slide_to_end";
716          }
717          program { name: "stop_pulse";
718             signal: "elm,state,pulse,stop";
719             source: "elm";
720             action: ACTION_STOP;
721             target: "slide_to_begin";
722             target: "slide_to_end";
723             target: "start_pulse";
724             after: "state_pulse";
725          }
726          program { name: "state_pulse";
727             signal: "elm,state,pulse";
728             source: "elm";
729             action: STATE_SET "state_begin" 0.0;
730             target: "elm.progress.progressbar";
731             after: "units_hide";
732          }
733          program { name: "state_fraction";
734             signal: "elm,state,fraction";
735             source: "elm";
736             action: ACTION_STOP;
737             target: "slide_to_begin";
738             target: "slide_to_end";
739             target: "start_pulse";
740             action: STATE_SET "default" 0.0;
741             target: "elm.progress.progressbar";
742          }
743          program { name: "set_invert_on";
744             signal: "elm,state,inverted,on";
745             source: "elm";
746             action:  STATE_SET "invert" 0.0;
747             target: "elm.progress.progressbar";
748             target: "elm.cur.progressbar";
749          }
750          program { name: "set_invert_off";
751             signal: "elm,state,inverted,off";
752             source: "elm";
753             action:  STATE_SET "default" 0.0;
754             target: "elm.progress.progressbar";
755             target: "elm.cur.progressbar";
756          }
757       }
758    }
759
760 ///////////////////////////////////////////////////////////////////////////////
761    group { name: "elm/progressbar/horizontal/wheel";
762        images {
763            image: "busy-1.png" COMP;
764            image: "busy-2.png" COMP;
765            image: "busy-3.png" COMP;
766            image: "busy-4.png" COMP;
767            image: "busy-5.png" COMP;
768            image: "busy-6.png" COMP;
769            image: "busy-7.png" COMP;
770            image: "busy-8.png" COMP;
771            image: "busy-9.png" COMP;
772        }
773        parts {
774            part { name: "elm.background.progressbar";
775                mouse_events: 0;
776                type: RECT;
777                description {
778                    state: "default" 0.0;
779                }
780            }
781            part { name: "elm.swallow.bar";
782                mouse_events: 0;
783                type: SWALLOW;
784                description { state: "default" 0.0;
785                    min: 0 0;
786                    max: 0 0;
787                    visible: 0;
788                }
789            }
790            part { name: "elm.swallow.content";
791                type: SWALLOW;
792                description { state: "default" 0.0;
793                    min: 0 0;
794                    max: 0 0;
795                    visible: 0;
796                }
797            }
798            part { name: "background";
799                mouse_events: 0;
800                clip_to: "elm.background.progressbar";
801                description {
802                    state: "default" 0.0;
803                    min: 32 32;
804                    max: 32 32;
805                    visible: 1;
806                    aspect: 1.0 1.0;
807                    aspect_preference: BOTH;
808                    image {
809                        normal: "busy-9.png";
810                        border: 7 7 7 7;
811                    }
812                }
813                description {
814                    state: "pulse" 0.0;
815                    inherit: "default" 0.0;
816                    image {
817                        normal: "busy-9.png";
818                        tween:  "busy-1.png";
819                        tween:  "busy-2.png";
820                        tween:  "busy-3.png";
821                        tween:  "busy-4.png";
822                        tween:  "busy-5.png";
823                        tween:  "busy-6.png";
824                        tween:  "busy-7.png";
825                        tween:  "busy-8.png";
826                        border: 7 7 7 7;
827                    }
828                }
829            }
830        }
831        programs {
832            program { name: "start_pulse";
833                signal: "elm,state,pulse,start";
834                source: "elm";
835                action: STATE_SET "pulse" 0.0;
836                target: "background";
837                transition: LINEAR 0.5;
838                after: "start_pulse";
839            }
840            program { name: "stop_pulse";
841                signal: "elm,state,pulse,stop";
842                source: "elm";
843                action: STATE_SET "default" 0.0;
844                target: "background";
845            }
846        }
847    }
848
849
850 ///////////////////////////////////////////////////////////////////////////////