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
22 #define TOOLBAR_SLIDING_PER_FPS 2
23 #define TOOLBAR_SLIDING_FPS 40.0
24 #define TOOLBAR_SLIDING_TEXT_GAP 40
25 #define TOOLBAR_SLIDING_TEXT_OFFSET 5
27 #define TOOLBAR_TEXT_STYLE(_font_size) \
28 style { name: "toolbar_text_style_"_font_size; \
29 base: "font=Tizen:style=Bold style=far_shadow,bottom shadow_color="TOOLBAR_ITEM_TEXTBLOCK_SHADOW_COLOR_INC" font_size="_font_size" align=center color="TOOLBAR_ITEM_TEXTBLOCK_COLOR_INC" wrap=word ellipsis=1 text_class=tizen linegap=0"; \
32 tag: "hilight" "+ font=Tizen:style=Bold"; \
33 tag: "b" "+ font=Tizen:style=Bold"; \
37 #define TOOLBAR_PRESSED_TEXT_STYLE(_font_size) \
38 style { name: "toolbar_pressed_text_style_"_font_size; \
39 base: "font=Tizen:style=Bold style=far_shadow,bottom shadow_color="TOOLBAR_ITEM_PRESSED_TEXTBLOCK_SHADOW_COLOR_INC" font_size="_font_size" align=center color="TOOLBAR_ITEM_PRESSED_TEXTBLOCK_COLOR_INC" wrap=word ellipsis=1 text_class=tizen linegap=0"; \
42 tag: "hilight" "+ font=Tizen:style=Bold"; \
43 tag: "b" "+ font=Tizen:style=Bold"; \
47 #define TABBAR_TEXT_STYLE(_font_size) \
48 style { name: "tabbar_text_style_"_font_size; \
49 base: "font=Tizen:style=Bold style=far_shadow,bottom shadow_color="TABBAR_ITEM_TEXTBLOCK_SHADOW_COLOR_INC" font_size="_font_size" align=center color="TABBAR_ITEM_TEXTBLOCK_COLOR_INC" wrap=word ellipsis=1 text_class=tizen linegap=0"; \
52 tag: "hilight" "+ font=Tizen:style=Bold"; \
53 tag: "b" "+ font=Tizen:style=Bold"; \
57 #define TABBAR_SELECTED_TEXT_STYLE(_font_size) \
58 style { name: "tabbar_selected_text_style_"_font_size; \
59 base: "font=Tizen:style=Bold style=far_shadow,bottom shadow_color="TABBAR_ITEM_TEXTBLOCK_SHADOW_COLOR_INC" font_size="_font_size" align=center color="TABBAR_ITEM_SELECTED_TEXTBLOCK_COLOR_INC" wrap=word ellipsis=1 text_class=tizen linegap=0"; \
62 tag: "hilight" "+ font=Tizen:style=Bold"; \
63 tag: "b" "+ font=Tizen:style=Bold"; \
67 #define TABBAR_PRESSED_TEXT_STYLE(_font_size) \
68 style { name: "tabbar_pressed_text_style_"_font_size; \
69 base: "font=Tizen:style=Bold style=far_shadow,bottom shadow_color="TABBAR_ITEM_PRESSED_TEXTBLOCK_SHADOW_COLOR_INC" font_size="_font_size" align=center color="TABBAR_ITEM_PRESSED_TEXTBLOCK_COLOR_INC" wrap=word ellipsis=1 text_class=tizen linegap=0"; \
72 tag: "hilight" "+ font=Tizen:style=Bold"; \
73 tag: "b" "+ font=Tizen:style=Bold"; \
79 TABBAR_SELECTED_TEXT_STYLE(30)
80 TABBAR_PRESSED_TEXT_STYLE(30)
81 TOOLBAR_TEXT_STYLE(38)
82 TOOLBAR_PRESSED_TEXT_STYLE(38)
85 group { name: "elm/toolbar/base/default";
87 item: "focus_highlight" "on";
90 image: "00_toolbar_bg.png" COMP;
96 description { state: "default" 0.0;
99 part { name: "base_bg";
103 state: "default" 0.0;
113 normal: "00_toolbar_bg.png";
114 border: TOOLBAR_ITEM_BG_DEFAULT_BORDER_INC;
119 part { name: "clipper";
123 state: "default" 0.0;
134 part { name: "elm.swallow.content";
138 state: "default" 0.0;
143 part { name: "event";
147 description { state: "default" 0.0;
154 group { name: "elm/toolbar/item/default";
156 image: "00_toolbar_press.png" COMP;
157 image: "00_tab_focus.png" COMP;
160 data.item: "transition_animation_on" "0";
162 public item_state = ITEM_STATE_ENABLED;
163 public items_number = 0;
170 description { state: "default" 0.0;
173 normal: "00_toolbar_press.png";
174 border: TOOLBAR_ITEM_BG_PRESSED_BORDER_INC;
178 description { state: "pressed" 0.0;
179 inherit: "default" 0.0;
182 description { state: "disabled" 0.0;
183 inherit: "default" 0.0;
187 part { name: "padding_left_top";
191 description { state: "default" 0.0;
193 rel2.relative: 0.0 0.0;
199 description { state: "1_item" 0.0;
200 inherit: "default" 0.0;
201 min: TOOLBAR_ITEM_ONE_ITEM_PADDING_SIZE 0;
203 description { state: "2_items" 0.0;
204 inherit: "default" 0.0;
205 min: TOOLBAR_ITEM_TWO_ITEMS_PADDING_SIZE 0;
207 description { state: "3_items" 0.0;
208 inherit: "default" 0.0;
209 min: TOOLBAR_ITEM_THREE_ITEMS_PADDING_SIZE 0;
212 part { name: "padding_right_bottom";
216 description { state: "default" 0.0;
218 rel1.relative: 1.0 1.0;
224 description { state: "1_item" 0.0;
225 inherit: "default" 0.0;
226 min: TOOLBAR_ITEM_ONE_ITEM_PADDING_SIZE 0;
228 description { state: "2_items" 0.0;
229 inherit: "default" 0.0;
230 min: TOOLBAR_ITEM_TWO_ITEMS_PADDING_SIZE 0;
232 description { state: "3_items" 0.0;
233 inherit: "default" 0.0;
234 min: TOOLBAR_ITEM_THREE_ITEMS_PADDING_SIZE 0;
237 part { name: "elm.text";
241 clip_to: "elm.text.clipper";
242 description { state: "default" 0.0;
246 to: "padding_left_top";
250 to: "padding_right_bottom";
255 style: "toolbar_text_style_38";
259 description { state: "visible" 0.0;
260 inherit: "default" 0.0;
263 description { state: "pressed" 0.0;
265 text.style: "toolbar_pressed_text_style_38";
268 part { name: "elm.text_new";
272 clip_to: "elm.text_new.clipper";
273 description { state: "default" 0.0;
277 to: "padding_left_top";
281 to: "padding_right_bottom";
283 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
286 style: "toolbar_text_style_38";
290 description { state: "visible" 0.0;
291 inherit: "default" 0.0;
294 description { state: "pressed" 0.0;
296 text.style: "toolbar_pressed_text_style_38";
299 part { name: "elm.text.clipper";
301 description { state: "default" 0.0;
302 color: 255 255 255 255;
304 description { state: "animation" 0.0;
305 color: 255 255 255 0;
307 description { state: "disabled" 0.0;
308 color: 255 255 255 153;
311 part { name: "elm.text_new.clipper";
313 description { state: "default" 0.0;
314 color: 255 255 255 0;
316 description { state: "animation" 0.0;
317 color: 255 255 255 255;
319 description { state: "disabled" 0.0;
320 color: 255 255 255 153;
323 part { name: "divider";
326 description { state: "default" 0.0;
327 min: TOOLBAR_ITEM_DIVIDER_SIZE;
328 max: TOOLBAR_ITEM_DIVIDER_SIZE;
337 description { state: "hidden" 0.0;
338 inherit: "default" 0.0;
342 part { name: "divider_left";
345 description { state: "default" 0.0;
346 color: TOOLBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
357 part { name: "divider_right";
360 description { state: "default" 0.0;
361 color: TOOLBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;
372 part { name: "event";
375 ignore_flags: ON_HOLD;
376 description { state: "default" 0.0;
380 part { name: "event2";
384 description { state: "default" 0.0;
388 part { name: "highlight";
391 description { state: "default" 0.0;
394 normal: "00_tab_focus.png";
395 border: TOOLBAR_ITEM_TAB_FOCUS_BORDER_INC;
399 description { state: "highlighted" 0.0;
400 inherit: "default" 0.0;
406 program { name: "pressed";
407 signal: "mouse,down,1";
410 if (get_int(item_state) != ITEM_STATE_DISABLED)
412 set_state(PART:"bg", "pressed", 0.0);
413 set_state(PART:"elm.text", "pressed", 0.0);
414 set_state(PART:"elm.text_new", "pressed", 0.0);
418 program { name: "unpressed";
419 signal: "mouse,up,1";
422 set_state(PART:"bg", "default", 0.0);
423 set_state(PART:"elm.text", "visible", 0.0);
424 set_state(PART:"elm.text_new", "visible", 0.0);
427 program { name: "go";
428 signal: "mouse,clicked,1";
430 action: SIGNAL_EMIT "elm,action,click" "elm";
433 program { name: "play_sound";
434 action: PLAY_SAMPLE "touch_sound" 1.0;
436 program { name: "mouse,in";
439 action: SIGNAL_EMIT "elm,mouse,in" "elm";
441 program { name: "mouse,out";
444 action: SIGNAL_EMIT "elm,mouse,out" "elm";
446 program { name: "disable";
447 signal: "elm,state,disabled";
450 set_int(item_state, ITEM_STATE_DISABLED);
451 set_state(PART:"bg", "disabled", 0.0);
452 set_state(PART:"elm.text.clipper", "disabled", 0.0);
453 run_program(PROGRAM:"label_set,animation,done");
456 program { name: "enable";
457 signal: "elm,state,enabled";
460 set_int(item_state, ITEM_STATE_ENABLED);
461 set_state(PART:"bg", "default", 0.0);
462 set_state(PART:"elm.text.clipper", "default", 0.0);
463 run_program(PROGRAM:"label_set,animation,done");
466 program { name: "label_set,animation,forward";
467 signal: "elm,state,label_set,forward";
469 after: "label_set,sync";
471 program { name: "label_set,animation,backward";
472 signal: "elm,state,label_set,backward";
474 after: "label_set,sync";
476 program { name: "label_set,sync";
477 signal: "elm,state,label_set";
482 get_state(PART:"elm.text", st, 30, vl);
483 set_state(PART:"elm.text_new", st, vl);
485 after: "label_set,animation";
487 program { name: "label_set,animation";
488 action: STATE_SET "animation" 0.0;
489 target: "elm.text.clipper";
490 target: "elm.text_new.clipper";
491 after: "label_set,animation,done";
493 program { name: "label_set,animation,done";
494 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
496 program { name: "label,reset";
497 signal: "elm,state,label,reset";
500 set_state(PART:"elm.text_new.clipper", "default", 0.0);
501 if (get_int(item_state) != ITEM_STATE_DISABLED)
502 set_state(PART:"elm.text.clipper", "default", 0.0);
504 set_state(PART:"elm.text.clipper", "disabled", 0.0);
507 program { name: "text_show";
508 signal: "elm,state,text,visible";
511 set_state(PART:"elm.text", "visible", 0.0);
514 program { name: "text_hide";
515 signal: "elm,state,text,hidden";
518 set_state(PART:"elm.text", "default", 0.0);
521 program { name: "text_only_item_1";
522 signal: "elm,number,item,1";
525 set_int(items_number, 1);
526 set_state(PART:"padding_left_top", "1_item", 0.0);
527 set_state(PART:"padding_right_bottom", "1_item", 0.0);
530 program { name: "text_only_item_2";
531 signal: "elm,number,item,2";
534 set_int(items_number, 2);
535 set_state(PART:"padding_left_top", "2_items", 0.0);
536 set_state(PART:"padding_right_bottom", "2_items", 0.0);
539 program { name: "text_only_item_3";
540 signal: "elm,number,item,3";
543 set_int(items_number, 3);
544 set_state(PART:"padding_left_top", "3_items", 0.0);
545 set_state(PART:"padding_right_bottom", "3_items", 0.0);
548 program { name: "divider_visible_1";
549 signal: "elm,order,first,item";
551 action: STATE_SET "default" 0.0;
554 program { name: "divider_visible_2";
555 signal: "elm,order,default,item";
557 action: STATE_SET "default" 0.0;
560 program { name: "divider_hidden";
561 signal: "elm,order,last,item";
563 action: STATE_SET "hidden" 0.0;
566 program { name: "highlight_on";
567 signal: "elm,highlight,on";
569 action: STATE_SET "highlighted" 0.0;
572 program { name: "highlight_off";
573 signal: "elm,highlight,off";
575 action: STATE_SET "default" 0.0;
581 group { name: "elm/toolbar/separator/default";
583 part { name: "divider";
586 description { state: "default" 0.0;
587 min: TABBAR_ITEM_DIVIDER_SIZE;
588 max: TABBAR_ITEM_DIVIDER_SIZE;
598 part { name: "divider_left";
601 description { state: "default" 0.0;
602 color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
613 part { name: "divider_right";
616 description { state: "default" 0.0;
617 color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;
631 group { name: "elm/toolbar/object/default";
633 part { name: "elm.swallow.object"; // object group
636 state: "default" 0.0;
642 group { name: "elm/toolbar/base/tabbar";
644 item: "focus_highlight" "on";
647 image: "00_effect_tab_bounce_left.png" COMP;
648 image: "00_effect_tab_bounce_right.png" COMP;
649 image: "00_title_bg.png" COMP;
652 public left_timer, right_timer;
653 public l_timer(val) {
654 emit("do-hide-left-shadow", "");
655 set_int(left_timer, 0);
658 public r_timer(val) {
659 emit("do-hide-right-shadow", "");
660 set_int(right_timer, 0);
668 description { state: "default" 0.0;
671 part { name: "base_bg";
675 state: "default" 0.0;
685 normal: "00_title_bg.png";
686 border: TABBAR_ITEM_BG_DEFAULT_BORDER_INC;
691 part { name: "left_padding";
696 state: "default" 0.0;
703 rel1.relative: 0.0 0.0;
704 rel2.relative: 0.0 1.0;
707 part { name: "right_padding";
712 state: "default" 0.0;
719 rel1.relative: 1.0 0.0;
720 rel2.relative: 1.0 1.0;
723 part { name: "clipper";
728 state: "default" 0.0;
729 rel1.to: "left_padding";
730 rel1.relative: 1.0 0.0;
731 rel2.to: "right_padding";
732 rel2.relative: 0.0 1.0;
735 part { name: "elm.swallow.content";
740 state: "default" 0.0;
745 part { name: "left_shadow_clip";
749 description { state: "default" 0.0;
751 color: 255 255 255 0;
753 description { state: "show" 0.0;
756 part { name: "right_shadow_clip";
760 description { state: "default" 0.0;
762 color: 255 255 255 0;
764 description { state: "show" 0.0;
767 part { name: "shadow_left";
768 clip_to: "left_shadow_clip";
772 description { state: "default" 0.0;
776 color: 255 255 255 255;
777 rel1.relative: 0.0 0.0;
778 rel2.relative: 0.0 1.0;
779 image.normal: "00_effect_tab_bounce_left.png";
782 part { name: "shadow_right";
783 clip_to: "right_shadow_clip";
787 description { state: "default" 0.0;
791 color: 255 255 255 255;
792 rel1.relative: 1.0 0.0;
793 rel2.relative: 1.0 1.0;
794 image.normal: "00_effect_tab_bounce_right.png";
799 program { name: "load";
801 set_int(left_timer, 0);
802 set_int(right_timer, 0);
805 program { name: "left_shadow_show";
806 signal: "do-show-left-shadow";
808 action: STATE_SET "show" 0.0;
809 transition: LINEAR 0.3;
810 target: "left_shadow_clip";
812 program { name: "left_shadow_hide";
813 signal: "do-hide-left-shadow";
815 action: STATE_SET "default" 0.0;
816 transition: LINEAR 0.3;
817 target: "left_shadow_clip";
819 program { name: "right_shadow_show";
820 signal: "do-show-right-shadow";
822 action: STATE_SET "show" 0.0;
823 transition: LINEAR 0.3;
824 target: "right_shadow_clip";
826 program { name: "right_shadow_hide";
827 signal: "do-hide-right-shadow";
829 action: STATE_SET "default" 0.0;
830 transition: LINEAR 0.3;
831 target: "right_shadow_clip";
833 program { name: "edge_left";
834 signal: "elm,edge,left";
838 v = get_int(left_timer);
840 emit("do-show-left-shadow", "");
842 if (v > 0) cancel_timer(v);
843 v = timer(0.5, "l_timer", 0);
844 set_int(left_timer, v);
847 program { name: "edge_right";
848 signal: "elm,edge,right";
852 v = get_int(right_timer);
854 emit("do-show-right-shadow", "");
856 if (v > 0) cancel_timer(v);
857 v = timer(0.5, "r_timer", 0);
858 set_int(right_timer, v);
864 group { name: "elm/toolbar/item/tabbar";
866 image: "00_tab_press.png" COMP;
867 image: "00_badge_bg.png" COMP;
868 image: "00_tab_focus.png" COMP;
869 image: "00_tab_select_bar.png" COMP;
870 image: "00_effect_tab_text_dim_left.png" COMP;
871 image: "00_effect_tab_text_dim_right.png" COMP;
874 data.item: "transition_animation_on" "0";
876 public item_state = ITEM_STATE_ENABLED;
877 public items_number = 0;
878 public sliding_timer;
882 public loop_count = 0;
888 if (get_int(selected))
890 set_state(PART:"elm.text", "selected", 0.0);
894 set_state(PART:"elm.text", "visible", 0.0);
896 get_geometry(PART:"elm.text", x, y, w, h);
897 set_int(org_text_w, w);
899 set_state(PART:"elm.text", "sliding", 0.0);
900 get_geometry(PART:"elm.text", x, y, w, h);
904 set_int(loop_count, 0);
905 if (get_int(sliding_timer)) cancel_timer(get_int(sliding_timer));
906 set_int(sliding_timer, 0);
907 if (get_int(end_timer)) cancel_timer(get_int(end_timer));
908 set_int(end_timer, 0);
909 set_state(PART:"elm.text.dim.left", "default", 0.0);
910 set_state(PART:"elm.text_new.clipper", "default", 0.0);
912 custom_state(PART:"elm.text", "sliding", 0.0);
913 set_state_val(PART:"elm.text", STATE_REL1_OFFSET, TOOLBAR_SLIDING_TEXT_OFFSET, 0);
914 set_state_val(PART:"elm.text", STATE_REL2_OFFSET, TOOLBAR_SLIDING_TEXT_OFFSET, 0);
915 set_state(PART:"elm.text", "custom", 0.0);
917 if (get_int(selected))
919 set_state(PART:"elm.text", "selected", 0.0);
923 set_state(PART:"elm.text", "visible", 0.0);
925 set_state(PART:"elm.text.dim.right", "default", 0.0);
928 public sliding(val) {
930 if (val == TOOLBAR_SLIDING_TEXT_OFFSET) {
931 set_int(loop_count, get_int(loop_count) + 1);
933 if (get_int(text_w) <= get_int(org_text_w)) {
938 val -= TOOLBAR_SLIDING_PER_FPS;
939 // for debuging //////////////////////////////
940 /* snprintf(buf, 127, "%d:%d:%d",
941 val, get_int(org_text_w), get_int(text_w));
942 set_text(PART:"dbg", buf);*/
944 if (val <= -get_int(text_w) - TOOLBAR_SLIDING_TEXT_GAP + TOOLBAR_SLIDING_TEXT_OFFSET)
945 val = TOOLBAR_SLIDING_TEXT_OFFSET;
946 custom_state(PART:"elm.text", "sliding", 0.0);
947 set_state_val(PART:"elm.text", STATE_REL1_OFFSET, val, 0);
948 set_state_val(PART:"elm.text", STATE_REL2_OFFSET, val, 0);
949 set_state(PART:"elm.text", "custom", 0.0);
951 set_state(PART:"elm.text_new.clipper", "animation", 0.0);
952 get_text(PART:"elm.text", buf, 128);
953 set_text(PART:"elm.text_new", buf);
954 custom_state(PART:"elm.text_new", "sliding", 0.0);
955 set_state_val(PART:"elm.text_new", STATE_REL1_OFFSET,
956 val + get_int(text_w) + TOOLBAR_SLIDING_TEXT_GAP, 0);
957 set_state_val(PART:"elm.text_new", STATE_REL2_OFFSET,
958 val + get_int(text_w) + TOOLBAR_SLIDING_TEXT_GAP, 0);
959 set_state(PART:"elm.text_new", "custom", 0.0);
961 set_state(PART:"elm.text.dim.left", "show", 0.0);
962 set_state(PART:"elm.text.dim.right", "show", 0.0);
964 if (val == TOOLBAR_SLIDING_TEXT_OFFSET || val <= -get_int(text_w))
965 set_state(PART:"elm.text.dim.left", "default", 0.0);
967 if (val == TOOLBAR_SLIDING_TEXT_OFFSET) {
968 if (get_int(loop_count) < 3)
969 set_int(sliding_timer, timer(2.0, "sliding", TOOLBAR_SLIDING_TEXT_OFFSET));
971 set_int(end_timer, timer(0.5, "ender", 1));
973 set_int(sliding_timer, timer(1.0/TOOLBAR_SLIDING_FPS, "sliding", val));
981 description { state: "default" 0.0;
985 description { state: "icon_text" 0.0;
986 inherit: "default" 0.0;
990 part { name: "selected_line";
994 description { state: "default" 0.0;
1002 normal: "00_tab_select_bar.png";
1003 border: TABBAR_ITEM_TAB_SELECT_BAR_BORDER_INC;
1011 description { state: "selected" 0.0;
1012 inherit: "default" 0.0;
1016 part { name: "bg_cover";
1020 description { state: "default" 0.0;
1023 normal: "00_tab_press.png";
1024 border: TABBAR_ITEM_TAB_PRESS_BORDER_INC;
1028 description { state: "pressed" 0.0;
1029 inherit: "default" 0.0;
1032 description { state: "moving" 0.0;
1033 inherit: "default" 0.0;
1037 part { name: "padding_left_top";
1041 description { state: "default" 0.0;
1043 rel2.relative: 0.0 0.0;
1050 part { name: "padding_right_bottom";
1054 description { state: "default" 0.0;
1056 rel1.relative: 1.0 1.0;
1068 description { state: "default" 0.0;
1073 to: "padding_left_top";
1077 to_x: "padding_right_bottom";
1078 to_y: "padding_left_top";
1083 description { state: "visible" 0.0;
1084 inherit: "default" 0.0;
1085 min: TABBAR_ITEM_ICON_SIZE_INC;
1087 description { state: "icononly" 0.0;
1088 inherit: "default" 0.0;
1091 part { name: "padding_after_icon";
1095 description { state: "default" 0.0; //when only icon or no icon is there
1101 rel2.to: "icon_rect";
1106 description { state: "visible" 0.0;
1107 inherit: "default" 0.0;
1110 description { state: "icononly" 0.0;
1111 inherit: "default" 0.0;
1114 part { name: "padding_before_text";
1118 description { state: "default" 0.0; //when only icon or no icon is there
1122 to_x: "padding_left_top";
1127 to_x: "padding_right_bottom";
1135 part { name: "elm.swallow.icon";
1138 clip_to: "elm.icon.clipper";
1139 description { state: "default" 0.0;
1141 min: TABBAR_ITEM_ICON_SIZE_INC;
1142 max: TABBAR_ITEM_ICON_SIZE_INC;
1144 to: "padding_left_top";
1147 to: "padding_right_bottom";
1150 aspect_preference: HORIZONTAL;
1152 description { state: "visible" 0.0;
1154 min: TABBAR_ITEM_ICON_SIZE_INC;
1155 max: TABBAR_ITEM_ICON_SIZE_INC;
1159 to_x: "padding_left_top";
1160 to_y: "padding_before_text";
1164 to_x: "padding_right_bottom";
1165 to_y: "padding_before_text";
1168 aspect_preference: HORIZONTAL;
1170 description { state: "icononly" 0.0;
1171 inherit: "default" 0.0;
1175 part { name: "elm.swallow.icon_new";
1178 clip_to: "elm.icon_new.clipper";
1179 description { state: "default" 0.0;
1181 min: TABBAR_ITEM_ICON_SIZE_INC;
1182 max: TABBAR_ITEM_ICON_SIZE_INC;
1183 rel1.to: "padding_left_top";
1184 rel2.to: "padding_right_bottom";
1186 aspect_preference: HORIZONTAL;
1188 description { state: "visible" 0.0;
1190 min: TABBAR_ITEM_ICON_SIZE_INC;
1191 max: TABBAR_ITEM_ICON_SIZE_INC;
1194 to_x: "padding_left_top";
1195 to_y: "padding_before_text";
1199 to_x: "padding_right_bottom";
1200 to_y: "padding_before_text";
1203 aspect_preference: HORIZONTAL;
1205 description { state: "icononly" 0.0;
1206 inherit: "default" 0.0;
1210 part { name: "elm.swallow.icon.proxy";
1213 clip_to: "elm.icon.proxy.clipper";
1214 description { state: "default" 0.0;
1215 source: "elm.swallow.icon";
1216 rel1.to: "elm.swallow.icon";
1218 rel2.to: "elm.swallow.icon";
1222 part { name: "elm.swallow.icon_new.proxy";
1225 clip_to: "elm.icon_new.proxy.clipper";
1226 description { state: "default" 0.0;
1227 source: "elm.swallow.icon_new";
1228 rel1.to: "elm.swallow.icon_new";
1230 rel2.to: "elm.swallow.icon_new";
1234 part { name: "elm.swallow.icon.proxy.2";
1237 clip_to: "elm.icon.proxy.clipper.2";
1238 description { state: "default" 0.0;
1239 source: "elm.swallow.icon";
1240 rel1.to: "elm.swallow.icon";
1241 rel2.to: "elm.swallow.icon";
1244 part { name: "elm.swallow.icon_new.proxy.2";
1247 clip_to: "elm.icon_new.proxy.clipper.2";
1248 description { state: "default" 0.0;
1249 source: "elm.swallow.icon_new";
1250 rel1.to: "elm.swallow.icon_new";
1251 rel2.to: "elm.swallow.icon_new";
1254 part { name: "elm.text";
1258 clip_to: "elm.text.clipper";
1259 description { state: "default" 0.0;
1263 to_x: "padding_left_top";
1264 to_y: "padding_after_icon";
1268 to: "padding_right_bottom";
1273 style: "tabbar_text_style_30";
1278 description { state: "visible" 0.0;
1279 inherit: "default" 0.0;
1282 description { state: "selected" 0.0;
1283 inherit: "visible" 0.0;
1284 text.style: "tabbar_selected_text_style_30";
1286 description { state: "pressed" 0.0;
1287 inherit: "visible" 0.0;
1288 text.style: "tabbar_pressed_text_style_30";
1290 description { state: "sliding" 0.0;
1291 inherit: "selected" 0.0;
1292 rel1.offset: TOOLBAR_SLIDING_TEXT_OFFSET 0;
1293 rel2.offset: TOOLBAR_SLIDING_TEXT_OFFSET 0;
1298 part { name: "elm.text_new";
1302 clip_to: "elm.text_new.clipper";
1303 description { state: "default" 0.0;
1307 to_x: "padding_left_top";
1308 to_y: "padding_after_icon";
1312 to: "padding_right_bottom";
1317 style: "tabbar_text_style_30";
1322 description { state: "visible" 0.0;
1323 inherit: "default" 0.0;
1326 description { state: "selected" 0.0;
1327 inherit: "visible" 0.0;
1328 text.style: "tabbar_selected_text_style_30";
1330 description { state: "pressed" 0.0;
1331 inherit: "visible" 0.0;
1332 text.style: "tabbar_pressed_text_style_30";
1334 description { state: "sliding" 0.0;
1335 inherit: "selected" 0.0;
1336 rel1.offset: TOOLBAR_SLIDING_TEXT_OFFSET 0;
1337 rel2.offset: TOOLBAR_SLIDING_TEXT_OFFSET 0;
1342 part { name: "padding.badge";
1346 description { state: "default" 0.0;
1358 description { state: "default" 0.10;
1359 inherit: "default" 0.0;
1360 min: TABBAR_BADGE_ONE_ITEM_PADDING_SIZE;
1362 description { state: "default" 0.06;
1363 inherit: "default" 0.0;
1364 min: TABBAR_BADGE_TWO_ITEMS_PADDING_SIZE;
1366 description { state: "default" 0.04;
1367 inherit: "default" 0.0;
1368 min: TABBAR_BADGE_THREE_ITEMS_PADDING_SIZE;
1371 part { name: "elm.image.badge";
1374 description { state: "default" 0.0;
1379 to: "left.padding.text";
1383 to: "right.padding.text";
1387 normal: "00_badge_bg.png";
1388 border: TABBAR_BADGE_BG_IMAGE_BORDER_INC;
1392 description { state: "visible" 0.0;
1393 inherit: "default" 0.0;
1397 part { name: "left.padding.text";
1401 state: "default" 0.0;
1406 to: "elm.text.badge";
1410 to: "elm.text.badge";
1416 part { name: "right.padding.text";
1420 state: "default" 0.0;
1425 to: "padding.badge";
1429 to: "padding.badge";
1435 part { name: "elm.text.badge";
1440 state: "default" 0.0;
1443 to: "right.padding.text";
1447 to: "right.padding.text";
1453 color: TABBAR_BADGE_TEXT_COLOR_INC;
1455 font: "Tizen:style=Bold";
1458 text_class: "tizen";
1461 description { state: "visible" 0.0;
1462 inherit: "default" 0.0;
1466 part { name: "elm.text.clipper";
1468 description { state: "default" 0.0;
1471 to: "padding_left_top";
1475 to: "padding_right_bottom";
1477 color: 255 255 255 255;
1479 description { state: "animation" 0.0;
1480 inherit: "default" 0.0;
1481 color: 255 255 255 0;
1483 description { state: "disabled" 0.0;
1484 inherit: "default" 0.0;
1485 color: 255 255 255 153;
1488 part { name: "elm.text_new.clipper";
1490 description { state: "default" 0.0;
1493 to: "padding_left_top";
1497 to: "padding_right_bottom";
1499 color: 255 255 255 0;
1501 description { state: "animation" 0.0;
1502 inherit: "default" 0.0;
1503 color: 255 255 255 255;
1505 description { state: "disabled" 0.0;
1506 inherit: "default" 0.0;
1507 color: 255 255 255 153;
1510 part { name: "elm.icon.clipper";
1512 description { state: "default" 0.0;
1515 to: "padding_left_top";
1519 to: "padding_right_bottom";
1521 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1523 description { state: "animation" 0.0;
1524 inherit: "default" 0.0;
1525 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1527 description { state: "selected" 0.0;
1528 inherit: "default" 0.0;
1529 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1531 description { state: "pressed" 0.0;
1532 inherit: "default" 0.0;
1533 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1535 description { state: "disabled" 0.0;
1536 inherit: "default" 0.0;
1537 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1540 part { name: "elm.icon_new.clipper";
1542 description { state: "default" 0.0;
1545 to: "padding_left_top";
1549 to: "padding_right_bottom";
1551 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1553 description { state: "animation" 0.0;
1554 inherit: "default" 0.0;
1555 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1557 description { state: "selected" 0.0;
1558 inherit: "default" 0.0;
1559 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1561 description { state: "pressed" 0.0;
1562 inherit: "default" 0.0;
1563 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1565 description { state: "disabled" 0.0;
1566 inherit: "default" 0.0;
1567 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1570 part { name: "elm.icon.proxy.clipper";
1572 description { state: "default" 0.0;
1575 to: "padding_left_top";
1579 to: "padding_right_bottom";
1581 color: TABBAR_ITEM_ICON_SHADOW_COLOR_INC;
1583 description { state: "animation" 0.0;
1584 inherit: "default" 0.0;
1585 color: TABBAR_ITEM_ICON_SHADOW_COLOR_INC;
1587 description { state: "selected" 0.0;
1588 inherit: "default" 0.0;
1589 color: TABBAR_ITEM_ICON_SHADOW_COLOR_INC;
1591 description { state: "pressed" 0.0;
1592 inherit: "default" 0.0;
1593 color: TABBAR_ITEM_PRESSED_ICON_SHADOW_COLOR_INC;
1595 description { state: "disabled" 0.0;
1596 inherit: "default" 0.0;
1597 color: TABBAR_ITEM_ICON_SHADOW_COLOR_INC;
1600 part { name: "elm.icon_new.proxy.clipper";
1602 description { state: "default" 0.0;
1605 to: "padding_left_top";
1609 to: "padding_right_bottom";
1611 color: TABBAR_ITEM_ICON_SHADOW_COLOR_INC;
1613 description { state: "animation" 0.0;
1614 inherit: "default" 0.0;
1615 color: TABBAR_ITEM_ICON_SHADOW_COLOR_INC;
1617 description { state: "selected" 0.0;
1618 inherit: "default" 0.0;
1619 color: TABBAR_ITEM_ICON_SHADOW_COLOR_INC;
1621 description { state: "pressed" 0.0;
1622 inherit: "default" 0.0;
1623 color: TABBAR_ITEM_PRESSED_ICON_SHADOW_COLOR_INC;
1625 description { state: "disabled" 0.0;
1626 inherit: "default" 0.0;
1627 color: TABBAR_ITEM_ICON_SHADOW_COLOR_INC;
1630 part { name: "elm.icon.proxy.clipper.2";
1632 description { state: "default" 0.0;
1635 to: "padding_left_top";
1639 to: "padding_right_bottom";
1641 color: TABBAR_ITEM_ICON_COLOR_INC;
1643 description { state: "animation" 0.0;
1644 inherit: "default" 0.0;
1645 color: TABBAR_ITEM_ICON_COLOR_INC;
1647 description { state: "selected" 0.0;
1648 inherit: "default" 0.0;
1649 color: TABBAR_ITEM_SELECTED_ICON_COLOR_INC;
1651 description { state: "pressed" 0.0;
1652 inherit: "default" 0.0;
1653 color: TABBAR_ITEM_PRESSED_ICON_COLOR_INC;
1655 description { state: "disabled" 0.0;
1656 inherit: "default" 0.0;
1657 color: TABBAR_ITEM_DISABLED_ICON_COLOR_INC;
1660 part { name: "elm.icon_new.proxy.clipper.2";
1662 description { state: "default" 0.0;
1665 to: "padding_left_top";
1669 to: "padding_right_bottom";
1671 color: TABBAR_ITEM_ICON_COLOR_INC;
1673 description { state: "animation" 0.0;
1674 inherit: "default" 0.0;
1675 color: TABBAR_ITEM_ICON_COLOR_INC;
1677 description { state: "selected" 0.0;
1678 inherit: "default" 0.0;
1679 color: TABBAR_ITEM_SELECTED_ICON_COLOR_INC;
1681 description { state: "pressed" 0.0;
1682 inherit: "default" 0.0;
1683 color: TABBAR_ITEM_PRESSED_ICON_COLOR_INC;
1685 description { state: "disabled" 0.0;
1686 inherit: "default" 0.0;
1687 color: TABBAR_ITEM_DISABLED_ICON_COLOR_INC;
1690 part { name: "elm.text.dim.left";
1694 description { state: "default" 0.0;
1701 to_x: "elm.text.clipper";
1706 to_x: "elm.text.clipper";
1709 image.normal: "00_effect_tab_text_dim_left.png";
1711 description { state: "show" 0.0;
1712 inherit: "default" 0.0;
1716 part { name: "elm.text.dim.right";
1720 description { state: "default" 0.0;
1727 to_x: "elm.text.clipper";
1732 to_x: "elm.text.clipper";
1735 image.normal: "00_effect_tab_text_dim_right.png";
1737 description { state: "show" 0.0;
1738 inherit: "default" 0.0;
1742 part { name: "divider";
1745 description { state: "default" 0.0;
1746 min: TABBAR_ITEM_DIVIDER_SIZE;
1747 max: TABBAR_ITEM_DIVIDER_SIZE;
1756 description { state: "hidden" 0.0;
1757 inherit: "default" 0.0;
1761 part { name: "divider_left";
1764 description { state: "default" 0.0;
1765 color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
1776 part { name: "divider_right";
1779 description { state: "default" 0.0;
1780 color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;
1791 part { name: "highlight";
1794 description { state: "default" 0.0;
1797 normal: "00_tab_focus.png";
1798 border: TABBAR_ITEM_TAB_FOCUS_BORDER_INC;
1802 description { state: "highlighted" 0.0;
1803 inherit: "default" 0.0;
1807 part { name: "event";
1814 description { state: "default" 0.0;
1818 // for debuging //////////////////////////////
1819 /* part { name: "dbg";
1823 description { state: "default" 0.0;
1824 rel1.relative: 1.0 0.0;
1825 rel2.relative: 1.0 0.0;
1829 style: "tabbar_text_style_30";
1837 program { name: "go_active";
1838 signal: "elm,state,selected";
1840 action: STATE_SET "selected" 0.0;
1841 target: "elm.icon.clipper";
1842 target: "elm.icon.proxy.clipper";
1843 target: "elm.icon.proxy.clipper.2";
1844 target: "selected_line";
1845 after: "selected_text";
1847 program { name: "selected_text";
1851 set_int(selected, 1);
1852 get_state(PART:"elm.text", st, 30, vl);
1853 if (!strcmp(st, "visible"))
1854 set_state(PART:"elm.text", "selected", vl);
1855 if (strcmp(st, "default"))
1856 run_program(PROGRAM:"slide_start");
1859 program { name: "go_passive";
1860 signal: "elm,state,unselected";
1862 action: STATE_SET "default" 0.0;
1863 target: "elm.icon.clipper";
1864 target: "elm.icon.proxy.clipper";
1865 target: "elm.icon.proxy.clipper.2";
1866 target: "selected_line";
1867 after: "unselected_text";
1869 program { name: "unselected_text";
1873 set_int(selected, 0);
1874 get_state(PART:"elm.text", st, 30, vl);
1875 if (!strcmp(st, "selected"))
1876 set_state(PART:"elm.text", "visible", vl);
1877 if (strcmp(st, "default"))
1878 run_program(PROGRAM:"slide_stop");
1881 program { name: "moving";
1882 signal: "elm,state,moving";
1885 set_state(PART:"bg_cover", "moving", 0.0);
1888 program { name: "pressed";
1889 signal: "mouse,down,1";
1892 set_state(PART:"bg_cover", "pressed", 0.0);
1893 set_state(PART:"elm.text", "pressed", 0.0);
1894 set_state(PART:"elm.icon.clipper", "pressed", 0.0);
1895 set_state(PART:"elm.icon.proxy.clipper", "pressed", 0.0);
1896 set_state(PART:"elm.icon.proxy.clipper.2", "pressed", 0.0);
1897 set_int(pressed, 1);
1907 new Float:dx, Float:dy;
1908 get_state(PART:"bg_cover", st, 30, vl);
1909 if (strcmp(st, "moving"))
1911 get_drag(PART:"event", dx, dy);
1912 if ((abs(dx)*abs(dx))+(abs(dy)*abs(dy)) > 400)
1914 set_drag(PART:"event", 0.0, 0.0);
1915 set_state(PART:"bg_cover", "default", 0.0);
1916 if (get_int(selected))
1918 set_state(PART:"elm.text", "selected", 0.0);
1919 set_state(PART:"elm.icon.clipper", "selected", 0.0);
1920 set_state(PART:"elm.icon.proxy.clipper", "selected", 0.0);
1921 set_state(PART:"elm.icon.proxy.clipper.2", "selected", 0.0);
1925 set_state(PART:"elm.text", "visible", 0.0);
1926 set_state(PART:"elm.icon.clipper", "default", 0.0);
1927 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
1928 set_state(PART:"elm.icon.proxy.clipper.2", "default", 0.0);
1931 set_drag(PART:"event", 0.0, 0.0);
1935 program { name: "unpressed";
1936 signal: "mouse,up,1";
1939 set_drag(PART:"event", 0.0, 0.0);
1940 set_state(PART:"bg_cover", "default", 0.0);
1941 set_int(pressed, 0);
1942 if (get_int(selected))
1944 set_state(PART:"elm.text", "selected", 0.0);
1945 set_state(PART:"elm.icon.clipper", "selected", 0.0);
1946 set_state(PART:"elm.icon.proxy.clipper", "selected", 0.0);
1947 set_state(PART:"elm.icon.proxy.clipper.2", "selected", 0.0);
1951 set_state(PART:"elm.text", "visible", 0.0);
1952 set_state(PART:"elm.icon.clipper", "default", 0.0);
1953 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
1954 set_state(PART:"elm.icon.proxy.clipper.2", "default", 0.0);
1958 program { name: "go";
1959 signal: "mouse,clicked,1";
1961 action: SIGNAL_EMIT "elm,action,click" "elm";
1962 after: "play_sound";
1964 program { name: "play_sound";
1965 action: PLAY_SAMPLE "touch_sound" 1.0;
1967 program { name: "mouse,in";
1970 action: SIGNAL_EMIT "elm,mouse,in" "elm";
1972 program { name: "mouse,out";
1973 signal: "mouse,out";
1975 action: SIGNAL_EMIT "elm,mouse,out" "elm";
1977 program { name: "disable";
1978 signal: "elm,state,disabled";
1981 set_int(item_state, ITEM_STATE_DISABLED);
1982 set_state(PART:"bg", "disabled", 0.0);
1983 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1984 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1985 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
1986 set_state(PART:"elm.icon.proxy.clipper.2", "disabled", 0.0);
1987 run_program(PROGRAM:"label_set,animation,done");
1988 run_program(PROGRAM:"icon_set,animation,done");
1991 program { name: "enable";
1992 signal: "elm,state,enabled";
1995 set_int(item_state, ITEM_STATE_ENABLED);
1996 set_state(PART:"bg", "default", 0.0);
1997 set_state(PART:"elm.text.clipper", "default", 0.0);
1998 set_state(PART:"elm.icon.clipper", "default", 0.0);
1999 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
2000 set_state(PART:"elm.icon.proxy.clipper.2", "default", 0.0);
2001 run_program(PROGRAM:"label_set,animation,done");
2002 run_program(PROGRAM:"icon_set,animation,done");
2005 program { name: "label_set,animation,forward";
2006 signal: "elm,state,label_set,forward";
2008 after: "label_set,sync";
2010 program { name: "label_set,animation,backward";
2011 signal: "elm,state,label_set,backward";
2013 after: "label_set,sync";
2015 program { name: "label_set,sync";
2016 signal: "elm,state,label_set";
2021 get_state(PART:"elm.text", st, 30, vl);
2022 set_state(PART:"elm.text_new", st, vl);
2024 after: "label_set,animation";
2026 program { name: "label_set,animation";
2027 action: STATE_SET "animation" 0.0;
2028 target: "elm.text.clipper";
2029 target: "elm.text_new.clipper";
2030 after: "label_set,animation,done";
2032 program { name: "label_set,animation,done";
2033 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
2035 program { name: "label,reset";
2036 signal: "elm,state,label,reset";
2039 set_state(PART:"elm.text_new.clipper", "default", 0.0);
2040 if (get_int(item_state) != ITEM_STATE_DISABLED)
2041 set_state(PART:"elm.text.clipper", "default", 0.0);
2043 set_state(PART:"elm.text.clipper", "disabled", 0.0);
2046 program { name: "icon_set,animation,forward";
2047 signal: "elm,state,icon_set,forward";
2049 after: "icon_set,animation";
2051 program { name: "icon_set,animation,backward";
2052 signal: "elm,state,icon_set,backward";
2054 after: "icon_set,animation";
2056 program { name: "icon_set,animation";
2057 signal: "elm,state,icon_set";
2059 action: STATE_SET "animation" 0.0;
2060 target: "elm.icon.clipper";
2061 target: "elm.icon_new.clipper";
2062 target: "elm.icon.proxy.clipper";
2063 target: "elm.icon_new.proxy.clipper";
2064 target: "elm.icon.proxy.clipper.2";
2065 target: "elm.icon_new.proxy.clipper.2";
2066 after: "icon_set,animation,done";
2068 program { name: "icon_set,animation,done";
2069 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
2071 program { name: "icon,reset";
2072 signal: "elm,state,icon,reset";
2075 set_state(PART:"elm.icon_new.clipper", "default", 0.0);
2076 if (get_int(item_state) != ITEM_STATE_DISABLED)
2078 set_state(PART:"elm.icon.clipper", "default", 0.0);
2079 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
2080 set_state(PART:"elm.icon.proxy.clipper.2", "default", 0.0);
2084 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
2085 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
2086 set_state(PART:"elm.icon.proxy.clipper.2", "disabled", 0.0);
2090 program { name: "text_show";
2091 signal: "elm,state,text,visible";
2096 get_state(PART:"elm.swallow.icon", st, 30, vl);
2097 if (!strcmp(st, "icononly"))
2099 set_state(PART:"elm.swallow.icon", "visible", 0.0);
2100 set_state(PART:"icon_rect", "visible", 0.0);
2101 set_state(PART:"padding_after_icon", "visible", 0.0);
2102 set_state(PART:"bg", "icon_text", 0.0);
2104 if (get_int(selected))
2105 set_state(PART:"elm.text", "selected", 0.0);
2107 set_state(PART:"elm.text", "visible", 0.0);
2110 program { name: "text_hide";
2111 signal: "elm,state,text,hidden";
2116 get_state(PART:"elm.swallow.icon", st, 30, vl);
2117 if (strcmp(st, "default"))
2119 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
2120 set_state(PART:"icon_rect", "icononly", 0.0);
2121 set_state(PART:"padding_after_icon", "icononly", 0.0);
2123 set_state(PART:"elm.text", "default", 0.0);
2124 set_state(PART:"bg", "default", 0.0);
2127 program { name: "icon_show";
2128 signal: "elm,state,icon,visible";
2133 get_state(PART:"elm.text", st, 30, vl);
2134 if (strncmp(st, "default", 7))
2136 set_state(PART:"elm.swallow.icon", "visible", 0.0);
2137 set_state(PART:"icon_rect", "visible", 0.0);
2138 set_state(PART:"padding_after_icon", "visible", 0.0);
2139 set_state(PART:"bg", "icon_text", 0.0);
2143 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
2144 set_state(PART:"icon_rect", "icononly", 0.0);
2145 set_state(PART:"padding_after_icon", "icononly", 0.0);
2149 program { name: "icon_hide";
2150 signal: "elm,state,icon,hidden";
2153 set_state(PART:"elm.swallow.icon", "default", 0.0);
2154 set_state(PART:"icon_rect", "default", 0.0);
2155 set_state(PART:"padding_after_icon", "default", 0.0);
2156 set_state(PART:"bg", "default", 0.0);
2159 program { name: "badge_show";
2160 signal: "elm,state,elm.text.badge,visible";
2162 action: STATE_SET "visible" 0.0;
2163 target: "elm.text.badge";
2164 target: "elm.image.badge";
2166 program { name: "badge_hide";
2167 signal: "elm,state,elm.text.badge,hidden";
2169 action: STATE_SET "default" 0.0;
2170 target: "elm.text.badge";
2171 target: "elm.image.badge";
2173 program { name: "divider_visible_1";
2174 signal: "elm,order,first,item";
2176 action: STATE_SET "default" 0.0;
2179 program { name: "divider_visible_2";
2180 signal: "elm,order,default,item";
2182 action: STATE_SET "default" 0.0;
2185 program { name: "divider_hidden";
2186 signal: "elm,order,last,item";
2188 action: STATE_SET "hidden" 0.0;
2191 program { name: "highlight_on";
2192 signal: "elm,highlight,on";
2194 action: STATE_SET "highlighted" 0.0;
2195 target: "highlight";
2197 program { name: "highlight_off";
2198 signal: "elm,highlight,off";
2200 action: STATE_SET "default" 0.0;
2201 target: "highlight";
2203 program { name: "tab_item_2";
2204 signal: "elm,number,item,2";
2207 set_int(items_number, 2);
2208 set_state(PART:"padding.badge", "default", 0.10);
2211 program { name: "tab_item_3";
2212 signal: "elm,number,item,3";
2215 set_int(items_number, 3);
2216 set_state(PART:"padding.badge", "default", 0.06);
2219 program { name: "tab_item_4";
2220 signal: "elm,number,item,4";
2223 set_int(items_number, 4);
2225 after: "tab_item_upper_4";
2227 program { name: "tab_item_5";
2228 signal: "elm,number,item,5";
2231 set_int(items_number, 5);
2233 after: "tab_item_upper_4";
2235 program { name: "tab_item_6";
2236 signal: "elm,number,item,6";
2239 set_int(items_number, 6);
2241 after: "tab_item_upper_4";
2243 program { name: "tab_item_7";
2244 signal: "elm,number,item,7";
2247 set_int(items_number, 7);
2249 after: "tab_item_upper_4";
2251 program { name: "tab_item_8";
2252 signal: "elm,number,item,8";
2255 set_int(items_number, 8);
2257 after: "tab_item_upper_4";
2259 program { name: "tab_item_9";
2260 signal: "elm,number,item,9";
2263 set_int(items_number, 9);
2265 after: "tab_item_upper_4";
2267 program { name: "tab_item_10";
2268 signal: "elm,number,item,10";
2271 set_int(items_number, 10);
2273 after: "tab_item_upper_4";
2275 program { name: "tab_item_upper_4";
2277 set_state(PART:"padding.badge", "default", 0.04);
2280 program { name: "slide_start";
2282 if (!get_int(sliding_timer) && !get_int(end_timer)) {
2283 set_int(sliding_timer, timer(1.5, "sliding", TOOLBAR_SLIDING_TEXT_OFFSET));
2287 program { name: "slide_stop";
2295 group { name: "elm/toolbar/base/tabbar/item_with_title";
2296 inherit: "elm/toolbar/base/tabbar";
2298 image: "00_sub_title_bg.png" COMP;
2301 part { name: "base_bg";
2305 state: "default" 0.0;
2315 normal: "00_sub_title_bg.png";
2316 border: TABBAR_ITEM_BG_DEFAULT_BORDER_INC;
2324 group { name: "elm/toolbar/item/tabbar/item_with_title";
2325 inherit: "elm/toolbar/item/tabbar";
2327 image: "00_effect_tab_text_dim_left_02.png" COMP;
2328 image: "00_effect_tab_text_dim_right_02.png" COMP;
2331 part { name: "elm.text.dim.left";
2332 description { state: "default" 0.0;
2333 image.normal: "00_effect_tab_text_dim_left_02.png";
2335 description { state: "show" 0.0;
2336 inherit: "default" 0.0;
2340 part { name: "elm.text.dim.right";
2341 description { state: "default" 0.0;
2342 image.normal: "00_effect_tab_text_dim_right_02.png";
2344 description { state: "show" 0.0;
2345 inherit: "default" 0.0;
2349 part { name: "divider";
2352 description { state: "default" 0.0;
2353 min: TABBAR_ITEM_WITH_TITLE_DIVIDER_SIZE;
2354 max: TABBAR_ITEM_WITH_TITLE_DIVIDER_SIZE;
2363 description { state: "hidden" 0.0;
2364 inherit: "default" 0.0;
2368 part { name: "divider_left";
2371 description { state: "default" 0.0;
2372 color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
2383 part { name: "divider_right";
2386 description { state: "default" 0.0;
2387 color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;