[Slider.edc] Slider new style is added for indicator popup.
[platform/core/uifw/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              rel1.to: "elm.swallow.icon_new";
1474              rel1.offset: 0 -3;
1475              rel2.to: "elm.swallow.icon_new";
1476              rel2.offset: -1 -4;
1477          }
1478       }
1479       part { name: "elm.swallow.icon.proxy";
1480          type: PROXY;
1481          scale: 1;
1482          clip_to: "elm.icon.proxy.clipper";
1483          description { state: "default" 0.0;
1484              source: "elm.swallow.icon";
1485              rel1.to: "elm.swallow.icon";
1486              rel1.offset: 0 -3;
1487              rel2.to: "elm.swallow.icon";
1488              rel2.offset: -1 -4;
1489          }
1490       }
1491       part { name: "elm.text";
1492          type: TEXTBLOCK;
1493          mouse_events: 0;
1494          scale: 1;
1495          clip_to: "elm.text.clipper";
1496          description { state: "default" 0.0;
1497             visible: 1;
1498             rel1 {
1499                relative: 1.0 1.0;
1500                to_x: "padding_after_icon";
1501                to_y: "padding_left_top";
1502             }
1503             rel2 {
1504                relative: 0.0 0.0;
1505                to: "padding_right_bottom";
1506             }
1507             fixed: 1 1;
1508             max: 0 78;
1509             text {
1510                style: "toolbar_text_style_30";
1511                min: 0 0;
1512                max: 1 0;
1513             }
1514          }
1515          description { state: "visible" 0.0;
1516             inherit: "default" 0.0;
1517             visible: 1;
1518          }
1519          description { state: "visible" 0.24;
1520             inherit: "visible" 0.0;
1521             max: 0 62;
1522             text.style: "toolbar_text_style_24";
1523          }
1524          description { state: "visible" 0.28;
1525             inherit: "visible" 0.0;
1526             max: 0 72;
1527             text.style: "toolbar_text_style_28";
1528          }
1529          description { state: "visible" 0.30;
1530             inherit: "visible" 0.0;
1531             max: 0 78;
1532             text.style: "toolbar_text_style_30";
1533          }
1534          description { state: "selected" 0.0;
1535             inherit: "visible" 0.0;
1536             text.style: "toolbar_selected_text_style_30";
1537          }
1538          description { state: "selected" 0.24;
1539             inherit: "visible" 0.24;
1540             text.style: "toolbar_selected_text_style_24";
1541          }
1542          description { state: "selected" 0.28;
1543             inherit: "visible" 0.28;
1544             text.style: "toolbar_selected_text_style_28";
1545          }
1546          description { state: "selected" 0.30;
1547             inherit: "visible" 0.30;
1548             text.style: "toolbar_selected_text_style_30";
1549          }
1550       }
1551       part { name: "elm.text_new";
1552          type: TEXTBLOCK;
1553          mouse_events: 0;
1554          scale: 1;
1555          clip_to: "elm.text_new.clipper";
1556          description { state: "default" 0.0;
1557             visible: 0;
1558             rel1 {
1559                relative: 1.0 1.0;
1560                to_x: "padding_after_icon";
1561                to_y: "padding_left_top";
1562             }
1563             rel2 {
1564                relative: 0.0 0.0;
1565                to: "padding_right_bottom";
1566             }
1567             min: 0 36;
1568             max: 9999 36;
1569             fixed: 1 1;
1570             text {
1571                style: "toolbar_text_style_30";
1572                min: 0 0;
1573                max: 0 1;
1574             }
1575          }
1576          description { state: "visible" 0.0;
1577             inherit: "default" 0.0;
1578             visible: 1;
1579          }
1580          description { state: "visible" 0.24;
1581             inherit: "visible" 0.0;
1582             max: 0 62;
1583             text.style: "toolbar_text_style_24";
1584          }
1585          description { state: "visible" 0.28;
1586             inherit: "visible" 0.0;
1587             max: 0 72;
1588             text.style: "toolbar_text_style_28";
1589          }
1590          description { state: "visible" 0.30;
1591             inherit: "visible" 0.0;
1592             max: 0 78;
1593             text.style: "toolbar_text_style_30";
1594          }
1595          description { state: "selected" 0.0;
1596             inherit: "visible" 0.0;
1597             text.style: "toolbar_selected_text_style_30";
1598          }
1599          description { state: "selected" 0.24;
1600             inherit: "visible" 0.24;
1601             text.style: "toolbar_selected_text_style_24";
1602          }
1603          description { state: "selected" 0.28;
1604             inherit: "visible" 0.28;
1605             text.style: "toolbar_selected_text_style_28";
1606          }
1607          description { state: "selected" 0.30;
1608             inherit: "visible" 0.30;
1609             text.style: "toolbar_selected_text_style_30";
1610          }
1611       }
1612       part { name: "padding.selected_line";
1613          type: RECT;
1614          scale: 1;
1615          mouse_events: 0;
1616          description { state: "default" 0.0;
1617             rel1 {
1618                 relative: 0.0 0.5;
1619                 offset: 16 0;
1620             }
1621             rel2 {
1622                 relative: 1.0 0.5;
1623                 offset: -17 -1;
1624             }
1625             min: 0 64;
1626             fixed: 0 1;
1627             visible: 0;
1628          }
1629       }
1630       part { name: "selected_line";
1631          type: RECT;
1632          scale: 1;
1633          mouse_events: 0;
1634          description { state: "default" 0.0;
1635             rel1 {
1636                 to: "padding.selected_line";
1637                 relative: 0.0 1.0;
1638             }
1639             rel2 {
1640                 to: "padding.selected_line";
1641                 relative: 1.0 1.0;
1642             }
1643             align: 0.5 0.0;
1644             color: 59 115 182 255;
1645             min: 0 5;
1646             fixed: 0 1;
1647             visible: 0;
1648          }
1649          description { state: "selected" 0.0;
1650             inherit: "default" 0.0;
1651             visible: 1;
1652          }
1653       }
1654       part { name: "padding.badge";
1655          type: RECT;
1656          scale: 1;
1657          mouse_events: 0;
1658          description { state: "default" 0.0;
1659             align: 1.0 0.5;
1660             rel1 {
1661                 relative: 1.0 0.0;
1662             }
1663             rel2 {
1664                 relative: 1.0 0.5;
1665             }
1666             min: 10 0;
1667             fixed: 1 0;
1668             visible: 0;
1669          }
1670          description { state: "default" 0.10;
1671             inherit: "default" 0.0;
1672             min: 10 0;
1673          }
1674          description { state: "default" 0.06;
1675             inherit: "default" 0.0;
1676             min: 6 0;
1677          }
1678          description { state: "default" 0.04;
1679             inherit: "default" 0.0;
1680             min: 4 0;
1681          }
1682       }
1683       part { name: "elm.image.badge";
1684          mouse_events: 0;
1685          scale: 1;
1686          description { state: "default" 0.0;
1687             visible: 0;
1688             min: 54 48;
1689             fixed: 1 1;
1690             rel1 {
1691                to: "left.padding.text";
1692                relative: 0.0 0.0;
1693             }
1694             rel2 {
1695                to: "right.padding.text";
1696                relative: 1.0 1.0;
1697             }
1698             image {
1699                normal: "00_badge_bg.png";
1700                border: 29 24 0 0;
1701                border_scale: 1;
1702             }
1703          }
1704          description { state: "visible" 0.0;
1705             inherit: "default" 0.0;
1706             visible: 1;
1707          }
1708       }
1709       part { name: "left.padding.text";
1710          type: RECT;
1711          scale: 1;
1712          description {
1713             state: "default" 0.0;
1714             visible: 0;
1715             fixed: 1 1;
1716             min: 13 47;
1717             rel1 {
1718                to: "elm.text.badge";
1719                relative: 0.0 1.0;
1720             }
1721             rel2 {
1722                to: "elm.text.badge";
1723                relative: 0.0 1.0;
1724             }
1725             align: 1.0 1.0;
1726          }
1727       }
1728       part { name: "right.padding.text";
1729          type: RECT;
1730          scale: 1;
1731          description {
1732             state: "default" 0.0;
1733             visible: 0;
1734             fixed: 1 1;
1735             min: 8 48;
1736             rel1 {
1737                to: "padding.badge";
1738                relative: 0.0 1.0;
1739             }
1740             rel2 {
1741                to: "padding.badge";
1742                relative: 0.0 1.0;
1743             }
1744             align: 1.0 1.0;
1745          }
1746       }
1747       part { name: "elm.text.badge";
1748          type: TEXT;
1749          mouse_events: 0;
1750          scale: 1;
1751          description {
1752             state: "default" 0.0;
1753             visible: 0;
1754             rel1 {
1755                to: "right.padding.text";
1756                relative: 0.0 0.0;
1757             }
1758             rel2 {
1759                to: "right.padding.text";
1760                relative: 0.0 1.0;
1761             }
1762             min: 25 0;
1763             fixed: 1 0;
1764             align: 1.0 0.5;
1765             color: 10 100 208 255;
1766             text {
1767                font: "Tizen:style=Bold";
1768                size: 26;
1769                min: 1 1;
1770             }
1771          }
1772          description { state: "visible" 0.0;
1773             inherit: "default" 0.0;
1774             visible: 1;
1775          }
1776       }
1777       part { name: "elm.text.clipper";
1778          type: RECT;
1779          description { state: "default" 0.0;
1780             color: 255 255 255 255;
1781          }
1782          description { state: "animation" 0.0;
1783             color: 255 255 255 0;
1784          }
1785          description { state: "disabled" 0.0;
1786             color: 255 255 255 153;
1787          }
1788       }
1789       part { name: "elm.text_new.clipper";
1790          type: RECT;
1791          description { state: "default" 0.0;
1792             color: 255 255 255 0;
1793          }
1794          description { state: "animation" 0.0;
1795             color: 255 255 255 255;
1796          }
1797          description { state: "disabled" 0.0;
1798             color: 255 255 255 153;
1799          }
1800       }
1801       part { name: "elm.icon.clipper";
1802          type: RECT;
1803          description { state: "default" 0.0;
1804             color: 255 255 255  255;
1805          }
1806          description { state: "animation" 0.0;
1807             color: 255 255 255 0;
1808          }
1809          description { state: "selected" 0.0;
1810             color: 255 255 255 255;
1811          }
1812          description { state: "disabled" 0.0;
1813             color: 255 255 255 153;
1814          }
1815       }
1816       part { name: "elm.icon_new.clipper";
1817          type: RECT;
1818          description { state: "default" 0.0;
1819             color: 255 255 255 0;
1820          }
1821          description { state: "animation" 0.0;
1822             color: 255 255 255 255;
1823          }
1824          description { state: "selected" 0.0;
1825             color: 255 255 255 255;
1826          }
1827          description { state: "disabled" 0.0;
1828             color: 255 255 255 153;
1829          }
1830       }
1831       part { name: "elm.icon.proxy.clipper";
1832          type: RECT;
1833          description { state: "default" 0.0;
1834             color: 153 153 153 255;
1835          }
1836          description { state: "animation" 0.0;
1837             color: 255 255 255 0;
1838          }
1839          description { state: "selected" 0.0;
1840             color: 61 114 180 255;
1841          }
1842          description { state: "disabled" 0.0;
1843             color: 255 255 255 153;
1844          }
1845       }
1846       part { name: "elm.icon_new.proxy.clipper";
1847          type: RECT;
1848          description { state: "default" 0.0;
1849             color: 255 255 255 0;
1850          }
1851          description { state: "animation" 0.0;
1852             color: 255 255 255 255;
1853          }
1854          description { state: "selected" 0.0;
1855             color: 61 114 180 255;
1856          }
1857          description { state: "disabled" 0.0;
1858             color: 255 255 255 153;
1859          }
1860       }
1861       part { name: "divider";
1862          type: RECT;
1863          scale: 1;
1864          description { state: "default" 0.0;
1865             min: 4 26;
1866             max: 4 9999;
1867             fixed: 1 1;
1868             rel1 {
1869                 relative: 1.0 0.5;
1870                 to_y: "elm.swallow.icon";
1871             }
1872             rel2 {
1873                 relative: 1.0 0.5;
1874                 to_y: "elm.swallow.icon";
1875             }
1876          }
1877          description { state: "hidden" 0.0;
1878             inherit: "default" 0.0;
1879             visible: 0;
1880          }
1881       }
1882       part { name: "divider_left";
1883          type: RECT;
1884          clip_to: "divider";
1885          description { state: "default" 0.0;
1886             color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
1887             rel1 {
1888                 relative: 0.0 0.0;
1889                 to: "divider";
1890             }
1891             rel2 {
1892                 relative: 0.5 1.0;
1893                 to: "divider";
1894             }
1895          }
1896       }
1897       part { name: "divider_right";
1898          type: RECT;
1899          clip_to: "divider";
1900          description { state: "default" 0.0;
1901             color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;
1902             rel1 {
1903                 relative: 0.5 0.0;
1904                 to: "divider";
1905             }
1906             rel2 {
1907                 relative: 1.0 1.0;
1908                 to: "divider";
1909             }
1910          }
1911       }
1912       part { name: "highlight";
1913          type: IMAGE;
1914          description { state: "default" 0.0;
1915             visible: 0;
1916             image {
1917                 normal: "00_focus.png";
1918                 border: 8 8 8 8;
1919             }
1920          }
1921          description { state: "highlighted" 0.0;
1922             inherit: "default" 0.0;
1923             visible: 1;
1924          }
1925       }
1926       part { name: "event";
1927          type: RECT;
1928          mouse_events: 1;
1929          dragable {
1930             x: 1 0 0;
1931             y: 1 0 0;
1932          }
1933          description { state: "default" 0.0;
1934             color: 0 0 0 0;
1935          }
1936       }
1937    }
1938    programs {
1939       program { name: "go_active";
1940          signal:  "elm,state,selected";
1941          source:  "elm";
1942          action:  STATE_SET "selected" 0.0;
1943          target:  "elm.icon.clipper";
1944          target:  "elm.icon.proxy.clipper";
1945          target:  "selected_line";
1946          after: "selected_text";
1947       }
1948       program { name: "selected_text";
1949          script{
1950             new st[31];
1951             new Float:vl;
1952             set_int(selected, 1);
1953             get_state(PART:"elm.text", st, 30, vl);
1954             if (!strcmp(st, "visible"))
1955               set_state(PART:"elm.text", "selected", vl);
1956          }
1957       }
1958       program { name: "go_passive";
1959          signal:  "elm,state,unselected";
1960          source:  "elm";
1961          action:  STATE_SET "default" 0.0;
1962          target:  "elm.icon.clipper";
1963          target:  "elm.icon.proxy.clipper";
1964          target:  "selected_line";
1965          after: "unselected_text";
1966       }
1967       program { name: "unselected_text";
1968          script{
1969             new st[31];
1970             new Float:vl;
1971             set_int(selected, 0);
1972             get_state(PART:"elm.text", st, 30, vl);
1973             if (!strcmp(st, "selected"))
1974               set_state(PART:"elm.text", "visible", vl);
1975          }
1976       }
1977       program { name: "moving";
1978          signal:  "elm,state,moving";
1979          source:  "elm";
1980          action:  STATE_SET "moving" 0.0;
1981          target:  "bg_cover";
1982       }
1983       program { name: "pressed";
1984          signal:  "mouse,down,1";
1985          source:  "event";
1986          action:  STATE_SET "pressed" 0.0;
1987          target:  "bg_cover";
1988       }
1989       program {
1990          name: "drag";
1991          signal: "drag";
1992          source: "event";
1993          script {
1994             new st[31];
1995             new Float:vl;
1996             new Float:dx, Float:dy;
1997             get_state(PART:"bg_cover", st, 30, vl);
1998             if (strcmp(st, "moving"))
1999               {
2000                 get_drag(PART:"event", dx, dy);
2001                 if ((abs(dx)*abs(dx))+(abs(dy)*abs(dy)) > 400)
2002                   {
2003                     set_drag(PART:"event", 0.0, 0.0);
2004                     set_state(PART:"bg_cover", "default", 0.0);
2005                   }
2006                 set_drag(PART:"event", 0.0, 0.0);
2007               }
2008           }
2009       }
2010       program { name: "unpressed";
2011          signal:  "mouse,up,1";
2012          source:  "event";
2013          script {
2014             set_drag(PART:"event", 0.0, 0.0);
2015             set_state(PART:"bg_cover", "default", 0.0);
2016          }
2017       }
2018       program { name: "go";
2019          signal:  "mouse,clicked,1";
2020          source:  "event";
2021          action:  SIGNAL_EMIT "elm,action,click" "elm";
2022          after: "play_sound";
2023       }
2024       program { name: "play_sound";
2025          action: PLAY_SAMPLE "touch_sound" 1.0;
2026       }
2027       program { name: "mouse,in";
2028          signal:  "mouse,in";
2029          source:  "event";
2030          action:  SIGNAL_EMIT "elm,mouse,in" "elm";
2031       }
2032       program { name: "mouse,out";
2033          signal:  "mouse,out";
2034          source:  "event";
2035          action:  SIGNAL_EMIT "elm,mouse,out" "elm";
2036       }
2037       program { name: "disable";
2038          signal: "elm,state,disabled";
2039          source: "elm";
2040          script {
2041             set_int(item_state, ITEM_STATE_DISABLED);
2042             set_state(PART:"bg", "disabled", 0.0);
2043             set_state(PART:"elm.text.clipper", "disabled", 0.0);
2044             set_state(PART:"elm.icon.clipper", "disabled", 0.0);
2045             set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
2046             run_program(PROGRAM:"label_set,animation,done");
2047             run_program(PROGRAM:"icon_set,animation,done");
2048          }
2049       }
2050       program { name: "enable";
2051          signal: "elm,state,enabled";
2052          source: "elm";
2053          script {
2054             set_int(item_state, ITEM_STATE_ENABLED);
2055             set_state(PART:"bg", "default", 0.0);
2056             set_state(PART:"elm.text.clipper", "default", 0.0);
2057             set_state(PART:"elm.icon.clipper", "default", 0.0);
2058             set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
2059             run_program(PROGRAM:"label_set,animation,done");
2060             run_program(PROGRAM:"icon_set,animation,done");
2061          }
2062       }
2063       program { name: "label_set,animation,forward";
2064          signal: "elm,state,label_set,forward";
2065          source: "elm";
2066          after: "label_set,sync";
2067       }
2068       program { name: "label_set,animation,backward";
2069          signal: "elm,state,label_set,backward";
2070          source: "elm";
2071          after: "label_set,sync";
2072       }
2073       program { name: "label_set,sync";
2074          signal: "elm,state,label_set";
2075          source: "elm";
2076          script {
2077             new st[31];
2078             new Float:vl;
2079             get_state(PART:"elm.text", st, 30, vl);
2080             set_state(PART:"elm.text_new", st, vl);
2081          }
2082          after: "label_set,animation";
2083       }
2084       program { name: "label_set,animation";
2085          action: STATE_SET "animation" 0.0;
2086          target: "elm.text.clipper";
2087          target: "elm.text_new.clipper";
2088          transition: LINEAR 0.2;
2089          after: "label_set,animation,done";
2090       }
2091       program { name: "label_set,animation,done";
2092          action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
2093       }
2094       program { name: "label,reset";
2095          signal: "elm,state,label,reset";
2096          source: "elm";
2097          script {
2098             set_state(PART:"elm.text_new.clipper", "default", 0.0);
2099             if (get_int(item_state) != ITEM_STATE_DISABLED)
2100               set_state(PART:"elm.text.clipper", "default", 0.0);
2101             else
2102               set_state(PART:"elm.text.clipper", "disabled", 0.0);
2103          }
2104       }
2105       program { name: "icon_set,animation,forward";
2106          signal: "elm,state,icon_set,forward";
2107          source: "elm";
2108          after: "icon_set,animation";
2109       }
2110       program { name: "icon_set,animation,backward";
2111          signal: "elm,state,icon_set,backward";
2112          source: "elm";
2113          after: "icon_set,animation";
2114       }
2115       program { name: "icon_set,animation";
2116          signal: "elm,state,icon_set";
2117          source: "elm";
2118          action: STATE_SET "animation" 0.0;
2119          target: "elm.icon.clipper";
2120          target: "elm.icon_new.clipper";
2121          target: "elm.icon.proxy.clipper";
2122          target: "elm.icon_new.proxy.clipper";
2123          transition: LINEAR 0.2;
2124          after: "icon_set,animation,done";
2125       }
2126       program { name: "icon_set,animation,done";
2127          action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
2128       }
2129       program { name: "icon,reset";
2130          signal: "elm,state,icon,reset";
2131          source: "elm";
2132          script {
2133             set_state(PART:"elm.icon_new.clipper", "default", 0.0);
2134             if (get_int(item_state) != ITEM_STATE_DISABLED)
2135               {
2136                  set_state(PART:"elm.icon.clipper", "default", 0.0);
2137                  set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
2138               }
2139             else
2140               {
2141                  set_state(PART:"elm.icon.clipper", "disabled", 0.0);
2142                  set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
2143               }
2144          }
2145       }
2146       program { name: "text_show";
2147          signal: "elm,state,text,visible";
2148          source: "elm";
2149          script {
2150             new st[31];
2151             new Float:vl;
2152             get_state(PART:"elm.swallow.icon", st, 30, vl);
2153             if (!strcmp(st, "icononly"))
2154               {
2155                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
2156                  set_state(PART:"icon_rect", "visible", 0.0);
2157                  set_state(PART:"padding_after_icon", "visible", 0.0);
2158                  set_state(PART:"bg", "icon_text", 0.0);
2159               }
2160             get_state(PART:"elm.text", st, 30, vl);
2161             if (!strcmp(st, "default"))
2162               {
2163                 if (get_int(selected))
2164                   set_str(temp, "selected");
2165                 else
2166                   set_str(temp, "visible");
2167                 get_str(temp, st, 31);
2168
2169                 if (get_int(items_number) <= 2)
2170                   set_state(PART:"elm.text", st, 0.30);
2171                 else if (get_int(items_number) == 3)
2172                   set_state(PART:"elm.text", st, 0.28);
2173                 else if (get_int(items_number) >= 4)
2174                   {
2175                     get_state(PART:"bg", st, 30, vl);
2176                     if (!strcmp(st, "icon_text"))
2177                       set_state(PART:"elm.text", st, 0.28);
2178                     else
2179                       set_state(PART:"elm.text", st, 0.24);
2180                   }
2181               }
2182          }
2183       }
2184       program { name: "text_hide";
2185          signal: "elm,state,text,hidden";
2186          source: "elm";
2187          script {
2188             new st[31];
2189             new Float:vl;
2190             get_state(PART:"elm.swallow.icon", st, 30, vl);
2191             if (!strcmp(st, "visible"))
2192               {
2193                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
2194                  set_state(PART:"icon_rect", "icononly", 0.0);
2195                  set_state(PART:"padding_after_icon", "icononly", 0.0);
2196               }
2197             set_state(PART:"elm.text", "default", 0.0);
2198             set_state(PART:"bg", "default", 0.0);
2199          }
2200       }
2201       program { name: "icon_show";
2202          signal: "elm,state,icon,visible";
2203          source: "elm";
2204          script {
2205             new st[31];
2206             new Float:vl;
2207             get_state(PART:"elm.text", st, 30, vl);
2208             if (!strncmp(st, "visible", 7))
2209               {
2210                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
2211                  set_state(PART:"icon_rect", "visible", 0.0);
2212                  set_state(PART:"padding_after_icon", "visible", 0.0);
2213                  set_state(PART:"bg", "icon_text", 0.0);
2214               }
2215             else
2216               {
2217                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
2218                  set_state(PART:"icon_rect", "icononly", 0.0);
2219                  set_state(PART:"padding_after_icon", "icononly", 0.0);
2220               }
2221          }
2222       }
2223       program { name: "icon_hide";
2224          signal: "elm,state,icon,hidden";
2225          source: "elm";
2226          script {
2227             set_state(PART:"elm.swallow.icon", "default", 0.0);
2228             set_state(PART:"icon_rect", "default", 0.0);
2229             set_state(PART:"padding_after_icon", "default", 0.0);
2230             set_state(PART:"bg", "default", 0.0);
2231          }
2232       }
2233       program { name: "text_only_item_1";
2234          signal: "elm,number,item,1";
2235          source: "elm";
2236          script {
2237             set_int(items_number, 1);
2238          }
2239          after: "text_only_item_under_2";
2240       }
2241       program { name: "text_only_item_2";
2242          signal: "elm,number,item,2";
2243          source: "elm";
2244          script {
2245             set_int(items_number, 2);
2246          }
2247          after: "text_only_item_under_2";
2248       }
2249       program { name: "text_only_item_under_2";
2250          script {
2251             new st[31];
2252             new Float:vl;
2253             get_state(PART:"elm.text", st, 30, vl);
2254             if (!strncmp(st, "visible", 7))
2255               {
2256                   set_state(PART:"elm.text", st, 0.30);
2257               }
2258             set_state(PART:"padding.badge", "default", 0.10);
2259          }
2260       }
2261       program { name: "text_only_item_3";
2262          signal: "elm,number,item,3";
2263          source: "elm";
2264          script {
2265             new st[31];
2266             new Float:vl;
2267             set_int(items_number, 3);
2268             get_state(PART:"elm.text", st, 30, vl);
2269             if (!strncmp(st, "visible", 7))
2270               {
2271                   set_state(PART:"elm.text", st, 0.28);
2272               }
2273             set_state(PART:"padding.badge", "default", 0.06);
2274          }
2275       }
2276       program { name: "text_only_item_4";
2277          signal: "elm,number,item,4";
2278          source: "elm";
2279          script {
2280             set_int(items_number, 4);
2281          }
2282          after: "text_only_item_upper_4";
2283       }
2284       program { name: "text_only_item_5";
2285          signal: "elm,number,item,5";
2286          source: "elm";
2287          script {
2288             set_int(items_number, 5);
2289          }
2290          after: "text_only_item_upper_4";
2291       }
2292       program { name: "text_only_item_6";
2293          signal: "elm,number,item,6";
2294          source: "elm";
2295          script {
2296             set_int(items_number, 6);
2297          }
2298          after: "text_only_item_upper_4";
2299       }
2300       program { name: "text_only_item_7";
2301          signal: "elm,number,item,7";
2302          source: "elm";
2303          script {
2304             set_int(items_number, 7);
2305          }
2306          after: "text_only_item_upper_4";
2307       }
2308       program { name: "text_only_item_8";
2309          signal: "elm,number,item,8";
2310          source: "elm";
2311          script {
2312             set_int(items_number, 8);
2313          }
2314          after: "text_only_item_upper_4";
2315       }
2316       program { name: "text_only_item_9";
2317          signal: "elm,number,item,9";
2318          source: "elm";
2319          script {
2320             set_int(items_number, 9);
2321          }
2322          after: "text_only_item_upper_4";
2323       }
2324       program { name: "text_only_item_10";
2325          signal: "elm,number,item,10";
2326          source: "elm";
2327          script {
2328             set_int(items_number, 10);
2329          }
2330          after: "text_only_item_upper_4";
2331       }
2332       program { name: "text_only_item_upper_4";
2333          script {
2334             new st[31];
2335             new stb[31];
2336             new Float:vl;
2337             get_state(PART:"elm.text", st, 30, vl);
2338             if (!strcmp(st, "visible") || !strcmp(st, "selected"))
2339               {
2340                   get_state(PART:"bg", stb, 30, vl);
2341                   if (!strcmp(stb, "icon_text"))
2342                     set_state(PART:"elm.text", st, 0.28);
2343                   else
2344                     set_state(PART:"elm.text", st, 0.24);
2345               }
2346             get_state(PART:"bg", stb, 30, vl);
2347             if (!strcmp(stb, "icon_text"))
2348               set_state(PART:"padding.badge", "default", 0.06);
2349             else
2350               set_state(PART:"padding.badge", "default", 0.04);
2351          }
2352       }
2353       program { name: "badge_show";
2354          signal: "elm,state,elm.text.badge,visible";
2355          source: "elm";
2356          action: STATE_SET "visible" 0.0;
2357          target: "elm.text.badge";
2358          target: "elm.image.badge";
2359       }
2360       program { name: "badge_hide";
2361          signal: "elm,state,elm.text.badge,hidden";
2362          source: "elm";
2363          action:  STATE_SET "default" 0.0;
2364          target: "elm.text.badge";
2365          target: "elm.image.badge";
2366       }
2367       program { name: "divider_visible";
2368          signal: "elm,order,first,item";
2369          signal: "elm,order,default,item";
2370          source: "elm";
2371          action: STATE_SET "default" 0.0;
2372          target: "divider";
2373       }
2374       program { name: "divider_hidden";
2375          signal: "elm,order,last,item";
2376          source: "elm";
2377          action: STATE_SET "hidden" 0.0;
2378          target: "divider";
2379       }
2380       program { name: "highlight_on";
2381          signal: "elm,highlight,on";
2382          source: "elm";
2383          action: STATE_SET "highlighted" 0.0;
2384          target: "highlight";
2385       }
2386       program { name: "highlight_off";
2387          signal: "elm,highlight,off";
2388          source: "elm";
2389          action: STATE_SET "default" 0.0;
2390          target: "highlight";
2391       }
2392    }
2393 }
2394
2395 group { name: "elm/toolbar/base/tabbar/item_horizontal";
2396    inherit: "elm/toolbar/base/tabbar";
2397    parts {
2398       part { name: "left_padding";
2399          description {
2400             state: "default" 0.0;
2401             min: 34 0;
2402          }
2403       }
2404       part { name: "right_padding";
2405          description {
2406             state: "default" 0.0;
2407             min: 34 0;
2408          }
2409       }
2410    }
2411 }
2412
2413 group { name: "elm/toolbar/item/tabbar/item_horizontal";
2414    inherit: "elm/toolbar/item/tabbar";
2415    parts {
2416       part { name: "bg";
2417          description { state: "default" 0.0;
2418             min: 303 0;
2419          }
2420          description { state: "icon_text" 0.0;
2421             min: 404 0;
2422          }
2423       }
2424    }
2425 }