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