3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 #define ITEM_STATE_ENABLED 0
21 #define ITEM_STATE_DISABLED 1
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"; \
28 tag: "hilight" "+ font=Tizen:style=Bold"; \
29 tag: "b" "+ font=Tizen:style=Bold"; \
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"; \
38 tag: "hilight" "+ font=Tizen:style=Bold"; \
39 tag: "b" "+ font=Tizen:style=Bold"; \
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)
52 group { name: "elm/toolbar/base/default";
54 image: "00_winset_control_toolbar_bg.png" COMP;
59 description { state: "default" 0.0;
60 image.normal: "00_winset_control_toolbar_bg.png";
63 part { name: "clipper";
78 part { name: "elm.swallow.content";
91 description { state: "default" 0.0;
98 group { name: "elm/toolbar/item/default";
100 image: "00_winset_toolbar_press.png" COMP;
103 data.item: "transition_animation_on" "1";
105 public item_state = ITEM_STATE_ENABLED;
106 public items_number = 0;
111 description { state: "default" 0.0;
113 color: 255 255 255 0;
116 offset: TOOLBAR_ITEM_BG_REL1_OFFSET_INC;
120 offset: TOOLBAR_ITEM_BG_REL2_OFFSET_INC;
123 normal: "00_winset_toolbar_press.png";
124 border: TOOLBAR_ITEM_BG_SELECTED_BORDER_INC;
129 description { state: "selected" 0.0;
130 inherit: "default" 0.0;
132 color: 255 255 255 255;
134 description { state: "disabled" 0.0;
135 inherit: "default" 0.0;
137 color: 255 255 255 0;
140 part { name: "padding_left_top";
144 description { state: "default" 0.0;
146 rel2.relative: 0.0 0.0;
153 part { name: "padding_right_bottom";
157 description { state: "default" 0.0;
159 rel1.relative: 1.0 1.0;
171 description { state: "default" 0.0;
176 to: "padding_left_top";
180 to_x: "padding_right_bottom";
181 to_y: "padding_left_top";
186 description { state: "visible" 0.0;
187 min: TABBAR_ITEM_ICON_SIZE_INC;
191 to: "padding_left_top";
195 to_x: "padding_right_bottom";
196 to_y: "padding_left_top";
201 description { state: "icononly" 0.0;
202 inherit: "default" 0.0;
205 part { name: "padding_after_icon";
209 description { state: "default" 0.0; //when only icon or no icon is there
215 rel2.to: "icon_rect";
220 description { state: "visible" 0.0;
221 inherit: "default" 0.0;
223 description { state: "icononly" 0.0;
224 inherit: "default" 0.0;
227 part { name: "padding_before_text";
231 description { state: "default" 0.0; //when only icon or no icon is there
235 to_x: "padding_left_top";
240 to_x: "padding_right_bottom";
248 part { name: "elm.swallow.icon";
251 clip_to: "elm.icon.clipper";
252 description { state: "default" 0.0;
257 to: "padding_left_top";
261 to_x: "padding_right_bottom";
262 to_y: "padding_left_top";
266 description { state: "visible" 0.0;
268 min: TABBAR_ITEM_ICON_SIZE_INC;
269 max: TABBAR_ITEM_ICON_SIZE_INC;
272 to: "padding_left_top";
276 to_x: "padding_right_bottom";
277 to_y: "padding_before_text";
280 aspect_preference: HORIZONTAL;
282 description { state: "icononly" 0.0;
283 min: TABBAR_ITEM_ICON_SIZE_INC;
284 max: TABBAR_ITEM_ICON_SIZE_INC;
287 to: "padding_left_top";
291 to: "padding_right_bottom";
294 aspect_preference: HORIZONTAL;
297 part { name: "elm.swallow.icon_new";
300 clip_to: "elm.icon_new.clipper";
301 description { state: "default" 0.0;
306 to: "padding_left_top";
310 to_x: "padding_right_bottom";
311 to_y: "padding_left_top";
315 description { state: "visible" 0.0;
317 min: TABBAR_ITEM_ICON_SIZE_INC;
318 max: TABBAR_ITEM_ICON_SIZE_INC;
321 to: "padding_left_top";
325 to_x: "padding_right_bottom";
326 to_y: "padding_before_text";
329 aspect_preference: HORIZONTAL;
331 description { state: "icononly" 0.0;
332 min: TABBAR_ITEM_ICON_SIZE_INC;
333 max: TABBAR_ITEM_ICON_SIZE_INC;
336 to: "padding_left_top";
340 to: "padding_right_bottom";
343 aspect_preference: HORIZONTAL;
346 part { name: "elm.text";
350 clip_to: "elm.text.clipper";
351 description { state: "default" 0.0;
355 to_x: "padding_left_top";
356 to_y: "padding_after_icon";
360 to: "padding_right_bottom";
362 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
365 style: "toolbar_text_style_26";
369 description { state: "visible" 0.0;
370 inherit: "default" 0.0;
373 description { state: "visible_30" 0.0;
374 inherit: "default" 0.0;
375 text.style: "toolbar_text_style_30";
378 description { state: "visible_32" 0.0;
379 inherit: "default" 0.0;
380 text.style: "toolbar_text_style_32";
383 description { state: "visible_36" 0.0;
384 inherit: "default" 0.0;
385 text.style: "toolbar_text_style_36";
389 part { name: "elm.text_new";
393 clip_to: "elm.text_new.clipper";
394 description { state: "default" 0.0;
398 to_x: "padding_left_top";
399 to_y: "padding_after_icon";
403 to: "padding_right_bottom";
405 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
408 style: "toolbar_text_style_26";
412 description { state: "visible" 0.0;
413 inherit: "default" 0.0;
416 description { state: "visible_30" 0.0;
417 inherit: "default" 0.0;
418 text.style: "toolbar_text_style_30";
421 description { state: "visible_32" 0.0;
422 inherit: "default" 0.0;
423 text.style: "toolbar_text_style_32";
426 description { state: "visible_36" 0.0;
427 inherit: "default" 0.0;
428 text.style: "toolbar_text_style_36";
432 part { name: "elm.text.clipper";
434 description { state: "default" 0.0;
435 color: 255 255 255 255;
437 description { state: "animation" 0.0;
438 color: 255 255 255 0;
440 description { state: "disabled" 0.0;
441 color: 255 255 255 153;
444 part { name: "elm.text_new.clipper";
446 description { state: "default" 0.0;
447 color: 255 255 255 0;
449 description { state: "animation" 0.0;
450 color: 255 255 255 255;
452 description { state: "disabled" 0.0;
453 color: 255 255 255 153;
456 part { name: "elm.icon.clipper";
458 description { state: "default" 0.0;
459 color: 255 255 255 255;
461 description { state: "animation" 0.0;
462 color: 255 255 255 0;
464 description { state: "disabled" 0.0;
465 color: 255 255 255 153;
468 part { name: "elm.icon_new.clipper";
470 description { state: "default" 0.0;
471 color: 255 255 255 0;
473 description { state: "animation" 0.0;
474 color: 255 255 255 255;
476 description { state: "disabled" 0.0;
477 color: 255 255 255 153;
480 part { name: "event";
483 ignore_flags: ON_HOLD;
484 description { state: "default" 0.0;
488 part { name: "event2";
492 description { state: "default" 0.0;
498 program { name: "pressed";
499 signal: "mouse,down,1";
502 if (get_int(item_state) != ITEM_STATE_DISABLED)
503 set_state(PART:"bg", "selected", 0.0);
505 transition: LINEAR 0.2;
507 program { name: "unpressed";
508 signal: "mouse,up,1";
510 action: STATE_SET "default" 0.0;
512 transition: LINEAR 0.1;
514 program { name: "go";
515 signal: "mouse,clicked,1";
517 action: SIGNAL_EMIT "elm,action,click" "elm";
519 program { name: "mouse,in";
522 action: SIGNAL_EMIT "elm,mouse,in" "elm";
524 program { name: "mouse,out";
527 action: SIGNAL_EMIT "elm,mouse,out" "elm";
529 program { name: "disable";
530 signal: "elm,state,disabled";
533 set_int(item_state, ITEM_STATE_DISABLED);
534 set_state(PART:"bg", "disabled", 0.0);
535 set_state(PART:"elm.text.clipper", "disabled", 0.0);
536 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
537 run_program(PROGRAM:"label_set,animation,done");
538 run_program(PROGRAM:"icon_set,animation,done");
541 program { name: "enable";
542 signal: "elm,state,enabled";
545 set_int(item_state, ITEM_STATE_ENABLED);
546 set_state(PART:"bg", "default", 0.0);
547 set_state(PART:"elm.text.clipper", "default", 0.0);
548 set_state(PART:"elm.icon.clipper", "default", 0.0);
549 run_program(PROGRAM:"label_set,animation,done");
550 run_program(PROGRAM:"icon_set,animation,done");
553 program { name: "label_set,animation,forward";
554 signal: "elm,state,label_set,forward";
556 after: "label_set,sync";
558 program { name: "label_set,animation,backward";
559 signal: "elm,state,label_set,backward";
561 after: "label_set,sync";
563 program { name: "label_set,sync";
564 signal: "elm,state,label_set";
569 get_state(PART:"elm.text", st, 30, vl);
570 set_state(PART:"elm.text_new", st, vl);
572 after: "label_set,animation";
574 program { name: "label_set,animation";
575 action: STATE_SET "animation" 0.0;
576 target: "elm.text.clipper";
577 target: "elm.text_new.clipper";
578 transition: LINEAR 0.2;
579 after: "label_set,animation,done";
581 program { name: "label_set,animation,done";
582 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
584 program { name: "label,reset";
585 signal: "elm,state,label,reset";
588 set_state(PART:"elm.text_new.clipper", "default", 0.0);
589 if (get_int(item_state) != ITEM_STATE_DISABLED)
590 set_state(PART:"elm.text.clipper", "default", 0.0);
592 set_state(PART:"elm.text.clipper", "disabled", 0.0);
595 program { name: "icon_set,animation,forward";
596 signal: "elm,state,icon_set,forward";
598 after: "icon_set,animation";
600 program { name: "icon_set,animation,backward";
601 signal: "elm,state,icon_set,backward";
603 after: "icon_set,animation";
605 program { name: "icon_set,animation";
606 signal: "elm,state,icon_set";
608 action: STATE_SET "animation" 0.0;
609 target: "elm.icon.clipper";
610 target: "elm.icon_new.clipper";
611 transition: LINEAR 0.2;
612 after: "icon_set,animation,done";
614 program { name: "icon_set,animation,done";
615 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
617 program { name: "icon,reset";
618 signal: "elm,state,icon,reset";
621 set_state(PART:"elm.icon_new.clipper", "default", 0.0);
622 if (get_int(item_state) != ITEM_STATE_DISABLED)
623 set_state(PART:"elm.icon.clipper", "default", 0.0);
625 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
628 program { name: "text_show";
629 signal: "elm,state,text,visible";
634 get_state(PART:"elm.swallow.icon", st, 30, vl);
635 if (!strcmp(st, "icononly"))
637 set_state(PART:"elm.swallow.icon", "visible", 0.0);
638 set_state(PART:"icon_rect", "visible", 0.0);
639 set_state(PART:"padding_after_icon", "visible", 0.0);
641 if (strcmp(st, "default"))
643 set_state(PART:"elm.text", "visible", 0.0);
647 if (get_int(items_number) <= 3)
648 set_state(PART:"elm.text", "visible_32", 0.0);
649 else if (get_int(items_number) >= 4)
650 set_state(PART:"elm.text", "visible_30", 0.0);
654 program { name: "text_hide";
655 signal: "elm,state,text,hidden";
660 get_state(PART:"elm.swallow.icon", st, 30, vl);
661 if (!strcmp(st, "visible"))
663 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
664 set_state(PART:"icon_rect", "icononly", 0.0);
665 set_state(PART:"padding_after_icon", "icononly", 0.0);
667 set_state(PART:"elm.text", "default", 0.0);
670 program { name: "icon_show";
671 signal: "elm,state,icon,visible";
676 get_state(PART:"elm.text", st, 30, vl);
677 if (!strncmp(st, "visible", 7))
679 set_state(PART:"elm.swallow.icon", "visible", 0.0);
680 set_state(PART:"icon_rect", "visible", 0.0);
681 set_state(PART:"padding_after_icon", "visible", 0.0);
682 set_state(PART:"elm.text", "visible", 0.0);
686 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
687 set_state(PART:"icon_rect", "icononly", 0.0);
688 set_state(PART:"padding_after_icon", "icononly", 0.0);
692 program { name: "icon_hide";
693 signal: "elm,state,icon,hidden";
698 get_state(PART:"elm.text", st, 30, vl);
699 if (!strncmp(st, "visible", 7))
701 if (get_int(items_number) <= 3)
702 set_state(PART:"elm.text", "visible_32", 0.0);
703 else if (get_int(items_number) >= 4)
704 set_state(PART:"elm.text", "visible_30", 0.0);
706 set_state(PART:"elm.swallow.icon", "default", 0.0);
707 set_state(PART:"icon_rect", "default", 0.0);
708 set_state(PART:"padding_after_icon", "default", 0.0);
711 program { name: "text_only_item_1";
712 signal: "elm,number,item,1";
715 set_int(items_number, 1);
717 after: "text_only_item_under_3";
719 program { name: "text_only_item_2";
720 signal: "elm,number,item,2";
723 set_int(items_number, 2);
725 after: "text_only_item_under_3";
727 program { name: "text_only_item_3";
728 signal: "elm,number,item,3";
731 set_int(items_number, 3);
733 after: "text_only_item_under_3";
735 program { name: "text_only_item_under_3";
739 get_state(PART:"elm.swallow.icon", st, 30, vl);
740 if (strcmp(st, "visible"))
742 get_state(PART:"elm.text", st, 30, vl);
743 if (!strncmp(st, "visible", 7))
745 set_state(PART:"elm.text", "visible_32", 0.0);
750 program { name: "text_only_item_4";
751 signal: "elm,number,item,4";
754 set_int(items_number, 4);
756 after: "text_only_item_upper_4";
758 program { name: "text_only_item_5";
759 signal: "elm,number,item,5";
762 set_int(items_number, 5);
764 after: "text_only_item_upper_4";
766 program { name: "text_only_item_6";
767 signal: "elm,number,item,6";
770 set_int(items_number, 6);
772 after: "text_only_item_upper_4";
774 program { name: "text_only_item_7";
775 signal: "elm,number,item,7";
778 set_int(items_number, 7);
780 after: "text_only_item_upper_4";
782 program { name: "text_only_item_8";
783 signal: "elm,number,item,8";
786 set_int(items_number, 8);
788 after: "text_only_item_upper_4";
790 program { name: "text_only_item_9";
791 signal: "elm,number,item,9";
794 set_int(items_number, 9);
796 after: "text_only_item_upper_4";
798 program { name: "text_only_item_10";
799 signal: "elm,number,item,10";
802 set_int(items_number, 10);
804 after: "text_only_item_upper_4";
806 program { name: "text_only_item_upper_4";
807 signal: "elm,number,item,4";
812 get_state(PART:"elm.swallow.icon", st, 30, vl);
813 if (strcmp(st, "visible"))
815 get_state(PART:"elm.text", st, 30, vl);
816 if (!strncmp(st, "visible", 7))
818 set_state(PART:"elm.text", "visible_30", 0.0);
826 group { name: "elm/toolbar/item/item_horizontal";
827 inherit: "elm/toolbar/item/default";
829 part { name: "icon_rect";
830 description { state: "default" 0.0;
834 description { state: "visible" 0.0;
838 to_x: "padding_left_top";
839 to_y: "padding_right_bottom";
844 part { name: "padding_after_icon";
845 description { state: "default" 0.0; //when only icon or no icon is there
846 rel1.relative: 1.0 0.0;
849 description { state: "visible" 0.0;
850 inherit: "default" 0.0;
854 part { name: "padding_before_text";
855 description { state: "default" 0.0; //when only icon or no icon is there
860 to_y: "padding_left_top";
864 to_y: "padding_right_bottom";
870 part { name: "elm.swallow.icon";
871 description { state: "default" 0.0;
875 to_x: "padding_left_top";
876 to_y: "padding_right_bottom";
880 description { state: "visible" 0.0;
885 to_x: "padding_before_text";
886 to_y: "padding_left_top";
890 to_x: "padding_before_text";
891 to_y: "padding_right_bottom";
893 aspect_preference: VERTICAL;
895 description { state: "icononly" 0.0;
896 aspect_preference: VERTICAL;
899 part { name: "elm.swallow.icon_new";
900 description { state: "default" 0.0;
904 to_x: "padding_left_top";
905 to_y: "padding_right_bottom";
909 description { state: "visible" 0.0;
914 to_x: "padding_before_text";
915 to_y: "padding_left_top";
919 to_x: "padding_before_text";
920 to_y: "padding_right_bottom";
922 aspect_preference: VERTICAL;
924 description { state: "icononly" 0.0;
925 aspect_preference: VERTICAL;
928 part { name: "elm.text";
930 description { state: "default" 0.0;
933 to_x: "padding_after_icon";
934 to_y: "padding_left_top";
940 description { state: "visible" 0.0;
941 inherit: "default" 0.0;
944 description { state: "visible_30" 0.0;
945 inherit: "default" 0.0;
946 text.style: "toolbar_text_style_30";
949 description { state: "visible_32" 0.0;
950 inherit: "default" 0.0;
951 text.style: "toolbar_text_style_32";
954 description { state: "visible_36" 0.0;
955 inherit: "default" 0.0;
956 text.style: "toolbar_text_style_36";
960 part { name: "elm.text_new";
962 description { state: "default" 0.0;
965 to_x: "padding_after_icon";
966 to_y: "padding_left_top";
972 description { state: "visible" 0.0;
973 inherit: "default" 0.0;
976 description { state: "visible_30" 0.0;
977 inherit: "default" 0.0;
978 text.style: "toolbar_text_style_30";
981 description { state: "visible_32" 0.0;
982 inherit: "default" 0.0;
983 text.style: "toolbar_text_style_32";
986 description { state: "visible_36" 0.0;
987 inherit: "default" 0.0;
988 text.style: "toolbar_text_style_36";
995 group { name: "elm/toolbar/separator/default";
997 image: "00_winset_divider_line.png" COMP;
1000 part { name: "base";
1003 description { state: "default" 0.0;
1007 rel1.relative: 0.0 0.5;
1008 rel2.relative: 0.0 0.5;
1010 normal: "00_winset_divider_line.png";
1018 group { name: "elm/toolbar/object/default";
1020 part { name: "elm.swallow.object"; // object group
1023 state: "default" 0.0;
1029 group { name: "elm/toolbar/base/tabbar";
1031 image: "00_effect_tab_bounce_left.png" COMP;
1032 image: "00_effect_tab_bounce_right.png" COMP;
1035 public left_timer, right_timer;
1036 public l_timer(val) {
1037 emit("do-hide-left-shadow", "");
1038 set_int(left_timer, 0);
1041 public r_timer(val) {
1042 emit("do-hide-right-shadow", "");
1043 set_int(right_timer, 0);
1048 part { name: "base";
1051 description { state: "default" 0.0;
1052 color: 248 246 239 255;
1055 part { name: "left_padding";
1060 state: "default" 0.0;
1067 rel1.relative: 0.0 0.0;
1068 rel2.relative: 0.0 1.0;
1071 part { name: "right_padding";
1076 state: "default" 0.0;
1083 rel1.relative: 1.0 0.0;
1084 rel2.relative: 1.0 1.0;
1087 part { name: "clipper";
1092 state: "default" 0.0;
1093 rel1.to: "left_padding";
1094 rel1.relative: 1.0 0.0;
1095 rel2.to: "right_padding";
1096 rel2.relative: 0.0 1.0;
1099 part { name: "elm.swallow.content";
1104 state: "default" 0.0;
1109 part { name: "left_shadow_clip";
1113 description { state: "default" 0.0;
1115 color: 255 255 255 0;
1117 description { state: "show" 0.0;
1120 part { name: "right_shadow_clip";
1124 description { state: "default" 0.0;
1126 color: 255 255 255 0;
1128 description { state: "show" 0.0;
1131 part { name: "shadow_left";
1132 clip_to: "left_shadow_clip";
1136 description { state: "default" 0.0;
1140 color: 255 255 255 255;
1141 rel1.relative: 0.0 0.0;
1142 rel2.relative: 0.0 1.0;
1143 image.normal: "00_effect_tab_bounce_left.png";
1146 part { name: "shadow_right";
1147 clip_to: "right_shadow_clip";
1151 description { state: "default" 0.0;
1155 color: 255 255 255 255;
1156 rel1.relative: 1.0 0.0;
1157 rel2.relative: 1.0 1.0;
1158 image.normal: "00_effect_tab_bounce_right.png";
1163 program { name: "load";
1165 set_int(left_timer, 0);
1166 set_int(right_timer, 0);
1169 program { name: "left_shadow_show";
1170 signal: "do-show-left-shadow";
1172 action: STATE_SET "show" 0.0;
1173 transition: LINEAR 0.3;
1174 target: "left_shadow_clip";
1176 program { name: "left_shadow_hide";
1177 signal: "do-hide-left-shadow";
1179 action: STATE_SET "default" 0.0;
1180 transition: LINEAR 0.3;
1181 target: "left_shadow_clip";
1183 program { name: "right_shadow_show";
1184 signal: "do-show-right-shadow";
1186 action: STATE_SET "show" 0.0;
1187 transition: LINEAR 0.3;
1188 target: "right_shadow_clip";
1190 program { name: "right_shadow_hide";
1191 signal: "do-hide-right-shadow";
1193 action: STATE_SET "default" 0.0;
1194 transition: LINEAR 0.3;
1195 target: "right_shadow_clip";
1197 program { name: "edge_left";
1198 signal: "elm,edge,left";
1202 v = get_int(left_timer);
1204 emit("do-show-left-shadow", "");
1206 if (v > 0) cancel_timer(v);
1207 v = timer(0.5, "l_timer", 0);
1208 set_int(left_timer, v);
1211 program { name: "edge_right";
1212 signal: "elm,edge,right";
1216 v = get_int(right_timer);
1218 emit("do-show-right-shadow", "");
1220 if (v > 0) cancel_timer(v);
1221 v = timer(0.5, "r_timer", 0);
1222 set_int(right_timer, v);
1228 group { name: "elm/toolbar/more/tabbar";
1230 image: "00_winset_control_tab_h_line_h.png" COMP;
1233 part { name: "base";
1236 description { state: "default" 0.0;
1237 rel1.relative: 0.0 0.0;
1238 rel2.relative: 1.0 0.0;
1239 color: 248 246 239 255;
1241 description { state: "open" 0.0;
1242 inherit: "default" 0.0;
1243 rel2.relative: 1.0 1.0;
1245 description { state: "open2" 0.0;
1246 inherit: "default" 0.0;
1247 rel2.relative: 1.0 2.0;
1250 part { name: "clipper";
1254 state: "default" 0.0;
1263 description { state: "open" 0.0;
1264 inherit: "default" 0.0;
1265 rel2.relative: 1.0 1.0;
1267 description { state: "open2" 0.0;
1268 inherit: "default" 0.0;
1269 rel2.relative: 1.0 0.5;
1272 part { name: "clipper2";
1276 state: "default" 0.0;
1286 description { state: "open" 0.0;
1287 inherit: "default" 0.0;
1288 rel1.relative: 0.0 1.0;
1290 description { state: "open2" 0.0;
1291 inherit: "default" 0.0;
1292 rel1.relative: 0.0 0.5;
1295 part { name: "elm.swallow.content";
1299 state: "default" 0.0;
1305 part { name: "elm.swallow.content2";
1306 clip_to: "clipper2";
1309 state: "default" 0.0;
1311 rel1.to: "clipper2";
1312 rel2.to: "clipper2";
1315 part { name: "separator";
1317 description { state: "default" 0.0;
1332 normal: "00_winset_control_tab_h_line_h.png";
1340 part { name: "separator2";
1341 clip_to: "clipper2";
1342 description { state: "default" 0.0;
1357 normal: "00_winset_control_tab_h_line_h.png";
1367 program { name: "open";
1368 signal: "elm,state,open";
1370 action: STATE_SET "open" 0.0;
1374 transition: LINEAR 0.2;
1376 program { name: "open2";
1377 signal: "elm,state,open2";
1379 action: STATE_SET "open2" 0.0;
1383 transition: LINEAR 0.2;
1385 program { name: "close";
1386 signal: "elm,state,close";
1388 action: STATE_SET "default" 0.0;
1390 transition: LINEAR 0.2;
1395 group { name: "elm/toolbar/item/tabbar";
1397 image: "00_tab_press.png" COMP;
1398 image: "00_badge_bg.png" COMP;
1399 image: "00_focus.png" COMP;
1402 data.item: "transition_animation_on" "1";
1404 public item_state = ITEM_STATE_ENABLED;
1405 public items_number = 0;
1406 public selected = 0;
1414 description { state: "default" 0.0;
1418 description { state: "icon_text" 0.0;
1419 inherit: "default" 0.0;
1423 part { name: "bg_cover";
1427 description { state: "default" 0.0;
1429 image.normal: "00_tab_press.png";
1431 description { state: "pressed" 0.0;
1432 inherit: "default" 0.0;
1435 description { state: "moving" 0.0;
1436 inherit: "default" 0.0;
1440 part { name: "padding_left_top";
1444 description { state: "default" 0.0;
1446 rel2.relative: 0.0 0.0;
1453 part { name: "padding_right_bottom";
1457 description { state: "default" 0.0;
1459 rel1.relative: 1.0 1.0;
1471 description { state: "default" 0.0;
1476 to: "padding_left_top";
1480 to_x: "padding_left_top";
1481 to_y: "padding_right_bottom";
1486 description { state: "visible" 0.0;
1487 inherit: "default" 0.0;
1488 min: TABBAR_ITEM_SMALL_ICON_SIZE_INC;
1490 description { state: "icononly" 0.0;
1491 inherit: "default" 0.0;
1494 part { name: "padding_after_icon";
1498 description { state: "default" 0.0; //when only icon or no icon is there
1504 rel2.to: "icon_rect";
1509 description { state: "visible" 0.0;
1510 inherit: "default" 0.0;
1513 description { state: "icononly" 0.0;
1514 inherit: "default" 0.0;
1517 part { name: "padding_before_text";
1521 description { state: "default" 0.0; //when only icon or no icon is there
1526 to_y: "padding_left_top";
1531 to_y: "padding_right_bottom";
1538 part { name: "elm.swallow.icon";
1541 clip_to: "elm.icon.clipper";
1542 description { state: "default" 0.0;
1544 min: TABBAR_ITEM_ICON_SIZE_INC;
1545 max: TABBAR_ITEM_ICON_SIZE_INC;
1546 rel1.to: "padding_left_top";
1547 rel2.to: "padding_right_bottom";
1549 aspect_preference: HORIZONTAL;
1551 description { state: "visible" 0.0;
1553 min: TABBAR_ITEM_SMALL_ICON_SIZE_INC;
1554 max: TABBAR_ITEM_SMALL_ICON_SIZE_INC;
1558 to_x: "padding_before_text";
1559 to_y: "padding_left_top";
1563 to_x: "padding_before_text";
1564 to_y: "padding_right_bottom";
1567 aspect_preference: HORIZONTAL;
1569 description { state: "icononly" 0.0;
1570 inherit: "default" 0.0;
1574 part { name: "elm.swallow.icon_new";
1577 clip_to: "elm.icon_new.clipper";
1578 description { state: "default" 0.0;
1580 min: TABBAR_ITEM_ICON_SIZE_INC;
1581 max: TABBAR_ITEM_ICON_SIZE_INC;
1582 rel1.to: "padding_left_top";
1583 rel2.to: "padding_right_bottom";
1585 aspect_preference: HORIZONTAL;
1587 description { state: "visible" 0.0;
1589 min: TABBAR_ITEM_SMALL_ICON_SIZE_INC;
1590 max: TABBAR_ITEM_SMALL_ICON_SIZE_INC;
1593 to_x: "padding_before_text";
1594 to_y: "padding_left_top";
1598 to_x: "padding_before_text";
1599 to_y: "padding_right_bottom";
1602 aspect_preference: HORIZONTAL;
1604 description { state: "icononly" 0.0;
1605 inherit: "default" 0.0;
1609 part { name: "elm.swallow.icon_new.proxy";
1612 clip_to: "elm.icon_new.proxy.clipper";
1613 description { state: "default" 0.0;
1614 source: "elm.swallow.icon_new";
1615 rel1.to: "elm.swallow.icon_new";
1617 rel2.to: "elm.swallow.icon_new";
1621 part { name: "elm.swallow.icon.proxy";
1624 clip_to: "elm.icon.proxy.clipper";
1625 description { state: "default" 0.0;
1626 source: "elm.swallow.icon";
1627 rel1.to: "elm.swallow.icon";
1629 rel2.to: "elm.swallow.icon";
1633 part { name: "elm.text";
1637 clip_to: "elm.text.clipper";
1638 description { state: "default" 0.0;
1642 to_x: "padding_after_icon";
1643 to_y: "padding_left_top";
1647 to: "padding_right_bottom";
1652 style: "toolbar_text_style_30";
1657 description { state: "visible" 0.0;
1658 inherit: "default" 0.0;
1661 description { state: "visible" 0.24;
1662 inherit: "visible" 0.0;
1664 text.style: "toolbar_text_style_24";
1666 description { state: "visible" 0.28;
1667 inherit: "visible" 0.0;
1669 text.style: "toolbar_text_style_28";
1671 description { state: "visible" 0.30;
1672 inherit: "visible" 0.0;
1674 text.style: "toolbar_text_style_30";
1676 description { state: "selected" 0.0;
1677 inherit: "visible" 0.0;
1678 text.style: "toolbar_selected_text_style_30";
1680 description { state: "selected" 0.24;
1681 inherit: "visible" 0.24;
1682 text.style: "toolbar_selected_text_style_24";
1684 description { state: "selected" 0.28;
1685 inherit: "visible" 0.28;
1686 text.style: "toolbar_selected_text_style_28";
1688 description { state: "selected" 0.30;
1689 inherit: "visible" 0.30;
1690 text.style: "toolbar_selected_text_style_30";
1693 part { name: "elm.text_new";
1697 clip_to: "elm.text_new.clipper";
1698 description { state: "default" 0.0;
1702 to_x: "padding_after_icon";
1703 to_y: "padding_left_top";
1707 to: "padding_right_bottom";
1713 style: "toolbar_text_style_30";
1718 description { state: "visible" 0.0;
1719 inherit: "default" 0.0;
1722 description { state: "visible" 0.24;
1723 inherit: "visible" 0.0;
1725 text.style: "toolbar_text_style_24";
1727 description { state: "visible" 0.28;
1728 inherit: "visible" 0.0;
1730 text.style: "toolbar_text_style_28";
1732 description { state: "visible" 0.30;
1733 inherit: "visible" 0.0;
1735 text.style: "toolbar_text_style_30";
1737 description { state: "selected" 0.0;
1738 inherit: "visible" 0.0;
1739 text.style: "toolbar_selected_text_style_30";
1741 description { state: "selected" 0.24;
1742 inherit: "visible" 0.24;
1743 text.style: "toolbar_selected_text_style_24";
1745 description { state: "selected" 0.28;
1746 inherit: "visible" 0.28;
1747 text.style: "toolbar_selected_text_style_28";
1749 description { state: "selected" 0.30;
1750 inherit: "visible" 0.30;
1751 text.style: "toolbar_selected_text_style_30";
1754 part { name: "padding.selected_line";
1758 description { state: "default" 0.0;
1772 part { name: "selected_line";
1776 description { state: "default" 0.0;
1778 to: "padding.selected_line";
1782 to: "padding.selected_line";
1786 color: 59 115 182 255;
1791 description { state: "selected" 0.0;
1792 inherit: "default" 0.0;
1796 part { name: "padding.badge";
1800 description { state: "default" 0.0;
1812 description { state: "default" 0.10;
1813 inherit: "default" 0.0;
1816 description { state: "default" 0.06;
1817 inherit: "default" 0.0;
1820 description { state: "default" 0.04;
1821 inherit: "default" 0.0;
1825 part { name: "elm.image.badge";
1828 description { state: "default" 0.0;
1833 to: "left.padding.text";
1837 to: "right.padding.text";
1841 normal: "00_badge_bg.png";
1846 description { state: "visible" 0.0;
1847 inherit: "default" 0.0;
1851 part { name: "left.padding.text";
1855 state: "default" 0.0;
1860 to: "elm.text.badge";
1864 to: "elm.text.badge";
1870 part { name: "right.padding.text";
1874 state: "default" 0.0;
1879 to: "padding.badge";
1883 to: "padding.badge";
1889 part { name: "elm.text.badge";
1894 state: "default" 0.0;
1897 to: "right.padding.text";
1901 to: "right.padding.text";
1907 color: 10 100 208 255;
1909 font: "Tizen:style=Bold";
1914 description { state: "visible" 0.0;
1915 inherit: "default" 0.0;
1919 part { name: "elm.text.clipper";
1921 description { state: "default" 0.0;
1922 color: 255 255 255 255;
1924 description { state: "animation" 0.0;
1925 color: 255 255 255 0;
1927 description { state: "disabled" 0.0;
1928 color: 255 255 255 153;
1931 part { name: "elm.text_new.clipper";
1933 description { state: "default" 0.0;
1934 color: 255 255 255 0;
1936 description { state: "animation" 0.0;
1937 color: 255 255 255 255;
1939 description { state: "disabled" 0.0;
1940 color: 255 255 255 153;
1943 part { name: "elm.icon.clipper";
1945 description { state: "default" 0.0;
1946 color: 255 255 255 255;
1948 description { state: "animation" 0.0;
1949 color: 255 255 255 0;
1951 description { state: "selected" 0.0;
1952 color: 255 255 255 255;
1954 description { state: "disabled" 0.0;
1955 color: 255 255 255 153;
1958 part { name: "elm.icon_new.clipper";
1960 description { state: "default" 0.0;
1961 color: 255 255 255 0;
1963 description { state: "animation" 0.0;
1964 color: 255 255 255 255;
1966 description { state: "selected" 0.0;
1967 color: 255 255 255 255;
1969 description { state: "disabled" 0.0;
1970 color: 255 255 255 153;
1973 part { name: "elm.icon.proxy.clipper";
1975 description { state: "default" 0.0;
1976 color: 153 153 153 255;
1978 description { state: "animation" 0.0;
1979 color: 255 255 255 0;
1981 description { state: "selected" 0.0;
1982 color: 61 114 180 255;
1984 description { state: "disabled" 0.0;
1985 color: 255 255 255 153;
1988 part { name: "elm.icon_new.proxy.clipper";
1990 description { state: "default" 0.0;
1991 color: 255 255 255 0;
1993 description { state: "animation" 0.0;
1994 color: 255 255 255 255;
1996 description { state: "selected" 0.0;
1997 color: 61 114 180 255;
1999 description { state: "disabled" 0.0;
2000 color: 255 255 255 153;
2003 part { name: "divider";
2006 description { state: "default" 0.0;
2012 to_y: "elm.swallow.icon";
2016 to_y: "elm.swallow.icon";
2019 description { state: "hidden" 0.0;
2020 inherit: "default" 0.0;
2024 part { name: "divider_left";
2027 description { state: "default" 0.0;
2028 color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
2039 part { name: "divider_right";
2042 description { state: "default" 0.0;
2043 color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;
2054 part { name: "highlight";
2056 description { state: "default" 0.0;
2059 normal: "00_focus.png";
2063 description { state: "highlighted" 0.0;
2064 inherit: "default" 0.0;
2068 part { name: "event";
2075 description { state: "default" 0.0;
2081 program { name: "go_active";
2082 signal: "elm,state,selected";
2084 action: STATE_SET "selected" 0.0;
2085 target: "elm.icon.clipper";
2086 target: "elm.icon.proxy.clipper";
2087 target: "selected_line";
2088 after: "selected_text";
2090 program { name: "selected_text";
2094 set_int(selected, 1);
2095 get_state(PART:"elm.text", st, 30, vl);
2096 if (!strcmp(st, "visible"))
2097 set_state(PART:"elm.text", "selected", vl);
2100 program { name: "go_passive";
2101 signal: "elm,state,unselected";
2103 action: STATE_SET "default" 0.0;
2104 target: "elm.icon.clipper";
2105 target: "elm.icon.proxy.clipper";
2106 target: "selected_line";
2107 after: "unselected_text";
2109 program { name: "unselected_text";
2113 set_int(selected, 0);
2114 get_state(PART:"elm.text", st, 30, vl);
2115 if (!strcmp(st, "selected"))
2116 set_state(PART:"elm.text", "visible", vl);
2119 program { name: "moving";
2120 signal: "elm,state,moving";
2122 action: STATE_SET "moving" 0.0;
2125 program { name: "pressed";
2126 signal: "mouse,down,1";
2128 action: STATE_SET "pressed" 0.0;
2138 new Float:dx, Float:dy;
2139 get_state(PART:"bg_cover", st, 30, vl);
2140 if (strcmp(st, "moving"))
2142 get_drag(PART:"event", dx, dy);
2143 if ((abs(dx)*abs(dx))+(abs(dy)*abs(dy)) > 400)
2145 set_drag(PART:"event", 0.0, 0.0);
2146 set_state(PART:"bg_cover", "default", 0.0);
2148 set_drag(PART:"event", 0.0, 0.0);
2152 program { name: "unpressed";
2153 signal: "mouse,up,1";
2156 set_drag(PART:"event", 0.0, 0.0);
2157 set_state(PART:"bg_cover", "default", 0.0);
2160 program { name: "go";
2161 signal: "mouse,clicked,1";
2163 action: SIGNAL_EMIT "elm,action,click" "elm";
2164 after: "play_sound";
2166 program { name: "play_sound";
2167 action: PLAY_SAMPLE "touch_sound" 1.0;
2169 program { name: "mouse,in";
2172 action: SIGNAL_EMIT "elm,mouse,in" "elm";
2174 program { name: "mouse,out";
2175 signal: "mouse,out";
2177 action: SIGNAL_EMIT "elm,mouse,out" "elm";
2179 program { name: "disable";
2180 signal: "elm,state,disabled";
2183 set_int(item_state, ITEM_STATE_DISABLED);
2184 set_state(PART:"bg", "disabled", 0.0);
2185 set_state(PART:"elm.text.clipper", "disabled", 0.0);
2186 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
2187 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
2188 run_program(PROGRAM:"label_set,animation,done");
2189 run_program(PROGRAM:"icon_set,animation,done");
2192 program { name: "enable";
2193 signal: "elm,state,enabled";
2196 set_int(item_state, ITEM_STATE_ENABLED);
2197 set_state(PART:"bg", "default", 0.0);
2198 set_state(PART:"elm.text.clipper", "default", 0.0);
2199 set_state(PART:"elm.icon.clipper", "default", 0.0);
2200 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
2201 run_program(PROGRAM:"label_set,animation,done");
2202 run_program(PROGRAM:"icon_set,animation,done");
2205 program { name: "label_set,animation,forward";
2206 signal: "elm,state,label_set,forward";
2208 after: "label_set,sync";
2210 program { name: "label_set,animation,backward";
2211 signal: "elm,state,label_set,backward";
2213 after: "label_set,sync";
2215 program { name: "label_set,sync";
2216 signal: "elm,state,label_set";
2221 get_state(PART:"elm.text", st, 30, vl);
2222 set_state(PART:"elm.text_new", st, vl);
2224 after: "label_set,animation";
2226 program { name: "label_set,animation";
2227 action: STATE_SET "animation" 0.0;
2228 target: "elm.text.clipper";
2229 target: "elm.text_new.clipper";
2230 transition: LINEAR 0.2;
2231 after: "label_set,animation,done";
2233 program { name: "label_set,animation,done";
2234 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
2236 program { name: "label,reset";
2237 signal: "elm,state,label,reset";
2240 set_state(PART:"elm.text_new.clipper", "default", 0.0);
2241 if (get_int(item_state) != ITEM_STATE_DISABLED)
2242 set_state(PART:"elm.text.clipper", "default", 0.0);
2244 set_state(PART:"elm.text.clipper", "disabled", 0.0);
2247 program { name: "icon_set,animation,forward";
2248 signal: "elm,state,icon_set,forward";
2250 after: "icon_set,animation";
2252 program { name: "icon_set,animation,backward";
2253 signal: "elm,state,icon_set,backward";
2255 after: "icon_set,animation";
2257 program { name: "icon_set,animation";
2258 signal: "elm,state,icon_set";
2260 action: STATE_SET "animation" 0.0;
2261 target: "elm.icon.clipper";
2262 target: "elm.icon_new.clipper";
2263 target: "elm.icon.proxy.clipper";
2264 target: "elm.icon_new.proxy.clipper";
2265 transition: LINEAR 0.2;
2266 after: "icon_set,animation,done";
2268 program { name: "icon_set,animation,done";
2269 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
2271 program { name: "icon,reset";
2272 signal: "elm,state,icon,reset";
2275 set_state(PART:"elm.icon_new.clipper", "default", 0.0);
2276 if (get_int(item_state) != ITEM_STATE_DISABLED)
2278 set_state(PART:"elm.icon.clipper", "default", 0.0);
2279 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
2283 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
2284 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
2288 program { name: "text_show";
2289 signal: "elm,state,text,visible";
2294 get_state(PART:"elm.swallow.icon", st, 30, vl);
2295 if (!strcmp(st, "icononly"))
2297 set_state(PART:"elm.swallow.icon", "visible", 0.0);
2298 set_state(PART:"icon_rect", "visible", 0.0);
2299 set_state(PART:"padding_after_icon", "visible", 0.0);
2300 set_state(PART:"bg", "icon_text", 0.0);
2302 get_state(PART:"elm.text", st, 30, vl);
2303 if (!strcmp(st, "default"))
2305 if (get_int(selected))
2306 set_str(temp, "selected");
2308 set_str(temp, "visible");
2309 get_str(temp, st, 31);
2311 if (get_int(items_number) <= 2)
2312 set_state(PART:"elm.text", st, 0.30);
2313 else if (get_int(items_number) == 3)
2314 set_state(PART:"elm.text", st, 0.28);
2315 else if (get_int(items_number) >= 4)
2317 get_state(PART:"bg", st, 30, vl);
2318 if (!strcmp(st, "icon_text"))
2319 set_state(PART:"elm.text", st, 0.28);
2321 set_state(PART:"elm.text", st, 0.24);
2326 program { name: "text_hide";
2327 signal: "elm,state,text,hidden";
2332 get_state(PART:"elm.swallow.icon", st, 30, vl);
2333 if (!strcmp(st, "visible"))
2335 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
2336 set_state(PART:"icon_rect", "icononly", 0.0);
2337 set_state(PART:"padding_after_icon", "icononly", 0.0);
2339 set_state(PART:"elm.text", "default", 0.0);
2340 set_state(PART:"bg", "default", 0.0);
2343 program { name: "icon_show";
2344 signal: "elm,state,icon,visible";
2349 get_state(PART:"elm.text", st, 30, vl);
2350 if (!strncmp(st, "visible", 7))
2352 set_state(PART:"elm.swallow.icon", "visible", 0.0);
2353 set_state(PART:"icon_rect", "visible", 0.0);
2354 set_state(PART:"padding_after_icon", "visible", 0.0);
2355 set_state(PART:"bg", "icon_text", 0.0);
2359 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
2360 set_state(PART:"icon_rect", "icononly", 0.0);
2361 set_state(PART:"padding_after_icon", "icononly", 0.0);
2365 program { name: "icon_hide";
2366 signal: "elm,state,icon,hidden";
2369 set_state(PART:"elm.swallow.icon", "default", 0.0);
2370 set_state(PART:"icon_rect", "default", 0.0);
2371 set_state(PART:"padding_after_icon", "default", 0.0);
2372 set_state(PART:"bg", "default", 0.0);
2375 program { name: "text_only_item_1";
2376 signal: "elm,number,item,1";
2379 set_int(items_number, 1);
2381 after: "text_only_item_under_2";
2383 program { name: "text_only_item_2";
2384 signal: "elm,number,item,2";
2387 set_int(items_number, 2);
2389 after: "text_only_item_under_2";
2391 program { name: "text_only_item_under_2";
2395 get_state(PART:"elm.text", st, 30, vl);
2396 if (!strncmp(st, "visible", 7))
2398 set_state(PART:"elm.text", st, 0.30);
2400 set_state(PART:"padding.badge", "default", 0.10);
2403 program { name: "text_only_item_3";
2404 signal: "elm,number,item,3";
2409 set_int(items_number, 3);
2410 get_state(PART:"elm.text", st, 30, vl);
2411 if (!strncmp(st, "visible", 7))
2413 set_state(PART:"elm.text", st, 0.28);
2415 set_state(PART:"padding.badge", "default", 0.06);
2418 program { name: "text_only_item_4";
2419 signal: "elm,number,item,4";
2422 set_int(items_number, 4);
2424 after: "text_only_item_upper_4";
2426 program { name: "text_only_item_5";
2427 signal: "elm,number,item,5";
2430 set_int(items_number, 5);
2432 after: "text_only_item_upper_4";
2434 program { name: "text_only_item_6";
2435 signal: "elm,number,item,6";
2438 set_int(items_number, 6);
2440 after: "text_only_item_upper_4";
2442 program { name: "text_only_item_7";
2443 signal: "elm,number,item,7";
2446 set_int(items_number, 7);
2448 after: "text_only_item_upper_4";
2450 program { name: "text_only_item_8";
2451 signal: "elm,number,item,8";
2454 set_int(items_number, 8);
2456 after: "text_only_item_upper_4";
2458 program { name: "text_only_item_9";
2459 signal: "elm,number,item,9";
2462 set_int(items_number, 9);
2464 after: "text_only_item_upper_4";
2466 program { name: "text_only_item_10";
2467 signal: "elm,number,item,10";
2470 set_int(items_number, 10);
2472 after: "text_only_item_upper_4";
2474 program { name: "text_only_item_upper_4";
2479 get_state(PART:"elm.text", st, 30, vl);
2480 if (!strcmp(st, "visible") || !strcmp(st, "selected"))
2482 get_state(PART:"bg", stb, 30, vl);
2483 if (!strcmp(stb, "icon_text"))
2484 set_state(PART:"elm.text", st, 0.28);
2486 set_state(PART:"elm.text", st, 0.24);
2488 get_state(PART:"bg", stb, 30, vl);
2489 if (!strcmp(stb, "icon_text"))
2490 set_state(PART:"padding.badge", "default", 0.06);
2492 set_state(PART:"padding.badge", "default", 0.04);
2495 program { name: "badge_show";
2496 signal: "elm,state,elm.text.badge,visible";
2498 action: STATE_SET "visible" 0.0;
2499 target: "elm.text.badge";
2500 target: "elm.image.badge";
2502 program { name: "badge_hide";
2503 signal: "elm,state,elm.text.badge,hidden";
2505 action: STATE_SET "default" 0.0;
2506 target: "elm.text.badge";
2507 target: "elm.image.badge";
2509 program { name: "divider_visible";
2510 signal: "elm,order,first,item";
2511 signal: "elm,order,default,item";
2513 action: STATE_SET "default" 0.0;
2516 program { name: "divider_hidden";
2517 signal: "elm,order,last,item";
2519 action: STATE_SET "hidden" 0.0;
2522 program { name: "highlight_on";
2523 signal: "elm,highlight,on";
2525 action: STATE_SET "highlighted" 0.0;
2526 target: "highlight";
2528 program { name: "highlight_off";
2529 signal: "elm,highlight,off";
2531 action: STATE_SET "default" 0.0;
2532 target: "highlight";
2537 group { name: "elm/toolbar/base/tabbar/item_horizontal";
2538 inherit: "elm/toolbar/base/tabbar";
2540 part { name: "left_padding";
2542 state: "default" 0.0;
2546 part { name: "right_padding";
2548 state: "default" 0.0;
2555 group { name: "elm/toolbar/item/tabbar/item_horizontal";
2556 inherit: "elm/toolbar/item/tabbar";
2559 description { state: "default" 0.0;
2562 description { state: "icon_text" 0.0;