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