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 proxy.source_clip: 0;
1217 rel1.to: "elm.swallow.icon";
1219 rel2.to: "elm.swallow.icon";
1223 part { name: "elm.swallow.icon_new.proxy";
1226 clip_to: "elm.icon_new.proxy.clipper";
1227 description { state: "default" 0.0;
1228 source: "elm.swallow.icon_new";
1229 proxy.source_clip: 0;
1230 rel1.to: "elm.swallow.icon_new";
1232 rel2.to: "elm.swallow.icon_new";
1236 part { name: "elm.swallow.icon.proxy.2";
1239 clip_to: "elm.icon.proxy.clipper.2";
1240 description { state: "default" 0.0;
1241 source: "elm.swallow.icon";
1242 proxy.source_clip: 0;
1243 rel1.to: "elm.swallow.icon";
1244 rel2.to: "elm.swallow.icon";
1247 part { name: "elm.swallow.icon_new.proxy.2";
1250 clip_to: "elm.icon_new.proxy.clipper.2";
1251 description { state: "default" 0.0;
1252 source: "elm.swallow.icon_new";
1253 proxy.source_clip: 0;
1254 rel1.to: "elm.swallow.icon_new";
1255 rel2.to: "elm.swallow.icon_new";
1258 part { name: "elm.text";
1262 clip_to: "elm.text.clipper";
1263 description { state: "default" 0.0;
1267 to_x: "padding_left_top";
1268 to_y: "padding_after_icon";
1272 to: "padding_right_bottom";
1277 style: "tabbar_text_style_30";
1282 description { state: "visible" 0.0;
1283 inherit: "default" 0.0;
1286 description { state: "selected" 0.0;
1287 inherit: "visible" 0.0;
1288 text.style: "tabbar_selected_text_style_30";
1290 description { state: "pressed" 0.0;
1291 inherit: "visible" 0.0;
1292 text.style: "tabbar_pressed_text_style_30";
1294 description { state: "sliding" 0.0;
1295 inherit: "selected" 0.0;
1296 rel1.offset: TOOLBAR_SLIDING_TEXT_OFFSET 0;
1297 rel2.offset: TOOLBAR_SLIDING_TEXT_OFFSET 0;
1302 part { name: "elm.text_new";
1306 clip_to: "elm.text_new.clipper";
1307 description { state: "default" 0.0;
1311 to_x: "padding_left_top";
1312 to_y: "padding_after_icon";
1316 to: "padding_right_bottom";
1321 style: "tabbar_text_style_30";
1326 description { state: "visible" 0.0;
1327 inherit: "default" 0.0;
1330 description { state: "selected" 0.0;
1331 inherit: "visible" 0.0;
1332 text.style: "tabbar_selected_text_style_30";
1334 description { state: "pressed" 0.0;
1335 inherit: "visible" 0.0;
1336 text.style: "tabbar_pressed_text_style_30";
1338 description { state: "sliding" 0.0;
1339 inherit: "selected" 0.0;
1340 rel1.offset: TOOLBAR_SLIDING_TEXT_OFFSET 0;
1341 rel2.offset: TOOLBAR_SLIDING_TEXT_OFFSET 0;
1346 part { name: "padding.badge";
1350 description { state: "default" 0.0;
1362 description { state: "default" 0.10;
1363 inherit: "default" 0.0;
1364 min: TABBAR_BADGE_ONE_ITEM_PADDING_SIZE;
1366 description { state: "default" 0.06;
1367 inherit: "default" 0.0;
1368 min: TABBAR_BADGE_TWO_ITEMS_PADDING_SIZE;
1370 description { state: "default" 0.04;
1371 inherit: "default" 0.0;
1372 min: TABBAR_BADGE_THREE_ITEMS_PADDING_SIZE;
1375 part { name: "elm.image.badge";
1378 description { state: "default" 0.0;
1383 to: "left.padding.text";
1387 to: "right.padding.text";
1391 normal: "00_badge_bg.png";
1392 border: TABBAR_BADGE_BG_IMAGE_BORDER_INC;
1396 description { state: "visible" 0.0;
1397 inherit: "default" 0.0;
1401 part { name: "left.padding.text";
1405 state: "default" 0.0;
1410 to: "elm.text.badge";
1414 to: "elm.text.badge";
1420 part { name: "right.padding.text";
1424 state: "default" 0.0;
1429 to: "padding.badge";
1433 to: "padding.badge";
1439 part { name: "elm.text.badge";
1444 state: "default" 0.0;
1447 to: "right.padding.text";
1451 to: "right.padding.text";
1457 color: TABBAR_BADGE_TEXT_COLOR_INC;
1459 font: "Tizen:style=Bold";
1462 text_class: "tizen";
1465 description { state: "visible" 0.0;
1466 inherit: "default" 0.0;
1470 part { name: "elm.text.clipper";
1472 description { state: "default" 0.0;
1475 to: "padding_left_top";
1479 to: "padding_right_bottom";
1481 color: 255 255 255 255;
1483 description { state: "animation" 0.0;
1484 inherit: "default" 0.0;
1485 color: 255 255 255 0;
1487 description { state: "disabled" 0.0;
1488 inherit: "default" 0.0;
1489 color: 255 255 255 153;
1492 part { name: "elm.text_new.clipper";
1494 description { state: "default" 0.0;
1497 to: "padding_left_top";
1501 to: "padding_right_bottom";
1503 color: 255 255 255 0;
1505 description { state: "animation" 0.0;
1506 inherit: "default" 0.0;
1507 color: 255 255 255 255;
1509 description { state: "disabled" 0.0;
1510 inherit: "default" 0.0;
1511 color: 255 255 255 153;
1514 part { name: "elm.icon.clipper";
1516 description { state: "default" 0.0;
1519 to: "padding_left_top";
1523 to: "padding_right_bottom";
1525 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1527 description { state: "animation" 0.0;
1528 inherit: "default" 0.0;
1529 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1531 description { state: "selected" 0.0;
1532 inherit: "default" 0.0;
1533 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1535 description { state: "pressed" 0.0;
1536 inherit: "default" 0.0;
1537 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1539 description { state: "disabled" 0.0;
1540 inherit: "default" 0.0;
1541 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1544 part { name: "elm.icon_new.clipper";
1546 description { state: "default" 0.0;
1549 to: "padding_left_top";
1553 to: "padding_right_bottom";
1555 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1557 description { state: "animation" 0.0;
1558 inherit: "default" 0.0;
1559 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1561 description { state: "selected" 0.0;
1562 inherit: "default" 0.0;
1563 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1565 description { state: "pressed" 0.0;
1566 inherit: "default" 0.0;
1567 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1569 description { state: "disabled" 0.0;
1570 inherit: "default" 0.0;
1571 color: TABBAR_ITEM_DEFAULT_ICON_COLOR_INC;
1574 part { name: "elm.icon.proxy.clipper";
1576 description { state: "default" 0.0;
1579 to: "padding_left_top";
1583 to: "padding_right_bottom";
1585 color: TABBAR_ITEM_ICON_SHADOW_COLOR_INC;
1587 description { state: "animation" 0.0;
1588 inherit: "default" 0.0;
1589 color: TABBAR_ITEM_ICON_SHADOW_COLOR_INC;
1591 description { state: "selected" 0.0;
1592 inherit: "default" 0.0;
1593 color: TABBAR_ITEM_ICON_SHADOW_COLOR_INC;
1595 description { state: "pressed" 0.0;
1596 inherit: "default" 0.0;
1597 color: TABBAR_ITEM_PRESSED_ICON_SHADOW_COLOR_INC;
1599 description { state: "disabled" 0.0;
1600 inherit: "default" 0.0;
1601 color: TABBAR_ITEM_ICON_SHADOW_COLOR_INC;
1604 part { name: "elm.icon_new.proxy.clipper";
1606 description { state: "default" 0.0;
1609 to: "padding_left_top";
1613 to: "padding_right_bottom";
1615 color: TABBAR_ITEM_ICON_SHADOW_COLOR_INC;
1617 description { state: "animation" 0.0;
1618 inherit: "default" 0.0;
1619 color: TABBAR_ITEM_ICON_SHADOW_COLOR_INC;
1621 description { state: "selected" 0.0;
1622 inherit: "default" 0.0;
1623 color: TABBAR_ITEM_ICON_SHADOW_COLOR_INC;
1625 description { state: "pressed" 0.0;
1626 inherit: "default" 0.0;
1627 color: TABBAR_ITEM_PRESSED_ICON_SHADOW_COLOR_INC;
1629 description { state: "disabled" 0.0;
1630 inherit: "default" 0.0;
1631 color: TABBAR_ITEM_ICON_SHADOW_COLOR_INC;
1634 part { name: "elm.icon.proxy.clipper.2";
1636 description { state: "default" 0.0;
1639 to: "padding_left_top";
1643 to: "padding_right_bottom";
1645 color: TABBAR_ITEM_ICON_COLOR_INC;
1647 description { state: "animation" 0.0;
1648 inherit: "default" 0.0;
1649 color: TABBAR_ITEM_ICON_COLOR_INC;
1651 description { state: "selected" 0.0;
1652 inherit: "default" 0.0;
1653 color: TABBAR_ITEM_SELECTED_ICON_COLOR_INC;
1655 description { state: "pressed" 0.0;
1656 inherit: "default" 0.0;
1657 color: TABBAR_ITEM_PRESSED_ICON_COLOR_INC;
1659 description { state: "disabled" 0.0;
1660 inherit: "default" 0.0;
1661 color: TABBAR_ITEM_DISABLED_ICON_COLOR_INC;
1664 part { name: "elm.icon_new.proxy.clipper.2";
1666 description { state: "default" 0.0;
1669 to: "padding_left_top";
1673 to: "padding_right_bottom";
1675 color: TABBAR_ITEM_ICON_COLOR_INC;
1677 description { state: "animation" 0.0;
1678 inherit: "default" 0.0;
1679 color: TABBAR_ITEM_ICON_COLOR_INC;
1681 description { state: "selected" 0.0;
1682 inherit: "default" 0.0;
1683 color: TABBAR_ITEM_SELECTED_ICON_COLOR_INC;
1685 description { state: "pressed" 0.0;
1686 inherit: "default" 0.0;
1687 color: TABBAR_ITEM_PRESSED_ICON_COLOR_INC;
1689 description { state: "disabled" 0.0;
1690 inherit: "default" 0.0;
1691 color: TABBAR_ITEM_DISABLED_ICON_COLOR_INC;
1694 part { name: "elm.text.dim.left";
1698 description { state: "default" 0.0;
1705 to_x: "elm.text.clipper";
1710 to_x: "elm.text.clipper";
1713 image.normal: "00_effect_tab_text_dim_left.png";
1715 description { state: "show" 0.0;
1716 inherit: "default" 0.0;
1720 part { name: "elm.text.dim.right";
1724 description { state: "default" 0.0;
1731 to_x: "elm.text.clipper";
1736 to_x: "elm.text.clipper";
1739 image.normal: "00_effect_tab_text_dim_right.png";
1741 description { state: "show" 0.0;
1742 inherit: "default" 0.0;
1746 part { name: "divider";
1749 description { state: "default" 0.0;
1750 min: TABBAR_ITEM_DIVIDER_SIZE;
1751 max: TABBAR_ITEM_DIVIDER_SIZE;
1760 description { state: "hidden" 0.0;
1761 inherit: "default" 0.0;
1765 part { name: "divider_left";
1768 description { state: "default" 0.0;
1769 color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
1780 part { name: "divider_right";
1783 description { state: "default" 0.0;
1784 color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;
1795 part { name: "highlight";
1798 description { state: "default" 0.0;
1801 normal: "00_tab_focus.png";
1802 border: TABBAR_ITEM_TAB_FOCUS_BORDER_INC;
1806 description { state: "highlighted" 0.0;
1807 inherit: "default" 0.0;
1811 part { name: "event";
1818 description { state: "default" 0.0;
1822 // for debuging //////////////////////////////
1823 /* part { name: "dbg";
1827 description { state: "default" 0.0;
1828 rel1.relative: 1.0 0.0;
1829 rel2.relative: 1.0 0.0;
1833 style: "tabbar_text_style_30";
1841 program { name: "go_active";
1842 signal: "elm,state,selected";
1844 action: STATE_SET "selected" 0.0;
1845 target: "elm.icon.clipper";
1846 target: "elm.icon.proxy.clipper";
1847 target: "elm.icon.proxy.clipper.2";
1848 target: "selected_line";
1849 after: "selected_text";
1851 program { name: "selected_text";
1855 set_int(selected, 1);
1856 get_state(PART:"elm.text", st, 30, vl);
1857 if (!strcmp(st, "visible"))
1858 set_state(PART:"elm.text", "selected", vl);
1859 if (strcmp(st, "default"))
1860 run_program(PROGRAM:"slide_start");
1863 program { name: "go_passive";
1864 signal: "elm,state,unselected";
1866 action: STATE_SET "default" 0.0;
1867 target: "elm.icon.clipper";
1868 target: "elm.icon.proxy.clipper";
1869 target: "elm.icon.proxy.clipper.2";
1870 target: "selected_line";
1871 after: "unselected_text";
1873 program { name: "unselected_text";
1877 set_int(selected, 0);
1878 get_state(PART:"elm.text", st, 30, vl);
1879 if (!strcmp(st, "selected"))
1880 set_state(PART:"elm.text", "visible", vl);
1881 if (strcmp(st, "default"))
1882 run_program(PROGRAM:"slide_stop");
1885 program { name: "moving";
1886 signal: "elm,state,moving";
1889 set_state(PART:"bg_cover", "moving", 0.0);
1892 program { name: "pressed";
1893 signal: "mouse,down,1";
1896 set_state(PART:"bg_cover", "pressed", 0.0);
1897 set_state(PART:"elm.text", "pressed", 0.0);
1898 set_state(PART:"elm.icon.clipper", "pressed", 0.0);
1899 set_state(PART:"elm.icon.proxy.clipper", "pressed", 0.0);
1900 set_state(PART:"elm.icon.proxy.clipper.2", "pressed", 0.0);
1901 set_int(pressed, 1);
1911 new Float:dx, Float:dy;
1912 get_state(PART:"bg_cover", st, 30, vl);
1913 if (strcmp(st, "moving"))
1915 get_drag(PART:"event", dx, dy);
1916 if ((abs(dx)*abs(dx))+(abs(dy)*abs(dy)) > 400)
1918 set_drag(PART:"event", 0.0, 0.0);
1919 set_state(PART:"bg_cover", "default", 0.0);
1920 if (get_int(selected))
1922 set_state(PART:"elm.text", "selected", 0.0);
1923 set_state(PART:"elm.icon.clipper", "selected", 0.0);
1924 set_state(PART:"elm.icon.proxy.clipper", "selected", 0.0);
1925 set_state(PART:"elm.icon.proxy.clipper.2", "selected", 0.0);
1929 set_state(PART:"elm.text", "visible", 0.0);
1930 set_state(PART:"elm.icon.clipper", "default", 0.0);
1931 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
1932 set_state(PART:"elm.icon.proxy.clipper.2", "default", 0.0);
1935 set_drag(PART:"event", 0.0, 0.0);
1939 program { name: "unpressed";
1940 signal: "mouse,up,1";
1943 set_drag(PART:"event", 0.0, 0.0);
1944 set_state(PART:"bg_cover", "default", 0.0);
1945 set_int(pressed, 0);
1946 if (get_int(selected))
1948 set_state(PART:"elm.text", "selected", 0.0);
1949 set_state(PART:"elm.icon.clipper", "selected", 0.0);
1950 set_state(PART:"elm.icon.proxy.clipper", "selected", 0.0);
1951 set_state(PART:"elm.icon.proxy.clipper.2", "selected", 0.0);
1955 set_state(PART:"elm.text", "visible", 0.0);
1956 set_state(PART:"elm.icon.clipper", "default", 0.0);
1957 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
1958 set_state(PART:"elm.icon.proxy.clipper.2", "default", 0.0);
1962 program { name: "go";
1963 signal: "mouse,clicked,1";
1965 action: SIGNAL_EMIT "elm,action,click" "elm";
1966 after: "play_sound";
1968 program { name: "play_sound";
1969 action: PLAY_SAMPLE "touch_sound" 1.0;
1971 program { name: "mouse,in";
1974 action: SIGNAL_EMIT "elm,mouse,in" "elm";
1976 program { name: "mouse,out";
1977 signal: "mouse,out";
1979 action: SIGNAL_EMIT "elm,mouse,out" "elm";
1981 program { name: "disable";
1982 signal: "elm,state,disabled";
1985 set_int(item_state, ITEM_STATE_DISABLED);
1986 set_state(PART:"bg", "disabled", 0.0);
1987 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1988 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1989 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
1990 set_state(PART:"elm.icon.proxy.clipper.2", "disabled", 0.0);
1991 run_program(PROGRAM:"label_set,animation,done");
1992 run_program(PROGRAM:"icon_set,animation,done");
1995 program { name: "enable";
1996 signal: "elm,state,enabled";
1999 set_int(item_state, ITEM_STATE_ENABLED);
2000 set_state(PART:"bg", "default", 0.0);
2001 set_state(PART:"elm.text.clipper", "default", 0.0);
2002 set_state(PART:"elm.icon.clipper", "default", 0.0);
2003 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
2004 set_state(PART:"elm.icon.proxy.clipper.2", "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 after: "label_set,animation,done";
2036 program { name: "label_set,animation,done";
2037 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
2039 program { name: "label,reset";
2040 signal: "elm,state,label,reset";
2043 set_state(PART:"elm.text_new.clipper", "default", 0.0);
2044 if (get_int(item_state) != ITEM_STATE_DISABLED)
2045 set_state(PART:"elm.text.clipper", "default", 0.0);
2047 set_state(PART:"elm.text.clipper", "disabled", 0.0);
2050 program { name: "icon_set,animation,forward";
2051 signal: "elm,state,icon_set,forward";
2053 after: "icon_set,animation";
2055 program { name: "icon_set,animation,backward";
2056 signal: "elm,state,icon_set,backward";
2058 after: "icon_set,animation";
2060 program { name: "icon_set,animation";
2061 signal: "elm,state,icon_set";
2063 action: STATE_SET "animation" 0.0;
2064 target: "elm.icon.clipper";
2065 target: "elm.icon_new.clipper";
2066 target: "elm.icon.proxy.clipper";
2067 target: "elm.icon_new.proxy.clipper";
2068 target: "elm.icon.proxy.clipper.2";
2069 target: "elm.icon_new.proxy.clipper.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);
2084 set_state(PART:"elm.icon.proxy.clipper.2", "default", 0.0);
2088 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
2089 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
2090 set_state(PART:"elm.icon.proxy.clipper.2", "disabled", 0.0);
2094 program { name: "text_show";
2095 signal: "elm,state,text,visible";
2100 get_state(PART:"elm.swallow.icon", st, 30, vl);
2101 if (!strcmp(st, "icononly"))
2103 set_state(PART:"elm.swallow.icon", "visible", 0.0);
2104 set_state(PART:"icon_rect", "visible", 0.0);
2105 set_state(PART:"padding_after_icon", "visible", 0.0);
2106 set_state(PART:"bg", "icon_text", 0.0);
2108 if (get_int(selected))
2109 set_state(PART:"elm.text", "selected", 0.0);
2111 set_state(PART:"elm.text", "visible", 0.0);
2114 program { name: "text_hide";
2115 signal: "elm,state,text,hidden";
2120 get_state(PART:"elm.swallow.icon", st, 30, vl);
2121 if (strcmp(st, "default"))
2123 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
2124 set_state(PART:"icon_rect", "icononly", 0.0);
2125 set_state(PART:"padding_after_icon", "icononly", 0.0);
2127 set_state(PART:"elm.text", "default", 0.0);
2128 set_state(PART:"bg", "default", 0.0);
2131 program { name: "icon_show";
2132 signal: "elm,state,icon,visible";
2137 get_state(PART:"elm.text", st, 30, vl);
2138 if (strncmp(st, "default", 7))
2140 set_state(PART:"elm.swallow.icon", "visible", 0.0);
2141 set_state(PART:"icon_rect", "visible", 0.0);
2142 set_state(PART:"padding_after_icon", "visible", 0.0);
2143 set_state(PART:"bg", "icon_text", 0.0);
2147 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
2148 set_state(PART:"icon_rect", "icononly", 0.0);
2149 set_state(PART:"padding_after_icon", "icononly", 0.0);
2153 program { name: "icon_hide";
2154 signal: "elm,state,icon,hidden";
2157 set_state(PART:"elm.swallow.icon", "default", 0.0);
2158 set_state(PART:"icon_rect", "default", 0.0);
2159 set_state(PART:"padding_after_icon", "default", 0.0);
2160 set_state(PART:"bg", "default", 0.0);
2163 program { name: "badge_show";
2164 signal: "elm,state,elm.text.badge,visible";
2166 action: STATE_SET "visible" 0.0;
2167 target: "elm.text.badge";
2168 target: "elm.image.badge";
2170 program { name: "badge_hide";
2171 signal: "elm,state,elm.text.badge,hidden";
2173 action: STATE_SET "default" 0.0;
2174 target: "elm.text.badge";
2175 target: "elm.image.badge";
2177 program { name: "divider_visible_1";
2178 signal: "elm,order,first,item";
2180 action: STATE_SET "default" 0.0;
2183 program { name: "divider_visible_2";
2184 signal: "elm,order,default,item";
2186 action: STATE_SET "default" 0.0;
2189 program { name: "divider_hidden";
2190 signal: "elm,order,last,item";
2192 action: STATE_SET "hidden" 0.0;
2195 program { name: "highlight_on";
2196 signal: "elm,highlight,on";
2198 action: STATE_SET "highlighted" 0.0;
2199 target: "highlight";
2201 program { name: "highlight_off";
2202 signal: "elm,highlight,off";
2204 action: STATE_SET "default" 0.0;
2205 target: "highlight";
2207 program { name: "tab_item_2";
2208 signal: "elm,number,item,2";
2211 set_int(items_number, 2);
2212 set_state(PART:"padding.badge", "default", 0.10);
2215 program { name: "tab_item_3";
2216 signal: "elm,number,item,3";
2219 set_int(items_number, 3);
2220 set_state(PART:"padding.badge", "default", 0.06);
2223 program { name: "tab_item_4";
2224 signal: "elm,number,item,4";
2227 set_int(items_number, 4);
2229 after: "tab_item_upper_4";
2231 program { name: "tab_item_5";
2232 signal: "elm,number,item,5";
2235 set_int(items_number, 5);
2237 after: "tab_item_upper_4";
2239 program { name: "tab_item_6";
2240 signal: "elm,number,item,6";
2243 set_int(items_number, 6);
2245 after: "tab_item_upper_4";
2247 program { name: "tab_item_7";
2248 signal: "elm,number,item,7";
2251 set_int(items_number, 7);
2253 after: "tab_item_upper_4";
2255 program { name: "tab_item_8";
2256 signal: "elm,number,item,8";
2259 set_int(items_number, 8);
2261 after: "tab_item_upper_4";
2263 program { name: "tab_item_9";
2264 signal: "elm,number,item,9";
2267 set_int(items_number, 9);
2269 after: "tab_item_upper_4";
2271 program { name: "tab_item_10";
2272 signal: "elm,number,item,10";
2275 set_int(items_number, 10);
2277 after: "tab_item_upper_4";
2279 program { name: "tab_item_upper_4";
2281 set_state(PART:"padding.badge", "default", 0.04);
2284 program { name: "slide_start";
2286 if (!get_int(sliding_timer) && !get_int(end_timer)) {
2287 set_int(sliding_timer, timer(1.5, "sliding", TOOLBAR_SLIDING_TEXT_OFFSET));
2291 program { name: "slide_stop";
2299 group { name: "elm/toolbar/base/tabbar/item_with_title";
2300 inherit: "elm/toolbar/base/tabbar";
2302 image: "00_sub_title_bg.png" COMP;
2305 part { name: "base_bg";
2309 state: "default" 0.0;
2319 normal: "00_sub_title_bg.png";
2320 border: TABBAR_ITEM_BG_DEFAULT_BORDER_INC;
2328 group { name: "elm/toolbar/item/tabbar/item_with_title";
2329 inherit: "elm/toolbar/item/tabbar";
2331 image: "00_effect_tab_text_dim_left_02.png" COMP;
2332 image: "00_effect_tab_text_dim_right_02.png" COMP;
2335 part { name: "elm.text.dim.left";
2336 description { state: "default" 0.0;
2337 image.normal: "00_effect_tab_text_dim_left_02.png";
2339 description { state: "show" 0.0;
2340 inherit: "default" 0.0;
2344 part { name: "elm.text.dim.right";
2345 description { state: "default" 0.0;
2346 image.normal: "00_effect_tab_text_dim_right_02.png";
2348 description { state: "show" 0.0;
2349 inherit: "default" 0.0;
2353 part { name: "divider";
2356 description { state: "default" 0.0;
2357 min: TABBAR_ITEM_WITH_TITLE_DIVIDER_SIZE;
2358 max: TABBAR_ITEM_WITH_TITLE_DIVIDER_SIZE;
2367 description { state: "hidden" 0.0;
2368 inherit: "default" 0.0;
2372 part { name: "divider_left";
2375 description { state: "default" 0.0;
2376 color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
2387 part { name: "divider_right";
2390 description { state: "default" 0.0;
2391 color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;