initial draft of the org.tizen.video-player
[apps/core/preloaded/video-player.git] / res / edc / vp-toolbar.edc
1 #define ITEM_STATE_ENABLED 0
2 #define ITEM_STATE_DISABLED 1
3
4 group { name: "elm/toolbar/base/default";
5    images {
6       image: "00_winset_control_toolbar_bg.png" COMP;
7    }
8    parts {
9       part { name: "base";
10          mouse_events: 1;
11          description { state: "default" 0.0;
12             image.normal: "00_winset_control_toolbar_bg.png";
13          }
14       }
15       part { name: "clipper";
16          type: RECT;
17          mouse_events: 0;
18          description {
19             state: "default" 0.0;
20             rel1 {
21                to: "base";
22                offset: 2 2;
23             }
24             rel2 {
25                to: "base";
26                offset: -3 -3;
27             }
28          }
29       }
30       part { name: "elm.swallow.content";
31          clip_to: "clipper";
32          type: SWALLOW;
33          description {
34             state: "default" 0.0;
35             rel1.to: "clipper";
36             rel2.to: "clipper";
37          }
38       }
39       part { name: "event";
40          type: RECT;
41          mouse_events: 1;
42          repeat_events: 1;
43          description { state: "default" 0.0;
44             color: 0 0 0 0;
45          }
46       }
47    }
48 }
49
50 group { name: "elm/toolbar/item/default";
51    images {
52       image: "00_winset_toolbar_press.png" COMP;
53    }
54    styles{
55       style { name: "toolbar_style";
56          base: "font=SLP:style=Medium font_size="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC" align=center color="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXTBLOCK_COLOR_INC" wrap=mixed ellipsis=1 text_class=slp_medium";
57          tag: "br" "\n";
58          tag: "ps" "ps";
59          tag: "hilight" "+ font=SLP:style=Bold";
60          tag: "b" "+ font=SLP:style=Bold";
61          tag: "tab" "\t";
62       }
63    }
64
65    data.item: "transition_animation_on" "1";
66    script {
67       public item_state = ITEM_STATE_ENABLED;
68    }
69    parts {
70       part { name: "bg";
71          mouse_events: 0;
72          description { state: "default" 0.0;
73             visible: 0;
74             color: 255 255 255 0;
75             rel1 {
76                relative: 0.0 0.0;
77                offset: 4 4;
78             }
79             rel2 {
80                relative: 1.0 1.0;
81                offset: -5 -5;
82             }
83             image {
84                normal: "00_winset_toolbar_press.png";
85                border: 3 3 3 3;
86             }
87             image.middle: SOLID;
88             fill.smooth: 0;
89          }
90          description { state: "selected" 0.0;
91             inherit: "default" 0.0;
92             visible: 1;
93             color: 255 255 255 255;
94          }
95          description { state: "disabled" 0.0;
96             inherit: "default" 0.0;
97             visible: 0;
98             color: 255 255 255 0;
99          }
100       }
101       part { name: "padding_left_top";
102          type: RECT;
103          scale: 1;
104          mouse_events: 0;
105          description { state: "default" 0.0;
106             align: 0.0 0.0;
107             rel2.relative: 0.0 0.0;
108             min: 10 8;
109             fixed: 1 1;
110             visible: 1;
111             color: 0 0 0 0;
112          }
113       }
114       part { name: "padding_right_bottom";
115          type: RECT;
116          scale: 1;
117          mouse_events: 0;
118          description { state: "default" 0.0;
119             align: 1.0 1.0;
120             rel1.relative: 1.0 1.0;
121             min: 10 5;
122             fixed: 1 1;
123             visible: 1;
124             color: 0 0 0 0;
125          }
126       }
127       part {
128          name: "icon_rect";
129          type: RECT;
130          scale: 1;
131          mouse_events: 0;
132          description { state: "default" 0.0;
133             min: 0 0;
134             fixed: 0 1;
135             rel1 {
136                relative: 1.0 1.0;
137                to: "padding_left_top";
138             }
139             rel2 {
140                relative: 0.0 1.0;
141                to_x: "padding_right_bottom";
142                to_y: "padding_left_top";
143             }
144             align: 0.5 0.0;
145             color: 0 0 0 0;
146          }
147          description { state: "visible" 0.0;
148             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
149             fixed: 0 1;
150             rel1 {
151                relative: 1.0 1.0;
152                to: "padding_left_top";
153             }
154             rel2 {
155                relative: 0.0 1.0;
156                to_x: "padding_right_bottom";
157                to_y: "padding_left_top";
158             }
159             align: 0.5 0.0;
160             color: 0 0 0 0;
161          }
162          description { state: "icononly" 0.0;
163             inherit: "default" 0.0;
164          }
165       }
166       part { name: "padding_after_icon";
167          type: RECT;
168          scale: 1;
169          mouse_events: 0;
170          description { state: "default" 0.0; //when only icon or no icon is there
171             align: 0.0 0.0;
172             rel1 {
173                relative: 0.0 1.0;
174                to: "icon_rect";
175             }
176             rel2.to: "icon_rect";
177             fixed: 0 1;
178             min: 0 0;
179             color: 0 0 0 0;
180          }
181          description { state: "visible" 0.0;
182             inherit: "default" 0.0;
183          }
184          description { state: "icononly" 0.0;
185             inherit: "default" 0.0;
186          }
187       }
188       part { name: "padding_before_text";
189          type: RECT;
190          scale: 1;
191          mouse_events: 0;
192          description { state: "default" 0.0; //when only icon or no icon is there
193             align: 0.5 1.0;
194             rel1 {
195                relative: 1.0 0.0;
196                to_x: "padding_left_top";
197                to_y: "elm.text";
198             }
199             rel2 {
200                relative: 0.0 0.0;
201                to_x: "padding_right_bottom";
202                to_y: "elm.text";
203             }
204             fixed: 0 1;
205             min: 0 0;
206             color: 0 0 0 0;
207          }
208       }
209       part { name: "elm.swallow.icon";
210          type: SWALLOW;
211          scale: 1;
212          clip_to: "elm.icon.clipper";
213          description { state: "default" 0.0;
214             visible: 0;
215             align: 0.5 0.0;
216             rel1 {
217                relative: 1.0 1.0;
218                to: "padding_left_top";
219             }
220             rel2 {
221                relative: 0.0 1.0;
222                to_x: "padding_right_bottom";
223                to_y: "padding_left_top";
224             }
225             fixed: 0 1;
226          }
227          description { state: "visible" 0.0;
228             fixed: 0 1;
229             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
230             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
231             rel1 {
232                relative: 1.0 1.0;
233                to: "padding_left_top";
234             }
235             rel2 {
236                relative: 0.0 0.0;
237                to_x: "padding_right_bottom";
238                to_y: "padding_before_text";
239             }
240             aspect: 1.0 1.0;
241             aspect_preference: HORIZONTAL;
242          }
243          description { state: "icononly" 0.0;
244             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
245             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
246             rel1 {
247                relative: 1.0 1.0;
248                to: "padding_left_top";
249             }
250             rel2 {
251                relative: 0.0 0.0;
252                to: "padding_right_bottom";
253             }
254             aspect: 1.0 1.0;
255             aspect_preference: HORIZONTAL;
256          }
257       }
258       part { name: "elm.swallow.icon_new";
259          type: SWALLOW;
260          scale: 1;
261          clip_to: "elm.icon_new.clipper";
262          description { state: "default" 0.0;
263             visible: 0;
264             align: 0.5 0.0;
265             rel1 {
266                relative: 1.0 1.0;
267                to: "padding_left_top";
268             }
269             rel2 {
270                relative: 0.0 1.0;
271                to_x: "padding_right_bottom";
272                to_y: "padding_left_top";
273             }
274             fixed: 0 1;
275          }
276          description { state: "visible" 0.0;
277             fixed: 0 1;
278             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
279             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
280             rel1 {
281                relative: 1.0 1.0;
282                to: "padding_left_top";
283             }
284             rel2 {
285                relative: 0.0 0.0;
286                to_x: "padding_right_bottom";
287                to_y: "padding_before_text";
288             }
289             aspect: 1.0 1.0;
290             aspect_preference: HORIZONTAL;
291          }
292          description { state: "icononly" 0.0;
293             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
294             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
295             rel1 {
296                relative: 1.0 1.0;
297                to: "padding_left_top";
298             }
299             rel2 {
300                relative: 0.0 0.0;
301                to: "padding_right_bottom";
302             }
303             aspect: 1.0 1.0;
304             aspect_preference: HORIZONTAL;
305          }
306       }
307       part { name: "elm.text";
308          type: TEXTBLOCK;
309          mouse_events: 0;
310          scale: 1;
311          clip_to: "elm.text.clipper";
312          description { state: "default" 0.0;
313             visible: 1;
314             rel1 {
315                relative: 1.0 1.0;
316                to_x: "padding_left_top";
317                to_y: "padding_after_icon";
318             }
319             rel2 {
320                relative: 0.0 0.0;
321                to: "padding_right_bottom";
322             }
323             color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
324             fixed: 1 1;
325             text {
326                style: "toolbar_style";
327                min: 0 1;
328             }
329          }
330          description { state: "selected" 0.0;
331             inherit: "default" 0.0;
332             visible: 1;
333          }
334          description { state: "visible" 0.0;
335             inherit: "default" 0.0;
336             visible: 1;
337          }
338          description { state: "clicked" 0.0;
339             inherit: "default" 0.0;
340             visible: 1;
341             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
342          }
343          description { state: "focused" 0.0;
344             inherit: "default" 0.0;
345             visible: 1;
346             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
347          }
348       }
349       part { name: "elm.text_new";
350          type: TEXTBLOCK;
351          mouse_events: 0;
352          scale: 1;
353          clip_to: "elm.text_new.clipper";
354          description { state: "default" 0.0;
355             visible: 1;
356             rel1 {
357                relative: 1.0 1.0;
358                to_x: "padding_left_top";
359                to_y: "padding_after_icon";
360             }
361             rel2 {
362                relative: 0.0 0.0;
363                to: "padding_right_bottom";
364             }
365             color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
366             fixed: 1 1;
367             text {
368                style: "toolbar_style";
369                min: 0 1;
370             }
371          }
372          description { state: "visible" 0.0;
373             inherit: "default" 0.0;
374             visible: 1;
375          }
376          description { state: "clicked" 0.0;
377             inherit: "default" 0.0;
378             visible: 1;
379             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
380          }
381          description { state: "focused" 0.0;
382             inherit: "default" 0.0;
383             visible: 1;
384             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
385          }
386       }
387       part { name: "elm.text.clipper";
388          type: RECT;
389          description { state: "default" 0.0;
390             color: 255 255 255 255;
391          }
392          description { state: "animation" 0.0;
393             color: 255 255 255 0;
394          }
395          description { state: "disabled" 0.0;
396             color: 255 255 255 153;
397          }
398       }
399       part { name: "elm.text_new.clipper";
400          type: RECT;
401          description { state: "default" 0.0;
402             color: 255 255 255 0;
403          }
404          description { state: "animation" 0.0;
405             color: 255 255 255 255;
406          }
407          description { state: "disabled" 0.0;
408             color: 255 255 255 153;
409          }
410       }
411       part { name: "elm.icon.clipper";
412          type: RECT;
413          description { state: "default" 0.0;
414             color: 255 255 255 255;
415          }
416          description { state: "animation" 0.0;
417             color: 255 255 255 0;
418          }
419          description { state: "disabled" 0.0;
420             color: 255 255 255 153;
421          }
422       }
423       part { name: "elm.icon_new.clipper";
424          type: RECT;
425          description { state: "default" 0.0;
426             color: 255 255 255 0;
427          }
428          description { state: "animation" 0.0;
429             color: 255 255 255 255;
430          }
431          description { state: "disabled" 0.0;
432             color: 255 255 255 153;
433          }
434       }
435       part { name: "event";
436          type: RECT;
437          mouse_events: 1;
438          ignore_flags: ON_HOLD;
439          description { state: "default" 0.0;
440             color: 0 0 0 0;
441          }
442       }
443       part { name: "event2";
444          type: RECT;
445          mouse_events: 1;
446          repeat_events: 1;
447          description { state: "default" 0.0;
448             color: 0 0 0 0;
449          }
450       }
451    }
452    programs {
453       program { name: "pressed";
454          signal:  "mouse,down,1";
455          source:  "event";
456          script {
457             if (get_int(item_state) != ITEM_STATE_DISABLED)
458               set_state(PART:"bg", "selected", 0.0);
459          }
460          transition: LINEAR 0.2;
461       }
462       program { name: "unpressed";
463          signal:  "mouse,up,1";
464          source:  "event2";
465          action:  STATE_SET "default" 0.0;
466          target:  "bg";
467          transition: LINEAR 0.1;
468       }
469       program { name: "go";
470          signal:  "mouse,up,1";
471          source:  "event";
472          action:  SIGNAL_EMIT "elm,action,click" "elm";
473       }
474       program { name: "mouse,in";
475          signal:  "mouse,in";
476          source:  "event";
477          action:  SIGNAL_EMIT "elm,mouse,in" "elm";
478       }
479       program { name: "mouse,out";
480          signal:  "mouse,out";
481          source:  "event";
482          action:  SIGNAL_EMIT "elm,mouse,out" "elm";
483       }
484       program { name: "disable";
485          signal: "elm,state,disabled";
486          source: "elm";
487          script {
488             set_int(item_state, ITEM_STATE_DISABLED);
489             set_state(PART:"bg", "disabled", 0.0);
490             set_state(PART:"elm.text.clipper", "disabled", 0.0);
491             set_state(PART:"elm.icon.clipper", "disabled", 0.0);
492             run_program(PROGRAM:"label_set,animation,done");
493             run_program(PROGRAM:"icon_set,animation,done");
494          }
495       }
496       program { name: "enable";
497          signal: "elm,state,enabled";
498          source: "elm";
499          script {
500             set_int(item_state, ITEM_STATE_ENABLED);
501             set_state(PART:"bg", "default", 0.0);
502             set_state(PART:"elm.text.clipper", "default", 0.0);
503             set_state(PART:"elm.icon.clipper", "default", 0.0);
504             run_program(PROGRAM:"label_set,animation,done");
505             run_program(PROGRAM:"icon_set,animation,done");
506          }
507       }
508       program { name: "label_set,animation,forward";
509          signal: "elm,state,label_set,forward";
510          source: "elm";
511          after: "label_set,animation";
512       }
513       program { name: "label_set,animation,backward";
514          signal: "elm,state,label_set,backward";
515          source: "elm";
516          after: "label_set,animation";
517       }
518       program { name: "label_set,animation";
519          signal: "elm,state,label_set";
520          source: "elm";
521          action: STATE_SET "animation" 0.0;
522          target: "elm.text.clipper";
523          target: "elm.text_new.clipper";
524          transition: LINEAR 0.2;
525          after: "label_set,animation,done";
526       }
527       program { name: "label_set,animation,done";
528          action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
529       }
530       program { name: "label,reset";
531          signal: "elm,state,label,reset";
532          source: "elm";
533          script {
534             set_state(PART:"elm.text_new.clipper", "default", 0.0);
535             if (get_int(item_state) != ITEM_STATE_DISABLED)
536               set_state(PART:"elm.text.clipper", "default", 0.0);
537             else
538               set_state(PART:"elm.text.clipper", "disabled", 0.0);
539          }
540       }
541       program { name: "icon_set,animation,forward";
542          signal: "elm,state,icon_set,forward";
543          source: "elm";
544          after: "icon_set,animation";
545       }
546       program { name: "icon_set,animation,backward";
547          signal: "elm,state,icon_set,backward";
548          source: "elm";
549          after: "icon_set,animation";
550       }
551       program { name: "icon_set,animation";
552          signal: "elm,state,icon_set";
553          source: "elm";
554          action: STATE_SET "animation" 0.0;
555          target: "elm.icon.clipper";
556          target: "elm.icon_new.clipper";
557          transition: LINEAR 0.2;
558          after: "icon_set,animation,done";
559       }
560       program { name: "icon_set,animation,done";
561          action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
562       }
563       program { name: "icon,reset";
564          signal: "elm,state,icon,reset";
565          source: "elm";
566          script {
567             set_state(PART:"elm.icon_new.clipper", "default", 0.0);
568             if (get_int(item_state) != ITEM_STATE_DISABLED)
569               set_state(PART:"elm.icon.clipper", "default", 0.0);
570             else
571               set_state(PART:"elm.icon.clipper", "disabled", 0.0);
572          }
573       }
574       program { name: "text_show";
575          signal: "elm,state,text,visible";
576          source: "elm";
577          script {
578             new st[31];
579             new Float:vl;
580             get_state(PART:"elm.swallow.icon", st, 30, vl);
581             if (!strcmp(st, "icononly"))
582               {
583                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
584                  set_state(PART:"icon_rect", "visible", 0.0);
585                  set_state(PART:"padding_after_icon", "visible", 0.0);
586               }
587             set_state(PART:"elm.text", "visible", 0.0);
588          }
589       }
590       program { name: "text_hide";
591          signal: "elm,state,text,hidden";
592          source: "elm";
593          script {
594             new st[31];
595             new Float:vl;
596             get_state(PART:"elm.swallow.icon", st, 30, vl);
597             if (!strcmp(st, "visible"))
598               {
599                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
600                  set_state(PART:"icon_rect", "icononly", 0.0);
601                  set_state(PART:"padding_after_icon", "icononly", 0.0);
602               }
603             set_state(PART:"elm.text", "default", 0.0);
604          }
605       }
606       program { name: "icon_show";
607          signal: "elm,state,icon,visible";
608          source: "elm";
609          script {
610             new st[31];
611             new Float:vl;
612             get_state(PART:"elm.text", st, 30, vl);
613             if (!strcmp(st, "visible"))
614               {
615                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
616                  set_state(PART:"icon_rect", "visible", 0.0);
617                  set_state(PART:"padding_after_icon", "visible", 0.0);
618               }
619             else
620               {
621                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
622                  set_state(PART:"icon_rect", "icononly", 0.0);
623                  set_state(PART:"padding_after_icon", "icononly", 0.0);
624               }
625          }
626       }
627    }
628 }
629
630 group { name: "elm/toolbar/item/item_horizontal";
631    inherit: "elm/toolbar/item/default";
632    script {
633       public item_state = ITEM_STATE_ENABLED;
634    }
635    parts {
636       part { name: "icon_rect";
637          description { state: "default" 0.0;
638             fixed: 1 0;
639             align: 0.0 0.5;
640          }
641          description { state: "visible" 0.0;
642             fixed: 1 0;
643             rel2 {
644                relative: 1.0 0.0;
645                to_x: "padding_left_top";
646                to_y: "padding_right_bottom";
647             }
648             align: 0.0 0.5;
649          }
650       }
651       part { name: "padding_after_icon";
652          description { state: "default" 0.0; //when only icon or no icon is there
653             rel1.relative: 1.0 0.0;
654             fixed: 1 1;
655          }
656          description { state: "visible" 0.0;
657             inherit: "default" 0.0;
658             min: 6 0;
659          }
660       }
661       part { name: "padding_before_text";
662          description { state: "default" 0.0; //when only icon or no icon is there
663             align: 1.0 0.5;
664             rel1 {
665                relative: 0.0 1.0;
666                to_x: "elm.text";
667                to_y: "padding_left_top";
668             }
669             rel2 {
670                to_x: "elm.text";
671                to_y: "padding_right_bottom";
672             }
673             fixed: 1 0;
674             min: 6 0;
675          }
676       }
677       part { name: "elm.swallow.icon";
678          description { state: "default" 0.0;
679             align: 0.0 0.5;
680             rel2 {
681                relative: 1.0 0.0;
682                to_x: "padding_left_top";
683                to_y: "padding_right_bottom";
684             }
685             fixed: 1 0;
686          }
687          description { state: "visible" 0.0;
688             fixed: 1 0;
689             align: 1.0 0.5;
690             rel1 {
691                relative: 0.0 1.0;
692                to_x: "padding_before_text";
693                to_y: "padding_left_top";
694             }
695             rel2 {
696                relative: 0.0 0.0;
697                to_x: "padding_before_text";
698                to_y: "padding_right_bottom";
699             }
700             aspect_preference: VERTICAL;
701          }
702          description { state: "icononly" 0.0;
703             aspect_preference: VERTICAL;
704          }
705       }
706       part { name: "elm.swallow.icon_new";
707          description { state: "default" 0.0;
708             align: 0.0 0.5;
709             rel2 {
710                relative: 1.0 0.0;
711                to_x: "padding_left_top";
712                to_y: "padding_right_bottom";
713             }
714             fixed: 1 0;
715          }
716          description { state: "visible" 0.0;
717             fixed: 1 0;
718             align: 1.0 0.5;
719             rel1 {
720                relative: 0.0 1.0;
721                to_x: "padding_before_text";
722                to_y: "padding_left_top";
723             }
724             rel2 {
725                relative: 0.0 0.0;
726                to_x: "padding_before_text";
727                to_y: "padding_right_bottom";
728             }
729             aspect_preference: VERTICAL;
730          }
731          description { state: "icononly" 0.0;
732             aspect_preference: VERTICAL;
733          }
734       }
735       part { name: "elm.text";
736          type: TEXTBLOCK;
737          description { state: "default" 0.0;
738             rel1 {
739                relative: 1.0 1.0;
740                to_x: "padding_after_icon";
741                to_y: "padding_left_top";
742             }
743             text {
744                style: "toolbar_style";
745                min: 1 0;
746             }
747          }
748          description { state: "selected" 0.0;
749             inherit: "default" 0.0;
750             visible: 1;
751          }
752          description { state: "visible" 0.0;
753             inherit: "default" 0.0;
754             visible: 1;
755          }
756          description { state: "clicked" 0.0;
757             inherit: "default" 0.0;
758             visible: 1;
759             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
760          }
761          description { state: "focused" 0.0;
762             inherit: "default" 0.0;
763             visible: 1;
764             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
765          }
766       }
767       part { name: "elm.text_new";
768          type: TEXTBLOCK;
769          description { state: "default" 0.0;
770             rel1 {
771                relative: 1.0 1.0;
772                to_x: "padding_after_icon";
773                to_y: "padding_left_top";
774             }
775             text {
776                style: "toolbar_style";
777                min: 1 0;
778             }
779          }
780          description { state: "selected" 0.0;
781             inherit: "default" 0.0;
782             visible: 1;
783          }
784          description { state: "visible" 0.0;
785             inherit: "default" 0.0;
786             visible: 1;
787          }
788          description { state: "clicked" 0.0;
789             inherit: "default" 0.0;
790             visible: 1;
791             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
792          }
793          description { state: "focused" 0.0;
794             inherit: "default" 0.0;
795             visible: 1;
796             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
797          }
798       }
799    }
800 }
801
802 group { name: "elm/toolbar/separator/default";
803    parts {
804       part { name: "base";
805          type: RECT;
806          description { state: "default" 0.0;
807             min: 3 1;
808             max: 3 9999;
809             color: 0 0 0 0;
810          }
811       }
812       part { name: "separator_left";
813          type: RECT;
814          description { state: "default" 0.0;
815             min: 1 1;
816             max: 1 9999;
817             fixed: 1 1;
818             rel1 {
819                 relative: 0.0 0.1;
820                 offset: 0 0;
821             }
822             rel2 {
823                 relative: 0.0 0.9;
824                 offset: 1 0;
825             }
826             color: TOOLBAR_ITEM_SEPARATOR_LEFT_COLOR_INC;
827          }
828       }
829       part { name: "separator_middle";
830          type: RECT;
831          description { state: "default" 0.0;
832             min: 1 1;
833             max: 1 9999;
834             fixed: 1 1;
835             rel1 {
836                 relative: 1.0 0.0;
837                 offset: 0 0;
838                 to: "separator_left";
839             }
840             rel2 {
841                 relative: 1.0 1.0;
842                 offset: 1 -1;
843                 to: "separator_left";
844             }
845             color: TOOLBAR_ITEM_SEPARATOR_MIDDLE_COLOR_INC;
846          }
847       }
848       part { name: "separator_right";
849          type: RECT;
850          description { state: "default" 0.0;
851             min: 1 1;
852             max: 1 9999;
853             fixed: 1 1;
854             rel1 {
855                 relative: 1.0 0.0;
856                 offset: 0 0;
857                 to: "separator_middle";
858             }
859             rel2 {
860                 relative: 1.0 1.0;
861                 offset: 1 -1;
862                 to: "separator_middle";
863             }
864             color: TOOLBAR_ITEM_SEPARATOR_RIGHT_COLOR_INC;
865          }
866       }
867    }
868 }
869
870 group { name: "elm/toolbar/object/default";
871    parts {
872       part { name: "elm.swallow.object"; // object group
873          type: SWALLOW;
874          description {
875              state: "default" 0.0;
876          }
877       }
878    }
879 }
880
881 group { name: "elm/toolbar/base/tabbar";
882    alias: "elm/toolbar/base/tabbar/item_horizontal";
883    images {
884       image: "00_winset_control_tabbar_bg_top.png" COMP;
885    }
886
887    parts {
888       part { name: "base";
889          mouse_events: 1;
890          description { state: "default" 0.0;
891             image.normal: "00_winset_control_tabbar_bg_top.png";
892          }
893       }
894       part { name: "clipper";
895          type: RECT;
896          mouse_events: 0;
897          description {
898             state: "default" 0.0;
899             rel1 {
900                to: "base";
901                offset: 2 2;
902             }
903             rel2 {
904                to: "base";
905                offset: -3 -3;
906             }
907          }
908       }
909       part { name: "elm.swallow.content";
910          clip_to: "clipper";
911          type: SWALLOW;
912          description {
913             state: "default" 0.0;
914             rel1.to: "clipper";
915             rel2.to: "clipper";
916          }
917       }
918       part { name: "event";
919          type: RECT;
920          mouse_events: 1;
921          repeat_events: 1;
922          description { state: "default" 0.0;
923             color: 0 0 0 0;
924          }
925       }
926    }
927 }
928
929 group { name: "elm/toolbar/item/tabbar";
930    images {
931       image: "00_winset_tabbar_focus.png" COMP;
932    }
933
934    data.item: "transition_animation_on" "1";
935    script {
936       public item_state = ITEM_STATE_ENABLED;
937    }
938    parts {
939       part { name: "bg";
940          mouse_events: 0;
941          description { state: "default" 0.0;
942             visible: 0;
943             color: 255 255 255 0;
944             image {
945                normal: "00_winset_tabbar_focus.png";
946             }
947             image.middle: SOLID;
948             fill.smooth: 0;
949          }
950          description { state: "selected" 0.0;
951             inherit: "default" 0.0;
952             visible: 1;
953             color: 255 255 255 255;
954          }
955          description { state: "disabled" 0.0;
956             inherit: "default" 0.0;
957             visible: 0;
958             color: 255 255 255 0;
959          }
960       }
961       part { name: "padding_left_top";
962             type: RECT;
963             scale: 1;
964             mouse_events: 0;
965             description { state: "default" 0.0;
966                align: 0.0 0.0;
967                rel2.relative: 0.0 0.0;
968                min: 10 8;
969                fixed: 1 1;
970                visible: 1;
971                color: 0 0 0 0;
972             }
973          }
974       part { name: "padding_right_bottom";
975          type: RECT;
976          scale: 1;
977          mouse_events: 0;
978          description { state: "default" 0.0;
979             align: 1.0 1.0;
980             rel1.relative: 1.0 1.0;
981             min: 10 5;
982             fixed: 1 1;
983             visible: 1;
984             color: 0 0 0 0;
985          }
986       }
987       part {
988          name: "icon_rect";
989          type: RECT;
990          scale: 1;
991          mouse_events: 0;
992          description { state: "default" 0.0;
993             min: 0 0;
994             fixed: 0 1;
995             rel1 {
996                relative: 1.0 1.0;
997                to: "padding_left_top";
998             }
999             rel2 {
1000                relative: 0.0 1.0;
1001                to_x: "padding_right_bottom";
1002                to_y: "padding_left_top";
1003             }
1004             align: 0.5 0.0;
1005             color: 0 0 0 0;
1006          }
1007          description { state: "visible" 0.0;
1008             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1009             fixed: 0 1;
1010             rel1 {
1011                relative: 1.0 1.0;
1012                to: "padding_left_top";
1013             }
1014             rel2 {
1015                relative: 0.0 1.0;
1016                to_x: "padding_right_bottom";
1017                to_y: "padding_left_top";
1018             }
1019             align: 0.5 0.0;
1020             color: 0 0 0 0;
1021          }
1022          description { state: "icononly" 0.0;
1023             inherit: "default" 0.0;
1024          }
1025       }
1026       part { name: "padding_after_icon";
1027          type: RECT;
1028          scale: 1;
1029          mouse_events: 0;
1030          description { state: "default" 0.0; //when only icon or no icon is there
1031             align: 0.0 0.0;
1032             rel1 {
1033                relative: 0.0 1.0;
1034                to: "icon_rect";
1035             }
1036             rel2.to: "icon_rect";
1037             fixed: 0 1;
1038             min: 0 0;
1039             color: 0 0 0 0;
1040          }
1041          description { state: "visible" 0.0;
1042             align: 0.0 0.0;
1043             rel1 {
1044                relative: 0.0 1.0;
1045                to: "icon_rect";
1046             }
1047             rel2.to: "icon_rect";
1048             fixed: 0 1;
1049             min: 0 0;
1050             color: 0 0 0 0;
1051          }
1052          description { state: "icononly" 0.0;
1053             inherit: "default" 0.0;
1054          }
1055       }
1056       part { name: "padding_before_text";
1057          type: RECT;
1058          scale: 1;
1059          mouse_events: 0;
1060          description { state: "default" 0.0; //when only icon or no icon is there
1061             align: 0.5 1.0;
1062             rel1 {
1063                relative: 1.0 0.0;
1064                to_x: "padding_left_top";
1065                to_y: "elm.text";
1066             }
1067             rel2 {
1068                relative: 0.0 0.0;
1069                to_x: "padding_right_bottom";
1070                to_y: "elm.text";
1071             }
1072             fixed: 0 1;
1073             min: 0 0;
1074             color: 0 0 0 0;
1075          }
1076       }
1077       part { name: "elm.swallow.icon";
1078          type: SWALLOW;
1079          scale: 1;
1080          clip_to: "elm.icon.clipper";
1081          description { state: "default" 0.0;
1082             visible: 0;
1083             align: 0.5 0.0;
1084             rel1 {
1085                relative: 1.0 1.0;
1086                to: "padding_left_top";
1087             }
1088             rel2 {
1089                relative: 0.0 1.0;
1090                to_x: "padding_right_bottom";
1091                to_y: "padding_left_top";
1092             }
1093             fixed: 0 1;
1094          }
1095          description { state: "visible" 0.0;
1096             fixed: 0 1;
1097             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1098             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1099             rel1 {
1100                relative: 1.0 1.0;
1101                to: "padding_left_top";
1102             }
1103             rel2 {
1104                relative: 0.0 0.0;
1105                to_x: "padding_right_bottom";
1106                to_y: "padding_before_text";
1107             }
1108             aspect: 1.0 1.0;
1109             aspect_preference: HORIZONTAL;
1110          }
1111          description { state: "icononly" 0.0;
1112             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1113             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1114             rel1 {
1115                relative: 1.0 1.0;
1116                to: "padding_left_top";
1117             }
1118             rel2 {
1119                relative: 0.0 0.0;
1120                to: "padding_right_bottom";
1121             }
1122             aspect: 1.0 1.0;
1123             aspect_preference: HORIZONTAL;
1124          }
1125       }
1126       part { name: "elm.swallow.icon_new";
1127          type: SWALLOW;
1128          scale: 1;
1129          clip_to: "elm.icon_new.clipper";
1130          description { state: "default" 0.0;
1131             visible: 0;
1132             align: 0.5 0.0;
1133             rel1 {
1134                relative: 1.0 1.0;
1135                to: "padding_left_top";
1136             }
1137             rel2 {
1138                relative: 0.0 1.0;
1139                to_x: "padding_right_bottom";
1140                to_y: "padding_left_top";
1141             }
1142             fixed: 0 1;
1143          }
1144          description { state: "visible" 0.0;
1145             fixed: 0 1;
1146             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1147             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1148             rel1 {
1149                relative: 1.0 1.0;
1150                to: "padding_left_top";
1151             }
1152             rel2 {
1153                relative: 0.0 0.0;
1154                to_x: "padding_right_bottom";
1155                to_y: "padding_before_text";
1156             }
1157             aspect: 1.0 1.0;
1158             aspect_preference: HORIZONTAL;
1159          }
1160          description { state: "icononly" 0.0;
1161             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1162             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1163             rel1 {
1164                relative: 1.0 1.0;
1165                to: "padding_left_top";
1166             }
1167             rel2 {
1168                relative: 0.0 0.0;
1169                to: "padding_right_bottom";
1170             }
1171             aspect: 1.0 1.0;
1172             aspect_preference: HORIZONTAL;
1173          }
1174       }
1175       part { name: "elm.text";
1176          type: TEXTBLOCK;
1177          mouse_events: 0;
1178          scale: 1;
1179          clip_to: "elm.text.clipper";
1180          description { state: "default" 0.0;
1181             visible: 1;
1182             rel1 {
1183                relative: 1.0 1.0;
1184                to_x: "padding_left_top";
1185                to_y: "padding_after_icon";
1186             }
1187             rel2 {
1188                relative: 0.0 0.0;
1189                to: "padding_right_bottom";
1190             }
1191             color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1192             fixed: 1 1;
1193             text {
1194                style: "toolbar_style";
1195                min: 0 1;
1196             }
1197          }
1198          description { state: "selected" 0.0;
1199             inherit: "default" 0.0;
1200             visible: 1;
1201          }
1202          description { state: "visible" 0.0;
1203             inherit: "default" 0.0;
1204             visible: 1;
1205          }
1206          description { state: "clicked" 0.0;
1207             inherit: "default" 0.0;
1208             visible: 1;
1209             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1210          }
1211          description { state: "focused" 0.0;
1212             inherit: "default" 0.0;
1213             visible: 1;
1214             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1215          }
1216       }
1217       part { name: "elm.text_new";
1218          type: TEXTBLOCK;
1219          mouse_events: 0;
1220          scale: 1;
1221          clip_to: "elm.text_new.clipper";
1222          description { state: "default" 0.0;
1223             visible: 1;
1224             rel1 {
1225                relative: 1.0 1.0;
1226                to_x: "padding_left_top";
1227                to_y: "padding_after_icon";
1228             }
1229             rel2 {
1230                relative: 0.0 0.0;
1231                to: "padding_right_bottom";
1232             }
1233             color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1234             fixed: 1 1;
1235             text {
1236                style: "toolbar_style";
1237                min: 0 1;
1238             }
1239          }
1240          description { state: "visible" 0.0;
1241             inherit: "default" 0.0;
1242             visible: 1;
1243          }
1244          description { state: "clicked" 0.0;
1245             inherit: "default" 0.0;
1246             visible: 1;
1247             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1248          }
1249          description { state: "focused" 0.0;
1250             inherit: "default" 0.0;
1251             visible: 1;
1252             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1253          }
1254       }
1255       part { name: "elm.text.clipper";
1256          type: RECT;
1257          description { state: "default" 0.0;
1258             color: 255 255 255 255;
1259          }
1260          description { state: "animation" 0.0;
1261             color: 255 255 255 0;
1262          }
1263          description { state: "disabled" 0.0;
1264             color: 255 255 255 153;
1265          }
1266       }
1267       part { name: "elm.text_new.clipper";
1268          type: RECT;
1269          description { state: "default" 0.0;
1270             color: 255 255 255 0;
1271          }
1272          description { state: "animation" 0.0;
1273             color: 255 255 255 255;
1274          }
1275          description { state: "disabled" 0.0;
1276             color: 255 255 255 153;
1277          }
1278       }
1279       part { name: "elm.icon.clipper";
1280          type: RECT;
1281          description { state: "default" 0.0;
1282             color: 255 255 255 255;
1283          }
1284          description { state: "animation" 0.0;
1285             color: 255 255 255 0;
1286          }
1287          description { state: "disabled" 0.0;
1288             color: 255 255 255 153;
1289          }
1290       }
1291       part { name: "elm.icon_new.clipper";
1292          type: RECT;
1293          description { state: "default" 0.0;
1294             color: 255 255 255 0;
1295          }
1296          description { state: "animation" 0.0;
1297             color: 255 255 255 255;
1298          }
1299          description { state: "disabled" 0.0;
1300             color: 255 255 255 153;
1301          }
1302       }
1303       part { name: "event";
1304          type: RECT;
1305          mouse_events: 1;
1306          ignore_flags: ON_HOLD;
1307          description { state: "default" 0.0;
1308             color: 0 0 0 0;
1309          }
1310       }
1311    }
1312    programs {
1313       program { name: "go_active";
1314          signal:  "elm,state,selected";
1315          source:  "elm";
1316          action:  STATE_SET "selected" 0.0;
1317          target:  "bg";
1318          transition: LINEAR 0.2;
1319       }
1320       program { name: "go_passive";
1321          signal:  "elm,state,unselected";
1322          source:  "elm";
1323          action:  STATE_SET "default" 0.0;
1324          target:  "bg";
1325          transition: LINEAR 0.1;
1326       }/*
1327          program { name: "pressed";
1328          signal:  "mouse,down,1";
1329          source:  "event";
1330          action:  STATE_SET "selected" 0.0;
1331          target:  "bg";
1332          target:  "elm.text";
1333          target:  "elm.text_new";
1334          transition: LINEAR 0.2;
1335       }
1336       program { name: "unpressed";
1337          signal:  "mouse,up,1";
1338          source:  "event";
1339          action:  STATE_SET "default" 0.0;
1340          target:  "bg";
1341          target:  "elm.text";
1342          target:  "elm.text_new";
1343          transition: LINEAR 0.1;
1344       }*/
1345       program { name: "go";
1346          signal:  "mouse,up,1";
1347          source:  "event";
1348          action:  SIGNAL_EMIT "elm,action,click" "elm";
1349       }
1350       program { name: "mouse,in";
1351          signal:  "mouse,in";
1352          source:  "event";
1353          action:  SIGNAL_EMIT "elm,mouse,in" "elm";
1354       }
1355       program { name: "mouse,out";
1356          signal:  "mouse,out";
1357          source:  "event";
1358          action:  SIGNAL_EMIT "elm,mouse,out" "elm";
1359       }
1360       program { name: "disable";
1361          signal: "elm,state,disabled";
1362          source: "elm";
1363          script {
1364             set_int(item_state, ITEM_STATE_DISABLED);
1365             set_state(PART:"bg", "disabled", 0.0);
1366             set_state(PART:"elm.text.clipper", "disabled", 0.0);
1367             set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1368             run_program(PROGRAM:"label_set,animation,done");
1369             run_program(PROGRAM:"icon_set,animation,done");
1370          }
1371       }
1372       program { name: "enable";
1373          signal: "elm,state,enabled";
1374          source: "elm";
1375          script {
1376             set_int(item_state, ITEM_STATE_ENABLED);
1377             set_state(PART:"bg", "default", 0.0);
1378             set_state(PART:"elm.text.clipper", "default", 0.0);
1379             set_state(PART:"elm.icon.clipper", "default", 0.0);
1380             run_program(PROGRAM:"label_set,animation,done");
1381             run_program(PROGRAM:"icon_set,animation,done");
1382          }
1383       }
1384       program { name: "label_set,animation,forward";
1385          signal: "elm,state,label_set,forward";
1386          source: "elm";
1387          after: "label_set,animation";
1388       }
1389       program { name: "label_set,animation,backward";
1390          signal: "elm,state,label_set,backward";
1391          source: "elm";
1392          after: "label_set,animation";
1393       }
1394       program { name: "label_set,animation";
1395          signal: "elm,state,label_set";
1396          source: "elm";
1397          action: STATE_SET "animation" 0.0;
1398          target: "elm.text.clipper";
1399          target: "elm.text_new.clipper";
1400          transition: LINEAR 0.2;
1401          after: "label_set,animation,done";
1402       }
1403       program { name: "label_set,animation,done";
1404          action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
1405       }
1406       program { name: "label,reset";
1407          signal: "elm,state,label,reset";
1408          source: "elm";
1409          script {
1410             set_state(PART:"elm.text_new.clipper", "default", 0.0);
1411             if (get_int(item_state) != ITEM_STATE_DISABLED)
1412               set_state(PART:"elm.text.clipper", "default", 0.0);
1413             else
1414               set_state(PART:"elm.text.clipper", "disabled", 0.0);
1415          }
1416       }
1417       program { name: "icon_set,animation,forward";
1418          signal: "elm,state,icon_set,forward";
1419          source: "elm";
1420          after: "icon_set,animation";
1421       }
1422       program { name: "icon_set,animation,backward";
1423          signal: "elm,state,icon_set,backward";
1424          source: "elm";
1425          after: "icon_set,animation";
1426       }
1427       program { name: "icon_set,animation";
1428          signal: "elm,state,icon_set";
1429          source: "elm";
1430          action: STATE_SET "animation" 0.0;
1431          target: "elm.icon.clipper";
1432          target: "elm.icon_new.clipper";
1433          transition: LINEAR 0.2;
1434          after: "icon_set,animation,done";
1435       }
1436       program { name: "icon_set,animation,done";
1437          action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
1438       }
1439       program { name: "icon,reset";
1440          signal: "elm,state,icon,reset";
1441          source: "elm";
1442          script {
1443             set_state(PART:"elm.icon_new.clipper", "default", 0.0);
1444             if (get_int(item_state) != ITEM_STATE_DISABLED)
1445               set_state(PART:"elm.icon.clipper", "default", 0.0);
1446             else
1447               set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1448          }
1449       }
1450       program { name: "text_show";
1451          signal: "elm,state,text,visible";
1452          source: "elm";
1453          script {
1454             new st[31];
1455             new Float:vl;
1456             get_state(PART:"elm.swallow.icon", st, 30, vl);
1457             if (!strcmp(st, "icononly"))
1458               {
1459                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
1460                  set_state(PART:"icon_rect", "visible", 0.0);
1461                  set_state(PART:"padding_after_icon", "visible", 0.0);
1462               }
1463             set_state(PART:"elm.text", "visible", 0.0);
1464          }
1465       }
1466       program { name: "text_hide";
1467          signal: "elm,state,text,hidden";
1468          source: "elm";
1469          script {
1470             new st[31];
1471             new Float:vl;
1472             get_state(PART:"elm.swallow.icon", st, 30, vl);
1473             if (!strcmp(st, "visible"))
1474               {
1475                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1476                  set_state(PART:"icon_rect", "icononly", 0.0);
1477                  set_state(PART:"padding_after_icon", "icononly", 0.0);
1478               }
1479             set_state(PART:"elm.text", "default", 0.0);
1480          }
1481       }
1482       program { name: "icon_show";
1483          signal: "elm,state,icon,visible";
1484          source: "elm";
1485          script {
1486             new st[31];
1487             new Float:vl;
1488             get_state(PART:"elm.text", st, 30, vl);
1489             if (!strcmp(st, "visible"))
1490               {
1491                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
1492                  set_state(PART:"icon_rect", "visible", 0.0);
1493                  set_state(PART:"padding_after_icon", "visible", 0.0);
1494               }
1495             else
1496               {
1497                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1498                  set_state(PART:"icon_rect", "icononly", 0.0);
1499                  set_state(PART:"padding_after_icon", "icononly", 0.0);
1500               }
1501          }
1502       }
1503    }
1504 }
1505
1506 group { name: "elm/toolbar/item/tabbar/item_horizontal";
1507    inherit: "elm/toolbar/item/tabbar";
1508    script {
1509       public item_state = ITEM_STATE_ENABLED;
1510    }
1511    parts {
1512       part { name: "icon_rect";
1513          description { state: "default" 0.0;
1514             fixed: 1 0;
1515             align: 0.0 0.5;
1516          }
1517          description { state: "visible" 0.0;
1518             fixed: 1 0;
1519             rel2 {
1520                relative: 1.0 0.0;
1521                to_x: "padding_left_top";
1522                to_y: "padding_right_bottom";
1523             }
1524             align: 0.0 0.5;
1525          }
1526       }
1527       part { name: "padding_after_icon";
1528          description { state: "default" 0.0; //when only icon or no icon is there
1529             rel1.relative: 1.0 0.0;
1530             fixed: 1 1;
1531          }
1532          description { state: "visible" 0.0;
1533             inherit: "default" 0.0;
1534             min: 6 0;
1535          }
1536       }
1537       part { name: "padding_before_text";
1538          description { state: "default" 0.0; //when only icon or no icon is there
1539             align: 1.0 0.5;
1540             rel1 {
1541                relative: 0.0 1.0;
1542                to_x: "elm.text";
1543                to_y: "padding_left_top";
1544             }
1545             rel2 {
1546                to_x: "elm.text";
1547                to_y: "padding_right_bottom";
1548             }
1549             fixed: 1 0;
1550             min: 6 0;
1551          }
1552       }
1553       part { name: "elm.swallow.icon";
1554          description { state: "default" 0.0;
1555             align: 0.0 0.5;
1556             rel2 {
1557                relative: 1.0 0.0;
1558                to_x: "padding_left_top";
1559                to_y: "padding_right_bottom";
1560             }
1561             fixed: 1 0;
1562          }
1563          description { state: "visible" 0.0;
1564             fixed: 1 0;
1565             align: 1.0 0.5;
1566             rel1 {
1567                relative: 0.0 1.0;
1568                to_x: "padding_before_text";
1569                to_y: "padding_left_top";
1570             }
1571             rel2 {
1572                relative: 0.0 0.0;
1573                to_x: "padding_before_text";
1574                to_y: "padding_right_bottom";
1575             }
1576             aspect_preference: VERTICAL;
1577          }
1578          description { state: "icononly" 0.0;
1579             aspect_preference: VERTICAL;
1580          }
1581       }
1582       part { name: "elm.swallow.icon_new";
1583          description { state: "default" 0.0;
1584             align: 0.0 0.5;
1585             rel2 {
1586                relative: 1.0 0.0;
1587                to_x: "padding_left_top";
1588                to_y: "padding_right_bottom";
1589             }
1590             fixed: 1 0;
1591          }
1592          description { state: "visible" 0.0;
1593             fixed: 1 0;
1594             align: 1.0 0.5;
1595             rel1 {
1596                relative: 0.0 1.0;
1597                to_x: "padding_before_text";
1598                to_y: "padding_left_top";
1599             }
1600             rel2 {
1601                relative: 0.0 0.0;
1602                to_x: "padding_before_text";
1603                to_y: "padding_right_bottom";
1604             }
1605             aspect_preference: VERTICAL;
1606          }
1607          description { state: "icononly" 0.0;
1608             aspect_preference: VERTICAL;
1609          }
1610       }
1611       part { name: "elm.text";
1612          type: TEXTBLOCK;
1613          description { state: "default" 0.0;
1614             rel1 {
1615                relative: 1.0 1.0;
1616                to_x: "padding_after_icon";
1617                to_y: "padding_left_top";
1618             }
1619             text {
1620                style: "toolbar_style";
1621                min: 1 0;
1622             }
1623          }
1624          description { state: "selected" 0.0;
1625             inherit: "default" 0.0;
1626             visible: 1;
1627          }
1628          description { state: "visible" 0.0;
1629             inherit: "default" 0.0;
1630             visible: 1;
1631          }
1632          description { state: "clicked" 0.0;
1633             inherit: "default" 0.0;
1634             visible: 1;
1635             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1636          }
1637          description { state: "focused" 0.0;
1638             inherit: "default" 0.0;
1639             visible: 1;
1640             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1641          }
1642       }
1643       part { name: "elm.text_new";
1644          type: TEXTBLOCK;
1645          description { state: "default" 0.0;
1646             rel1 {
1647                relative: 1.0 1.0;
1648                to_x: "padding_after_icon";
1649                to_y: "padding_left_top";
1650             }
1651             text {
1652                style: "toolbar_style";
1653                min: 1 0;
1654             }
1655          }
1656          description { state: "selected" 0.0;
1657             inherit: "default" 0.0;
1658             visible: 1;
1659          }
1660          description { state: "visible" 0.0;
1661             inherit: "default" 0.0;
1662             visible: 1;
1663          }
1664          description { state: "clicked" 0.0;
1665             inherit: "default" 0.0;
1666             visible: 1;
1667             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1668          }
1669          description { state: "focused" 0.0;
1670             inherit: "default" 0.0;
1671             visible: 1;
1672             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1673          }
1674       }
1675    }
1676 }
1677
1678 group { name: "elm/toolbar/base/naviframe";
1679    parts {
1680       part { name: "base";
1681          mouse_events: 1;
1682          description { state: "default" 0.0;
1683             color: 0 0 0 0;
1684          }
1685       }
1686       part { name: "clipper";
1687          type: RECT;
1688          mouse_events: 0;
1689          description {
1690             state: "default" 0.0;
1691             rel1 {
1692                to: "base";
1693                offset: 2 2;
1694             }
1695             rel2 {
1696                to: "base";
1697                offset: -3 -3;
1698             }
1699          }
1700       }
1701       part { name: "elm.swallow.content";
1702          clip_to: "clipper";
1703          type: SWALLOW;
1704          description {
1705             state: "default" 0.0;
1706             rel1.to: "clipper";
1707             rel2.to: "clipper";
1708          }
1709       }
1710       part { name: "event";
1711          type: RECT;
1712          mouse_events: 1;
1713          repeat_events: 1;
1714          description { state: "default" 0.0;
1715             color: 0 0 0 0;
1716          }
1717       }
1718    }
1719 }
1720
1721 group { name: "elm/toolbar/object/naviframe";
1722    parts {
1723       part { name: "elm.swallow.object"; // object group
1724          type: SWALLOW;
1725          description {
1726              state: "default" 0.0;
1727                          rel1.offset: 5 0;
1728                          rel2.offset: -6 -1;
1729          }
1730       }
1731    }
1732 }
1733