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 part { name: "base";
1034 description { state: "default" 0.0;
1035 color: 248 246 239 255;
1038 part { name: "left_padding";
1043 state: "default" 0.0;
1050 rel1.relative: 0.0 0.0;
1051 rel2.relative: 0.0 1.0;
1054 part { name: "right_padding";
1059 state: "default" 0.0;
1066 rel1.relative: 1.0 0.0;
1067 rel2.relative: 1.0 1.0;
1070 part { name: "clipper";
1075 state: "default" 0.0;
1076 rel1.to: "left_padding";
1077 rel1.relative: 1.0 0.0;
1078 rel2.to: "right_padding";
1079 rel2.relative: 0.0 1.0;
1082 part { name: "elm.swallow.content";
1087 state: "default" 0.0;
1092 part { name: "event";
1097 description { state: "default" 0.0;
1104 group { name: "elm/toolbar/more/tabbar";
1106 image: "00_winset_control_tab_h_line_h.png" COMP;
1109 part { name: "base";
1112 description { state: "default" 0.0;
1113 rel1.relative: 0.0 0.0;
1114 rel2.relative: 1.0 0.0;
1115 color: 248 246 239 255;
1117 description { state: "open" 0.0;
1118 inherit: "default" 0.0;
1119 rel2.relative: 1.0 1.0;
1121 description { state: "open2" 0.0;
1122 inherit: "default" 0.0;
1123 rel2.relative: 1.0 2.0;
1126 part { name: "clipper";
1130 state: "default" 0.0;
1139 description { state: "open" 0.0;
1140 inherit: "default" 0.0;
1141 rel2.relative: 1.0 1.0;
1143 description { state: "open2" 0.0;
1144 inherit: "default" 0.0;
1145 rel2.relative: 1.0 0.5;
1148 part { name: "clipper2";
1152 state: "default" 0.0;
1162 description { state: "open" 0.0;
1163 inherit: "default" 0.0;
1164 rel1.relative: 0.0 1.0;
1166 description { state: "open2" 0.0;
1167 inherit: "default" 0.0;
1168 rel1.relative: 0.0 0.5;
1171 part { name: "elm.swallow.content";
1175 state: "default" 0.0;
1181 part { name: "elm.swallow.content2";
1182 clip_to: "clipper2";
1185 state: "default" 0.0;
1187 rel1.to: "clipper2";
1188 rel2.to: "clipper2";
1191 part { name: "separator";
1193 description { state: "default" 0.0;
1208 normal: "00_winset_control_tab_h_line_h.png";
1216 part { name: "separator2";
1217 clip_to: "clipper2";
1218 description { state: "default" 0.0;
1233 normal: "00_winset_control_tab_h_line_h.png";
1243 program { name: "open";
1244 signal: "elm,state,open";
1246 action: STATE_SET "open" 0.0;
1250 transition: LINEAR 0.2;
1252 program { name: "open2";
1253 signal: "elm,state,open2";
1255 action: STATE_SET "open2" 0.0;
1259 transition: LINEAR 0.2;
1261 program { name: "close";
1262 signal: "elm,state,close";
1264 action: STATE_SET "default" 0.0;
1266 transition: LINEAR 0.2;
1271 group { name: "elm/toolbar/item/tabbar";
1273 image: "00_tab_press.png" COMP;
1274 image: "00_divider_line.png" COMP;
1275 image: "00_badge_bg.png" COMP;
1278 data.item: "transition_animation_on" "1";
1280 public item_state = ITEM_STATE_ENABLED;
1281 public items_number = 0;
1288 description { state: "default" 0.0;
1290 color: 248 246 239 255;
1292 description { state: "icon_text" 0.0;
1293 inherit: "default" 0.0;
1296 description { state: "moving" 0.0;
1297 inherit: "default" 0.0;
1301 part { name: "bg_cover";
1305 description { state: "default" 0.0;
1307 image.normal: "00_tab_press.png";
1309 description { state: "pressed" 0.0;
1310 inherit: "default" 0.0;
1313 description { state: "moving" 0.0;
1314 inherit: "default" 0.0;
1318 part { name: "padding_left_top";
1322 description { state: "default" 0.0;
1324 rel2.relative: 0.0 0.0;
1331 part { name: "padding_right_bottom";
1335 description { state: "default" 0.0;
1337 rel1.relative: 1.0 1.0;
1349 description { state: "default" 0.0;
1354 to: "padding_left_top";
1358 to_x: "padding_left_top";
1359 to_y: "padding_right_bottom";
1364 description { state: "visible" 0.0;
1365 inherit: "default" 0.0;
1366 min: TABBAR_ITEM_SMALL_ICON_SIZE_INC;
1368 description { state: "icononly" 0.0;
1369 inherit: "default" 0.0;
1372 part { name: "padding_after_icon";
1376 description { state: "default" 0.0; //when only icon or no icon is there
1382 rel2.to: "icon_rect";
1387 description { state: "visible" 0.0;
1388 inherit: "default" 0.0;
1391 description { state: "icononly" 0.0;
1392 inherit: "default" 0.0;
1395 part { name: "padding_before_text";
1399 description { state: "default" 0.0; //when only icon or no icon is there
1404 to_y: "padding_left_top";
1409 to_y: "padding_right_bottom";
1416 part { name: "elm.swallow.icon";
1419 clip_to: "elm.icon.clipper";
1420 description { state: "default" 0.0;
1422 min: TABBAR_ITEM_ICON_SIZE_INC;
1423 max: TABBAR_ITEM_ICON_SIZE_INC;
1424 rel1.to: "padding_left_top";
1425 rel2.to: "padding_right_bottom";
1427 aspect_preference: HORIZONTAL;
1429 description { state: "visible" 0.0;
1431 min: TABBAR_ITEM_SMALL_ICON_SIZE_INC;
1432 max: TABBAR_ITEM_SMALL_ICON_SIZE_INC;
1436 to_x: "padding_before_text";
1437 to_y: "padding_left_top";
1441 to_x: "padding_before_text";
1442 to_y: "padding_right_bottom";
1445 aspect_preference: HORIZONTAL;
1447 description { state: "icononly" 0.0;
1448 inherit: "default" 0.0;
1452 part { name: "elm.swallow.icon_new";
1455 clip_to: "elm.icon_new.clipper";
1456 description { state: "default" 0.0;
1458 min: TABBAR_ITEM_ICON_SIZE_INC;
1459 max: TABBAR_ITEM_ICON_SIZE_INC;
1460 rel1.to: "padding_left_top";
1461 rel2.to: "padding_right_bottom";
1463 aspect_preference: HORIZONTAL;
1465 description { state: "visible" 0.0;
1467 min: TABBAR_ITEM_SMALL_ICON_SIZE_INC;
1468 max: TABBAR_ITEM_SMALL_ICON_SIZE_INC;
1471 to_x: "padding_before_text";
1472 to_y: "padding_left_top";
1476 to_x: "padding_before_text";
1477 to_y: "padding_right_bottom";
1480 aspect_preference: HORIZONTAL;
1482 description { state: "icononly" 0.0;
1483 inherit: "default" 0.0;
1487 part { name: "elm.swallow.icon_new.proxy";
1490 clip_to: "elm.icon_new.proxy.clipper";
1491 description { state: "default" 0.0;
1492 source: "elm.swallow.icon_new";
1493 rel1.to: "elm.swallow.icon_new";
1495 rel2.to: "elm.swallow.icon_new";
1499 part { name: "elm.swallow.icon.proxy";
1502 clip_to: "elm.icon.proxy.clipper";
1503 description { state: "default" 0.0;
1504 source: "elm.swallow.icon";
1505 rel1.to: "elm.swallow.icon";
1507 rel2.to: "elm.swallow.icon";
1511 part { name: "elm.text";
1515 clip_to: "elm.text.clipper";
1516 description { state: "default" 0.0;
1520 to_x: "padding_after_icon";
1521 to_y: "padding_left_top";
1525 to: "padding_right_bottom";
1530 style: "toolbar_text_style_30";
1535 description { state: "visible" 0.0;
1536 inherit: "default" 0.0;
1539 description { state: "visible" 0.24;
1540 inherit: "visible" 0.0;
1542 text.style: "toolbar_text_style_24";
1544 description { state: "visible" 0.28;
1545 inherit: "visible" 0.0;
1547 text.style: "toolbar_text_style_28";
1549 description { state: "visible" 0.30;
1550 inherit: "visible" 0.0;
1552 text.style: "toolbar_text_style_30";
1554 description { state: "selected" 0.0;
1555 inherit: "visible" 0.0;
1556 text.style: "toolbar_selected_text_style_30";
1558 description { state: "selected" 0.24;
1559 inherit: "visible" 0.24;
1560 text.style: "toolbar_selected_text_style_24";
1562 description { state: "selected" 0.28;
1563 inherit: "visible" 0.28;
1564 text.style: "toolbar_selected_text_style_28";
1566 description { state: "selected" 0.30;
1567 inherit: "visible" 0.30;
1568 text.style: "toolbar_selected_text_style_30";
1571 part { name: "elm.text_new";
1575 clip_to: "elm.text_new.clipper";
1576 description { state: "default" 0.0;
1580 to_x: "padding_after_icon";
1581 to_y: "padding_left_top";
1585 to: "padding_right_bottom";
1591 style: "toolbar_text_style_30";
1596 description { state: "visible" 0.0;
1597 inherit: "default" 0.0;
1600 description { state: "visible" 0.24;
1601 inherit: "visible" 0.0;
1603 text.style: "toolbar_text_style_24";
1605 description { state: "visible" 0.28;
1606 inherit: "visible" 0.0;
1608 text.style: "toolbar_text_style_28";
1610 description { state: "visible" 0.30;
1611 inherit: "visible" 0.0;
1613 text.style: "toolbar_text_style_30";
1615 description { state: "selected" 0.0;
1616 inherit: "visible" 0.0;
1617 text.style: "toolbar_selected_text_style_30";
1619 description { state: "selected" 0.24;
1620 inherit: "visible" 0.24;
1621 text.style: "toolbar_selected_text_style_24";
1623 description { state: "selected" 0.28;
1624 inherit: "visible" 0.28;
1625 text.style: "toolbar_selected_text_style_28";
1627 description { state: "selected" 0.30;
1628 inherit: "visible" 0.30;
1629 text.style: "toolbar_selected_text_style_30";
1632 part { name: "padding.selected_line";
1636 description { state: "default" 0.0;
1650 part { name: "selected_line";
1654 description { state: "default" 0.0;
1656 to: "padding.selected_line";
1660 to: "padding.selected_line";
1664 color: 59 115 182 255;
1669 description { state: "selected" 0.0;
1670 inherit: "default" 0.0;
1674 part { name: "padding.badge";
1678 description { state: "default" 0.0;
1690 description { state: "default" 0.10;
1691 inherit: "default" 0.0;
1694 description { state: "default" 0.06;
1695 inherit: "default" 0.0;
1698 description { state: "default" 0.04;
1699 inherit: "default" 0.0;
1703 part { name: "elm.image.badge";
1706 description { state: "default" 0.0;
1711 to: "left.padding.text";
1715 to: "right.padding.text";
1719 normal: "00_badge_bg.png";
1724 description { state: "visible" 0.0;
1725 inherit: "default" 0.0;
1729 part { name: "left.padding.text";
1733 state: "default" 0.0;
1738 to: "elm.text.badge";
1742 to: "elm.text.badge";
1748 part { name: "right.padding.text";
1752 state: "default" 0.0;
1757 to: "padding.badge";
1761 to: "padding.badge";
1767 part { name: "elm.text.badge";
1772 state: "default" 0.0;
1775 to: "right.padding.text";
1779 to: "right.padding.text";
1785 color: 10 100 208 255;
1787 font: "Tizen:style=Bold";
1792 description { state: "visible" 0.0;
1793 inherit: "default" 0.0;
1797 part { name: "elm.text.clipper";
1799 description { state: "default" 0.0;
1800 color: 255 255 255 255;
1802 description { state: "animation" 0.0;
1803 color: 255 255 255 0;
1805 description { state: "disabled" 0.0;
1806 color: 255 255 255 153;
1809 part { name: "elm.text_new.clipper";
1811 description { state: "default" 0.0;
1812 color: 255 255 255 0;
1814 description { state: "animation" 0.0;
1815 color: 255 255 255 255;
1817 description { state: "disabled" 0.0;
1818 color: 255 255 255 153;
1821 part { name: "elm.icon.clipper";
1823 description { state: "default" 0.0;
1824 color: 255 255 255 255;
1826 description { state: "animation" 0.0;
1827 color: 255 255 255 0;
1829 description { state: "selected" 0.0;
1830 color: 255 255 255 255;
1832 description { state: "disabled" 0.0;
1833 color: 255 255 255 153;
1836 part { name: "elm.icon_new.clipper";
1838 description { state: "default" 0.0;
1839 color: 255 255 255 0;
1841 description { state: "animation" 0.0;
1842 color: 255 255 255 255;
1844 description { state: "selected" 0.0;
1845 color: 255 255 255 255;
1847 description { state: "disabled" 0.0;
1848 color: 255 255 255 153;
1851 part { name: "elm.icon.proxy.clipper";
1853 description { state: "default" 0.0;
1854 color: 153 153 153 255;
1856 description { state: "animation" 0.0;
1857 color: 255 255 255 0;
1859 description { state: "selected" 0.0;
1860 color: 61 114 180 255;
1862 description { state: "disabled" 0.0;
1863 color: 255 255 255 153;
1866 part { name: "elm.icon_new.proxy.clipper";
1868 description { state: "default" 0.0;
1869 color: 255 255 255 0;
1871 description { state: "animation" 0.0;
1872 color: 255 255 255 255;
1874 description { state: "selected" 0.0;
1875 color: 61 114 180 255;
1877 description { state: "disabled" 0.0;
1878 color: 255 255 255 153;
1881 part { name: "divider";
1884 description { state: "default" 0.0;
1890 to_y: "elm.swallow.icon";
1894 to_y: "elm.swallow.icon";
1897 normal: "00_divider_line.png";
1901 description { state: "hidden" 0.0;
1902 inherit: "default" 0.0;
1906 part { name: "event";
1909 description { state: "default" 0.0;
1915 program { name: "go_active";
1916 signal: "elm,state,selected";
1918 action: STATE_SET "selected" 0.0;
1919 target: "elm.icon.clipper";
1920 target: "elm.icon.proxy.clipper";
1921 target: "selected_line";
1922 after: "selected_text";
1924 program { name: "selected_text";
1928 get_state(PART:"elm.text", st, 30, vl);
1929 set_state(PART:"elm.text", "selected", vl);
1932 program { name: "go_passive";
1933 signal: "elm,state,unselected";
1935 action: STATE_SET "default" 0.0;
1936 target: "elm.icon.clipper";
1937 target: "elm.icon.proxy.clipper";
1938 target: "selected_line";
1939 after: "unselected_text";
1941 program { name: "unselected_text";
1945 get_state(PART:"elm.text", st, 30, vl);
1946 set_state(PART:"elm.text", "visible", vl);
1949 program { name: "moving";
1950 signal: "elm,state,moving";
1952 action: STATE_SET "moving" 0.0;
1956 program { name: "pressed";
1957 signal: "mouse,down,1";
1959 action: STATE_SET "pressed" 0.0;
1962 program { name: "unpressed";
1963 signal: "mouse,up,1";
1965 action: STATE_SET "default" 0.0;
1968 program { name: "go";
1969 signal: "mouse,clicked,1";
1971 action: SIGNAL_EMIT "elm,action,click" "elm";
1973 program { name: "mouse,in";
1976 action: SIGNAL_EMIT "elm,mouse,in" "elm";
1978 program { name: "mouse,out";
1979 signal: "mouse,out";
1981 action: SIGNAL_EMIT "elm,mouse,out" "elm";
1983 program { name: "disable";
1984 signal: "elm,state,disabled";
1987 set_int(item_state, ITEM_STATE_DISABLED);
1988 set_state(PART:"bg", "disabled", 0.0);
1989 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1990 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1991 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
1992 run_program(PROGRAM:"label_set,animation,done");
1993 run_program(PROGRAM:"icon_set,animation,done");
1996 program { name: "enable";
1997 signal: "elm,state,enabled";
2000 set_int(item_state, ITEM_STATE_ENABLED);
2001 set_state(PART:"bg", "default", 0.0);
2002 set_state(PART:"elm.text.clipper", "default", 0.0);
2003 set_state(PART:"elm.icon.clipper", "default", 0.0);
2004 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
2005 run_program(PROGRAM:"label_set,animation,done");
2006 run_program(PROGRAM:"icon_set,animation,done");
2009 program { name: "label_set,animation,forward";
2010 signal: "elm,state,label_set,forward";
2012 after: "label_set,sync";
2014 program { name: "label_set,animation,backward";
2015 signal: "elm,state,label_set,backward";
2017 after: "label_set,sync";
2019 program { name: "label_set,sync";
2020 signal: "elm,state,label_set";
2025 get_state(PART:"elm.text", st, 30, vl);
2026 set_state(PART:"elm.text_new", st, vl);
2028 after: "label_set,animation";
2030 program { name: "label_set,animation";
2031 action: STATE_SET "animation" 0.0;
2032 target: "elm.text.clipper";
2033 target: "elm.text_new.clipper";
2034 transition: LINEAR 0.2;
2035 after: "label_set,animation,done";
2037 program { name: "label_set,animation,done";
2038 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
2040 program { name: "label,reset";
2041 signal: "elm,state,label,reset";
2044 set_state(PART:"elm.text_new.clipper", "default", 0.0);
2045 if (get_int(item_state) != ITEM_STATE_DISABLED)
2046 set_state(PART:"elm.text.clipper", "default", 0.0);
2048 set_state(PART:"elm.text.clipper", "disabled", 0.0);
2051 program { name: "icon_set,animation,forward";
2052 signal: "elm,state,icon_set,forward";
2054 after: "icon_set,animation";
2056 program { name: "icon_set,animation,backward";
2057 signal: "elm,state,icon_set,backward";
2059 after: "icon_set,animation";
2061 program { name: "icon_set,animation";
2062 signal: "elm,state,icon_set";
2064 action: STATE_SET "animation" 0.0;
2065 target: "elm.icon.clipper";
2066 target: "elm.icon_new.clipper";
2067 target: "elm.icon.proxy.clipper";
2068 target: "elm.icon_new.proxy.clipper";
2069 transition: LINEAR 0.2;
2070 after: "icon_set,animation,done";
2072 program { name: "icon_set,animation,done";
2073 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
2075 program { name: "icon,reset";
2076 signal: "elm,state,icon,reset";
2079 set_state(PART:"elm.icon_new.clipper", "default", 0.0);
2080 if (get_int(item_state) != ITEM_STATE_DISABLED)
2082 set_state(PART:"elm.icon.clipper", "default", 0.0);
2083 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
2087 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
2088 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
2092 program { name: "text_show";
2093 signal: "elm,state,text,visible";
2098 get_state(PART:"elm.swallow.icon", st, 30, vl);
2099 if (!strcmp(st, "icononly"))
2101 set_state(PART:"elm.swallow.icon", "visible", 0.0);
2102 set_state(PART:"icon_rect", "visible", 0.0);
2103 set_state(PART:"padding_after_icon", "visible", 0.0);
2104 set_state(PART:"bg", "icon_text", 0.0);
2106 get_state(PART:"elm.text", st, 30, vl);
2107 if (!strcmp(st, "default"))
2109 if (get_int(items_number) <= 2)
2110 set_state(PART:"elm.text", "visible", 0.30);
2111 else if (get_int(items_number) == 3)
2112 set_state(PART:"elm.text", "visible", 0.28);
2113 else if (get_int(items_number) >= 4)
2115 get_state(PART:"bg", st, 30, vl);
2116 if (!strcmp(st, "icon_text"))
2117 set_state(PART:"elm.text", "visible", 0.28);
2119 set_state(PART:"elm.text", "visible", 0.24);
2124 program { name: "text_hide";
2125 signal: "elm,state,text,hidden";
2130 get_state(PART:"elm.swallow.icon", st, 30, vl);
2131 if (!strcmp(st, "visible"))
2133 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
2134 set_state(PART:"icon_rect", "icononly", 0.0);
2135 set_state(PART:"padding_after_icon", "icononly", 0.0);
2137 set_state(PART:"elm.text", "default", 0.0);
2138 set_state(PART:"bg", "default", 0.0);
2141 program { name: "icon_show";
2142 signal: "elm,state,icon,visible";
2147 get_state(PART:"elm.text", st, 30, vl);
2148 if (!strncmp(st, "visible", 7))
2150 set_state(PART:"elm.swallow.icon", "visible", 0.0);
2151 set_state(PART:"icon_rect", "visible", 0.0);
2152 set_state(PART:"padding_after_icon", "visible", 0.0);
2153 set_state(PART:"bg", "icon_text", 0.0);
2157 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
2158 set_state(PART:"icon_rect", "icononly", 0.0);
2159 set_state(PART:"padding_after_icon", "icononly", 0.0);
2163 program { name: "icon_hide";
2164 signal: "elm,state,icon,hidden";
2167 set_state(PART:"elm.swallow.icon", "default", 0.0);
2168 set_state(PART:"icon_rect", "default", 0.0);
2169 set_state(PART:"padding_after_icon", "default", 0.0);
2170 set_state(PART:"bg", "default", 0.0);
2173 program { name: "text_only_item_1";
2174 signal: "elm,number,item,1";
2177 set_int(items_number, 1);
2179 after: "text_only_item_under_2";
2181 program { name: "text_only_item_2";
2182 signal: "elm,number,item,2";
2185 set_int(items_number, 2);
2187 after: "text_only_item_under_2";
2189 program { name: "text_only_item_under_2";
2193 get_state(PART:"elm.text", st, 30, vl);
2194 if (!strncmp(st, "visible", 7))
2196 set_state(PART:"elm.text", st, 0.30);
2198 set_state(PART:"padding.badge", "default", 0.10);
2201 program { name: "text_only_item_3";
2202 signal: "elm,number,item,3";
2207 set_int(items_number, 3);
2208 get_state(PART:"elm.text", st, 30, vl);
2209 if (!strncmp(st, "visible", 7))
2211 set_state(PART:"elm.text", st, 0.28);
2213 set_state(PART:"padding.badge", "default", 0.06);
2216 program { name: "text_only_item_4";
2217 signal: "elm,number,item,4";
2220 set_int(items_number, 4);
2222 after: "text_only_item_upper_4";
2224 program { name: "text_only_item_5";
2225 signal: "elm,number,item,5";
2228 set_int(items_number, 5);
2230 after: "text_only_item_upper_4";
2232 program { name: "text_only_item_6";
2233 signal: "elm,number,item,6";
2236 set_int(items_number, 6);
2238 after: "text_only_item_upper_4";
2240 program { name: "text_only_item_7";
2241 signal: "elm,number,item,7";
2244 set_int(items_number, 7);
2246 after: "text_only_item_upper_4";
2248 program { name: "text_only_item_8";
2249 signal: "elm,number,item,8";
2252 set_int(items_number, 8);
2254 after: "text_only_item_upper_4";
2256 program { name: "text_only_item_9";
2257 signal: "elm,number,item,9";
2260 set_int(items_number, 9);
2262 after: "text_only_item_upper_4";
2264 program { name: "text_only_item_10";
2265 signal: "elm,number,item,10";
2268 set_int(items_number, 10);
2270 after: "text_only_item_upper_4";
2272 program { name: "text_only_item_upper_4";
2277 get_state(PART:"elm.text", st, 30, vl);
2278 if (!strcmp(st, "visible") || !strcmp(st, "selected"))
2280 get_state(PART:"bg", stb, 30, vl);
2281 if (!strcmp(stb, "icon_text"))
2282 set_state(PART:"elm.text", st, 0.28);
2284 set_state(PART:"elm.text", st, 0.24);
2286 get_state(PART:"bg", stb, 30, vl);
2287 if (!strcmp(stb, "icon_text"))
2288 set_state(PART:"padding.badge", "default", 0.06);
2290 set_state(PART:"padding.badge", "default", 0.04);
2293 program { name: "badge_show";
2294 signal: "elm,state,elm.text.badge,visible";
2296 action: STATE_SET "visible" 0.0;
2297 target: "elm.text.badge";
2298 target: "elm.image.badge";
2300 program { name: "badge_hide";
2301 signal: "elm,state,elm.text.badge,hidden";
2303 action: STATE_SET "default" 0.0;
2304 target: "elm.text.badge";
2305 target: "elm.image.badge";
2307 program { name: "divider_visible";
2308 signal: "elm,order,first,item";
2309 signal: "elm,order,default,item";
2311 action: STATE_SET "default" 0.0;
2314 program { name: "divider_hidden";
2315 signal: "elm,order,last,item";
2317 action: STATE_SET "hidden" 0.0;
2323 group { name: "elm/toolbar/base/tabbar/item_horizontal";
2324 inherit: "elm/toolbar/base/tabbar";
2326 part { name: "left_padding";
2328 state: "default" 0.0;
2332 part { name: "right_padding";
2334 state: "default" 0.0;
2341 group { name: "elm/toolbar/item/tabbar/item_horizontal";
2342 inherit: "elm/toolbar/item/tabbar";
2345 description { state: "default" 0.0;
2348 description { state: "icon_text" 0.0;