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=#000000be 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 TABBAR_TEXT_STYLE(_font_size) \
38 style { name: "tabbar_text_style_"_font_size; \
39 base: "font=Tizen:style=Bold style=far_shadow,bottom shadow_color=#000000ff font_size="_font_size" align=center color="TABBAR_ITEM_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 TOOLBAR_SELECTED_TEXT_STYLE(_font_size) \
48 style { name: "toolbar_selected_text_style_"_font_size; \
49 base: "font=Tizen:style=Bold style=far_shadow,bottom shadow_color=#000000ff font_size="_font_size" align=center color="TABBAR_ITEM_SELECTED_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"; \
59 TOOLBAR_TEXT_STYLE(36)
62 group { name: "elm/toolbar/base/default";
64 item: "focus_highlight" "on";
67 image: "00_toolbar_bg.png" COMP;
73 description { state: "default" 0.0;
76 part { name: "base_bg";
90 normal: "00_toolbar_bg.png";
91 border: TOOLBAR_ITEM_BG_DEFAULT_BORDER_INC;
96 part { name: "clipper";
100 state: "default" 0.0;
111 part { name: "elm.swallow.content";
115 state: "default" 0.0;
120 part { name: "event";
124 description { state: "default" 0.0;
131 group { name: "elm/toolbar/item/default";
133 image: "00_toolbar_press.png" COMP;
134 image: "00_tab_focus.png" COMP;
137 data.item: "transition_animation_on" "1";
139 public item_state = ITEM_STATE_ENABLED;
140 public items_number = 0;
147 description { state: "default" 0.0;
150 normal: "00_toolbar_press.png";
151 border: TOOLBAR_ITEM_BG_SELECTED_BORDER_INC;
155 description { state: "selected" 0.0;
156 inherit: "default" 0.0;
159 description { state: "disabled" 0.0;
160 inherit: "default" 0.0;
164 part { name: "padding_left_top";
168 description { state: "default" 0.0;
170 rel2.relative: 0.0 0.0;
176 description { state: "1_item" 0.0;
177 inherit: "default" 0.0;
180 description { state: "2_items" 0.0;
181 inherit: "default" 0.0;
184 description { state: "3_items" 0.0;
185 inherit: "default" 0.0;
189 part { name: "padding_right_bottom";
193 description { state: "default" 0.0;
195 rel1.relative: 1.0 1.0;
201 description { state: "1_item" 0.0;
202 inherit: "default" 0.0;
205 description { state: "2_items" 0.0;
206 inherit: "default" 0.0;
209 description { state: "3_items" 0.0;
210 inherit: "default" 0.0;
214 part { name: "elm.text";
218 clip_to: "elm.text.clipper";
219 description { state: "default" 0.0;
223 to: "padding_left_top";
227 to: "padding_right_bottom";
232 style: "toolbar_text_style_36";
236 description { state: "visible" 0.0;
237 inherit: "default" 0.0;
241 part { name: "elm.text_new";
245 clip_to: "elm.text_new.clipper";
246 description { state: "default" 0.0;
250 to: "padding_left_top";
254 to: "padding_right_bottom";
256 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
259 style: "toolbar_text_style_36";
263 description { state: "visible" 0.0;
264 inherit: "default" 0.0;
268 part { name: "elm.text.clipper";
270 description { state: "default" 0.0;
271 color: 255 255 255 255;
273 description { state: "animation" 0.0;
274 color: 255 255 255 0;
276 description { state: "disabled" 0.0;
277 color: 255 255 255 153;
280 part { name: "elm.text_new.clipper";
282 description { state: "default" 0.0;
283 color: 255 255 255 0;
285 description { state: "animation" 0.0;
286 color: 255 255 255 255;
288 description { state: "disabled" 0.0;
289 color: 255 255 255 153;
292 part { name: "divider";
295 description { state: "default" 0.0;
306 description { state: "hidden" 0.0;
307 inherit: "default" 0.0;
311 part { name: "divider_left";
314 description { state: "default" 0.0;
315 color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
326 part { name: "divider_right";
329 description { state: "default" 0.0;
330 color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;
341 part { name: "event";
344 ignore_flags: ON_HOLD;
345 description { state: "default" 0.0;
349 part { name: "event2";
353 description { state: "default" 0.0;
357 part { name: "highlight";
360 description { state: "default" 0.0;
363 normal: "00_tab_focus.png";
368 description { state: "highlighted" 0.0;
369 inherit: "default" 0.0;
375 program { name: "pressed";
376 signal: "mouse,down,1";
379 if (get_int(item_state) != ITEM_STATE_DISABLED)
380 set_state(PART:"bg", "selected", 0.0);
382 transition: LINEAR 0.2;
384 program { name: "unpressed";
385 signal: "mouse,up,1";
387 action: STATE_SET "default" 0.0;
389 transition: LINEAR 0.1;
391 program { name: "go";
392 signal: "mouse,clicked,1";
394 action: SIGNAL_EMIT "elm,action,click" "elm";
397 program { name: "play_sound";
398 action: PLAY_SAMPLE "touch_sound" 1.0;
400 program { name: "mouse,in";
403 action: SIGNAL_EMIT "elm,mouse,in" "elm";
405 program { name: "mouse,out";
408 action: SIGNAL_EMIT "elm,mouse,out" "elm";
410 program { name: "disable";
411 signal: "elm,state,disabled";
414 set_int(item_state, ITEM_STATE_DISABLED);
415 set_state(PART:"bg", "disabled", 0.0);
416 set_state(PART:"elm.text.clipper", "disabled", 0.0);
417 run_program(PROGRAM:"label_set,animation,done");
420 program { name: "enable";
421 signal: "elm,state,enabled";
424 set_int(item_state, ITEM_STATE_ENABLED);
425 set_state(PART:"bg", "default", 0.0);
426 set_state(PART:"elm.text.clipper", "default", 0.0);
427 run_program(PROGRAM:"label_set,animation,done");
430 program { name: "label_set,animation,forward";
431 signal: "elm,state,label_set,forward";
433 after: "label_set,sync";
435 program { name: "label_set,animation,backward";
436 signal: "elm,state,label_set,backward";
438 after: "label_set,sync";
440 program { name: "label_set,sync";
441 signal: "elm,state,label_set";
446 get_state(PART:"elm.text", st, 30, vl);
447 set_state(PART:"elm.text_new", st, vl);
449 after: "label_set,animation";
451 program { name: "label_set,animation";
452 action: STATE_SET "animation" 0.0;
453 target: "elm.text.clipper";
454 target: "elm.text_new.clipper";
455 transition: LINEAR 0.2;
456 after: "label_set,animation,done";
458 program { name: "label_set,animation,done";
459 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
461 program { name: "label,reset";
462 signal: "elm,state,label,reset";
465 set_state(PART:"elm.text_new.clipper", "default", 0.0);
466 if (get_int(item_state) != ITEM_STATE_DISABLED)
467 set_state(PART:"elm.text.clipper", "default", 0.0);
469 set_state(PART:"elm.text.clipper", "disabled", 0.0);
472 program { name: "text_show";
473 signal: "elm,state,text,visible";
476 set_state(PART:"elm.text", "visible", 0.0);
479 program { name: "text_hide";
480 signal: "elm,state,text,hidden";
483 set_state(PART:"elm.text", "default", 0.0);
486 program { name: "text_only_item_1";
487 signal: "elm,number,item,1";
490 set_int(items_number, 1);
491 set_state(PART:"padding_left_top", "1_item", 0.0);
492 set_state(PART:"padding_right_bottom", "1_item", 0.0);
495 program { name: "text_only_item_2";
496 signal: "elm,number,item,2";
499 set_int(items_number, 2);
500 set_state(PART:"padding_left_top", "2_items", 0.0);
501 set_state(PART:"padding_right_bottom", "2_items", 0.0);
504 program { name: "text_only_item_3";
505 signal: "elm,number,item,3";
508 set_int(items_number, 3);
509 set_state(PART:"padding_left_top", "3_items", 0.0);
510 set_state(PART:"padding_right_bottom", "3_items", 0.0);
513 program { name: "divider_visible_1";
514 signal: "elm,order,first,item";
516 action: STATE_SET "default" 0.0;
519 program { name: "divider_visible_2";
520 signal: "elm,order,default,item";
522 action: STATE_SET "default" 0.0;
525 program { name: "divider_hidden";
526 signal: "elm,order,last,item";
528 action: STATE_SET "hidden" 0.0;
531 program { name: "highlight_on";
532 signal: "elm,highlight,on";
534 action: STATE_SET "highlighted" 0.0;
537 program { name: "highlight_off";
538 signal: "elm,highlight,off";
540 action: STATE_SET "default" 0.0;
546 group { name: "elm/toolbar/separator/default";
548 part { name: "divider";
551 description { state: "default" 0.0;
563 part { name: "divider_left";
566 description { state: "default" 0.0;
567 color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
578 part { name: "divider_right";
581 description { state: "default" 0.0;
582 color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;
596 group { name: "elm/toolbar/object/default";
598 part { name: "elm.swallow.object"; // object group
601 state: "default" 0.0;
607 group { name: "elm/toolbar/base/tabbar";
609 item: "focus_highlight" "on";
612 image: "00_effect_tab_bounce_left.png" COMP;
613 image: "00_effect_tab_bounce_right.png" COMP;
614 image: "00_title_bg.png" COMP;
617 public left_timer, right_timer;
618 public l_timer(val) {
619 emit("do-hide-left-shadow", "");
620 set_int(left_timer, 0);
623 public r_timer(val) {
624 emit("do-hide-right-shadow", "");
625 set_int(right_timer, 0);
633 description { state: "default" 0.0;
636 part { name: "base_bg";
640 state: "default" 0.0;
650 normal: "00_title_bg.png";
654 part { name: "left_padding";
659 state: "default" 0.0;
666 rel1.relative: 0.0 0.0;
667 rel2.relative: 0.0 1.0;
670 part { name: "right_padding";
675 state: "default" 0.0;
682 rel1.relative: 1.0 0.0;
683 rel2.relative: 1.0 1.0;
686 part { name: "clipper";
691 state: "default" 0.0;
692 rel1.to: "left_padding";
693 rel1.relative: 1.0 0.0;
694 rel2.to: "right_padding";
695 rel2.relative: 0.0 1.0;
698 part { name: "elm.swallow.content";
703 state: "default" 0.0;
708 part { name: "left_shadow_clip";
712 description { state: "default" 0.0;
714 color: 255 255 255 0;
716 description { state: "show" 0.0;
719 part { name: "right_shadow_clip";
723 description { state: "default" 0.0;
725 color: 255 255 255 0;
727 description { state: "show" 0.0;
730 part { name: "shadow_left";
731 clip_to: "left_shadow_clip";
735 description { state: "default" 0.0;
739 color: 255 255 255 255;
740 rel1.relative: 0.0 0.0;
741 rel2.relative: 0.0 1.0;
742 image.normal: "00_effect_tab_bounce_left.png";
745 part { name: "shadow_right";
746 clip_to: "right_shadow_clip";
750 description { state: "default" 0.0;
754 color: 255 255 255 255;
755 rel1.relative: 1.0 0.0;
756 rel2.relative: 1.0 1.0;
757 image.normal: "00_effect_tab_bounce_right.png";
762 program { name: "load";
764 set_int(left_timer, 0);
765 set_int(right_timer, 0);
768 program { name: "left_shadow_show";
769 signal: "do-show-left-shadow";
771 action: STATE_SET "show" 0.0;
772 transition: LINEAR 0.3;
773 target: "left_shadow_clip";
775 program { name: "left_shadow_hide";
776 signal: "do-hide-left-shadow";
778 action: STATE_SET "default" 0.0;
779 transition: LINEAR 0.3;
780 target: "left_shadow_clip";
782 program { name: "right_shadow_show";
783 signal: "do-show-right-shadow";
785 action: STATE_SET "show" 0.0;
786 transition: LINEAR 0.3;
787 target: "right_shadow_clip";
789 program { name: "right_shadow_hide";
790 signal: "do-hide-right-shadow";
792 action: STATE_SET "default" 0.0;
793 transition: LINEAR 0.3;
794 target: "right_shadow_clip";
796 program { name: "edge_left";
797 signal: "elm,edge,left";
801 v = get_int(left_timer);
803 emit("do-show-left-shadow", "");
805 if (v > 0) cancel_timer(v);
806 v = timer(0.5, "l_timer", 0);
807 set_int(left_timer, v);
810 program { name: "edge_right";
811 signal: "elm,edge,right";
815 v = get_int(right_timer);
817 emit("do-show-right-shadow", "");
819 if (v > 0) cancel_timer(v);
820 v = timer(0.5, "r_timer", 0);
821 set_int(right_timer, v);
827 group { name: "elm/toolbar/item/tabbar";
829 image: "00_tab_press.png" COMP;
830 image: "00_badge_bg.png" COMP;
831 image: "00_tab_focus.png" COMP;
832 image: "00_tab_select_bar.png" COMP;
833 image: "00_effect_tab_text_dim_left.png" COMP;
834 image: "00_effect_tab_text_dim_right.png" COMP;
837 data.item: "transition_animation_on" "1";
839 public item_state = ITEM_STATE_ENABLED;
840 public items_number = 0;
841 public sliding_timer;
845 public loop_count = 0;
849 set_state(PART:"elm.text", "visible", 0.0);
850 get_geometry(PART:"elm.text", x, y, w, h);
851 set_int(org_text_w, w);
853 set_state(PART:"elm.text", "sliding", 0.0);
854 get_geometry(PART:"elm.text", x, y, w, h);
858 set_int(loop_count, 0);
859 if (get_int(sliding_timer)) cancel_timer(get_int(sliding_timer));
860 set_int(sliding_timer, 0);
861 if (get_int(end_timer)) cancel_timer(get_int(end_timer));
862 set_int(end_timer, 0);
863 set_state(PART:"elm.text.dim.left", "default", 0.0);
864 set_state(PART:"elm.text_new.clipper", "default", 0.0);
866 custom_state(PART:"elm.text", "sliding", 0.0);
867 set_state_val(PART:"elm.text", STATE_REL1_OFFSET, TOOLBAR_SLIDING_TEXT_OFFSET, 0);
868 set_state_val(PART:"elm.text", STATE_REL2_OFFSET, TOOLBAR_SLIDING_TEXT_OFFSET, 0);
869 set_state(PART:"elm.text", "custom", 0.0);
871 set_state(PART:"elm.text", "visible", 0.0);
872 set_state(PART:"elm.text.dim.right", "default", 0.0);
875 public sliding(val) {
877 if (val == TOOLBAR_SLIDING_TEXT_OFFSET) {
878 set_int(loop_count, get_int(loop_count) + 1);
880 if (get_int(text_w) <= get_int(org_text_w)) {
885 val -= TOOLBAR_SLIDING_PER_FPS;
886 // for debuging //////////////////////////////
887 /* snprintf(buf, 127, "%d:%d:%d",
888 val, get_int(org_text_w), get_int(text_w));
889 set_text(PART:"dbg", buf);*/
891 if (val <= -get_int(text_w) - TOOLBAR_SLIDING_TEXT_GAP + TOOLBAR_SLIDING_TEXT_OFFSET)
892 val = TOOLBAR_SLIDING_TEXT_OFFSET;
893 custom_state(PART:"elm.text", "sliding", 0.0);
894 set_state_val(PART:"elm.text", STATE_REL1_OFFSET, val, 0);
895 set_state_val(PART:"elm.text", STATE_REL2_OFFSET, val, 0);
896 set_state(PART:"elm.text", "custom", 0.0);
898 set_state(PART:"elm.text_new.clipper", "animation", 0.0);
899 get_text(PART:"elm.text", buf, 128);
900 set_text(PART:"elm.text_new", buf);
901 custom_state(PART:"elm.text_new", "sliding", 0.0);
902 set_state_val(PART:"elm.text_new", STATE_REL1_OFFSET,
903 val + get_int(text_w) + TOOLBAR_SLIDING_TEXT_GAP, 0);
904 set_state_val(PART:"elm.text_new", STATE_REL2_OFFSET,
905 val + get_int(text_w) + TOOLBAR_SLIDING_TEXT_GAP, 0);
906 set_state(PART:"elm.text_new", "custom", 0.0);
908 set_state(PART:"elm.text.dim.left", "show", 0.0);
909 set_state(PART:"elm.text.dim.right", "show", 0.0);
911 if (val == TOOLBAR_SLIDING_TEXT_OFFSET || val <= -get_int(text_w))
912 set_state(PART:"elm.text.dim.left", "default", 0.0);
914 if (val == TOOLBAR_SLIDING_TEXT_OFFSET) {
915 if (get_int(loop_count) < 3)
916 set_int(sliding_timer, timer(2.0, "sliding", TOOLBAR_SLIDING_TEXT_OFFSET));
918 set_int(end_timer, timer(0.5, "ender", 1));
920 set_int(sliding_timer, timer(1.0/TOOLBAR_SLIDING_FPS, "sliding", val));
928 description { state: "default" 0.0;
932 description { state: "icon_text" 0.0;
933 inherit: "default" 0.0;
937 part { name: "selected_line";
941 description { state: "default" 0.0;
949 normal: "00_tab_select_bar.png";
958 description { state: "selected" 0.0;
959 inherit: "default" 0.0;
963 part { name: "bg_cover";
967 description { state: "default" 0.0;
970 normal: "00_tab_press.png";
975 description { state: "pressed" 0.0;
976 inherit: "default" 0.0;
979 description { state: "moving" 0.0;
980 inherit: "default" 0.0;
984 part { name: "padding_left_top";
988 description { state: "default" 0.0;
990 rel2.relative: 0.0 0.0;
997 part { name: "padding_right_bottom";
1001 description { state: "default" 0.0;
1003 rel1.relative: 1.0 1.0;
1015 description { state: "default" 0.0;
1020 to: "padding_left_top";
1024 to_x: "padding_right_bottom";
1025 to_y: "padding_left_top";
1030 description { state: "visible" 0.0;
1031 inherit: "default" 0.0;
1032 min: TABBAR_ITEM_ICON_SIZE_INC;
1034 description { state: "icononly" 0.0;
1035 inherit: "default" 0.0;
1038 part { name: "padding_after_icon";
1042 description { state: "default" 0.0; //when only icon or no icon is there
1048 rel2.to: "icon_rect";
1053 description { state: "visible" 0.0;
1054 inherit: "default" 0.0;
1057 description { state: "icononly" 0.0;
1058 inherit: "default" 0.0;
1061 part { name: "padding_before_text";
1065 description { state: "default" 0.0; //when only icon or no icon is there
1069 to_x: "padding_left_top";
1074 to_x: "padding_right_bottom";
1082 part { name: "elm.swallow.icon.proxy";
1085 clip_to: "elm.icon.proxy.clipper";
1086 description { state: "default" 0.0;
1087 source: "elm.swallow.icon";
1088 proxy.source_clip: 0;
1089 rel1.to: "elm.swallow.icon";
1091 rel2.to: "elm.swallow.icon";
1095 part { name: "elm.swallow.icon_new.proxy";
1098 clip_to: "elm.icon_new.proxy.clipper";
1099 description { state: "default" 0.0;
1100 source: "elm.swallow.icon_new";
1101 proxy.source_clip: 0;
1102 rel1.to: "elm.swallow.icon_new";
1104 rel2.to: "elm.swallow.icon_new";
1108 part { name: "elm.swallow.icon";
1111 clip_to: "elm.icon.clipper";
1112 description { state: "default" 0.0;
1114 min: TABBAR_ITEM_ICON_SIZE_INC;
1115 max: TABBAR_ITEM_ICON_SIZE_INC;
1117 to: "padding_left_top";
1120 to: "padding_right_bottom";
1123 aspect_preference: HORIZONTAL;
1125 description { state: "visible" 0.0;
1127 min: TABBAR_ITEM_ICON_SIZE_INC;
1128 max: TABBAR_ITEM_ICON_SIZE_INC;
1132 to_x: "padding_left_top";
1133 to_y: "padding_before_text";
1137 to_x: "padding_right_bottom";
1138 to_y: "padding_before_text";
1141 aspect_preference: HORIZONTAL;
1143 description { state: "icononly" 0.0;
1144 inherit: "default" 0.0;
1148 part { name: "elm.swallow.icon_new";
1151 clip_to: "elm.icon_new.clipper";
1152 description { state: "default" 0.0;
1154 min: TABBAR_ITEM_ICON_SIZE_INC;
1155 max: TABBAR_ITEM_ICON_SIZE_INC;
1156 rel1.to: "padding_left_top";
1157 rel2.to: "padding_right_bottom";
1159 aspect_preference: HORIZONTAL;
1161 description { state: "visible" 0.0;
1163 min: TABBAR_ITEM_ICON_SIZE_INC;
1164 max: TABBAR_ITEM_ICON_SIZE_INC;
1167 to_x: "padding_left_top";
1168 to_y: "padding_before_text";
1172 to_x: "padding_right_bottom";
1173 to_y: "padding_before_text";
1176 aspect_preference: HORIZONTAL;
1178 description { state: "icononly" 0.0;
1179 inherit: "default" 0.0;
1183 part { name: "elm.text";
1187 clip_to: "elm.text.clipper";
1188 description { state: "default" 0.0;
1192 to_x: "padding_left_top";
1193 to_y: "padding_after_icon";
1197 to: "padding_right_bottom";
1202 style: "tabbar_text_style_30";
1207 description { state: "visible" 0.0;
1208 inherit: "default" 0.0;
1211 description { state: "sliding" 0.0;
1212 inherit: "visible" 0.0;
1213 rel1.offset: TOOLBAR_SLIDING_TEXT_OFFSET 0;
1214 rel2.offset: TOOLBAR_SLIDING_TEXT_OFFSET 0;
1219 part { name: "elm.text_new";
1223 clip_to: "elm.text_new.clipper";
1224 description { state: "default" 0.0;
1228 to_x: "padding_left_top";
1229 to_y: "padding_after_icon";
1233 to: "padding_right_bottom";
1238 style: "tabbar_text_style_30";
1243 description { state: "visible" 0.0;
1244 inherit: "default" 0.0;
1247 description { state: "sliding" 0.0;
1248 inherit: "visible" 0.0;
1249 rel1.offset: TOOLBAR_SLIDING_TEXT_OFFSET 0;
1250 rel2.offset: TOOLBAR_SLIDING_TEXT_OFFSET 0;
1255 part { name: "padding.badge";
1259 description { state: "default" 0.0;
1271 description { state: "default" 0.10;
1272 inherit: "default" 0.0;
1275 description { state: "default" 0.06;
1276 inherit: "default" 0.0;
1279 description { state: "default" 0.04;
1280 inherit: "default" 0.0;
1284 part { name: "elm.image.badge";
1287 description { state: "default" 0.0;
1292 to: "left.padding.text";
1296 to: "right.padding.text";
1300 normal: "00_badge_bg.png";
1305 description { state: "visible" 0.0;
1306 inherit: "default" 0.0;
1310 part { name: "left.padding.text";
1314 state: "default" 0.0;
1319 to: "elm.text.badge";
1323 to: "elm.text.badge";
1329 part { name: "right.padding.text";
1333 state: "default" 0.0;
1338 to: "padding.badge";
1342 to: "padding.badge";
1348 part { name: "elm.text.badge";
1353 state: "default" 0.0;
1356 to: "right.padding.text";
1360 to: "right.padding.text";
1366 color: 250 250 250 255;
1368 font: "Tizen:style=Bold";
1371 text_class: "tizen";
1374 description { state: "visible" 0.0;
1375 inherit: "default" 0.0;
1379 part { name: "elm.text.clipper";
1381 description { state: "default" 0.0;
1384 to: "padding_left_top";
1388 to: "padding_right_bottom";
1390 color: 255 255 255 255;
1392 description { state: "animation" 0.0;
1393 inherit: "default" 0.0;
1394 color: 255 255 255 0;
1396 description { state: "disabled" 0.0;
1397 inherit: "default" 0.0;
1398 color: 255 255 255 153;
1401 part { name: "elm.text_new.clipper";
1403 description { state: "default" 0.0;
1406 to: "padding_left_top";
1410 to: "padding_right_bottom";
1412 color: 255 255 255 0;
1414 description { state: "animation" 0.0;
1415 inherit: "default" 0.0;
1416 color: 255 255 255 255;
1418 description { state: "disabled" 0.0;
1419 inherit: "default" 0.0;
1420 color: 255 255 255 153;
1423 part { name: "elm.icon.proxy.clipper";
1425 description { state: "default" 0.0;
1428 to: "padding_left_top";
1432 to: "padding_right_bottom";
1436 description { state: "animation" 0.0;
1437 inherit: "default" 0.0;
1440 description { state: "selected" 0.0;
1441 inherit: "default" 0.0;
1444 description { state: "disabled" 0.0;
1445 inherit: "default" 0.0;
1449 part { name: "elm.icon_new.proxy.clipper";
1451 description { state: "default" 0.0;
1454 to: "padding_left_top";
1458 to: "padding_right_bottom";
1462 description { state: "animation" 0.0;
1463 inherit: "default" 0.0;
1466 description { state: "selected" 0.0;
1467 inherit: "default" 0.0;
1470 description { state: "disabled" 0.0;
1471 inherit: "default" 0.0;
1476 part { name: "elm.icon.clipper";
1478 description { state: "default" 0.0;
1481 to: "padding_left_top";
1485 to: "padding_right_bottom";
1487 color: 255 255 255 255;
1489 description { state: "animation" 0.0;
1490 inherit: "default" 0.0;
1491 color: 255 255 255 255;
1493 description { state: "selected" 0.0;
1494 inherit: "default" 0.0;
1495 color: 255 255 255 255;
1497 description { state: "disabled" 0.0;
1498 inherit: "default" 0.0;
1499 color: 255 255 255 255;
1502 part { name: "elm.icon_new.clipper";
1504 description { state: "default" 0.0;
1507 to: "padding_left_top";
1511 to: "padding_right_bottom";
1513 color: 255 255 255 255;
1515 description { state: "animation" 0.0;
1516 inherit: "default" 0.0;
1517 color: 255 255 255 255;
1519 description { state: "selected" 0.0;
1520 inherit: "default" 0.0;
1521 color: 255 255 255 255;
1523 description { state: "disabled" 0.0;
1524 inherit: "default" 0.0;
1525 color: 255 255 255 255;
1528 part { name: "elm.text.dim.left";
1532 description { state: "default" 0.0;
1539 to_x: "elm.text.clipper";
1544 to_x: "elm.text.clipper";
1547 image.normal: "00_effect_tab_text_dim_left.png";
1549 description { state: "show" 0.0;
1550 inherit: "default" 0.0;
1554 part { name: "elm.text.dim.right";
1558 description { state: "default" 0.0;
1565 to_x: "elm.text.clipper";
1570 to_x: "elm.text.clipper";
1573 image.normal: "00_effect_tab_text_dim_right.png";
1575 description { state: "show" 0.0;
1576 inherit: "default" 0.0;
1580 part { name: "divider";
1583 description { state: "default" 0.0;
1594 description { state: "hidden" 0.0;
1595 inherit: "default" 0.0;
1599 part { name: "divider_left";
1602 description { state: "default" 0.0;
1603 color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
1614 part { name: "divider_right";
1617 description { state: "default" 0.0;
1618 color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;
1629 part { name: "highlight";
1632 description { state: "default" 0.0;
1635 normal: "00_tab_focus.png";
1640 description { state: "highlighted" 0.0;
1641 inherit: "default" 0.0;
1645 part { name: "event";
1652 description { state: "default" 0.0;
1656 // for debuging //////////////////////////////
1657 /* part { name: "dbg";
1661 description { state: "default" 0.0;
1662 rel1.relative: 1.0 0.0;
1663 rel2.relative: 1.0 0.0;
1667 style: "tabbar_text_style_30";
1675 program { name: "go_active";
1676 signal: "elm,state,selected";
1678 action: STATE_SET "selected" 0.0;
1679 target: "elm.icon.clipper";
1680 target: "elm.icon.proxy.clipper";
1681 target: "selected_line";
1682 after: "selected_text";
1684 program { name: "selected_text";
1688 get_state(PART:"elm.text", st, 30, vl);
1689 if (strcmp(st, "default"))
1690 run_program(PROGRAM:"slide_start");
1693 program { name: "go_passive";
1694 signal: "elm,state,unselected";
1696 action: STATE_SET "default" 0.0;
1697 target: "elm.icon.clipper";
1698 target: "elm.icon.proxy.clipper";
1699 target: "selected_line";
1700 after: "unselected_text";
1702 program { name: "unselected_text";
1706 get_state(PART:"elm.text", st, 30, vl);
1707 if (strcmp(st, "default"))
1708 run_program(PROGRAM:"slide_stop");
1711 program { name: "moving";
1712 signal: "elm,state,moving";
1714 action: STATE_SET "moving" 0.0;
1717 program { name: "pressed";
1718 signal: "mouse,down,1";
1720 action: STATE_SET "pressed" 0.0;
1730 new Float:dx, Float:dy;
1731 get_state(PART:"bg_cover", st, 30, vl);
1732 if (strcmp(st, "moving"))
1734 get_drag(PART:"event", dx, dy);
1735 if ((abs(dx)*abs(dx))+(abs(dy)*abs(dy)) > 400)
1737 set_drag(PART:"event", 0.0, 0.0);
1738 set_state(PART:"bg_cover", "default", 0.0);
1740 set_drag(PART:"event", 0.0, 0.0);
1744 program { name: "unpressed";
1745 signal: "mouse,up,1";
1748 set_drag(PART:"event", 0.0, 0.0);
1749 set_state(PART:"bg_cover", "default", 0.0);
1752 program { name: "go";
1753 signal: "mouse,clicked,1";
1755 action: SIGNAL_EMIT "elm,action,click" "elm";
1756 after: "play_sound";
1758 program { name: "play_sound";
1759 action: PLAY_SAMPLE "touch_sound" 1.0;
1761 program { name: "mouse,in";
1764 action: SIGNAL_EMIT "elm,mouse,in" "elm";
1766 program { name: "mouse,out";
1767 signal: "mouse,out";
1769 action: SIGNAL_EMIT "elm,mouse,out" "elm";
1771 program { name: "disable";
1772 signal: "elm,state,disabled";
1775 set_int(item_state, ITEM_STATE_DISABLED);
1776 set_state(PART:"bg", "disabled", 0.0);
1777 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1778 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1779 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
1780 run_program(PROGRAM:"label_set,animation,done");
1781 run_program(PROGRAM:"icon_set,animation,done");
1784 program { name: "enable";
1785 signal: "elm,state,enabled";
1788 set_int(item_state, ITEM_STATE_ENABLED);
1789 set_state(PART:"bg", "default", 0.0);
1790 set_state(PART:"elm.text.clipper", "default", 0.0);
1791 set_state(PART:"elm.icon.clipper", "default", 0.0);
1792 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
1793 run_program(PROGRAM:"label_set,animation,done");
1794 run_program(PROGRAM:"icon_set,animation,done");
1797 program { name: "label_set,animation,forward";
1798 signal: "elm,state,label_set,forward";
1800 after: "label_set,sync";
1802 program { name: "label_set,animation,backward";
1803 signal: "elm,state,label_set,backward";
1805 after: "label_set,sync";
1807 program { name: "label_set,sync";
1808 signal: "elm,state,label_set";
1813 get_state(PART:"elm.text", st, 30, vl);
1814 set_state(PART:"elm.text_new", st, vl);
1816 after: "label_set,animation";
1818 program { name: "label_set,animation";
1819 action: STATE_SET "animation" 0.0;
1820 target: "elm.text.clipper";
1821 target: "elm.text_new.clipper";
1822 after: "label_set,animation,done";
1824 program { name: "label_set,animation,done";
1825 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
1827 program { name: "label,reset";
1828 signal: "elm,state,label,reset";
1831 set_state(PART:"elm.text_new.clipper", "default", 0.0);
1832 if (get_int(item_state) != ITEM_STATE_DISABLED)
1833 set_state(PART:"elm.text.clipper", "default", 0.0);
1835 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1838 program { name: "icon_set,animation,forward";
1839 signal: "elm,state,icon_set,forward";
1841 after: "icon_set,animation";
1843 program { name: "icon_set,animation,backward";
1844 signal: "elm,state,icon_set,backward";
1846 after: "icon_set,animation";
1848 program { name: "icon_set,animation";
1849 signal: "elm,state,icon_set";
1851 action: STATE_SET "animation" 0.0;
1852 target: "elm.icon.clipper";
1853 target: "elm.icon_new.clipper";
1854 target: "elm.icon.proxy.clipper";
1855 target: "elm.icon_new.proxy.clipper";
1856 after: "icon_set,animation,done";
1858 program { name: "icon_set,animation,done";
1859 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
1861 program { name: "icon,reset";
1862 signal: "elm,state,icon,reset";
1865 set_state(PART:"elm.icon_new.clipper", "default", 0.0);
1866 if (get_int(item_state) != ITEM_STATE_DISABLED)
1868 set_state(PART:"elm.icon.clipper", "default", 0.0);
1869 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
1873 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1874 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
1878 program { name: "text_show";
1879 signal: "elm,state,text,visible";
1884 get_state(PART:"elm.swallow.icon", st, 30, vl);
1885 if (!strcmp(st, "icononly"))
1887 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1888 set_state(PART:"icon_rect", "visible", 0.0);
1889 set_state(PART:"padding_after_icon", "visible", 0.0);
1890 set_state(PART:"bg", "icon_text", 0.0);
1892 set_state(PART:"elm.text", "visible", 0.0);
1895 program { name: "text_hide";
1896 signal: "elm,state,text,hidden";
1901 get_state(PART:"elm.swallow.icon", st, 30, vl);
1902 if (strcmp(st, "default"))
1904 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1905 set_state(PART:"icon_rect", "icononly", 0.0);
1906 set_state(PART:"padding_after_icon", "icononly", 0.0);
1908 set_state(PART:"elm.text", "default", 0.0);
1909 set_state(PART:"bg", "default", 0.0);
1912 program { name: "icon_show";
1913 signal: "elm,state,icon,visible";
1918 get_state(PART:"elm.text", st, 30, vl);
1919 if (strncmp(st, "default", 7))
1921 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1922 set_state(PART:"icon_rect", "visible", 0.0);
1923 set_state(PART:"padding_after_icon", "visible", 0.0);
1924 set_state(PART:"bg", "icon_text", 0.0);
1928 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1929 set_state(PART:"icon_rect", "icononly", 0.0);
1930 set_state(PART:"padding_after_icon", "icononly", 0.0);
1934 program { name: "icon_hide";
1935 signal: "elm,state,icon,hidden";
1938 set_state(PART:"elm.swallow.icon", "default", 0.0);
1939 set_state(PART:"icon_rect", "default", 0.0);
1940 set_state(PART:"padding_after_icon", "default", 0.0);
1941 set_state(PART:"bg", "default", 0.0);
1944 program { name: "badge_show";
1945 signal: "elm,state,elm.text.badge,visible";
1947 action: STATE_SET "visible" 0.0;
1948 target: "elm.text.badge";
1949 target: "elm.image.badge";
1951 program { name: "badge_hide";
1952 signal: "elm,state,elm.text.badge,hidden";
1954 action: STATE_SET "default" 0.0;
1955 target: "elm.text.badge";
1956 target: "elm.image.badge";
1958 program { name: "divider_visible_1";
1959 signal: "elm,order,first,item";
1961 action: STATE_SET "default" 0.0;
1964 program { name: "divider_visible_2";
1965 signal: "elm,order,default,item";
1967 action: STATE_SET "default" 0.0;
1970 program { name: "divider_hidden";
1971 signal: "elm,order,last,item";
1973 action: STATE_SET "hidden" 0.0;
1976 program { name: "highlight_on";
1977 signal: "elm,highlight,on";
1979 action: STATE_SET "highlighted" 0.0;
1980 target: "highlight";
1982 program { name: "highlight_off";
1983 signal: "elm,highlight,off";
1985 action: STATE_SET "default" 0.0;
1986 target: "highlight";
1988 program { name: "tab_item_2";
1989 signal: "elm,number,item,2";
1992 set_int(items_number, 2);
1993 set_state(PART:"padding.badge", "default", 0.10);
1996 program { name: "tab_item_3";
1997 signal: "elm,number,item,3";
2000 set_int(items_number, 3);
2001 set_state(PART:"padding.badge", "default", 0.06);
2004 program { name: "tab_item_4";
2005 signal: "elm,number,item,4";
2008 set_int(items_number, 4);
2010 after: "tab_item_upper_4";
2012 program { name: "tab_item_5";
2013 signal: "elm,number,item,5";
2016 set_int(items_number, 5);
2018 after: "tab_item_upper_4";
2020 program { name: "tab_item_6";
2021 signal: "elm,number,item,6";
2024 set_int(items_number, 6);
2026 after: "tab_item_upper_4";
2028 program { name: "tab_item_7";
2029 signal: "elm,number,item,7";
2032 set_int(items_number, 7);
2034 after: "tab_item_upper_4";
2036 program { name: "tab_item_8";
2037 signal: "elm,number,item,8";
2040 set_int(items_number, 8);
2042 after: "tab_item_upper_4";
2044 program { name: "tab_item_9";
2045 signal: "elm,number,item,9";
2048 set_int(items_number, 9);
2050 after: "tab_item_upper_4";
2052 program { name: "tab_item_10";
2053 signal: "elm,number,item,10";
2056 set_int(items_number, 10);
2058 after: "tab_item_upper_4";
2060 program { name: "tab_item_upper_4";
2062 set_state(PART:"padding.badge", "default", 0.04);
2065 program { name: "slide_start";
2067 if (!get_int(sliding_timer) && !get_int(end_timer)) {
2068 set_int(sliding_timer, timer(1.5, "sliding", TOOLBAR_SLIDING_TEXT_OFFSET));
2072 program { name: "slide_stop";
2080 group { name: "elm/toolbar/base/tabbar/item_with_title";
2081 inherit: "elm/toolbar/base/tabbar";
2083 image: "00_sub_title_bg.png" COMP;
2086 part { name: "base_bg";
2090 state: "default" 0.0;
2100 normal: "00_sub_title_bg.png";
2109 group { name: "elm/toolbar/item/tabbar/item_with_title";
2110 inherit: "elm/toolbar/item/tabbar";
2112 image: "00_effect_tab_text_dim_left_02.png" COMP;
2113 image: "00_effect_tab_text_dim_right_02.png" COMP;
2116 part { name: "elm.text.dim.left";
2117 description { state: "default" 0.0;
2118 image.normal: "00_effect_tab_text_dim_left_02.png";
2120 description { state: "show" 0.0;
2121 inherit: "default" 0.0;
2125 part { name: "elm.text.dim.right";
2126 description { state: "default" 0.0;
2127 image.normal: "00_effect_tab_text_dim_right_02.png";
2129 description { state: "show" 0.0;
2130 inherit: "default" 0.0;
2134 part { name: "divider";
2137 description { state: "default" 0.0;
2148 description { state: "hidden" 0.0;
2149 inherit: "default" 0.0;
2153 part { name: "divider_left";
2156 description { state: "default" 0.0;
2157 color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
2168 part { name: "divider_right";
2171 description { state: "default" 0.0;
2172 color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;