Merge "Fix build break & Temporary disable flip icon"
[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: 4 4;
96             }
97             rel2 {
98                relative: 1.0 1.0;
99                offset: -5 -5;
100             }
101             image {
102                normal: "00_winset_toolbar_press.png";
103                border: 3 3 3 3;
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    script {
651       public item_state = ITEM_STATE_ENABLED;
652    }
653    parts {
654       part { name: "icon_rect";
655          description { state: "default" 0.0;
656             fixed: 1 0;
657             align: 0.0 0.5;
658          }
659          description { state: "visible" 0.0;
660             fixed: 1 0;
661             rel2 {
662                relative: 1.0 0.0;
663                to_x: "padding_left_top";
664                to_y: "padding_right_bottom";
665             }
666             align: 0.0 0.5;
667          }
668       }
669       part { name: "padding_after_icon";
670          description { state: "default" 0.0; //when only icon or no icon is there
671             rel1.relative: 1.0 0.0;
672             fixed: 1 1;
673          }
674          description { state: "visible" 0.0;
675             inherit: "default" 0.0;
676             min: 6 0;
677          }
678       }
679       part { name: "padding_before_text";
680          description { state: "default" 0.0; //when only icon or no icon is there
681             align: 1.0 0.5;
682             rel1 {
683                relative: 0.0 1.0;
684                to_x: "elm.text";
685                to_y: "padding_left_top";
686             }
687             rel2 {
688                to_x: "elm.text";
689                to_y: "padding_right_bottom";
690             }
691             fixed: 1 0;
692             min: 6 0;
693          }
694       }
695       part { name: "elm.swallow.icon";
696          description { state: "default" 0.0;
697             align: 0.0 0.5;
698             rel2 {
699                relative: 1.0 0.0;
700                to_x: "padding_left_top";
701                to_y: "padding_right_bottom";
702             }
703             fixed: 1 0;
704          }
705          description { state: "visible" 0.0;
706             fixed: 1 0;
707             align: 1.0 0.5;
708             rel1 {
709                relative: 0.0 1.0;
710                to_x: "padding_before_text";
711                to_y: "padding_left_top";
712             }
713             rel2 {
714                relative: 0.0 0.0;
715                to_x: "padding_before_text";
716                to_y: "padding_right_bottom";
717             }
718             aspect_preference: VERTICAL;
719          }
720          description { state: "icononly" 0.0;
721             aspect_preference: VERTICAL;
722          }
723       }
724       part { name: "elm.swallow.icon_new";
725          description { state: "default" 0.0;
726             align: 0.0 0.5;
727             rel2 {
728                relative: 1.0 0.0;
729                to_x: "padding_left_top";
730                to_y: "padding_right_bottom";
731             }
732             fixed: 1 0;
733          }
734          description { state: "visible" 0.0;
735             fixed: 1 0;
736             align: 1.0 0.5;
737             rel1 {
738                relative: 0.0 1.0;
739                to_x: "padding_before_text";
740                to_y: "padding_left_top";
741             }
742             rel2 {
743                relative: 0.0 0.0;
744                to_x: "padding_before_text";
745                to_y: "padding_right_bottom";
746             }
747             aspect_preference: VERTICAL;
748          }
749          description { state: "icononly" 0.0;
750             aspect_preference: VERTICAL;
751          }
752       }
753       part { name: "elm.text";
754          type: TEXTBLOCK;
755          description { state: "default" 0.0;
756             rel1 {
757                relative: 1.0 1.0;
758                to_x: "padding_after_icon";
759                to_y: "padding_left_top";
760             }
761             text {
762                style: "toolbar_style";
763                min: 1 0;
764             }
765          }
766          description { state: "selected" 0.0;
767             inherit: "default" 0.0;
768             visible: 1;
769          }
770          description { state: "visible" 0.0;
771             inherit: "default" 0.0;
772             visible: 1;
773          }
774          description { state: "clicked" 0.0;
775             inherit: "default" 0.0;
776             visible: 1;
777             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
778          }
779          description { state: "focused" 0.0;
780             inherit: "default" 0.0;
781             visible: 1;
782             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
783          }
784       }
785       part { name: "elm.text_new";
786          type: TEXTBLOCK;
787          description { state: "default" 0.0;
788             rel1 {
789                relative: 1.0 1.0;
790                to_x: "padding_after_icon";
791                to_y: "padding_left_top";
792             }
793             text {
794                style: "toolbar_style";
795                min: 1 0;
796             }
797          }
798          description { state: "selected" 0.0;
799             inherit: "default" 0.0;
800             visible: 1;
801          }
802          description { state: "visible" 0.0;
803             inherit: "default" 0.0;
804             visible: 1;
805          }
806          description { state: "clicked" 0.0;
807             inherit: "default" 0.0;
808             visible: 1;
809             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
810          }
811          description { state: "focused" 0.0;
812             inherit: "default" 0.0;
813             visible: 1;
814             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
815          }
816       }
817    }
818 }
819
820 group { name: "elm/toolbar/separator/default";
821    parts {
822       part { name: "base";
823          type: RECT;
824          description { state: "default" 0.0;
825             min: 3 1;
826             max: 3 9999;
827             color: 0 0 0 0;
828          }
829       }
830       part { name: "separator_left";
831          type: RECT;
832          description { state: "default" 0.0;
833             min: 1 1;
834             max: 1 9999;
835             fixed: 1 1;
836             rel1 {
837                 relative: 0.0 0.1;
838                 offset: 0 0;
839             }
840             rel2 {
841                 relative: 0.0 0.9;
842                 offset: 1 0;
843             }
844             color: TOOLBAR_ITEM_SEPARATOR_LEFT_COLOR_INC;
845          }
846       }
847       part { name: "separator_middle";
848          type: RECT;
849          description { state: "default" 0.0;
850             min: 1 1;
851             max: 1 9999;
852             fixed: 1 1;
853             rel1 {
854                 relative: 1.0 0.0;
855                 offset: 0 0;
856                 to: "separator_left";
857             }
858             rel2 {
859                 relative: 1.0 1.0;
860                 offset: 1 -1;
861                 to: "separator_left";
862             }
863             color: TOOLBAR_ITEM_SEPARATOR_MIDDLE_COLOR_INC;
864          }
865       }
866       part { name: "separator_right";
867          type: RECT;
868          description { state: "default" 0.0;
869             min: 1 1;
870             max: 1 9999;
871             fixed: 1 1;
872             rel1 {
873                 relative: 1.0 0.0;
874                 offset: 0 0;
875                 to: "separator_middle";
876             }
877             rel2 {
878                 relative: 1.0 1.0;
879                 offset: 1 -1;
880                 to: "separator_middle";
881             }
882             color: TOOLBAR_ITEM_SEPARATOR_RIGHT_COLOR_INC;
883          }
884       }
885    }
886 }
887
888 group { name: "elm/toolbar/object/default";
889    parts {
890       part { name: "elm.swallow.object"; // object group
891          type: SWALLOW;
892          description {
893              state: "default" 0.0;
894          }
895       }
896    }
897 }
898
899 group { name: "elm/toolbar/base/tabbar";
900    alias: "elm/toolbar/base/tabbar/item_horizontal";
901    images {
902       image: "00_winset_title_tabbar_bg.png" COMP;
903    }
904
905    parts {
906       part { name: "base";
907          mouse_events: 1;
908          description { state: "default" 0.0;
909             image.normal: "00_winset_title_tabbar_bg.png";
910          }
911       }
912       part { name: "clipper";
913          type: RECT;
914          mouse_events: 0;
915          description {
916             state: "default" 0.0;
917             rel1 {
918                to: "base";
919                offset: 2 2;
920             }
921             rel2 {
922                to: "base";
923                offset: -3 -3;
924             }
925          }
926       }
927       part { name: "elm.swallow.content";
928          clip_to: "clipper";
929          type: SWALLOW;
930          description {
931             state: "default" 0.0;
932             rel1.to: "clipper";
933             rel2.to: "clipper";
934          }
935       }
936       part { name: "event";
937          type: RECT;
938          mouse_events: 1;
939          repeat_events: 1;
940          description { state: "default" 0.0;
941             color: 0 0 0 0;
942          }
943       }
944    }
945 }
946
947 group { name: "elm/toolbar/more/tabbar";
948    images {
949       image: "00_winset_control_tab_h_line_h.png" COMP;
950    }
951    parts {
952       part { name: "base";
953          mouse_events: 1;
954          description { state: "default" 0.0;
955             rel1.relative: 0.0 0.0;
956             rel2.relative: 1.0 0.0;
957             image.normal: "00_winset_title_tabbar_bg.png";
958          }
959          description { state: "open" 0.0;
960             inherit: "default" 0.0;
961             rel2.relative: 1.0 1.0;
962          }
963          description { state: "open2" 0.0;
964             inherit: "default" 0.0;
965             rel2.relative: 1.0 2.0;
966          }
967       }
968       part { name: "clipper";
969          type: RECT;
970          mouse_events: 0;
971          description {
972             state: "default" 0.0;
973             fixed: 1 1;
974             rel1 {
975                to: "base";
976             }
977             rel2 {
978                to: "base";
979             }
980          }
981          description { state: "open" 0.0;
982             inherit: "default" 0.0;
983             rel2.relative: 1.0 1.0;
984          }
985          description { state: "open2" 0.0;
986             inherit: "default" 0.0;
987             rel2.relative: 1.0 0.5;
988          }
989       }
990       part { name: "clipper2";
991          type: RECT;
992          mouse_events: 0;
993          description {
994             state: "default" 0.0;
995             fixed: 1 1;
996             rel1 {
997                relative: 0.0 0.5;
998                to: "base";
999             }
1000             rel2 {
1001                to: "base";
1002             }
1003          }
1004          description { state: "open" 0.0;
1005             inherit: "default" 0.0;
1006             rel1.relative: 0.0 1.0;
1007          }
1008          description { state: "open2" 0.0;
1009             inherit: "default" 0.0;
1010             rel1.relative: 0.0 0.5;
1011          }
1012       }
1013       part { name: "elm.swallow.content";
1014          clip_to: "clipper";
1015          type: SWALLOW;
1016          description {
1017             state: "default" 0.0;
1018             fixed: 1 1;
1019             rel1.to: "clipper";
1020             rel2.to: "clipper";
1021          }
1022       }
1023       part { name: "elm.swallow.content2";
1024          clip_to: "clipper2";
1025          type: SWALLOW;
1026          description {
1027             state: "default" 0.0;
1028             fixed: 1 1;
1029             rel1.to: "clipper2";
1030             rel2.to: "clipper2";
1031          }
1032       }
1033       part { name: "separator";
1034          clip_to: "clipper";
1035          description { state: "default" 0.0;
1036             min: 2 3;
1037             max: 9999 3;
1038             fixed: 1 1;
1039             rel1 {
1040                 relative: 0.0 0.0;
1041                 offset: 0 0;
1042                 to: "clipper";
1043             }
1044             rel2 {
1045                 relative: 1.0 0.0;
1046                 offset: -1 3;
1047                 to: "clipper";
1048             }
1049             image {
1050                normal: "00_winset_control_tab_h_line_h.png";
1051                border: 1 1 1 1;
1052             }
1053             fill {
1054                smooth: 0;
1055             }
1056          }
1057       }
1058       part { name: "separator2";
1059          clip_to: "clipper2";
1060          description { state: "default" 0.0;
1061             min: 2 3;
1062             max: 9999 3;
1063             fixed: 1 1;
1064             rel1 {
1065                 relative: 0.0 0.0;
1066                 offset: 0 0;
1067                 to: "clipper2";
1068             }
1069             rel2 {
1070                 relative: 1.0 0.0;
1071                 offset: -1 3;
1072                 to: "clipper2";
1073             }
1074             image {
1075                normal: "00_winset_control_tab_h_line_h.png";
1076                border: 1 1 1 1;
1077             }
1078             fill {
1079                smooth: 0;
1080             }
1081          }
1082       }
1083    }
1084    programs {
1085       program { name: "open";
1086          signal:  "elm,state,open";
1087          source:  "elm";
1088          action:  STATE_SET "open" 0.0;
1089          target:  "base";
1090          target:  "clipper";
1091          target:  "clipper2";
1092          transition: LINEAR 0.2;
1093       }
1094       program { name: "open2";
1095          signal:  "elm,state,open2";
1096          source:  "elm";
1097          action:  STATE_SET "open2" 0.0;
1098          target:  "base";
1099          target:  "clipper";
1100          target:  "clipper2";
1101          transition: LINEAR 0.2;
1102       }
1103       program { name: "close";
1104          signal:  "elm,state,close";
1105          source:  "elm";
1106          action:  STATE_SET "default" 0.0;
1107          target:  "base";
1108          transition: LINEAR 0.2;
1109       }
1110    }
1111 }
1112
1113 group { name: "elm/toolbar/item/tabbar";
1114    images {
1115       image: "00_winset_tabbar_focus.png" COMP;
1116       image: "00_tab_move_bg.png" COMP;
1117    }
1118
1119    data.item: "transition_animation_on" "1";
1120    script {
1121       public item_state = ITEM_STATE_ENABLED;
1122    }
1123    parts {
1124       part { name: "bg";
1125          mouse_events: 0;
1126          description { state: "default" 0.0;
1127             visible: 0;
1128             color: 255 255 255 0;
1129             image {
1130                normal: "00_winset_tabbar_focus.png";
1131             }
1132             image.middle: SOLID;
1133             fill.smooth: 0;
1134          }
1135          description { state: "selected" 0.0;
1136             inherit: "default" 0.0;
1137             visible: 1;
1138             color: 255 255 255 255;
1139          }
1140          description { state: "disabled" 0.0;
1141             inherit: "default" 0.0;
1142             visible: 0;
1143             color: 255 255 255 0;
1144          }
1145          description { state: "moving" 0.0;
1146             inherit: "default" 0.0;
1147             visible: 1;
1148             image.normal: "00_tab_move_bg.png";
1149             image.border: 10 10 10 10;
1150             color: 255 255 255 255;
1151          }
1152       }
1153       part { name: "padding_left_top";
1154             type: RECT;
1155             scale: 1;
1156             mouse_events: 0;
1157             description { state: "default" 0.0;
1158                align: 0.0 0.0;
1159                rel2.relative: 0.0 0.0;
1160                min: 10 8;
1161                fixed: 1 1;
1162                visible: 1;
1163                color: 0 0 0 0;
1164             }
1165          }
1166       part { name: "padding_right_bottom";
1167          type: RECT;
1168          scale: 1;
1169          mouse_events: 0;
1170          description { state: "default" 0.0;
1171             align: 1.0 1.0;
1172             rel1.relative: 1.0 1.0;
1173             min: 10 5;
1174             fixed: 1 1;
1175             visible: 1;
1176             color: 0 0 0 0;
1177          }
1178       }
1179       part {
1180          name: "icon_rect";
1181          type: RECT;
1182          scale: 1;
1183          mouse_events: 0;
1184          description { state: "default" 0.0;
1185             min: 0 0;
1186             fixed: 0 1;
1187             rel1 {
1188                relative: 1.0 1.0;
1189                to: "padding_left_top";
1190             }
1191             rel2 {
1192                relative: 0.0 1.0;
1193                to_x: "padding_right_bottom";
1194                to_y: "padding_left_top";
1195             }
1196             align: 0.5 0.0;
1197             color: 0 0 0 0;
1198          }
1199          description { state: "visible" 0.0;
1200             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1201             fixed: 0 1;
1202             rel1 {
1203                relative: 1.0 1.0;
1204                to: "padding_left_top";
1205             }
1206             rel2 {
1207                relative: 0.0 1.0;
1208                to_x: "padding_right_bottom";
1209                to_y: "padding_left_top";
1210             }
1211             align: 0.5 0.0;
1212             color: 0 0 0 0;
1213          }
1214          description { state: "icononly" 0.0;
1215             inherit: "default" 0.0;
1216          }
1217       }
1218       part { name: "padding_after_icon";
1219          type: RECT;
1220          scale: 1;
1221          mouse_events: 0;
1222          description { state: "default" 0.0; //when only icon or no icon is there
1223             align: 0.0 0.0;
1224             rel1 {
1225                relative: 0.0 1.0;
1226                to: "icon_rect";
1227             }
1228             rel2.to: "icon_rect";
1229             fixed: 0 1;
1230             min: 0 0;
1231             color: 0 0 0 0;
1232          }
1233          description { state: "visible" 0.0;
1234             align: 0.0 0.0;
1235             rel1 {
1236                relative: 0.0 1.0;
1237                to: "icon_rect";
1238             }
1239             rel2.to: "icon_rect";
1240             fixed: 0 1;
1241             min: 0 0;
1242             color: 0 0 0 0;
1243          }
1244          description { state: "icononly" 0.0;
1245             inherit: "default" 0.0;
1246          }
1247       }
1248       part { name: "padding_before_text";
1249          type: RECT;
1250          scale: 1;
1251          mouse_events: 0;
1252          description { state: "default" 0.0; //when only icon or no icon is there
1253             align: 0.5 1.0;
1254             rel1 {
1255                relative: 1.0 0.0;
1256                to_x: "padding_left_top";
1257                to_y: "elm.text";
1258             }
1259             rel2 {
1260                relative: 0.0 0.0;
1261                to_x: "padding_right_bottom";
1262                to_y: "elm.text";
1263             }
1264             fixed: 0 1;
1265             min: 0 0;
1266             color: 0 0 0 0;
1267          }
1268       }
1269       part { name: "elm.swallow.icon";
1270          type: SWALLOW;
1271          scale: 1;
1272          clip_to: "elm.icon.clipper";
1273          description { state: "default" 0.0;
1274             visible: 0;
1275             align: 0.5 0.0;
1276             rel1 {
1277                relative: 1.0 1.0;
1278                to: "padding_left_top";
1279             }
1280             rel2 {
1281                relative: 0.0 1.0;
1282                to_x: "padding_right_bottom";
1283                to_y: "padding_left_top";
1284             }
1285             fixed: 0 1;
1286          }
1287          description { state: "visible" 0.0;
1288             fixed: 0 1;
1289             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1290             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1291             rel1 {
1292                relative: 1.0 1.0;
1293                to: "padding_left_top";
1294             }
1295             rel2 {
1296                relative: 0.0 0.0;
1297                to_x: "padding_right_bottom";
1298                to_y: "padding_before_text";
1299             }
1300             aspect: 1.0 1.0;
1301             aspect_preference: HORIZONTAL;
1302          }
1303          description { state: "icononly" 0.0;
1304             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1305             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1306             rel1 {
1307                relative: 1.0 1.0;
1308                to: "padding_left_top";
1309             }
1310             rel2 {
1311                relative: 0.0 0.0;
1312                to: "padding_right_bottom";
1313             }
1314             aspect: 1.0 1.0;
1315             aspect_preference: HORIZONTAL;
1316          }
1317       }
1318       part { name: "elm.swallow.icon_new";
1319          type: SWALLOW;
1320          scale: 1;
1321          clip_to: "elm.icon_new.clipper";
1322          description { state: "default" 0.0;
1323             visible: 0;
1324             align: 0.5 0.0;
1325             rel1 {
1326                relative: 1.0 1.0;
1327                to: "padding_left_top";
1328             }
1329             rel2 {
1330                relative: 0.0 1.0;
1331                to_x: "padding_right_bottom";
1332                to_y: "padding_left_top";
1333             }
1334             fixed: 0 1;
1335          }
1336          description { state: "visible" 0.0;
1337             fixed: 0 1;
1338             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1339             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1340             rel1 {
1341                relative: 1.0 1.0;
1342                to: "padding_left_top";
1343             }
1344             rel2 {
1345                relative: 0.0 0.0;
1346                to_x: "padding_right_bottom";
1347                to_y: "padding_before_text";
1348             }
1349             aspect: 1.0 1.0;
1350             aspect_preference: HORIZONTAL;
1351          }
1352          description { state: "icononly" 0.0;
1353             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1354             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1355             rel1 {
1356                relative: 1.0 1.0;
1357                to: "padding_left_top";
1358             }
1359             rel2 {
1360                relative: 0.0 0.0;
1361                to: "padding_right_bottom";
1362             }
1363             aspect: 1.0 1.0;
1364             aspect_preference: HORIZONTAL;
1365          }
1366       }
1367       part { name: "elm.text";
1368          type: TEXTBLOCK;
1369          mouse_events: 0;
1370          scale: 1;
1371          clip_to: "elm.text.clipper";
1372          description { state: "default" 0.0;
1373             visible: 1;
1374             rel1 {
1375                relative: 1.0 1.0;
1376                to_x: "padding_left_top";
1377                to_y: "padding_after_icon";
1378             }
1379             rel2 {
1380                relative: 0.0 0.0;
1381                to: "padding_right_bottom";
1382             }
1383             color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1384             fixed: 1 1;
1385             text {
1386                style: "toolbar_style";
1387                min: 0 1;
1388             }
1389          }
1390          description { state: "selected" 0.0;
1391             inherit: "default" 0.0;
1392             visible: 1;
1393          }
1394          description { state: "visible" 0.0;
1395             inherit: "default" 0.0;
1396             visible: 1;
1397          }
1398          description { state: "clicked" 0.0;
1399             inherit: "default" 0.0;
1400             visible: 1;
1401             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1402          }
1403          description { state: "focused" 0.0;
1404             inherit: "default" 0.0;
1405             visible: 1;
1406             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1407          }
1408       }
1409       part { name: "elm.text_new";
1410          type: TEXTBLOCK;
1411          mouse_events: 0;
1412          scale: 1;
1413          clip_to: "elm.text_new.clipper";
1414          description { state: "default" 0.0;
1415             visible: 1;
1416             rel1 {
1417                relative: 1.0 1.0;
1418                to_x: "padding_left_top";
1419                to_y: "padding_after_icon";
1420             }
1421             rel2 {
1422                relative: 0.0 0.0;
1423                to: "padding_right_bottom";
1424             }
1425             color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1426             fixed: 1 1;
1427             text {
1428                style: "toolbar_style";
1429                min: 0 1;
1430             }
1431          }
1432          description { state: "visible" 0.0;
1433             inherit: "default" 0.0;
1434             visible: 1;
1435          }
1436          description { state: "clicked" 0.0;
1437             inherit: "default" 0.0;
1438             visible: 1;
1439             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1440          }
1441          description { state: "focused" 0.0;
1442             inherit: "default" 0.0;
1443             visible: 1;
1444             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1445          }
1446       }
1447       part { name: "elm.text.clipper";
1448          type: RECT;
1449          description { state: "default" 0.0;
1450             color: 255 255 255 255;
1451          }
1452          description { state: "animation" 0.0;
1453             color: 255 255 255 0;
1454          }
1455          description { state: "disabled" 0.0;
1456             color: 255 255 255 153;
1457          }
1458       }
1459       part { name: "elm.text_new.clipper";
1460          type: RECT;
1461          description { state: "default" 0.0;
1462             color: 255 255 255 0;
1463          }
1464          description { state: "animation" 0.0;
1465             color: 255 255 255 255;
1466          }
1467          description { state: "disabled" 0.0;
1468             color: 255 255 255 153;
1469          }
1470       }
1471       part { name: "elm.icon.clipper";
1472          type: RECT;
1473          description { state: "default" 0.0;
1474             color: 255 255 255 255;
1475          }
1476          description { state: "animation" 0.0;
1477             color: 255 255 255 0;
1478          }
1479          description { state: "disabled" 0.0;
1480             color: 255 255 255 153;
1481          }
1482       }
1483       part { name: "elm.icon_new.clipper";
1484          type: RECT;
1485          description { state: "default" 0.0;
1486             color: 255 255 255 0;
1487          }
1488          description { state: "animation" 0.0;
1489             color: 255 255 255 255;
1490          }
1491          description { state: "disabled" 0.0;
1492             color: 255 255 255 153;
1493          }
1494       }
1495       part { name: "event";
1496          type: RECT;
1497          mouse_events: 1;
1498          ignore_flags: ON_HOLD;
1499          description { state: "default" 0.0;
1500             color: 0 0 0 0;
1501          }
1502       }
1503    }
1504    programs {
1505       program { name: "go_active";
1506          signal:  "elm,state,selected";
1507          source:  "elm";
1508          action:  STATE_SET "selected" 0.0;
1509          target:  "bg";
1510          transition: LINEAR 0.2;
1511       }
1512       program { name: "go_passive";
1513          signal:  "elm,state,unselected";
1514          source:  "elm";
1515          action:  STATE_SET "default" 0.0;
1516          target:  "bg";
1517          transition: LINEAR 0.1;
1518       }
1519       program { name: "moving";
1520          signal:  "elm,state,moving";
1521          source:  "elm";
1522          action:  STATE_SET "moving" 0.0;
1523          target:  "bg";
1524       }
1525 /*    program { name: "pressed";
1526          signal:  "mouse,down,1";
1527          source:  "event";
1528          action:  STATE_SET "selected" 0.0;
1529          target:  "bg";
1530          target:  "elm.text";
1531          target:  "elm.text_new";
1532          transition: LINEAR 0.2;
1533       }
1534       program { name: "unpressed";
1535          signal:  "mouse,up,1";
1536          source:  "event";
1537          action:  STATE_SET "default" 0.0;
1538          target:  "bg";
1539          target:  "elm.text";
1540          target:  "elm.text_new";
1541          transition: LINEAR 0.1;
1542       }*/
1543       program { name: "go";
1544          signal:  "mouse,clicked,1";
1545          source:  "event";
1546          action:  SIGNAL_EMIT "elm,action,click" "elm";
1547       }
1548       program { name: "mouse,in";
1549          signal:  "mouse,in";
1550          source:  "event";
1551          action:  SIGNAL_EMIT "elm,mouse,in" "elm";
1552       }
1553       program { name: "mouse,out";
1554          signal:  "mouse,out";
1555          source:  "event";
1556          action:  SIGNAL_EMIT "elm,mouse,out" "elm";
1557       }
1558       program { name: "disable";
1559          signal: "elm,state,disabled";
1560          source: "elm";
1561          script {
1562             set_int(item_state, ITEM_STATE_DISABLED);
1563             set_state(PART:"bg", "disabled", 0.0);
1564             set_state(PART:"elm.text.clipper", "disabled", 0.0);
1565             set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1566             run_program(PROGRAM:"label_set,animation,done");
1567             run_program(PROGRAM:"icon_set,animation,done");
1568          }
1569       }
1570       program { name: "enable";
1571          signal: "elm,state,enabled";
1572          source: "elm";
1573          script {
1574             set_int(item_state, ITEM_STATE_ENABLED);
1575             set_state(PART:"bg", "default", 0.0);
1576             set_state(PART:"elm.text.clipper", "default", 0.0);
1577             set_state(PART:"elm.icon.clipper", "default", 0.0);
1578             run_program(PROGRAM:"label_set,animation,done");
1579             run_program(PROGRAM:"icon_set,animation,done");
1580          }
1581       }
1582       program { name: "label_set,animation,forward";
1583          signal: "elm,state,label_set,forward";
1584          source: "elm";
1585          after: "label_set,animation";
1586       }
1587       program { name: "label_set,animation,backward";
1588          signal: "elm,state,label_set,backward";
1589          source: "elm";
1590          after: "label_set,animation";
1591       }
1592       program { name: "label_set,animation";
1593          signal: "elm,state,label_set";
1594          source: "elm";
1595          action: STATE_SET "animation" 0.0;
1596          target: "elm.text.clipper";
1597          target: "elm.text_new.clipper";
1598          transition: LINEAR 0.2;
1599          after: "label_set,animation,done";
1600       }
1601       program { name: "label_set,animation,done";
1602          action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
1603       }
1604       program { name: "label,reset";
1605          signal: "elm,state,label,reset";
1606          source: "elm";
1607          script {
1608             set_state(PART:"elm.text_new.clipper", "default", 0.0);
1609             if (get_int(item_state) != ITEM_STATE_DISABLED)
1610               set_state(PART:"elm.text.clipper", "default", 0.0);
1611             else
1612               set_state(PART:"elm.text.clipper", "disabled", 0.0);
1613          }
1614       }
1615       program { name: "icon_set,animation,forward";
1616          signal: "elm,state,icon_set,forward";
1617          source: "elm";
1618          after: "icon_set,animation";
1619       }
1620       program { name: "icon_set,animation,backward";
1621          signal: "elm,state,icon_set,backward";
1622          source: "elm";
1623          after: "icon_set,animation";
1624       }
1625       program { name: "icon_set,animation";
1626          signal: "elm,state,icon_set";
1627          source: "elm";
1628          action: STATE_SET "animation" 0.0;
1629          target: "elm.icon.clipper";
1630          target: "elm.icon_new.clipper";
1631          transition: LINEAR 0.2;
1632          after: "icon_set,animation,done";
1633       }
1634       program { name: "icon_set,animation,done";
1635          action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
1636       }
1637       program { name: "icon,reset";
1638          signal: "elm,state,icon,reset";
1639          source: "elm";
1640          script {
1641             set_state(PART:"elm.icon_new.clipper", "default", 0.0);
1642             if (get_int(item_state) != ITEM_STATE_DISABLED)
1643               set_state(PART:"elm.icon.clipper", "default", 0.0);
1644             else
1645               set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1646          }
1647       }
1648       program { name: "text_show";
1649          signal: "elm,state,text,visible";
1650          source: "elm";
1651          script {
1652             new st[31];
1653             new Float:vl;
1654             get_state(PART:"elm.swallow.icon", st, 30, vl);
1655             if (!strcmp(st, "icononly"))
1656               {
1657                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
1658                  set_state(PART:"icon_rect", "visible", 0.0);
1659                  set_state(PART:"padding_after_icon", "visible", 0.0);
1660               }
1661             set_state(PART:"elm.text", "visible", 0.0);
1662          }
1663       }
1664       program { name: "text_hide";
1665          signal: "elm,state,text,hidden";
1666          source: "elm";
1667          script {
1668             new st[31];
1669             new Float:vl;
1670             get_state(PART:"elm.swallow.icon", st, 30, vl);
1671             if (!strcmp(st, "visible"))
1672               {
1673                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1674                  set_state(PART:"icon_rect", "icononly", 0.0);
1675                  set_state(PART:"padding_after_icon", "icononly", 0.0);
1676               }
1677             set_state(PART:"elm.text", "default", 0.0);
1678          }
1679       }
1680       program { name: "icon_show";
1681          signal: "elm,state,icon,visible";
1682          source: "elm";
1683          script {
1684             new st[31];
1685             new Float:vl;
1686             get_state(PART:"elm.text", st, 30, vl);
1687             if (!strcmp(st, "visible"))
1688               {
1689                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
1690                  set_state(PART:"icon_rect", "visible", 0.0);
1691                  set_state(PART:"padding_after_icon", "visible", 0.0);
1692               }
1693             else
1694               {
1695                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1696                  set_state(PART:"icon_rect", "icononly", 0.0);
1697                  set_state(PART:"padding_after_icon", "icononly", 0.0);
1698               }
1699          }
1700       }
1701    }
1702 }
1703
1704 group { name: "elm/toolbar/item/tabbar/item_horizontal";
1705    inherit: "elm/toolbar/item/tabbar";
1706    script {
1707       public item_state = ITEM_STATE_ENABLED;
1708    }
1709    parts {
1710       part { name: "icon_rect";
1711          description { state: "default" 0.0;
1712             fixed: 1 0;
1713             align: 0.0 0.5;
1714          }
1715          description { state: "visible" 0.0;
1716             fixed: 1 0;
1717             rel2 {
1718                relative: 1.0 0.0;
1719                to_x: "padding_left_top";
1720                to_y: "padding_right_bottom";
1721             }
1722             align: 0.0 0.5;
1723          }
1724       }
1725       part { name: "padding_after_icon";
1726          description { state: "default" 0.0; //when only icon or no icon is there
1727             rel1.relative: 1.0 0.0;
1728             fixed: 1 1;
1729          }
1730          description { state: "visible" 0.0;
1731             inherit: "default" 0.0;
1732             min: 6 0;
1733          }
1734       }
1735       part { name: "padding_before_text";
1736          description { state: "default" 0.0; //when only icon or no icon is there
1737             align: 1.0 0.5;
1738             rel1 {
1739                relative: 0.0 1.0;
1740                to_x: "elm.text";
1741                to_y: "padding_left_top";
1742             }
1743             rel2 {
1744                to_x: "elm.text";
1745                to_y: "padding_right_bottom";
1746             }
1747             fixed: 1 0;
1748             min: 6 0;
1749          }
1750       }
1751       part { name: "elm.swallow.icon";
1752          description { state: "default" 0.0;
1753             align: 0.0 0.5;
1754             rel2 {
1755                relative: 1.0 0.0;
1756                to_x: "padding_left_top";
1757                to_y: "padding_right_bottom";
1758             }
1759             fixed: 1 0;
1760          }
1761          description { state: "visible" 0.0;
1762             fixed: 1 0;
1763             align: 1.0 0.5;
1764             rel1 {
1765                relative: 0.0 1.0;
1766                to_x: "padding_before_text";
1767                to_y: "padding_left_top";
1768             }
1769             rel2 {
1770                relative: 0.0 0.0;
1771                to_x: "padding_before_text";
1772                to_y: "padding_right_bottom";
1773             }
1774             aspect_preference: VERTICAL;
1775          }
1776          description { state: "icononly" 0.0;
1777             aspect_preference: VERTICAL;
1778          }
1779       }
1780       part { name: "elm.swallow.icon_new";
1781          description { state: "default" 0.0;
1782             align: 0.0 0.5;
1783             rel2 {
1784                relative: 1.0 0.0;
1785                to_x: "padding_left_top";
1786                to_y: "padding_right_bottom";
1787             }
1788             fixed: 1 0;
1789          }
1790          description { state: "visible" 0.0;
1791             fixed: 1 0;
1792             align: 1.0 0.5;
1793             rel1 {
1794                relative: 0.0 1.0;
1795                to_x: "padding_before_text";
1796                to_y: "padding_left_top";
1797             }
1798             rel2 {
1799                relative: 0.0 0.0;
1800                to_x: "padding_before_text";
1801                to_y: "padding_right_bottom";
1802             }
1803             aspect_preference: VERTICAL;
1804          }
1805          description { state: "icononly" 0.0;
1806             aspect_preference: VERTICAL;
1807          }
1808       }
1809       part { name: "elm.text";
1810          type: TEXTBLOCK;
1811          description { state: "default" 0.0;
1812             rel1 {
1813                relative: 1.0 1.0;
1814                to_x: "padding_after_icon";
1815                to_y: "padding_left_top";
1816             }
1817             text {
1818                style: "toolbar_style";
1819                min: 1 0;
1820             }
1821          }
1822          description { state: "selected" 0.0;
1823             inherit: "default" 0.0;
1824             visible: 1;
1825          }
1826          description { state: "visible" 0.0;
1827             inherit: "default" 0.0;
1828             visible: 1;
1829          }
1830          description { state: "clicked" 0.0;
1831             inherit: "default" 0.0;
1832             visible: 1;
1833             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1834          }
1835          description { state: "focused" 0.0;
1836             inherit: "default" 0.0;
1837             visible: 1;
1838             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1839          }
1840       }
1841       part { name: "elm.text_new";
1842          type: TEXTBLOCK;
1843          description { state: "default" 0.0;
1844             rel1 {
1845                relative: 1.0 1.0;
1846                to_x: "padding_after_icon";
1847                to_y: "padding_left_top";
1848             }
1849             text {
1850                style: "toolbar_style";
1851                min: 1 0;
1852             }
1853          }
1854          description { state: "selected" 0.0;
1855             inherit: "default" 0.0;
1856             visible: 1;
1857          }
1858          description { state: "visible" 0.0;
1859             inherit: "default" 0.0;
1860             visible: 1;
1861          }
1862          description { state: "clicked" 0.0;
1863             inherit: "default" 0.0;
1864             visible: 1;
1865             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1866          }
1867          description { state: "focused" 0.0;
1868             inherit: "default" 0.0;
1869             visible: 1;
1870             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1871          }
1872       }
1873    }
1874 }
1875
1876 group { name: "elm/toolbar/base/naviframe";
1877    parts {
1878       part { name: "base";
1879          mouse_events: 1;
1880          description { state: "default" 0.0;
1881             color: 0 0 0 0;
1882          }
1883       }
1884       part { name: "clipper";
1885          type: RECT;
1886          mouse_events: 0;
1887          description {
1888             state: "default" 0.0;
1889             rel1 {
1890                to: "base";
1891                offset: 2 2;
1892             }
1893             rel2 {
1894                to: "base";
1895                offset: -3 -3;
1896             }
1897          }
1898       }
1899       part { name: "elm.swallow.content";
1900          clip_to: "clipper";
1901          type: SWALLOW;
1902          description {
1903             state: "default" 0.0;
1904             rel1.to: "clipper";
1905             rel2.to: "clipper";
1906          }
1907       }
1908       part { name: "event";
1909          type: RECT;
1910          mouse_events: 1;
1911          repeat_events: 1;
1912          description { state: "default" 0.0;
1913             color: 0 0 0 0;
1914          }
1915       }
1916    }
1917 }
1918
1919 group { name: "elm/toolbar/object/naviframe";
1920    parts {
1921       part { name: "elm.swallow.object"; // object group
1922          type: SWALLOW;
1923          description {
1924              state: "default" 0.0;
1925                          rel1.offset: 5 0;
1926                          rel2.offset: -6 -1;
1927          }
1928       }
1929    }
1930 }
1931