merge with master
[profile/ivi/efl-theme-tizen.git] / themes / widgets / toolbar.edc
1 /*
2  * efl-theme-tizen
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an AS IS BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18
19
20 #define ITEM_STATE_ENABLED 0
21 #define ITEM_STATE_DISABLED 1
22
23 #define TOOLBAR_TEXT_STYLE(_font_size) \
24    style { name: "toolbar_text_style_"_font_size; \
25       base: "font=Tizen:style=Medium style=far_shadow,bottom shadow_color=#ffffffff font_size="_font_size" align=center color="TABBAR_ITEM_TEXTBLOCK_COLOR_INC" wrap=word ellipsis=1 text_class=tizen linegap=-10"; \
26       tag: "br" "\n"; \
27       tag: "ps" "ps"; \
28       tag: "hilight" "+ font=Tizen:style=Bold"; \
29       tag: "b" "+ font=Tizen:style=Bold"; \
30       tag: "tab" "\t"; \
31    }
32
33 #define TOOLBAR_SELECTED_TEXT_STYLE(_font_size) \
34    style { name: "toolbar_selected_text_style_"_font_size; \
35       base: "font=Tizen:style=Medium style=far_shadow,bottom shadow_color=#ffffffff font_size="_font_size" align=center color="TABBAR_ITEM_SELECTED_TEXTBLOCK_COLOR_INC" wrap=word ellipsis=1 text_class=tizen linegap=-10"; \
36       tag: "br" "\n"; \
37       tag: "ps" "ps"; \
38       tag: "hilight" "+ font=Tizen:style=Bold"; \
39       tag: "b" "+ font=Tizen:style=Bold"; \
40       tag: "tab" "\t"; \
41    }
42
43 styles{
44    TOOLBAR_TEXT_STYLE(24)
45    TOOLBAR_TEXT_STYLE(28)
46    TOOLBAR_TEXT_STYLE(30)
47    TOOLBAR_SELECTED_TEXT_STYLE(24)
48    TOOLBAR_SELECTED_TEXT_STYLE(28)
49    TOOLBAR_SELECTED_TEXT_STYLE(30)
50 }
51
52 group { name: "elm/toolbar/base/default";
53    images {
54       image: "00_winset_control_toolbar_bg.png" COMP;
55    }
56    parts {
57       part { name: "base";
58          mouse_events: 1;
59          description { state: "default" 0.0;
60             image.normal: "00_winset_control_toolbar_bg.png";
61          }
62       }
63       part { name: "clipper";
64          type: RECT;
65          mouse_events: 0;
66          description {
67             state: "default" 0.0;
68             rel1 {
69                to: "base";
70                offset: 2 2;
71             }
72             rel2 {
73                to: "base";
74                offset: -3 -3;
75             }
76          }
77       }
78       part { name: "elm.swallow.content";
79          clip_to: "clipper";
80          type: SWALLOW;
81          description {
82             state: "default" 0.0;
83             rel1.to: "clipper";
84             rel2.to: "clipper";
85          }
86       }
87       part { name: "event";
88          type: RECT;
89          mouse_events: 1;
90          repeat_events: 1;
91          description { state: "default" 0.0;
92             color: 0 0 0 0;
93          }
94       }
95    }
96 }
97
98 group { name: "elm/toolbar/item/default";
99    images {
100       image: "00_winset_toolbar_press.png" COMP;
101    }
102
103    data.item: "transition_animation_on" "1";
104    script {
105       public item_state = ITEM_STATE_ENABLED;
106       public items_number = 0;
107    }
108    parts {
109       part { name: "bg";
110          mouse_events: 0;
111          description { state: "default" 0.0;
112             visible: 0;
113             color: 255 255 255 0;
114             rel1 {
115                relative: 0.0 0.0;
116                offset: TOOLBAR_ITEM_BG_REL1_OFFSET_INC;
117             }
118             rel2 {
119                relative: 1.0 1.0;
120                offset: TOOLBAR_ITEM_BG_REL2_OFFSET_INC;
121             }
122             image {
123                normal: "00_winset_toolbar_press.png";
124                border: TOOLBAR_ITEM_BG_SELECTED_BORDER_INC;
125             }
126             image.middle: SOLID;
127             fill.smooth: 0;
128          }
129          description { state: "selected" 0.0;
130             inherit: "default" 0.0;
131             visible: 1;
132             color: 255 255 255 255;
133          }
134          description { state: "disabled" 0.0;
135             inherit: "default" 0.0;
136             visible: 0;
137             color: 255 255 255 0;
138          }
139       }
140       part { name: "padding_left_top";
141          type: RECT;
142          scale: 1;
143          mouse_events: 0;
144          description { state: "default" 0.0;
145             align: 0.0 0.0;
146             rel2.relative: 0.0 0.0;
147             min: 10 8;
148             fixed: 1 1;
149             visible: 1;
150             color: 0 0 0 0;
151          }
152       }
153       part { name: "padding_right_bottom";
154          type: RECT;
155          scale: 1;
156          mouse_events: 0;
157          description { state: "default" 0.0;
158             align: 1.0 1.0;
159             rel1.relative: 1.0 1.0;
160             min: 10 5;
161             fixed: 1 1;
162             visible: 1;
163             color: 0 0 0 0;
164          }
165       }
166       part {
167          name: "icon_rect";
168          type: RECT;
169          scale: 1;
170          mouse_events: 0;
171          description { state: "default" 0.0;
172             min: 0 0;
173             fixed: 0 1;
174             rel1 {
175                relative: 1.0 1.0;
176                to: "padding_left_top";
177             }
178             rel2 {
179                relative: 0.0 1.0;
180                to_x: "padding_right_bottom";
181                to_y: "padding_left_top";
182             }
183             align: 0.5 0.0;
184             color: 0 0 0 0;
185          }
186          description { state: "visible" 0.0;
187             min: TABBAR_ITEM_ICON_SIZE_INC;
188             fixed: 0 1;
189             rel1 {
190                relative: 1.0 1.0;
191                to: "padding_left_top";
192             }
193             rel2 {
194                relative: 0.0 1.0;
195                to_x: "padding_right_bottom";
196                to_y: "padding_left_top";
197             }
198             align: 0.5 0.0;
199             color: 0 0 0 0;
200          }
201          description { state: "icononly" 0.0;
202             inherit: "default" 0.0;
203          }
204       }
205       part { name: "padding_after_icon";
206          type: RECT;
207          scale: 1;
208          mouse_events: 0;
209          description { state: "default" 0.0; //when only icon or no icon is there
210             align: 0.0 0.0;
211             rel1 {
212                relative: 0.0 1.0;
213                to: "icon_rect";
214             }
215             rel2.to: "icon_rect";
216             fixed: 0 1;
217             min: 0 0;
218             color: 0 0 0 0;
219          }
220          description { state: "visible" 0.0;
221             inherit: "default" 0.0;
222          }
223          description { state: "icononly" 0.0;
224             inherit: "default" 0.0;
225          }
226       }
227       part { name: "padding_before_text";
228          type: RECT;
229          scale: 1;
230          mouse_events: 0;
231          description { state: "default" 0.0; //when only icon or no icon is there
232             align: 0.5 1.0;
233             rel1 {
234                relative: 1.0 0.0;
235                to_x: "padding_left_top";
236                to_y: "elm.text";
237             }
238             rel2 {
239                relative: 0.0 0.0;
240                to_x: "padding_right_bottom";
241                to_y: "elm.text";
242             }
243             fixed: 0 1;
244             min: 0 0;
245             color: 0 0 0 0;
246          }
247       }
248       part { name: "elm.swallow.icon";
249          type: SWALLOW;
250          scale: 1;
251          clip_to: "elm.icon.clipper";
252          description { state: "default" 0.0;
253             visible: 0;
254             align: 0.5 0.0;
255             rel1 {
256                relative: 1.0 1.0;
257                to: "padding_left_top";
258             }
259             rel2 {
260                relative: 0.0 1.0;
261                to_x: "padding_right_bottom";
262                to_y: "padding_left_top";
263             }
264             fixed: 0 1;
265          }
266          description { state: "visible" 0.0;
267             fixed: 0 1;
268             min: TABBAR_ITEM_ICON_SIZE_INC;
269             max: TABBAR_ITEM_ICON_SIZE_INC;
270             rel1 {
271                relative: 1.0 1.0;
272                to: "padding_left_top";
273             }
274             rel2 {
275                relative: 0.0 0.0;
276                to_x: "padding_right_bottom";
277                to_y: "padding_before_text";
278             }
279             aspect: 1.0 1.0;
280             aspect_preference: HORIZONTAL;
281          }
282          description { state: "icononly" 0.0;
283             min: TABBAR_ITEM_ICON_SIZE_INC;
284             max: TABBAR_ITEM_ICON_SIZE_INC;
285             rel1 {
286                relative: 1.0 1.0;
287                to: "padding_left_top";
288             }
289             rel2 {
290                relative: 0.0 0.0;
291                to: "padding_right_bottom";
292             }
293             aspect: 1.0 1.0;
294             aspect_preference: HORIZONTAL;
295          }
296       }
297       part { name: "elm.swallow.icon_new";
298          type: SWALLOW;
299          scale: 1;
300          clip_to: "elm.icon_new.clipper";
301          description { state: "default" 0.0;
302             visible: 0;
303             align: 0.5 0.0;
304             rel1 {
305                relative: 1.0 1.0;
306                to: "padding_left_top";
307             }
308             rel2 {
309                relative: 0.0 1.0;
310                to_x: "padding_right_bottom";
311                to_y: "padding_left_top";
312             }
313             fixed: 0 1;
314          }
315          description { state: "visible" 0.0;
316             fixed: 0 1;
317             min: TABBAR_ITEM_ICON_SIZE_INC;
318             max: TABBAR_ITEM_ICON_SIZE_INC;
319             rel1 {
320                relative: 1.0 1.0;
321                to: "padding_left_top";
322             }
323             rel2 {
324                relative: 0.0 0.0;
325                to_x: "padding_right_bottom";
326                to_y: "padding_before_text";
327             }
328             aspect: 1.0 1.0;
329             aspect_preference: HORIZONTAL;
330          }
331          description { state: "icononly" 0.0;
332             min: TABBAR_ITEM_ICON_SIZE_INC;
333             max: TABBAR_ITEM_ICON_SIZE_INC;
334             rel1 {
335                relative: 1.0 1.0;
336                to: "padding_left_top";
337             }
338             rel2 {
339                relative: 0.0 0.0;
340                to: "padding_right_bottom";
341             }
342             aspect: 1.0 1.0;
343             aspect_preference: HORIZONTAL;
344          }
345       }
346       part { name: "elm.text";
347          type: TEXTBLOCK;
348          mouse_events: 0;
349          scale: 1;
350          clip_to: "elm.text.clipper";
351          description { state: "default" 0.0;
352             visible: 0;
353             rel1 {
354                relative: 1.0 1.0;
355                to_x: "padding_left_top";
356                to_y: "padding_after_icon";
357             }
358             rel2 {
359                relative: 0.0 0.0;
360                to: "padding_right_bottom";
361             }
362             color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
363             fixed: 1 1;
364             text {
365                style: "toolbar_text_style_26";
366                min: 0 1;
367             }
368          }
369          description { state: "visible" 0.0;
370             inherit: "default" 0.0;
371             visible: 1;
372          }
373          description { state: "visible_30" 0.0;
374             inherit: "default" 0.0;
375             text.style: "toolbar_text_style_30";
376             visible: 1;
377          }
378          description { state: "visible_32" 0.0;
379             inherit: "default" 0.0;
380             text.style: "toolbar_text_style_32";
381             visible: 1;
382          }
383          description { state: "visible_36" 0.0;
384             inherit: "default" 0.0;
385             text.style: "toolbar_text_style_36";
386             visible: 1;
387          }
388       }
389       part { name: "elm.text_new";
390          type: TEXTBLOCK;
391          mouse_events: 0;
392          scale: 1;
393          clip_to: "elm.text_new.clipper";
394          description { state: "default" 0.0;
395             visible: 0;
396             rel1 {
397                relative: 1.0 1.0;
398                to_x: "padding_left_top";
399                to_y: "padding_after_icon";
400             }
401             rel2 {
402                relative: 0.0 0.0;
403                to: "padding_right_bottom";
404             }
405             color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
406             fixed: 1 1;
407             text {
408                style: "toolbar_text_style_26";
409                min: 0 1;
410             }
411          }
412          description { state: "visible" 0.0;
413             inherit: "default" 0.0;
414             visible: 1;
415          }
416          description { state: "visible_30" 0.0;
417             inherit: "default" 0.0;
418             text.style: "toolbar_text_style_30";
419             visible: 1;
420          }
421          description { state: "visible_32" 0.0;
422             inherit: "default" 0.0;
423             text.style: "toolbar_text_style_32";
424             visible: 1;
425          }
426          description { state: "visible_36" 0.0;
427             inherit: "default" 0.0;
428             text.style: "toolbar_text_style_36";
429             visible: 1;
430          }
431       }
432       part { name: "elm.text.clipper";
433          type: RECT;
434          description { state: "default" 0.0;
435             color: 255 255 255 255;
436          }
437          description { state: "animation" 0.0;
438             color: 255 255 255 0;
439          }
440          description { state: "disabled" 0.0;
441             color: 255 255 255 153;
442          }
443       }
444       part { name: "elm.text_new.clipper";
445          type: RECT;
446          description { state: "default" 0.0;
447             color: 255 255 255 0;
448          }
449          description { state: "animation" 0.0;
450             color: 255 255 255 255;
451          }
452          description { state: "disabled" 0.0;
453             color: 255 255 255 153;
454          }
455       }
456       part { name: "elm.icon.clipper";
457          type: RECT;
458          description { state: "default" 0.0;
459             color: 255 255 255 255;
460          }
461          description { state: "animation" 0.0;
462             color: 255 255 255 0;
463          }
464          description { state: "disabled" 0.0;
465             color: 255 255 255 153;
466          }
467       }
468       part { name: "elm.icon_new.clipper";
469          type: RECT;
470          description { state: "default" 0.0;
471             color: 255 255 255 0;
472          }
473          description { state: "animation" 0.0;
474             color: 255 255 255 255;
475          }
476          description { state: "disabled" 0.0;
477             color: 255 255 255 153;
478          }
479       }
480       part { name: "event";
481          type: RECT;
482          mouse_events: 1;
483          ignore_flags: ON_HOLD;
484          description { state: "default" 0.0;
485             color: 0 0 0 0;
486          }
487       }
488       part { name: "event2";
489          type: RECT;
490          mouse_events: 1;
491          repeat_events: 1;
492          description { state: "default" 0.0;
493             color: 0 0 0 0;
494          }
495       }
496    }
497    programs {
498       program { name: "pressed";
499          signal:  "mouse,down,1";
500          source:  "event";
501          script {
502             if (get_int(item_state) != ITEM_STATE_DISABLED)
503               set_state(PART:"bg", "selected", 0.0);
504          }
505          transition: LINEAR 0.2;
506       }
507       program { name: "unpressed";
508          signal:  "mouse,up,1";
509          source:  "event2";
510          action:  STATE_SET "default" 0.0;
511          target:  "bg";
512          transition: LINEAR 0.1;
513       }
514       program { name: "go";
515          signal:  "mouse,clicked,1";
516          source:  "event";
517          action:  SIGNAL_EMIT "elm,action,click" "elm";
518       }
519       program { name: "mouse,in";
520          signal:  "mouse,in";
521          source:  "event";
522          action:  SIGNAL_EMIT "elm,mouse,in" "elm";
523       }
524       program { name: "mouse,out";
525          signal:  "mouse,out";
526          source:  "event";
527          action:  SIGNAL_EMIT "elm,mouse,out" "elm";
528       }
529       program { name: "disable";
530          signal: "elm,state,disabled";
531          source: "elm";
532          script {
533             set_int(item_state, ITEM_STATE_DISABLED);
534             set_state(PART:"bg", "disabled", 0.0);
535             set_state(PART:"elm.text.clipper", "disabled", 0.0);
536             set_state(PART:"elm.icon.clipper", "disabled", 0.0);
537             run_program(PROGRAM:"label_set,animation,done");
538             run_program(PROGRAM:"icon_set,animation,done");
539          }
540       }
541       program { name: "enable";
542          signal: "elm,state,enabled";
543          source: "elm";
544          script {
545             set_int(item_state, ITEM_STATE_ENABLED);
546             set_state(PART:"bg", "default", 0.0);
547             set_state(PART:"elm.text.clipper", "default", 0.0);
548             set_state(PART:"elm.icon.clipper", "default", 0.0);
549             run_program(PROGRAM:"label_set,animation,done");
550             run_program(PROGRAM:"icon_set,animation,done");
551          }
552       }
553       program { name: "label_set,animation,forward";
554          signal: "elm,state,label_set,forward";
555          source: "elm";
556          after: "label_set,sync";
557       }
558       program { name: "label_set,animation,backward";
559          signal: "elm,state,label_set,backward";
560          source: "elm";
561          after: "label_set,sync";
562       }
563       program { name: "label_set,sync";
564          signal: "elm,state,label_set";
565          source: "elm";
566          script {
567             new st[31];
568             new Float:vl;
569             get_state(PART:"elm.text", st, 30, vl);
570             set_state(PART:"elm.text_new", st, vl);
571          }
572          after: "label_set,animation";
573       }
574       program { name: "label_set,animation";
575          action: STATE_SET "animation" 0.0;
576          target: "elm.text.clipper";
577          target: "elm.text_new.clipper";
578          transition: LINEAR 0.2;
579          after: "label_set,animation,done";
580       }
581       program { name: "label_set,animation,done";
582          action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
583       }
584       program { name: "label,reset";
585          signal: "elm,state,label,reset";
586          source: "elm";
587          script {
588             set_state(PART:"elm.text_new.clipper", "default", 0.0);
589             if (get_int(item_state) != ITEM_STATE_DISABLED)
590               set_state(PART:"elm.text.clipper", "default", 0.0);
591             else
592               set_state(PART:"elm.text.clipper", "disabled", 0.0);
593          }
594       }
595       program { name: "icon_set,animation,forward";
596          signal: "elm,state,icon_set,forward";
597          source: "elm";
598          after: "icon_set,animation";
599       }
600       program { name: "icon_set,animation,backward";
601          signal: "elm,state,icon_set,backward";
602          source: "elm";
603          after: "icon_set,animation";
604       }
605       program { name: "icon_set,animation";
606          signal: "elm,state,icon_set";
607          source: "elm";
608          action: STATE_SET "animation" 0.0;
609          target: "elm.icon.clipper";
610          target: "elm.icon_new.clipper";
611          transition: LINEAR 0.2;
612          after: "icon_set,animation,done";
613       }
614       program { name: "icon_set,animation,done";
615          action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
616       }
617       program { name: "icon,reset";
618          signal: "elm,state,icon,reset";
619          source: "elm";
620          script {
621             set_state(PART:"elm.icon_new.clipper", "default", 0.0);
622             if (get_int(item_state) != ITEM_STATE_DISABLED)
623               set_state(PART:"elm.icon.clipper", "default", 0.0);
624             else
625               set_state(PART:"elm.icon.clipper", "disabled", 0.0);
626          }
627       }
628       program { name: "text_show";
629          signal: "elm,state,text,visible";
630          source: "elm";
631          script {
632             new st[31];
633             new Float:vl;
634             get_state(PART:"elm.swallow.icon", st, 30, vl);
635             if (!strcmp(st, "icononly"))
636               {
637                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
638                  set_state(PART:"icon_rect", "visible", 0.0);
639                  set_state(PART:"padding_after_icon", "visible", 0.0);
640               }
641             if (strcmp(st, "default"))
642               {
643                  set_state(PART:"elm.text", "visible", 0.0);
644               }
645             else
646               {
647                 if (get_int(items_number) <= 3)
648                   set_state(PART:"elm.text", "visible_32", 0.0);
649                 else if (get_int(items_number) >= 4)
650                   set_state(PART:"elm.text", "visible_30", 0.0);
651               }
652          }
653       }
654       program { name: "text_hide";
655          signal: "elm,state,text,hidden";
656          source: "elm";
657          script {
658             new st[31];
659             new Float:vl;
660             get_state(PART:"elm.swallow.icon", st, 30, vl);
661             if (!strcmp(st, "visible"))
662               {
663                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
664                  set_state(PART:"icon_rect", "icononly", 0.0);
665                  set_state(PART:"padding_after_icon", "icononly", 0.0);
666               }
667             set_state(PART:"elm.text", "default", 0.0);
668          }
669       }
670       program { name: "icon_show";
671          signal: "elm,state,icon,visible";
672          source: "elm";
673          script {
674             new st[31];
675             new Float:vl;
676             get_state(PART:"elm.text", st, 30, vl);
677             if (!strncmp(st, "visible", 7))
678               {
679                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
680                  set_state(PART:"icon_rect", "visible", 0.0);
681                  set_state(PART:"padding_after_icon", "visible", 0.0);
682                  set_state(PART:"elm.text", "visible", 0.0);
683               }
684             else
685               {
686                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
687                  set_state(PART:"icon_rect", "icononly", 0.0);
688                  set_state(PART:"padding_after_icon", "icononly", 0.0);
689               }
690          }
691       }
692       program { name: "icon_hide";
693          signal: "elm,state,icon,hidden";
694          source: "elm";
695          script {
696             new st[31];
697             new Float:vl;
698             get_state(PART:"elm.text", st, 30, vl);
699             if (!strncmp(st, "visible", 7))
700               {
701                 if (get_int(items_number) <= 3)
702                   set_state(PART:"elm.text", "visible_32", 0.0);
703                 else if (get_int(items_number) >= 4)
704                   set_state(PART:"elm.text", "visible_30", 0.0);
705               }
706             set_state(PART:"elm.swallow.icon", "default", 0.0);
707             set_state(PART:"icon_rect", "default", 0.0);
708             set_state(PART:"padding_after_icon", "default", 0.0);
709          }
710       }
711       program { name: "text_only_item_1";
712          signal: "elm,number,item,1";
713          source: "elm";
714          script {
715             set_int(items_number, 1);
716          }
717          after: "text_only_item_under_3";
718       }
719       program { name: "text_only_item_2";
720          signal: "elm,number,item,2";
721          source: "elm";
722          script {
723             set_int(items_number, 2);
724          }
725          after: "text_only_item_under_3";
726       }
727       program { name: "text_only_item_3";
728          signal: "elm,number,item,3";
729          source: "elm";
730          script {
731             set_int(items_number, 3);
732          }
733          after: "text_only_item_under_3";
734       }
735       program { name: "text_only_item_under_3";
736          script {
737             new st[31];
738             new Float:vl;
739             get_state(PART:"elm.swallow.icon", st, 30, vl);
740             if (strcmp(st, "visible"))
741               {
742                 get_state(PART:"elm.text", st, 30, vl);
743                 if (!strncmp(st, "visible", 7))
744                   {
745                       set_state(PART:"elm.text", "visible_32", 0.0);
746                   }
747               }
748          }
749       }
750       program { name: "text_only_item_4";
751          signal: "elm,number,item,4";
752          source: "elm";
753          script {
754             set_int(items_number, 4);
755          }
756          after: "text_only_item_upper_4";
757       }
758       program { name: "text_only_item_5";
759          signal: "elm,number,item,5";
760          source: "elm";
761          script {
762             set_int(items_number, 5);
763          }
764          after: "text_only_item_upper_4";
765       }
766       program { name: "text_only_item_6";
767          signal: "elm,number,item,6";
768          source: "elm";
769          script {
770             set_int(items_number, 6);
771          }
772          after: "text_only_item_upper_4";
773       }
774       program { name: "text_only_item_7";
775          signal: "elm,number,item,7";
776          source: "elm";
777          script {
778             set_int(items_number, 7);
779          }
780          after: "text_only_item_upper_4";
781       }
782       program { name: "text_only_item_8";
783          signal: "elm,number,item,8";
784          source: "elm";
785          script {
786             set_int(items_number, 8);
787          }
788          after: "text_only_item_upper_4";
789       }
790       program { name: "text_only_item_9";
791          signal: "elm,number,item,9";
792          source: "elm";
793          script {
794             set_int(items_number, 9);
795          }
796          after: "text_only_item_upper_4";
797       }
798       program { name: "text_only_item_10";
799          signal: "elm,number,item,10";
800          source: "elm";
801          script {
802             set_int(items_number, 10);
803          }
804          after: "text_only_item_upper_4";
805       }
806       program { name: "text_only_item_upper_4";
807          signal: "elm,number,item,4";
808          source: "elm";
809          script {
810             new st[31];
811             new Float:vl;
812             get_state(PART:"elm.swallow.icon", st, 30, vl);
813             if (strcmp(st, "visible"))
814               {
815                 get_state(PART:"elm.text", st, 30, vl);
816                 if (!strncmp(st, "visible", 7))
817                   {
818                       set_state(PART:"elm.text", "visible_30", 0.0);
819                   }
820               }
821          }
822       }
823    }
824 }
825
826 group { name: "elm/toolbar/item/item_horizontal";
827    inherit: "elm/toolbar/item/default";
828    parts {
829       part { name: "icon_rect";
830          description { state: "default" 0.0;
831             fixed: 1 0;
832             align: 0.0 0.5;
833          }
834          description { state: "visible" 0.0;
835             fixed: 1 0;
836             rel2 {
837                relative: 1.0 0.0;
838                to_x: "padding_left_top";
839                to_y: "padding_right_bottom";
840             }
841             align: 0.0 0.5;
842          }
843       }
844       part { name: "padding_after_icon";
845          description { state: "default" 0.0; //when only icon or no icon is there
846             rel1.relative: 1.0 0.0;
847             fixed: 1 1;
848          }
849          description { state: "visible" 0.0;
850             inherit: "default" 0.0;
851             min: 6 0;
852          }
853       }
854       part { name: "padding_before_text";
855          description { state: "default" 0.0; //when only icon or no icon is there
856             align: 1.0 0.5;
857             rel1 {
858                relative: 0.0 1.0;
859                to_x: "elm.text";
860                to_y: "padding_left_top";
861             }
862             rel2 {
863                to_x: "elm.text";
864                to_y: "padding_right_bottom";
865             }
866             fixed: 1 0;
867             min: 6 0;
868          }
869       }
870       part { name: "elm.swallow.icon";
871          description { state: "default" 0.0;
872             align: 0.0 0.5;
873             rel2 {
874                relative: 1.0 0.0;
875                to_x: "padding_left_top";
876                to_y: "padding_right_bottom";
877             }
878             fixed: 1 0;
879          }
880          description { state: "visible" 0.0;
881             fixed: 1 0;
882             align: 1.0 0.5;
883             rel1 {
884                relative: 0.0 1.0;
885                to_x: "padding_before_text";
886                to_y: "padding_left_top";
887             }
888             rel2 {
889                relative: 0.0 0.0;
890                to_x: "padding_before_text";
891                to_y: "padding_right_bottom";
892             }
893             aspect_preference: VERTICAL;
894          }
895          description { state: "icononly" 0.0;
896             aspect_preference: VERTICAL;
897          }
898       }
899       part { name: "elm.swallow.icon_new";
900          description { state: "default" 0.0;
901             align: 0.0 0.5;
902             rel2 {
903                relative: 1.0 0.0;
904                to_x: "padding_left_top";
905                to_y: "padding_right_bottom";
906             }
907             fixed: 1 0;
908          }
909          description { state: "visible" 0.0;
910             fixed: 1 0;
911             align: 1.0 0.5;
912             rel1 {
913                relative: 0.0 1.0;
914                to_x: "padding_before_text";
915                to_y: "padding_left_top";
916             }
917             rel2 {
918                relative: 0.0 0.0;
919                to_x: "padding_before_text";
920                to_y: "padding_right_bottom";
921             }
922             aspect_preference: VERTICAL;
923          }
924          description { state: "icononly" 0.0;
925             aspect_preference: VERTICAL;
926          }
927       }
928       part { name: "elm.text";
929          type: TEXTBLOCK;
930          description { state: "default" 0.0;
931             rel1 {
932                relative: 1.0 1.0;
933                to_x: "padding_after_icon";
934                to_y: "padding_left_top";
935             }
936             text {
937                min: 1 0;
938             }
939          }
940          description { state: "visible" 0.0;
941             inherit: "default" 0.0;
942             visible: 1;
943          }
944          description { state: "visible_30" 0.0;
945             inherit: "default" 0.0;
946             text.style: "toolbar_text_style_30";
947             visible: 1;
948          }
949          description { state: "visible_32" 0.0;
950             inherit: "default" 0.0;
951             text.style: "toolbar_text_style_32";
952             visible: 1;
953          }
954          description { state: "visible_36" 0.0;
955             inherit: "default" 0.0;
956             text.style: "toolbar_text_style_36";
957             visible: 1;
958          }
959       }
960       part { name: "elm.text_new";
961          type: TEXTBLOCK;
962          description { state: "default" 0.0;
963             rel1 {
964                relative: 1.0 1.0;
965                to_x: "padding_after_icon";
966                to_y: "padding_left_top";
967             }
968             text {
969                min: 1 0;
970             }
971          }
972          description { state: "visible" 0.0;
973             inherit: "default" 0.0;
974             visible: 1;
975          }
976          description { state: "visible_30" 0.0;
977             inherit: "default" 0.0;
978             text.style: "toolbar_text_style_30";
979             visible: 1;
980          }
981          description { state: "visible_32" 0.0;
982             inherit: "default" 0.0;
983             text.style: "toolbar_text_style_32";
984             visible: 1;
985          }
986          description { state: "visible_36" 0.0;
987             inherit: "default" 0.0;
988             text.style: "toolbar_text_style_36";
989             visible: 1;
990          }
991       }
992    }
993 }
994
995 group { name: "elm/toolbar/separator/default";
996    images {
997       image: "00_winset_divider_line.png" COMP;
998    }
999    parts {
1000       part { name: "base";
1001          type: IMAGE;
1002          scale: 1;
1003          description { state: "default" 0.0;
1004             min: 4 48;
1005             max: 4 9999;
1006             fixed: 1 1;
1007             rel1.relative: 0.0 0.5;
1008             rel2.relative: 0.0 0.5;
1009             image {
1010                 normal: "00_winset_divider_line.png";
1011                 border: 0 0 2 2;
1012             }
1013          }
1014       }
1015    }
1016 }
1017
1018 group { name: "elm/toolbar/object/default";
1019    parts {
1020       part { name: "elm.swallow.object"; // object group
1021          type: SWALLOW;
1022          description {
1023              state: "default" 0.0;
1024          }
1025       }
1026    }
1027 }
1028
1029 group { name: "elm/toolbar/base/tabbar";
1030    images {
1031       image: "00_effect_tab_bounce_left.png" COMP;
1032       image: "00_effect_tab_bounce_right.png" COMP;
1033    }
1034    script {
1035       public left_timer, right_timer;
1036       public l_timer(val) {
1037          emit("do-hide-left-shadow", "");
1038          set_int(left_timer, 0);
1039          return 0;
1040       }
1041       public r_timer(val) {
1042          emit("do-hide-right-shadow", "");
1043          set_int(right_timer, 0);
1044          return 0;
1045       }
1046    }
1047    parts {
1048       part { name: "base";
1049          type: RECT;
1050          scale: 1;
1051          description { state: "default" 0.0;
1052             color: 248 246 239 255;
1053          }
1054       }
1055       part { name: "left_padding";
1056          type: RECT;
1057          mouse_events: 0;
1058          scale: 1;
1059          description {
1060             state: "default" 0.0;
1061             min: 16 0;
1062             fixed: 1 1;
1063             visible: 0;
1064             align: 0.0 0.5;
1065             rel1.to: "base";
1066             rel2.to: "base";
1067             rel1.relative: 0.0 0.0;
1068             rel2.relative: 0.0 1.0;
1069          }
1070       }
1071       part { name: "right_padding";
1072          type: RECT;
1073          mouse_events: 0;
1074          scale: 1;
1075          description {
1076             state: "default" 0.0;
1077             min: 16 0;
1078             fixed: 1 1;
1079             visible: 0;
1080             align: 1.0 0.5;
1081             rel1.to: "base";
1082             rel2.to: "base";
1083             rel1.relative: 1.0 0.0;
1084             rel2.relative: 1.0 1.0;
1085          }
1086       }
1087       part { name: "clipper";
1088          type: RECT;
1089          mouse_events: 0;
1090          scale: 1;
1091          description {
1092             state: "default" 0.0;
1093             rel1.to: "left_padding";
1094             rel1.relative: 1.0 0.0;
1095             rel2.to: "right_padding";
1096             rel2.relative: 0.0 1.0;
1097          }
1098       }
1099       part { name: "elm.swallow.content";
1100          clip_to: "clipper";
1101          type: SWALLOW;
1102          scale: 1;
1103          description {
1104             state: "default" 0.0;
1105             rel1.to: "clipper";
1106             rel2.to: "clipper";
1107          }
1108       }
1109       part { name: "left_shadow_clip";
1110          type: RECT;
1111          mouse_events: 0;
1112          scale: 1;
1113          description { state: "default" 0.0;
1114             visible: 0;
1115             color: 255 255 255 0;
1116          }
1117          description { state: "show" 0.0;
1118          }
1119       }
1120       part { name: "right_shadow_clip";
1121          type: RECT;
1122          mouse_events: 0;
1123          scale: 1;
1124          description { state: "default" 0.0;
1125             visible: 0;
1126             color: 255 255 255 0;
1127          }
1128          description { state: "show" 0.0;
1129          }
1130       }
1131       part { name: "shadow_left";
1132          clip_to: "left_shadow_clip";
1133          type: IMAGE;
1134          scale: 1;
1135          repeat_events: 1;
1136          description { state: "default" 0.0;
1137             min: 162 0;
1138             fixed: 1 1;
1139             align: 0.0 0.5;
1140             color: 255 255 255 255;
1141             rel1.relative: 0.0 0.0;
1142             rel2.relative: 0.0 1.0;
1143             image.normal: "00_effect_tab_bounce_left.png";
1144          }
1145       }
1146       part { name: "shadow_right";
1147          clip_to: "right_shadow_clip";
1148          type: IMAGE;
1149          scale: 1;
1150          repeat_events: 1;
1151          description { state: "default" 0.0;
1152             min: 162 0;
1153             fixed: 1 1;
1154             align: 1.0 0.5;
1155             color: 255 255 255 255;
1156             rel1.relative: 1.0 0.0;
1157             rel2.relative: 1.0 1.0;
1158             image.normal: "00_effect_tab_bounce_right.png";
1159          }
1160       }
1161    }
1162    programs {
1163       program { name: "load";
1164          script {
1165             set_int(left_timer, 0);
1166             set_int(right_timer, 0);
1167          }
1168       }
1169       program { name: "left_shadow_show";
1170          signal: "do-show-left-shadow";
1171          source: "";
1172          action:  STATE_SET "show" 0.0;
1173          transition: LINEAR 0.3;
1174          target: "left_shadow_clip";
1175       }
1176       program { name: "left_shadow_hide";
1177          signal: "do-hide-left-shadow";
1178          source: "";
1179          action:  STATE_SET "default" 0.0;
1180          transition: LINEAR 0.3;
1181          target: "left_shadow_clip";
1182       }
1183       program { name: "right_shadow_show";
1184          signal: "do-show-right-shadow";
1185          source: "";
1186          action:  STATE_SET "show" 0.0;
1187          transition: LINEAR 0.3;
1188          target: "right_shadow_clip";
1189       }
1190       program { name: "right_shadow_hide";
1191          signal: "do-hide-right-shadow";
1192          source: "";
1193          action:  STATE_SET "default" 0.0;
1194          transition: LINEAR 0.3;
1195          target: "right_shadow_clip";
1196       }
1197       program { name: "edge_left";
1198          signal: "elm,edge,left";
1199          source: "elm";
1200          script {
1201             new v;
1202             v = get_int(left_timer);
1203             if (!v) {
1204                 emit("do-show-left-shadow", "");
1205             }
1206             if (v > 0) cancel_timer(v);
1207             v = timer(0.5, "l_timer", 0);
1208             set_int(left_timer, v);
1209          }
1210       }
1211       program { name: "edge_right";
1212          signal: "elm,edge,right";
1213          source: "elm";
1214          script {
1215             new v;
1216             v = get_int(right_timer);
1217             if (!v) {
1218                 emit("do-show-right-shadow", "");
1219             }
1220             if (v > 0) cancel_timer(v);
1221             v = timer(0.5, "r_timer", 0);
1222             set_int(right_timer, v);
1223          }
1224       }
1225    }
1226 }
1227
1228 group { name: "elm/toolbar/more/tabbar";
1229    images {
1230       image: "00_winset_control_tab_h_line_h.png" COMP;
1231    }
1232    parts {
1233       part { name: "base";
1234          type: RECT;
1235          mouse_events: 1;
1236          description { state: "default" 0.0;
1237             rel1.relative: 0.0 0.0;
1238             rel2.relative: 1.0 0.0;
1239             color: 248 246 239 255;
1240          }
1241          description { state: "open" 0.0;
1242             inherit: "default" 0.0;
1243             rel2.relative: 1.0 1.0;
1244          }
1245          description { state: "open2" 0.0;
1246             inherit: "default" 0.0;
1247             rel2.relative: 1.0 2.0;
1248          }
1249       }
1250       part { name: "clipper";
1251          type: RECT;
1252          mouse_events: 0;
1253          description {
1254             state: "default" 0.0;
1255             fixed: 1 1;
1256             rel1 {
1257                to: "base";
1258             }
1259             rel2 {
1260                to: "base";
1261             }
1262          }
1263          description { state: "open" 0.0;
1264             inherit: "default" 0.0;
1265             rel2.relative: 1.0 1.0;
1266          }
1267          description { state: "open2" 0.0;
1268             inherit: "default" 0.0;
1269             rel2.relative: 1.0 0.5;
1270          }
1271       }
1272       part { name: "clipper2";
1273          type: RECT;
1274          mouse_events: 0;
1275          description {
1276             state: "default" 0.0;
1277             fixed: 1 1;
1278             rel1 {
1279                relative: 0.0 0.5;
1280                to: "base";
1281             }
1282             rel2 {
1283                to: "base";
1284             }
1285          }
1286          description { state: "open" 0.0;
1287             inherit: "default" 0.0;
1288             rel1.relative: 0.0 1.0;
1289          }
1290          description { state: "open2" 0.0;
1291             inherit: "default" 0.0;
1292             rel1.relative: 0.0 0.5;
1293          }
1294       }
1295       part { name: "elm.swallow.content";
1296          clip_to: "clipper";
1297          type: SWALLOW;
1298          description {
1299             state: "default" 0.0;
1300             fixed: 1 1;
1301             rel1.to: "clipper";
1302             rel2.to: "clipper";
1303          }
1304       }
1305       part { name: "elm.swallow.content2";
1306          clip_to: "clipper2";
1307          type: SWALLOW;
1308          description {
1309             state: "default" 0.0;
1310             fixed: 1 1;
1311             rel1.to: "clipper2";
1312             rel2.to: "clipper2";
1313          }
1314       }
1315       part { name: "separator";
1316          clip_to: "clipper";
1317          description { state: "default" 0.0;
1318             min: 2 3;
1319             max: 9999 3;
1320             fixed: 1 1;
1321             rel1 {
1322                 relative: 0.0 0.0;
1323                 offset: 0 0;
1324                 to: "clipper";
1325             }
1326             rel2 {
1327                 relative: 1.0 0.0;
1328                 offset: -1 3;
1329                 to: "clipper";
1330             }
1331             image {
1332                normal: "00_winset_control_tab_h_line_h.png";
1333                border: 1 1 1 1;
1334             }
1335             fill {
1336                smooth: 0;
1337             }
1338          }
1339       }
1340       part { name: "separator2";
1341          clip_to: "clipper2";
1342          description { state: "default" 0.0;
1343             min: 2 3;
1344             max: 9999 3;
1345             fixed: 1 1;
1346             rel1 {
1347                 relative: 0.0 0.0;
1348                 offset: 0 0;
1349                 to: "clipper2";
1350             }
1351             rel2 {
1352                 relative: 1.0 0.0;
1353                 offset: -1 3;
1354                 to: "clipper2";
1355             }
1356             image {
1357                normal: "00_winset_control_tab_h_line_h.png";
1358                border: 1 1 1 1;
1359             }
1360             fill {
1361                smooth: 0;
1362             }
1363          }
1364       }
1365    }
1366    programs {
1367       program { name: "open";
1368          signal:  "elm,state,open";
1369          source:  "elm";
1370          action:  STATE_SET "open" 0.0;
1371          target:  "base";
1372          target:  "clipper";
1373          target:  "clipper2";
1374          transition: LINEAR 0.2;
1375       }
1376       program { name: "open2";
1377          signal:  "elm,state,open2";
1378          source:  "elm";
1379          action:  STATE_SET "open2" 0.0;
1380          target:  "base";
1381          target:  "clipper";
1382          target:  "clipper2";
1383          transition: LINEAR 0.2;
1384       }
1385       program { name: "close";
1386          signal:  "elm,state,close";
1387          source:  "elm";
1388          action:  STATE_SET "default" 0.0;
1389          target:  "base";
1390          transition: LINEAR 0.2;
1391       }
1392    }
1393 }
1394
1395 group { name: "elm/toolbar/item/tabbar";
1396    images {
1397       image: "00_tab_press.png" COMP;
1398       image: "00_badge_bg.png" COMP;
1399    }
1400
1401    data.item: "transition_animation_on" "1";
1402    script {
1403       public item_state = ITEM_STATE_ENABLED;
1404       public items_number = 0;
1405    }
1406    parts {
1407       part { name: "bg";
1408          type: RECT;
1409          scale: 1;
1410          mouse_events: 0;
1411          description { state: "default" 0.0;
1412             min: 172 0;
1413             visible: 0;
1414          }
1415          description { state: "icon_text" 0.0;
1416             inherit: "default" 0.0;
1417             min: 229 0;
1418          }
1419       }
1420       part { name: "bg_cover";
1421          type: IMAGE;
1422          scale: 1;
1423          mouse_events: 0;
1424          description { state: "default" 0.0;
1425             visible: 0;
1426             image.normal: "00_tab_press.png";
1427          }
1428          description { state: "pressed" 0.0;
1429             inherit: "default" 0.0;
1430             visible: 1;
1431          }
1432          description { state: "moving" 0.0;
1433             inherit: "default" 0.0;
1434             visible: 1;
1435          }
1436       }
1437       part { name: "padding_left_top";
1438          type: RECT;
1439          scale: 1;
1440          mouse_events: 0;
1441          description { state: "default" 0.0;
1442             align: 0.0 0.0;
1443             rel2.relative: 0.0 0.0;
1444             min: 6 0;
1445             fixed: 1 1;
1446             visible: 0;
1447             color: 0 0 0 0;
1448          }
1449       }
1450       part { name: "padding_right_bottom";
1451          type: RECT;
1452          scale: 1;
1453          mouse_events: 0;
1454          description { state: "default" 0.0;
1455             align: 1.0 1.0;
1456             rel1.relative: 1.0 1.0;
1457             min: 6 0;
1458             fixed: 1 1;
1459             visible: 0;
1460             color: 0 0 0 0;
1461          }
1462       }
1463       part {
1464          name: "icon_rect";
1465          type: RECT;
1466          scale: 1;
1467          mouse_events: 0;
1468          description { state: "default" 0.0;
1469             min: 0 0;
1470             fixed: 1 0;
1471             rel1 {
1472                relative: 1.0 1.0;
1473                to: "padding_left_top";
1474             }
1475             rel2 {
1476                relative: 1.0 0.0;
1477                to_x: "padding_left_top";
1478                to_y: "padding_right_bottom";
1479             }
1480             align: 0.0 0.5;
1481             color: 0 0 0 0;
1482          }
1483          description { state: "visible" 0.0;
1484             inherit: "default" 0.0;
1485             min: TABBAR_ITEM_SMALL_ICON_SIZE_INC;
1486          }
1487          description { state: "icononly" 0.0;
1488             inherit: "default" 0.0;
1489          }
1490       }
1491       part { name: "padding_after_icon";
1492          type: RECT;
1493          scale: 1;
1494          mouse_events: 0;
1495          description { state: "default" 0.0; //when only icon or no icon is there
1496             align: 0.0 0.0;
1497             rel1 {
1498                relative: 1.0 0.0;
1499                to: "icon_rect";
1500             }
1501             rel2.to: "icon_rect";
1502             fixed: 1 0;
1503             min: 0 0;
1504             color: 0 0 0 0;
1505          }
1506          description { state: "visible" 0.0;
1507             inherit: "default" 0.0;
1508             min: 1 0;
1509          }
1510          description { state: "icononly" 0.0;
1511             inherit: "default" 0.0;
1512          }
1513       }
1514       part { name: "padding_before_text";
1515          type: RECT;
1516          scale: 1;
1517          mouse_events: 0;
1518          description { state: "default" 0.0; //when only icon or no icon is there
1519             align: 1.0 0.5;
1520             rel1 {
1521                relative: 0.0 1.0;
1522                to_x: "elm.text";
1523                to_y: "padding_left_top";
1524             }
1525             rel2 {
1526                relative: 0.0 0.0;
1527                to_x: "elm.text";
1528                to_y: "padding_right_bottom";
1529             }
1530             fixed: 1 0;
1531             min: 8 0;
1532             color: 0 0 0 0;
1533          }
1534       }
1535       part { name: "elm.swallow.icon";
1536          type: SWALLOW;
1537          scale: 1;
1538          clip_to: "elm.icon.clipper";
1539          description { state: "default" 0.0;
1540             visible: 0;
1541             min: TABBAR_ITEM_ICON_SIZE_INC;
1542             max: TABBAR_ITEM_ICON_SIZE_INC;
1543             rel1.to: "padding_left_top";
1544             rel2.to: "padding_right_bottom";
1545             aspect: 1.0 1.0;
1546             aspect_preference: HORIZONTAL;
1547          }
1548          description { state: "visible" 0.0;
1549             fixed: 1 0;
1550             min: TABBAR_ITEM_SMALL_ICON_SIZE_INC;
1551             max: TABBAR_ITEM_SMALL_ICON_SIZE_INC;
1552             align: 1.0 0.5;
1553             rel1 {
1554                relative: 0.0 1.0;
1555                to_x: "padding_before_text";
1556                to_y: "padding_left_top";
1557             }
1558             rel2 {
1559                relative: 0.0 0.0;
1560                to_x: "padding_before_text";
1561                to_y: "padding_right_bottom";
1562             }
1563             aspect: 1.0 1.0;
1564             aspect_preference: HORIZONTAL;
1565          }
1566          description { state: "icononly" 0.0;
1567             inherit: "default" 0.0;
1568             visible: 1;
1569          }
1570       }
1571       part { name: "elm.swallow.icon_new";
1572          type: SWALLOW;
1573          scale: 1;
1574          clip_to: "elm.icon_new.clipper";
1575          description { state: "default" 0.0;
1576             visible: 0;
1577             min: TABBAR_ITEM_ICON_SIZE_INC;
1578             max: TABBAR_ITEM_ICON_SIZE_INC;
1579             rel1.to: "padding_left_top";
1580             rel2.to: "padding_right_bottom";
1581             aspect: 1.0 1.0;
1582             aspect_preference: HORIZONTAL;
1583          }
1584          description { state: "visible" 0.0;
1585             fixed: 0 1;
1586             min: TABBAR_ITEM_SMALL_ICON_SIZE_INC;
1587             max: TABBAR_ITEM_SMALL_ICON_SIZE_INC;
1588             rel1 {
1589                relative: 0.0 1.0;
1590                to_x: "padding_before_text";
1591                to_y: "padding_left_top";
1592             }
1593             rel2 {
1594                relative: 0.0 0.0;
1595                to_x: "padding_before_text";
1596                to_y: "padding_right_bottom";
1597             }
1598             aspect: 1.0 1.0;
1599             aspect_preference: HORIZONTAL;
1600          }
1601          description { state: "icononly" 0.0;
1602             inherit: "default" 0.0;
1603             visible: 1;
1604          }
1605       }
1606       part { name: "elm.swallow.icon_new.proxy";
1607          type: PROXY;
1608          scale: 1;
1609          clip_to: "elm.icon_new.proxy.clipper";
1610          description { state: "default" 0.0;
1611              source: "elm.swallow.icon_new";
1612              rel1.to: "elm.swallow.icon_new";
1613              rel1.offset: 0 -3;
1614              rel2.to: "elm.swallow.icon_new";
1615              rel2.offset: -1 -4;
1616          }
1617       }
1618       part { name: "elm.swallow.icon.proxy";
1619          type: PROXY;
1620          scale: 1;
1621          clip_to: "elm.icon.proxy.clipper";
1622          description { state: "default" 0.0;
1623              source: "elm.swallow.icon";
1624              rel1.to: "elm.swallow.icon";
1625              rel1.offset: 0 -3;
1626              rel2.to: "elm.swallow.icon";
1627              rel2.offset: -1 -4;
1628          }
1629       }
1630       part { name: "elm.text";
1631          type: TEXTBLOCK;
1632          mouse_events: 0;
1633          scale: 1;
1634          clip_to: "elm.text.clipper";
1635          description { state: "default" 0.0;
1636             visible: 1;
1637             rel1 {
1638                relative: 1.0 1.0;
1639                to_x: "padding_after_icon";
1640                to_y: "padding_left_top";
1641             }
1642             rel2 {
1643                relative: 0.0 0.0;
1644                to: "padding_right_bottom";
1645             }
1646             fixed: 1 1;
1647             max: 0 78;
1648             text {
1649                style: "toolbar_text_style_30";
1650                min: 0 0;
1651                max: 1 0;
1652             }
1653          }
1654          description { state: "visible" 0.0;
1655             inherit: "default" 0.0;
1656             visible: 1;
1657          }
1658          description { state: "visible" 0.24;
1659             inherit: "visible" 0.0;
1660             max: 0 62;
1661             text.style: "toolbar_text_style_24";
1662          }
1663          description { state: "visible" 0.28;
1664             inherit: "visible" 0.0;
1665             max: 0 72;
1666             text.style: "toolbar_text_style_28";
1667          }
1668          description { state: "visible" 0.30;
1669             inherit: "visible" 0.0;
1670             max: 0 78;
1671             text.style: "toolbar_text_style_30";
1672          }
1673          description { state: "selected" 0.0;
1674             inherit: "visible" 0.0;
1675             text.style: "toolbar_selected_text_style_30";
1676          }
1677          description { state: "selected" 0.24;
1678             inherit: "visible" 0.24;
1679             text.style: "toolbar_selected_text_style_24";
1680          }
1681          description { state: "selected" 0.28;
1682             inherit: "visible" 0.28;
1683             text.style: "toolbar_selected_text_style_28";
1684          }
1685          description { state: "selected" 0.30;
1686             inherit: "visible" 0.30;
1687             text.style: "toolbar_selected_text_style_30";
1688          }
1689       }
1690       part { name: "elm.text_new";
1691          type: TEXTBLOCK;
1692          mouse_events: 0;
1693          scale: 1;
1694          clip_to: "elm.text_new.clipper";
1695          description { state: "default" 0.0;
1696             visible: 0;
1697             rel1 {
1698                relative: 1.0 1.0;
1699                to_x: "padding_after_icon";
1700                to_y: "padding_left_top";
1701             }
1702             rel2 {
1703                relative: 0.0 0.0;
1704                to: "padding_right_bottom";
1705             }
1706             min: 0 36;
1707             max: 9999 36;
1708             fixed: 1 1;
1709             text {
1710                style: "toolbar_text_style_30";
1711                min: 0 0;
1712                max: 0 1;
1713             }
1714          }
1715          description { state: "visible" 0.0;
1716             inherit: "default" 0.0;
1717             visible: 1;
1718          }
1719          description { state: "visible" 0.24;
1720             inherit: "visible" 0.0;
1721             max: 0 62;
1722             text.style: "toolbar_text_style_24";
1723          }
1724          description { state: "visible" 0.28;
1725             inherit: "visible" 0.0;
1726             max: 0 72;
1727             text.style: "toolbar_text_style_28";
1728          }
1729          description { state: "visible" 0.30;
1730             inherit: "visible" 0.0;
1731             max: 0 78;
1732             text.style: "toolbar_text_style_30";
1733          }
1734          description { state: "selected" 0.0;
1735             inherit: "visible" 0.0;
1736             text.style: "toolbar_selected_text_style_30";
1737          }
1738          description { state: "selected" 0.24;
1739             inherit: "visible" 0.24;
1740             text.style: "toolbar_selected_text_style_24";
1741          }
1742          description { state: "selected" 0.28;
1743             inherit: "visible" 0.28;
1744             text.style: "toolbar_selected_text_style_28";
1745          }
1746          description { state: "selected" 0.30;
1747             inherit: "visible" 0.30;
1748             text.style: "toolbar_selected_text_style_30";
1749          }
1750       }
1751       part { name: "padding.selected_line";
1752          type: RECT;
1753          scale: 1;
1754          mouse_events: 0;
1755          description { state: "default" 0.0;
1756             rel1 {
1757                 relative: 0.0 0.5;
1758                 offset: 16 0;
1759             }
1760             rel2 {
1761                 relative: 1.0 0.5;
1762                 offset: -17 -1;
1763             }
1764             min: 0 64;
1765             fixed: 0 1;
1766             visible: 0;
1767          }
1768       }
1769       part { name: "selected_line";
1770          type: RECT;
1771          scale: 1;
1772          mouse_events: 0;
1773          description { state: "default" 0.0;
1774             rel1 {
1775                 to: "padding.selected_line";
1776                 relative: 0.0 1.0;
1777             }
1778             rel2 {
1779                 to: "padding.selected_line";
1780                 relative: 1.0 1.0;
1781             }
1782             align: 0.5 0.0;
1783             color: 59 115 182 255;
1784             min: 0 3;
1785             fixed: 0 1;
1786             visible: 0;
1787          }
1788          description { state: "selected" 0.0;
1789             inherit: "default" 0.0;
1790             visible: 1;
1791          }
1792       }
1793       part { name: "padding.badge";
1794          type: RECT;
1795          scale: 1;
1796          mouse_events: 0;
1797          description { state: "default" 0.0;
1798             align: 1.0 0.5;
1799             rel1 {
1800                 relative: 1.0 0.0;
1801             }
1802             rel2 {
1803                 relative: 1.0 0.5;
1804             }
1805             min: 10 0;
1806             fixed: 1 0;
1807             visible: 0;
1808          }
1809          description { state: "default" 0.10;
1810             inherit: "default" 0.0;
1811             min: 10 0;
1812          }
1813          description { state: "default" 0.06;
1814             inherit: "default" 0.0;
1815             min: 6 0;
1816          }
1817          description { state: "default" 0.04;
1818             inherit: "default" 0.0;
1819             min: 4 0;
1820          }
1821       }
1822       part { name: "elm.image.badge";
1823          mouse_events: 0;
1824          scale: 1;
1825          description { state: "default" 0.0;
1826             visible: 0;
1827             min: 54 48;
1828             fixed: 1 1;
1829             rel1 {
1830                to: "left.padding.text";
1831                relative: 0.0 0.0;
1832             }
1833             rel2 {
1834                to: "right.padding.text";
1835                relative: 1.0 1.0;
1836             }
1837             image {
1838                normal: "00_badge_bg.png";
1839                border: 29 24 0 0;
1840                border_scale: 1;
1841             }
1842          }
1843          description { state: "visible" 0.0;
1844             inherit: "default" 0.0;
1845             visible: 1;
1846          }
1847       }
1848       part { name: "left.padding.text";
1849          type: RECT;
1850          scale: 1;
1851          description {
1852             state: "default" 0.0;
1853             visible: 0;
1854             fixed: 1 1;
1855             min: 13 47;
1856             rel1 {
1857                to: "elm.text.badge";
1858                relative: 0.0 1.0;
1859             }
1860             rel2 {
1861                to: "elm.text.badge";
1862                relative: 0.0 1.0;
1863             }
1864             align: 1.0 1.0;
1865          }
1866       }
1867       part { name: "right.padding.text";
1868          type: RECT;
1869          scale: 1;
1870          description {
1871             state: "default" 0.0;
1872             visible: 0;
1873             fixed: 1 1;
1874             min: 8 48;
1875             rel1 {
1876                to: "padding.badge";
1877                relative: 0.0 1.0;
1878             }
1879             rel2 {
1880                to: "padding.badge";
1881                relative: 0.0 1.0;
1882             }
1883             align: 1.0 1.0;
1884          }
1885       }
1886       part { name: "elm.text.badge";
1887          type: TEXT;
1888          mouse_events: 0;
1889          scale: 1;
1890          description {
1891             state: "default" 0.0;
1892             visible: 0;
1893             rel1 {
1894                to: "right.padding.text";
1895                relative: 0.0 0.0;
1896             }
1897             rel2 {
1898                to: "right.padding.text";
1899                relative: 0.0 1.0;
1900             }
1901             min: 25 0;
1902             fixed: 1 0;
1903             align: 1.0 0.5;
1904             color: 10 100 208 255;
1905             text {
1906                font: "Tizen:style=Bold";
1907                size: 26;
1908                min: 1 1;
1909             }
1910          }
1911          description { state: "visible" 0.0;
1912             inherit: "default" 0.0;
1913             visible: 1;
1914          }
1915       }
1916       part { name: "elm.text.clipper";
1917          type: RECT;
1918          description { state: "default" 0.0;
1919             color: 255 255 255 255;
1920          }
1921          description { state: "animation" 0.0;
1922             color: 255 255 255 0;
1923          }
1924          description { state: "disabled" 0.0;
1925             color: 255 255 255 153;
1926          }
1927       }
1928       part { name: "elm.text_new.clipper";
1929          type: RECT;
1930          description { state: "default" 0.0;
1931             color: 255 255 255 0;
1932          }
1933          description { state: "animation" 0.0;
1934             color: 255 255 255 255;
1935          }
1936          description { state: "disabled" 0.0;
1937             color: 255 255 255 153;
1938          }
1939       }
1940       part { name: "elm.icon.clipper";
1941          type: RECT;
1942          description { state: "default" 0.0;
1943             color: 255 255 255  255;
1944          }
1945          description { state: "animation" 0.0;
1946             color: 255 255 255 0;
1947          }
1948          description { state: "selected" 0.0;
1949             color: 255 255 255 255;
1950          }
1951          description { state: "disabled" 0.0;
1952             color: 255 255 255 153;
1953          }
1954       }
1955       part { name: "elm.icon_new.clipper";
1956          type: RECT;
1957          description { state: "default" 0.0;
1958             color: 255 255 255 0;
1959          }
1960          description { state: "animation" 0.0;
1961             color: 255 255 255 255;
1962          }
1963          description { state: "selected" 0.0;
1964             color: 255 255 255 255;
1965          }
1966          description { state: "disabled" 0.0;
1967             color: 255 255 255 153;
1968          }
1969       }
1970       part { name: "elm.icon.proxy.clipper";
1971          type: RECT;
1972          description { state: "default" 0.0;
1973             color: 153 153 153 255;
1974          }
1975          description { state: "animation" 0.0;
1976             color: 255 255 255 0;
1977          }
1978          description { state: "selected" 0.0;
1979             color: 61 114 180 255;
1980          }
1981          description { state: "disabled" 0.0;
1982             color: 255 255 255 153;
1983          }
1984       }
1985       part { name: "elm.icon_new.proxy.clipper";
1986          type: RECT;
1987          description { state: "default" 0.0;
1988             color: 255 255 255 0;
1989          }
1990          description { state: "animation" 0.0;
1991             color: 255 255 255 255;
1992          }
1993          description { state: "selected" 0.0;
1994             color: 61 114 180 255;
1995          }
1996          description { state: "disabled" 0.0;
1997             color: 255 255 255 153;
1998          }
1999       }
2000       part { name: "divider";
2001          type: RECT;
2002          scale: 1;
2003          description { state: "default" 0.0;
2004             min: 4 26;
2005             max: 4 9999;
2006             fixed: 1 1;
2007             rel1 {
2008                 relative: 1.0 0.5;
2009                 to_y: "elm.swallow.icon";
2010             }
2011             rel2 {
2012                 relative: 1.0 0.5;
2013                 to_y: "elm.swallow.icon";
2014             }
2015          }
2016          description { state: "hidden" 0.0;
2017             inherit: "default" 0.0;
2018             visible: 0;
2019          }
2020       }
2021       part { name: "divider_left";
2022          type: RECT;
2023          clip_to: "divider";
2024          description { state: "default" 0.0;
2025             color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
2026             rel1 {
2027                 relative: 0.0 0.0;
2028                 to: "divider";
2029             }
2030             rel2 {
2031                 relative: 0.5 1.0;
2032                 to: "divider";
2033             }
2034          }
2035       }
2036       part { name: "divider_right";
2037          type: RECT;
2038          clip_to: "divider";
2039          description { state: "default" 0.0;
2040             color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;
2041             rel1 {
2042                 relative: 0.5 0.0;
2043                 to: "divider";
2044             }
2045             rel2 {
2046                 relative: 1.0 1.0;
2047                 to: "divider";
2048             }
2049          }
2050       }
2051       part { name: "event";
2052          type: RECT;
2053          mouse_events: 1;
2054          dragable {
2055             x: 1 0 0;
2056             y: 1 0 0;
2057          }
2058          description { state: "default" 0.0;
2059             color: 0 0 0 0;
2060          }
2061       }
2062    }
2063    programs {
2064       program { name: "go_active";
2065          signal:  "elm,state,selected";
2066          source:  "elm";
2067          action:  STATE_SET "selected" 0.0;
2068          target:  "elm.icon.clipper";
2069          target:  "elm.icon.proxy.clipper";
2070          target:  "selected_line";
2071          after: "selected_text";
2072       }
2073       program { name: "selected_text";
2074          script{
2075             new st[31];
2076             new Float:vl;
2077             get_state(PART:"elm.text", st, 30, vl);
2078             set_state(PART:"elm.text", "selected", vl);
2079          }
2080       }
2081       program { name: "go_passive";
2082          signal:  "elm,state,unselected";
2083          source:  "elm";
2084          action:  STATE_SET "default" 0.0;
2085          target:  "elm.icon.clipper";
2086          target:  "elm.icon.proxy.clipper";
2087          target:  "selected_line";
2088          after: "unselected_text";
2089       }
2090       program { name: "unselected_text";
2091          script{
2092             new st[31];
2093             new Float:vl;
2094             get_state(PART:"elm.text", st, 30, vl);
2095             set_state(PART:"elm.text", "visible", vl);
2096          }
2097       }
2098       program { name: "moving";
2099          signal:  "elm,state,moving";
2100          source:  "elm";
2101          action:  STATE_SET "moving" 0.0;
2102          target:  "bg_cover";
2103       }
2104       program { name: "pressed";
2105          signal:  "mouse,down,1";
2106          source:  "event";
2107          action:  STATE_SET "pressed" 0.0;
2108          target:  "bg_cover";
2109       }
2110       program {
2111          name: "drag";
2112          signal: "drag";
2113          source: "event";
2114          script {
2115             new st[31];
2116             new Float:vl;
2117             new Float:dx, Float:dy;
2118             get_state(PART:"bg_cover", st, 30, vl);
2119             if (strcmp(st, "moving"))
2120               {
2121                 get_drag(PART:"event", dx, dy);
2122                 if ((abs(dx)*abs(dx))+(abs(dy)*abs(dy)) > 400)
2123                   {
2124                     set_drag(PART:"event", 0.0, 0.0);
2125                     set_state(PART:"bg_cover", "default", 0.0);
2126                   }
2127                 set_drag(PART:"event", 0.0, 0.0);
2128               }
2129           }
2130       }
2131       program { name: "unpressed";
2132          signal:  "mouse,up,1";
2133          source:  "event";
2134          script {
2135             set_drag(PART:"event", 0.0, 0.0);
2136             set_state(PART:"bg_cover", "default", 0.0);
2137          }
2138       }
2139       program { name: "go";
2140          signal:  "mouse,clicked,1";
2141          source:  "event";
2142          action:  SIGNAL_EMIT "elm,action,click" "elm";
2143       }
2144       program { name: "mouse,in";
2145          signal:  "mouse,in";
2146          source:  "event";
2147          action:  SIGNAL_EMIT "elm,mouse,in" "elm";
2148       }
2149       program { name: "mouse,out";
2150          signal:  "mouse,out";
2151          source:  "event";
2152          action:  SIGNAL_EMIT "elm,mouse,out" "elm";
2153       }
2154       program { name: "disable";
2155          signal: "elm,state,disabled";
2156          source: "elm";
2157          script {
2158             set_int(item_state, ITEM_STATE_DISABLED);
2159             set_state(PART:"bg", "disabled", 0.0);
2160             set_state(PART:"elm.text.clipper", "disabled", 0.0);
2161             set_state(PART:"elm.icon.clipper", "disabled", 0.0);
2162             set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
2163             run_program(PROGRAM:"label_set,animation,done");
2164             run_program(PROGRAM:"icon_set,animation,done");
2165          }
2166       }
2167       program { name: "enable";
2168          signal: "elm,state,enabled";
2169          source: "elm";
2170          script {
2171             set_int(item_state, ITEM_STATE_ENABLED);
2172             set_state(PART:"bg", "default", 0.0);
2173             set_state(PART:"elm.text.clipper", "default", 0.0);
2174             set_state(PART:"elm.icon.clipper", "default", 0.0);
2175             set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
2176             run_program(PROGRAM:"label_set,animation,done");
2177             run_program(PROGRAM:"icon_set,animation,done");
2178          }
2179       }
2180       program { name: "label_set,animation,forward";
2181          signal: "elm,state,label_set,forward";
2182          source: "elm";
2183          after: "label_set,sync";
2184       }
2185       program { name: "label_set,animation,backward";
2186          signal: "elm,state,label_set,backward";
2187          source: "elm";
2188          after: "label_set,sync";
2189       }
2190       program { name: "label_set,sync";
2191          signal: "elm,state,label_set";
2192          source: "elm";
2193          script {
2194             new st[31];
2195             new Float:vl;
2196             get_state(PART:"elm.text", st, 30, vl);
2197             set_state(PART:"elm.text_new", st, vl);
2198          }
2199          after: "label_set,animation";
2200       }
2201       program { name: "label_set,animation";
2202          action: STATE_SET "animation" 0.0;
2203          target: "elm.text.clipper";
2204          target: "elm.text_new.clipper";
2205          transition: LINEAR 0.2;
2206          after: "label_set,animation,done";
2207       }
2208       program { name: "label_set,animation,done";
2209          action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
2210       }
2211       program { name: "label,reset";
2212          signal: "elm,state,label,reset";
2213          source: "elm";
2214          script {
2215             set_state(PART:"elm.text_new.clipper", "default", 0.0);
2216             if (get_int(item_state) != ITEM_STATE_DISABLED)
2217               set_state(PART:"elm.text.clipper", "default", 0.0);
2218             else
2219               set_state(PART:"elm.text.clipper", "disabled", 0.0);
2220          }
2221       }
2222       program { name: "icon_set,animation,forward";
2223          signal: "elm,state,icon_set,forward";
2224          source: "elm";
2225          after: "icon_set,animation";
2226       }
2227       program { name: "icon_set,animation,backward";
2228          signal: "elm,state,icon_set,backward";
2229          source: "elm";
2230          after: "icon_set,animation";
2231       }
2232       program { name: "icon_set,animation";
2233          signal: "elm,state,icon_set";
2234          source: "elm";
2235          action: STATE_SET "animation" 0.0;
2236          target: "elm.icon.clipper";
2237          target: "elm.icon_new.clipper";
2238          target: "elm.icon.proxy.clipper";
2239          target: "elm.icon_new.proxy.clipper";
2240          transition: LINEAR 0.2;
2241          after: "icon_set,animation,done";
2242       }
2243       program { name: "icon_set,animation,done";
2244          action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
2245       }
2246       program { name: "icon,reset";
2247          signal: "elm,state,icon,reset";
2248          source: "elm";
2249          script {
2250             set_state(PART:"elm.icon_new.clipper", "default", 0.0);
2251             if (get_int(item_state) != ITEM_STATE_DISABLED)
2252               {
2253                  set_state(PART:"elm.icon.clipper", "default", 0.0);
2254                  set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
2255               }
2256             else
2257               {
2258                  set_state(PART:"elm.icon.clipper", "disabled", 0.0);
2259                  set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
2260               }
2261          }
2262       }
2263       program { name: "text_show";
2264          signal: "elm,state,text,visible";
2265          source: "elm";
2266          script {
2267             new st[31];
2268             new Float:vl;
2269             get_state(PART:"elm.swallow.icon", st, 30, vl);
2270             if (!strcmp(st, "icononly"))
2271               {
2272                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
2273                  set_state(PART:"icon_rect", "visible", 0.0);
2274                  set_state(PART:"padding_after_icon", "visible", 0.0);
2275                  set_state(PART:"bg", "icon_text", 0.0);
2276               }
2277             get_state(PART:"elm.text", st, 30, vl);
2278             if (!strcmp(st, "default"))
2279               {
2280                 if (get_int(items_number) <= 2)
2281                   set_state(PART:"elm.text", "visible", 0.30);
2282                 else if (get_int(items_number) == 3)
2283                   set_state(PART:"elm.text", "visible", 0.28);
2284                 else if (get_int(items_number) >= 4)
2285                   {
2286                     get_state(PART:"bg", st, 30, vl);
2287                     if (!strcmp(st, "icon_text"))
2288                       set_state(PART:"elm.text", "visible", 0.28);
2289                     else
2290                       set_state(PART:"elm.text", "visible", 0.24);
2291                   }
2292               }
2293          }
2294       }
2295       program { name: "text_hide";
2296          signal: "elm,state,text,hidden";
2297          source: "elm";
2298          script {
2299             new st[31];
2300             new Float:vl;
2301             get_state(PART:"elm.swallow.icon", st, 30, vl);
2302             if (!strcmp(st, "visible"))
2303               {
2304                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
2305                  set_state(PART:"icon_rect", "icononly", 0.0);
2306                  set_state(PART:"padding_after_icon", "icononly", 0.0);
2307               }
2308             set_state(PART:"elm.text", "default", 0.0);
2309             set_state(PART:"bg", "default", 0.0);
2310          }
2311       }
2312       program { name: "icon_show";
2313          signal: "elm,state,icon,visible";
2314          source: "elm";
2315          script {
2316             new st[31];
2317             new Float:vl;
2318             get_state(PART:"elm.text", st, 30, vl);
2319             if (!strncmp(st, "visible", 7))
2320               {
2321                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
2322                  set_state(PART:"icon_rect", "visible", 0.0);
2323                  set_state(PART:"padding_after_icon", "visible", 0.0);
2324                  set_state(PART:"bg", "icon_text", 0.0);
2325               }
2326             else
2327               {
2328                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
2329                  set_state(PART:"icon_rect", "icononly", 0.0);
2330                  set_state(PART:"padding_after_icon", "icononly", 0.0);
2331               }
2332          }
2333       }
2334       program { name: "icon_hide";
2335          signal: "elm,state,icon,hidden";
2336          source: "elm";
2337          script {
2338             set_state(PART:"elm.swallow.icon", "default", 0.0);
2339             set_state(PART:"icon_rect", "default", 0.0);
2340             set_state(PART:"padding_after_icon", "default", 0.0);
2341             set_state(PART:"bg", "default", 0.0);
2342          }
2343       }
2344       program { name: "text_only_item_1";
2345          signal: "elm,number,item,1";
2346          source: "elm";
2347          script {
2348             set_int(items_number, 1);
2349          }
2350          after: "text_only_item_under_2";
2351       }
2352       program { name: "text_only_item_2";
2353          signal: "elm,number,item,2";
2354          source: "elm";
2355          script {
2356             set_int(items_number, 2);
2357          }
2358          after: "text_only_item_under_2";
2359       }
2360       program { name: "text_only_item_under_2";
2361          script {
2362             new st[31];
2363             new Float:vl;
2364             get_state(PART:"elm.text", st, 30, vl);
2365             if (!strncmp(st, "visible", 7))
2366               {
2367                   set_state(PART:"elm.text", st, 0.30);
2368               }
2369             set_state(PART:"padding.badge", "default", 0.10);
2370          }
2371       }
2372       program { name: "text_only_item_3";
2373          signal: "elm,number,item,3";
2374          source: "elm";
2375          script {
2376             new st[31];
2377             new Float:vl;
2378             set_int(items_number, 3);
2379             get_state(PART:"elm.text", st, 30, vl);
2380             if (!strncmp(st, "visible", 7))
2381               {
2382                   set_state(PART:"elm.text", st, 0.28);
2383               }
2384             set_state(PART:"padding.badge", "default", 0.06);
2385          }
2386       }
2387       program { name: "text_only_item_4";
2388          signal: "elm,number,item,4";
2389          source: "elm";
2390          script {
2391             set_int(items_number, 4);
2392          }
2393          after: "text_only_item_upper_4";
2394       }
2395       program { name: "text_only_item_5";
2396          signal: "elm,number,item,5";
2397          source: "elm";
2398          script {
2399             set_int(items_number, 5);
2400          }
2401          after: "text_only_item_upper_4";
2402       }
2403       program { name: "text_only_item_6";
2404          signal: "elm,number,item,6";
2405          source: "elm";
2406          script {
2407             set_int(items_number, 6);
2408          }
2409          after: "text_only_item_upper_4";
2410       }
2411       program { name: "text_only_item_7";
2412          signal: "elm,number,item,7";
2413          source: "elm";
2414          script {
2415             set_int(items_number, 7);
2416          }
2417          after: "text_only_item_upper_4";
2418       }
2419       program { name: "text_only_item_8";
2420          signal: "elm,number,item,8";
2421          source: "elm";
2422          script {
2423             set_int(items_number, 8);
2424          }
2425          after: "text_only_item_upper_4";
2426       }
2427       program { name: "text_only_item_9";
2428          signal: "elm,number,item,9";
2429          source: "elm";
2430          script {
2431             set_int(items_number, 9);
2432          }
2433          after: "text_only_item_upper_4";
2434       }
2435       program { name: "text_only_item_10";
2436          signal: "elm,number,item,10";
2437          source: "elm";
2438          script {
2439             set_int(items_number, 10);
2440          }
2441          after: "text_only_item_upper_4";
2442       }
2443       program { name: "text_only_item_upper_4";
2444          script {
2445             new st[31];
2446             new stb[31];
2447             new Float:vl;
2448             get_state(PART:"elm.text", st, 30, vl);
2449             if (!strcmp(st, "visible") || !strcmp(st, "selected"))
2450               {
2451                   get_state(PART:"bg", stb, 30, vl);
2452                   if (!strcmp(stb, "icon_text"))
2453                     set_state(PART:"elm.text", st, 0.28);
2454                   else
2455                     set_state(PART:"elm.text", st, 0.24);
2456               }
2457             get_state(PART:"bg", stb, 30, vl);
2458             if (!strcmp(stb, "icon_text"))
2459               set_state(PART:"padding.badge", "default", 0.06);
2460             else
2461               set_state(PART:"padding.badge", "default", 0.04);
2462          }
2463       }
2464       program { name: "badge_show";
2465          signal: "elm,state,elm.text.badge,visible";
2466          source: "elm";
2467          action: STATE_SET "visible" 0.0;
2468          target: "elm.text.badge";
2469          target: "elm.image.badge";
2470       }
2471       program { name: "badge_hide";
2472          signal: "elm,state,elm.text.badge,hidden";
2473          source: "elm";
2474          action:  STATE_SET "default" 0.0;
2475          target: "elm.text.badge";
2476          target: "elm.image.badge";
2477       }
2478       program { name: "divider_visible";
2479          signal: "elm,order,first,item";
2480          signal: "elm,order,default,item";
2481          source: "elm";
2482          action: STATE_SET "default" 0.0;
2483          target: "divider";
2484       }
2485       program { name: "divider_hidden";
2486          signal: "elm,order,last,item";
2487          source: "elm";
2488          action: STATE_SET "hidden" 0.0;
2489          target: "divider";
2490       }
2491    }
2492 }
2493
2494 group { name: "elm/toolbar/base/tabbar/item_horizontal";
2495    inherit: "elm/toolbar/base/tabbar";
2496    parts {
2497       part { name: "left_padding";
2498          description {
2499             state: "default" 0.0;
2500             min: 34 0;
2501          }
2502       }
2503       part { name: "right_padding";
2504          description {
2505             state: "default" 0.0;
2506             min: 34 0;
2507          }
2508       }
2509    }
2510 }
2511
2512 group { name: "elm/toolbar/item/tabbar/item_horizontal";
2513    inherit: "elm/toolbar/item/tabbar";
2514    parts {
2515       part { name: "bg";
2516          description { state: "default" 0.0;
2517             min: 303 0;
2518          }
2519          description { state: "icon_text" 0.0;
2520             min: 404 0;
2521          }
2522       }
2523    }
2524 }