Merge remote-tracking branch 'remotes/origin/upstream'
[framework/uifw/elementary.git] / data / themes / widgets / toolbar.edc
1 group { name: "elm/toolbar/base/default";
2    images {
3       image: "bt_dis_base.png" COMP;
4       image: "bt_dis_hilight.png" COMP;
5       image: "bt_dis_shine.png" COMP;
6       image: "icon_left_arrow.png" COMP;
7       image: "icon_right_arrow.png" COMP;
8    }
9    parts {
10       part { name: "base";
11          mouse_events: 1;
12          description { state: "default" 0.0;
13             rel1 {
14                relative: 0.0 0.0;
15                offset: 2 2;
16             }
17             rel2.offset: -3 -3;
18             image {
19                normal: "bt_dis_base.png";
20                border: 4 4 4 4;
21             }
22             image.middle: SOLID;
23          }
24       }
25       part { name: "clipper";
26          type: RECT;
27          mouse_events: 0;
28          description {
29             state: "default" 0.0;
30             rel1 {
31                to: "base";
32                offset: 2 2;
33             }
34             rel2 {
35                to: "base";
36                offset: -3 -3;
37             }
38          }
39       }
40       part { name: "elm.swallow.content";
41          clip_to: "clipper";
42          type: SWALLOW;
43          description {
44             state: "default" 0.0;
45             rel1.to: "clipper";
46             rel2.to: "clipper";
47          }
48       }
49       part { name: "over2";
50          mouse_events: 0;
51          description { state: "default" 0.0;
52             rel1.to: "base";
53             rel2.to: "base";
54             image {
55                normal: "bt_dis_shine.png";
56                border: 4 4 4 4;
57             }
58          }
59       }
60       part { name: "over1";
61          mouse_events: 0;
62          description { state: "default" 0.0;
63             rel1.to: "base";
64             rel2.to: "base";
65             rel2.relative: 1.0 0.5;
66             image {
67                normal: "bt_dis_hilight.png";
68                border: 4 4 4 0;
69             }
70             color: 255 255 255 128;
71          }
72       }
73       part { name: "left_arrow";
74          mouse_events: 0;
75          description { state: "default" 0.0;
76             image.normal: "icon_left_arrow.png";
77             aspect: 1.0 1.0;
78             aspect_preference: VERTICAL;
79             align: 0.0 0.5;
80             min: 32 32;
81             max: 32 32;
82          }
83          description { state: "hidden" 0.0;
84             inherit: "default" 0.0;
85             visible: 0;
86             color: 255 255 255 0;
87          }
88       }
89       part { name: "right_arrow";
90          mouse_events: 0;
91          description { state: "default" 0.0;
92             image.normal: "icon_right_arrow.png";
93             aspect: 1.0 1.0;
94             aspect_preference: VERTICAL;
95             align: 1.0 0.5;
96             min: 32 32;
97             max: 32 32;
98          }
99          description { state: "hidden" 0.0;
100             inherit: "default" 0.0;
101             visible: 0;
102             color: 255 255 255 0;
103          }
104       }
105       part { name: "event";
106          type: RECT;
107          mouse_events: 1;
108          repeat_events: 1;
109          description { state: "default" 0.0;
110             color: 0 0 0 0;
111          }
112       }
113    }
114    programs {
115       program { name: "sb_hbar_show";
116          signal: "elm,action,show,hbar";
117          source: "elm";
118          action:  STATE_SET "default" 0.0;
119          transition: LINEAR 0.5;
120          target: "left_arrow";
121          target: "right_arrow";
122       }
123       program { name: "sb_hbar_hide";
124          signal: "elm,action,hide,hbar";
125          source: "elm";
126          action:  STATE_SET "hidden" 0.0;
127          target: "left_arrow";
128          target: "right_arrow";
129          transition: LINEAR 0.5;
130       }
131    }
132 }
133
134 group { name: "elm/toolbar/item/default";
135    images {
136       image: "toolbar_sel.png" COMP;
137    }
138    data.item: "transition_animation_on" "1";
139    parts {
140       part { name: "label2";
141          type: TEXT;
142          mouse_events:  0;
143          scale: 1;
144          clip_to: "elm.text.clipper";
145          description { state: "default" 0.0;
146             align: 0.5 1.0;
147             fixed: 0 1;
148             rel1.to: "elm.text";
149             rel2.to: "elm.text";
150             color: 0 0 0 255;
151             text {
152                font: "Sans";
153                text_source: "elm.text";
154                size: 10;
155                min: 1 1;
156                align: 0.5 0.5;
157                text_class: "toolbar_item";
158             }
159          }
160          description { state: "selected" 0.0;
161             inherit: "default" 0.0;
162             visible: 0;
163          }
164          description { state: "disabled" 0.0;
165             inherit: "default" 0.0;
166             color: 0 0 0 128;
167             color3: 0 0 0 0;
168          }
169          description { state: "disabled_visible" 0.0;
170             inherit: "default" 0.0;
171             color: 0 0 0 128;
172             color3: 0 0 0 0;
173             visible: 1;
174             text.min: 1 1;
175          }
176       }
177       part { name: "label2_new";
178          type: TEXT;
179          mouse_events:  0;
180          scale: 1;
181          clip_to: "elm.text_new.clipper";
182          description { state: "default" 0.0;
183             align: 0.5 1.0;
184             fixed: 0 1;
185             rel1.to: "elm.text_new";
186             rel2.to: "elm.text_new";
187             color: 0 0 0 255;
188             text {
189                font: "Sans";
190                text_source: "elm.text_new";
191                size: 10;
192                min: 1 1;
193                align: 0.5 0.5;
194                text_class: "toolbar_item";
195             }
196          }
197          description { state: "selected" 0.0;
198             inherit: "default" 0.0;
199             visible: 0;
200          }
201          description { state: "disabled" 0.0;
202             inherit: "default" 0.0;
203             color: 0 0 0 128;
204             color3: 0 0 0 0;
205          }
206          description { state: "disabled_visible" 0.0;
207             inherit: "default" 0.0;
208             color: 0 0 0 128;
209             color3: 0 0 0 0;
210             visible: 1;
211             text.min: 1 1;
212          }
213       }
214       part { name: "bg";
215          mouse_events: 0;
216          description { state: "default" 0.0;
217             visible: 0;
218             color: 255 255 255 0;
219             image {
220                normal: "toolbar_sel.png";
221                border: 3 3 0 0;
222             }
223             image.middle: SOLID;
224             fill.smooth: 0;
225          }
226          description { state: "selected" 0.0;
227             inherit: "default" 0.0;
228             visible: 1;
229             color: 255 255 255 255;
230          }
231          description { state: "disabled" 0.0;
232             inherit: "default" 0.0;
233             visible: 0;
234             color: 255 255 255 0;
235          }
236       }
237       part { name: "elm.swallow.icon";
238          type: SWALLOW;
239          clip_to: "elm.icon.clipper";
240          description { state: "default" 0.0;
241             align: 0.5 0.5;
242 <<<<<<< HEAD
243             fixed: 0 0;
244 =======
245 >>>>>>> remotes/origin/upstream
246             rel1 {
247                relative: 0.0 0.0;
248                offset: 2 2;
249             }
250             rel2 {
251                to_y: "elm.text";
252                relative: 1.0 0.0;
253                offset: -3 -1;
254             }
255             color: 0 0 0 0;
256          }
257       }
258       part { name: "elm.swallow.icon_new";
259          type: SWALLOW;
260          clip_to: "elm.icon_new.clipper";
261          description { state: "default" 0.0;
262             align: 0.5 0.5;
263 <<<<<<< HEAD
264             fixed: 0 0;
265 =======
266 >>>>>>> remotes/origin/upstream
267             rel1 {
268                relative: 0.0 0.0;
269                offset: 2 2;
270             }
271             rel2 {
272                to_y: "elm.text_new";
273                relative: 1.0 0.0;
274                offset: -3 -1;
275             }
276             color: 0 0 0 0;
277          }
278       }
279       part { name: "elm.text";
280          type: TEXT;
281          effect: SOFT_SHADOW;
282          mouse_events:  0;
283          scale: 1;
284          clip_to: "elm.text.clipper";
285          description { state: "default" 0.0;
286             align: 0.5 1.0;
287             fixed: 0 1;
288             rel1 {
289                relative: 0.0 1.0;
290                offset:   0 -1;
291             }
292             rel2 {
293                relative: 1.0 1.0;
294                offset:   -1 -1;
295             }
296             visible: 0;
297             color: 224 224 224 255;
298             color3: 0 0 0 32;
299             text {
300                font: "Sans:style=Bold";
301                size: 10;
302                min: 1 1;
303                align: 0.5 0.5;
304                text_class: "toolbar_item";
305             }
306          }
307          description { state: "selected" 0.0;
308             inherit: "default" 0.0;
309             visible: 1;
310          }
311          description { state: "visible" 0.0;
312             inherit: "default" 0.0;
313             visible: 1;
314             text.min: 1 1;
315          }
316          description { state: "disabled" 0.0;
317             inherit: "default" 0.0;
318             color: 0 0 0 128;
319             color3: 0 0 0 0;
320          }
321          description { state: "disabled_visible" 0.0;
322             inherit: "default" 0.0;
323             color: 0 0 0 128;
324             color3: 0 0 0 0;
325             visible: 1;
326             text.min: 1 1;
327          }
328       }
329       part { name: "elm.text_new";
330          type: TEXT;
331          effect: SOFT_SHADOW;
332          mouse_events:  0;
333          clip_to: "elm.text_new.clipper";
334          scale: 1;
335          description { state: "default" 0.0;
336             align: 0.5 1.0;
337             fixed: 0 1;
338             rel1 {
339                relative: 0.0 1.0;
340                offset:   0 -1;
341             }
342             rel2 {
343                relative: 1.0 1.0;
344                offset:   -1 -1;
345             }
346             visible: 0;
347             color: 224 224 224 255;
348             color3: 0 0 0 32;
349             text {
350                font: "Sans:style=Bold";
351                size: 10;
352                min: 1 1;
353                align: 0.5 0.5;
354                text_class: "toolbar_item";
355             }
356          }
357          description { state: "selected" 0.0;
358             inherit: "default" 0.0;
359             visible: 1;
360          }
361          description { state: "visible" 0.0;
362             inherit: "default" 0.0;
363             visible: 1;
364             text.min: 1 1;
365          }
366          description { state: "disabled" 0.0;
367             inherit: "default" 0.0;
368             color: 0 0 0 128;
369             color3: 0 0 0 0;
370          }
371          description { state: "disabled_visible" 0.0;
372             inherit: "default" 0.0;
373             color: 0 0 0 128;
374             color3: 0 0 0 0;
375             visible: 1;
376             text.min: 1 1;
377          }
378       }
379       part { name: "elm.text.clipper";
380          type: RECT;
381          description { state: "default" 0.0;
382             color: 255 255 255 255;
383          }
384          description { state: "animation" 0.0;
385             color: 255 255 255 0;
386          }
387       }
388       part { name: "elm.text_new.clipper";
389          type: RECT;
390          description { state: "default" 0.0;
391             color: 255 255 255 0;
392          }
393          description { state: "animation" 0.0;
394             color: 255 255 255 255;
395          }
396       }
397       part { name: "elm.icon.clipper";
398          type: RECT;
399          description { state: "default" 0.0;
400             color: 255 255 255 255;
401          }
402          description { state: "animation" 0.0;
403             color: 255 255 255 0;
404          }
405       }
406       part { name: "elm.icon_new.clipper";
407          type: RECT;
408          description { state: "default" 0.0;
409             color: 255 255 255 0;
410          }
411          description { state: "animation" 0.0;
412             color: 255 255 255 255;
413          }
414       }
415       part { name: "event";
416          type: RECT;
417          mouse_events: 1;
418          ignore_flags: ON_HOLD;
419          description { state: "default" 0.0;
420             color: 0 0 0 0;
421          }
422       }
423    }
424    programs {
425       program { name: "go_active";
426          signal:  "elm,state,selected";
427          source:  "elm";
428          action:  STATE_SET "selected" 0.0;
429          target:  "bg";
430          target:  "elm.text";
431          target:  "label2";
432          target:  "elm.text_new";
433          target:  "label2_new";
434          transition: LINEAR 0.2;
435       }
436       program { name: "go_passive";
437          signal:  "elm,state,unselected";
438          source:  "elm";
439          action:  STATE_SET "default" 0.0;
440          target:  "bg";
441          target:  "elm.text";
442          target:  "label2";
443          target:  "elm.text_new";
444          target:  "label2_new";
445          transition: LINEAR 0.1;
446       }
447       program { name: "go";
448 <<<<<<< HEAD
449          signal:  "mouse,up,1";
450 =======
451          signal:  "mouse,clicked,1";
452 >>>>>>> remotes/origin/upstream
453          source:  "event";
454          action:  SIGNAL_EMIT "elm,action,click" "elm";
455       }
456       program { name: "mouse,in";
457          signal:  "mouse,in";
458          source:  "event";
459          action:  SIGNAL_EMIT "elm,mouse,in" "elm";
460       }
461       program { name: "mouse,out";
462          signal:  "mouse,out";
463          source:  "event";
464          action:  SIGNAL_EMIT "elm,mouse,out" "elm";
465       }
466       program { name: "disable";
467          signal: "elm,state,disabled";
468          source: "elm";
469          action: STATE_SET "disabled" 0.0;
470          target: "label2";
471          target: "label2_new";
472          target: "bg";
473          after: "disable_text";
474       }
475       program { name: "disable_text";
476          script {
477             new st[31];
478             new Float:vl;
479             get_state(PART:"elm.text", st, 30, vl);
480             if (!strcmp(st, "visible"))
481             {
482                set_state(PART:"elm.text", "disabled_visible", 0.0);
483                set_state(PART:"elm.text_new", "disabled_visible", 0.0);
484             }
485             else
486             {
487                set_state(PART:"elm.text", "disabled", 0.0);
488                set_state(PART:"elm.text_new", "disabled", 0.0);
489             }
490          }
491       }
492       program { name: "enable";
493          signal: "elm,state,enabled";
494          source: "elm";
495          action: STATE_SET "default" 0.0;
496          target: "label2";
497          target: "label2_new";
498          target: "bg";
499          after: "enable_text";
500       }
501       program { name: "enable_text";
502          script {
503             new st[31];
504             new Float:vl;
505             get_state(PART:"elm.text", st, 30, vl);
506             if (!strcmp(st, "disabled_visible"))
507             {
508                set_state(PART:"elm.text", "visible", 0.0);
509                set_state(PART:"elm.text_new", "visible", 0.0);
510             }
511             else
512             {
513                set_state(PART:"elm.text", "default", 0.0);
514                set_state(PART:"elm.text_new", "default", 0.0);
515             }
516          }
517       }
518       program { name: "label_set,animation,forward";
519          signal: "elm,state,label_set,forward";
520          source: "elm";
521          after: "label_set,animation";
522       }
523       program { name: "label_set,animation,backward";
524          signal: "elm,state,label_set,backward";
525          source: "elm";
526          after: "label_set,animation";
527       }
528       program { name: "label_set,animation";
529          signal: "elm,state,label_set";
530          source: "elm";
531          action: STATE_SET "animation" 0.0;
532          target: "elm.text.clipper";
533          target: "elm.text_new.clipper";
534          transition: LINEAR 0.2;
535          after: "label_set,animation,done";
536       }
537       program { name: "label_set,animation,done";
538          action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
539       }
540       program { name: "label,reset";
541          signal: "elm,state,label,reset";
542          source: "elm";
543          action: STATE_SET "default" 0.0;
544          target: "elm.text.clipper";
545          target: "elm.text_new.clipper";
546       }
547       program { name: "icon_set,animation,forward";
548          signal: "elm,state,icon_set,forward";
549          source: "elm";
550          after: "icon_set,animation";
551       }
552       program { name: "icon_set,animation,backward";
553          signal: "elm,state,icon_set,backward";
554          source: "elm";
555          after: "icon_set,animation";
556       }
557       program { name: "icon_set,animation";
558          signal: "elm,state,icon_set";
559          source: "elm";
560          action: STATE_SET "animation" 0.0;
561          target: "elm.icon.clipper";
562          target: "elm.icon_new.clipper";
563          transition: LINEAR 0.2;
564          after: "icon_set,animation,done";
565       }
566       program { name: "icon_set,animation,done";
567          action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
568       }
569       program { name: "icon,reset";
570          signal: "elm,state,icon,reset";
571          source: "elm";
572          action: STATE_SET "default" 0.0;
573          target: "elm.icon.clipper";
574          target: "elm.icon_new.clipper";
575       }
576    }
577 }
578
579 group { name: "elm/toolbar/item/item_horizontal";
580 <<<<<<< HEAD
581     inherit: "elm/toolbar/item/default";
582     parts.part { name: "elm.swallow.icon";
583             description { state: "default" 0.0;
584                 align: 0.0 0.5;
585                 rel1.offset: 3 3;
586                 rel1.relative: 0 0;
587                 rel2.offset: -4 -4;
588                 rel2.relative: 1 1;
589                 color: 0 0 0 0;
590             }
591         }
592     parts.part { name: "elm.text";
593             description { state: "default" 0.0;
594                align: 1 0.5;
595                min: 0 1;
596                rel1.offset: 1 0;
597                rel1.relative: 1 0.5;
598                rel1.to_x: "elm.swallow.icon";
599                text.align: 0 0.5;
600             }
601         }
602 =======
603    inherit: "elm/toolbar/item/default";
604    parts {
605       part { name: "elm.swallow.icon";
606          description { state: "default" 0.0;
607             fixed: 1 1;
608             aspect: 1 1;
609             aspect_preference: VERTICAL;
610             align: 0.0 0.5;
611             rel1.offset: 3 3;
612             rel1.relative: 0 0;
613             rel2.offset: 3 -4;
614             rel2.relative: 0 1;
615             color: 0 0 0 0;
616          }
617       }
618       part { name: "elm.swallow.icon_new";
619          description { state: "default" 0.0;
620             fixed: 1 1;
621          }
622       }
623       part { name: "elm.text";
624          description { state: "default" 0.0;
625             align: 1 0.5;
626             min: 0 1;
627             rel1.offset: 1 0;
628             rel1.relative: 1.0 0.0;
629             rel1.to_x: "elm.swallow.icon";
630             rel2.relative: 1.0 1.0;
631             text.align: 0 0.5;
632          }
633          description { state: "selected" 0.0;
634             inherit: "default" 0.0;
635             visible: 1;
636          }
637          description { state: "visible" 0.0;
638             inherit: "default" 0.0;
639             visible: 1;
640             text.min: 1 1;
641          }
642          description { state: "disabled" 0.0;
643             inherit: "default" 0.0;
644             color: 0 0 0 128;
645             color3: 0 0 0 0;
646          }
647          description { state: "disabled_visible" 0.0;
648             inherit: "default" 0.0;
649             color: 0 0 0 128;
650             color3: 0 0 0 0;
651             visible: 1;
652             text.min: 1 1;
653          }
654       }
655       part { name: "elm.text_new";
656          description { state: "default" 0.0;
657             align: 1 0.5;
658             min: 0 1;
659             rel1.offset: 1 0;
660             rel1.relative: 1.0 0.0;
661             rel1.to_x: "elm.swallow.icon";
662             rel2.relative: 1.0 1.0;
663             text.align: 0 0.5;
664          }
665          description { state: "selected" 0.0;
666             inherit: "default" 0.0;
667             visible: 1;
668          }
669          description { state: "visible" 0.0;
670             inherit: "default" 0.0;
671             visible: 1;
672             text.min: 1 1;
673          }
674          description { state: "disabled" 0.0;
675             inherit: "default" 0.0;
676             color: 0 0 0 128;
677             color3: 0 0 0 0;
678          }
679          description { state: "disabled_visible" 0.0;
680             inherit: "default" 0.0;
681             color: 0 0 0 128;
682             color3: 0 0 0 0;
683             visible: 1;
684             text.min: 1 1;
685          }
686       }
687    }
688 >>>>>>> remotes/origin/upstream
689 }
690
691 group { name: "elm/toolbar/separator/default";
692    images {
693       image: "toolbar_separator_v.png" COMP;
694    }
695    parts {
696       part { name: "separator"; // separator group
697          description { state: "default" 0.0;
698             min: 2 2;
699             max: 2 9999;
700             rel1.offset: 4 4;
701             rel2.offset: -5 -5;
702             image {
703                normal: "toolbar_separator_v.png";
704             }
705             fill {
706                smooth: 0;
707             }
708          }
709       }
710    }
711 }
712
713 group { name: "elm/toolbar/object/default";
714    parts {
715       part { name: "elm.swallow.object"; // object group
716 <<<<<<< HEAD
717              type: SWALLOW;
718          description {
719                          state: "default" 0.0;
720 =======
721          type: SWALLOW;
722          description { state: "default" 0.0;
723 >>>>>>> remotes/origin/upstream
724          }
725       }
726    }
727 }
728 <<<<<<< HEAD
729
730 =======
731 >>>>>>> remotes/origin/upstream