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 image: "00_toolbar_bg.png" COMP;
70 description { state: "default" 0.0;
73 part { name: "base_bg";
87 normal: "00_toolbar_bg.png";
88 border: TOOLBAR_ITEM_BG_DEFAULT_BORDER_INC;
93 part { name: "clipper";
108 part { name: "elm.swallow.content";
112 state: "default" 0.0;
117 part { name: "event";
121 description { state: "default" 0.0;
128 group { name: "elm/toolbar/item/default";
130 image: "00_toolbar_press.png" COMP;
133 data.item: "transition_animation_on" "1";
135 public item_state = ITEM_STATE_ENABLED;
136 public items_number = 0;
143 description { state: "default" 0.0;
146 normal: "00_toolbar_press.png";
147 border: TOOLBAR_ITEM_BG_SELECTED_BORDER_INC;
151 description { state: "selected" 0.0;
152 inherit: "default" 0.0;
155 description { state: "disabled" 0.0;
156 inherit: "default" 0.0;
160 part { name: "padding_left_top";
164 description { state: "default" 0.0;
166 rel2.relative: 0.0 0.0;
172 description { state: "1_item" 0.0;
173 inherit: "default" 0.0;
176 description { state: "2_items" 0.0;
177 inherit: "default" 0.0;
180 description { state: "3_items" 0.0;
181 inherit: "default" 0.0;
185 part { name: "padding_right_bottom";
189 description { state: "default" 0.0;
191 rel1.relative: 1.0 1.0;
197 description { state: "1_item" 0.0;
198 inherit: "default" 0.0;
201 description { state: "2_items" 0.0;
202 inherit: "default" 0.0;
205 description { state: "3_items" 0.0;
206 inherit: "default" 0.0;
210 part { name: "elm.text";
214 clip_to: "elm.text.clipper";
215 description { state: "default" 0.0;
219 to: "padding_left_top";
223 to: "padding_right_bottom";
228 style: "toolbar_text_style_36";
232 description { state: "visible" 0.0;
233 inherit: "default" 0.0;
237 part { name: "elm.text_new";
241 clip_to: "elm.text_new.clipper";
242 description { state: "default" 0.0;
246 to: "padding_left_top";
250 to: "padding_right_bottom";
252 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
255 style: "toolbar_text_style_36";
259 description { state: "visible" 0.0;
260 inherit: "default" 0.0;
264 part { name: "elm.text.clipper";
266 description { state: "default" 0.0;
267 color: 255 255 255 255;
269 description { state: "animation" 0.0;
270 color: 255 255 255 0;
272 description { state: "disabled" 0.0;
273 color: 255 255 255 153;
276 part { name: "elm.text_new.clipper";
278 description { state: "default" 0.0;
279 color: 255 255 255 0;
281 description { state: "animation" 0.0;
282 color: 255 255 255 255;
284 description { state: "disabled" 0.0;
285 color: 255 255 255 153;
288 part { name: "divider";
291 description { state: "default" 0.0;
302 description { state: "hidden" 0.0;
303 inherit: "default" 0.0;
307 part { name: "divider_left";
310 description { state: "default" 0.0;
311 color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
322 part { name: "divider_right";
325 description { state: "default" 0.0;
326 color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;
337 part { name: "event";
340 ignore_flags: ON_HOLD;
341 description { state: "default" 0.0;
345 part { name: "event2";
349 description { state: "default" 0.0;
355 program { name: "pressed";
356 signal: "mouse,down,1";
359 if (get_int(item_state) != ITEM_STATE_DISABLED)
360 set_state(PART:"bg", "selected", 0.0);
362 transition: LINEAR 0.2;
364 program { name: "unpressed";
365 signal: "mouse,up,1";
367 action: STATE_SET "default" 0.0;
369 transition: LINEAR 0.1;
371 program { name: "go";
372 signal: "mouse,clicked,1";
374 action: SIGNAL_EMIT "elm,action,click" "elm";
376 program { name: "mouse,in";
379 action: SIGNAL_EMIT "elm,mouse,in" "elm";
381 program { name: "mouse,out";
384 action: SIGNAL_EMIT "elm,mouse,out" "elm";
386 program { name: "disable";
387 signal: "elm,state,disabled";
390 set_int(item_state, ITEM_STATE_DISABLED);
391 set_state(PART:"bg", "disabled", 0.0);
392 set_state(PART:"elm.text.clipper", "disabled", 0.0);
393 run_program(PROGRAM:"label_set,animation,done");
396 program { name: "enable";
397 signal: "elm,state,enabled";
400 set_int(item_state, ITEM_STATE_ENABLED);
401 set_state(PART:"bg", "default", 0.0);
402 set_state(PART:"elm.text.clipper", "default", 0.0);
403 run_program(PROGRAM:"label_set,animation,done");
406 program { name: "label_set,animation,forward";
407 signal: "elm,state,label_set,forward";
409 after: "label_set,sync";
411 program { name: "label_set,animation,backward";
412 signal: "elm,state,label_set,backward";
414 after: "label_set,sync";
416 program { name: "label_set,sync";
417 signal: "elm,state,label_set";
422 get_state(PART:"elm.text", st, 30, vl);
423 set_state(PART:"elm.text_new", st, vl);
425 after: "label_set,animation";
427 program { name: "label_set,animation";
428 action: STATE_SET "animation" 0.0;
429 target: "elm.text.clipper";
430 target: "elm.text_new.clipper";
431 transition: LINEAR 0.2;
432 after: "label_set,animation,done";
434 program { name: "label_set,animation,done";
435 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
437 program { name: "label,reset";
438 signal: "elm,state,label,reset";
441 set_state(PART:"elm.text_new.clipper", "default", 0.0);
442 if (get_int(item_state) != ITEM_STATE_DISABLED)
443 set_state(PART:"elm.text.clipper", "default", 0.0);
445 set_state(PART:"elm.text.clipper", "disabled", 0.0);
448 program { name: "text_show";
449 signal: "elm,state,text,visible";
452 set_state(PART:"elm.text", "visible", 0.0);
455 program { name: "text_hide";
456 signal: "elm,state,text,hidden";
459 set_state(PART:"elm.text", "default", 0.0);
462 program { name: "text_only_item_1";
463 signal: "elm,number,item,1";
466 set_int(items_number, 1);
467 set_state(PART:"padding_left_top", "1_item", 0.0);
468 set_state(PART:"padding_right_bottom", "1_item", 0.0);
471 program { name: "text_only_item_2";
472 signal: "elm,number,item,2";
475 set_int(items_number, 2);
476 set_state(PART:"padding_left_top", "2_items", 0.0);
477 set_state(PART:"padding_right_bottom", "2_items", 0.0);
480 program { name: "text_only_item_3";
481 signal: "elm,number,item,3";
484 set_int(items_number, 3);
485 set_state(PART:"padding_left_top", "3_items", 0.0);
486 set_state(PART:"padding_right_bottom", "3_items", 0.0);
489 program { name: "divider_visible";
490 signal: "elm,order,first,item";
491 signal: "elm,order,default,item";
493 action: STATE_SET "default" 0.0;
496 program { name: "divider_hidden";
497 signal: "elm,order,last,item";
499 action: STATE_SET "hidden" 0.0;
505 group { name: "elm/toolbar/separator/default";
507 part { name: "divider";
510 description { state: "default" 0.0;
522 part { name: "divider_left";
525 description { state: "default" 0.0;
526 color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
537 part { name: "divider_right";
540 description { state: "default" 0.0;
541 color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;
555 group { name: "elm/toolbar/object/default";
557 part { name: "elm.swallow.object"; // object group
560 state: "default" 0.0;
566 group { name: "elm/toolbar/base/tabbar";
568 image: "00_effect_tab_bounce_left.png" COMP;
569 image: "00_effect_tab_bounce_right.png" COMP;
570 image: "00_title_bg.png" COMP;
573 public left_timer, right_timer;
574 public l_timer(val) {
575 emit("do-hide-left-shadow", "");
576 set_int(left_timer, 0);
579 public r_timer(val) {
580 emit("do-hide-right-shadow", "");
581 set_int(right_timer, 0);
589 description { state: "default" 0.0;
592 part { name: "base_bg";
596 state: "default" 0.0;
606 normal: "00_title_bg.png";
610 part { name: "left_padding";
615 state: "default" 0.0;
622 rel1.relative: 0.0 0.0;
623 rel2.relative: 0.0 1.0;
626 part { name: "right_padding";
631 state: "default" 0.0;
638 rel1.relative: 1.0 0.0;
639 rel2.relative: 1.0 1.0;
642 part { name: "clipper";
647 state: "default" 0.0;
648 rel1.to: "left_padding";
649 rel1.relative: 1.0 0.0;
650 rel2.to: "right_padding";
651 rel2.relative: 0.0 1.0;
654 part { name: "elm.swallow.content";
659 state: "default" 0.0;
664 part { name: "left_shadow_clip";
668 description { state: "default" 0.0;
670 color: 255 255 255 0;
672 description { state: "show" 0.0;
675 part { name: "right_shadow_clip";
679 description { state: "default" 0.0;
681 color: 255 255 255 0;
683 description { state: "show" 0.0;
686 part { name: "shadow_left";
687 clip_to: "left_shadow_clip";
691 description { state: "default" 0.0;
695 color: 255 255 255 255;
696 rel1.relative: 0.0 0.0;
697 rel2.relative: 0.0 1.0;
698 image.normal: "00_effect_tab_bounce_left.png";
701 part { name: "shadow_right";
702 clip_to: "right_shadow_clip";
706 description { state: "default" 0.0;
710 color: 255 255 255 255;
711 rel1.relative: 1.0 0.0;
712 rel2.relative: 1.0 1.0;
713 image.normal: "00_effect_tab_bounce_right.png";
718 program { name: "load";
720 set_int(left_timer, 0);
721 set_int(right_timer, 0);
724 program { name: "left_shadow_show";
725 signal: "do-show-left-shadow";
727 action: STATE_SET "show" 0.0;
728 transition: LINEAR 0.3;
729 target: "left_shadow_clip";
731 program { name: "left_shadow_hide";
732 signal: "do-hide-left-shadow";
734 action: STATE_SET "default" 0.0;
735 transition: LINEAR 0.3;
736 target: "left_shadow_clip";
738 program { name: "right_shadow_show";
739 signal: "do-show-right-shadow";
741 action: STATE_SET "show" 0.0;
742 transition: LINEAR 0.3;
743 target: "right_shadow_clip";
745 program { name: "right_shadow_hide";
746 signal: "do-hide-right-shadow";
748 action: STATE_SET "default" 0.0;
749 transition: LINEAR 0.3;
750 target: "right_shadow_clip";
752 program { name: "edge_left";
753 signal: "elm,edge,left";
757 v = get_int(left_timer);
759 emit("do-show-left-shadow", "");
761 if (v > 0) cancel_timer(v);
762 v = timer(0.5, "l_timer", 0);
763 set_int(left_timer, v);
766 program { name: "edge_right";
767 signal: "elm,edge,right";
771 v = get_int(right_timer);
773 emit("do-show-right-shadow", "");
775 if (v > 0) cancel_timer(v);
776 v = timer(0.5, "r_timer", 0);
777 set_int(right_timer, v);
783 group { name: "elm/toolbar/item/tabbar";
785 image: "00_tab_press.png" COMP;
786 image: "00_badge_bg.png" COMP;
787 image: "00_tab_focus.png" COMP;
788 image: "00_tab_select_bar.png" COMP;
789 image: "00_effect_tab_text_dim_left.png" COMP;
790 image: "00_effect_tab_text_dim_right.png" COMP;
793 data.item: "transition_animation_on" "1";
795 public item_state = ITEM_STATE_ENABLED;
796 public items_number = 0;
797 public sliding_timer;
801 public loop_count = 0;
805 set_state(PART:"elm.text", "visible", 0.0);
806 get_geometry(PART:"elm.text", x, y, w, h);
807 set_int(org_text_w, w);
809 set_state(PART:"elm.text", "sliding", 0.0);
810 get_geometry(PART:"elm.text", x, y, w, h);
814 set_int(loop_count, 0);
815 if (get_int(sliding_timer)) cancel_timer(get_int(sliding_timer));
816 set_int(sliding_timer, 0);
817 if (get_int(end_timer)) cancel_timer(get_int(end_timer));
818 set_int(end_timer, 0);
819 set_state(PART:"elm.text.dim.left", "default", 0.0);
820 set_state(PART:"elm.text_new.clipper", "default", 0.0);
822 custom_state(PART:"elm.text", "sliding", 0.0);
823 set_state_val(PART:"elm.text", STATE_REL1_OFFSET, TOOLBAR_SLIDING_TEXT_OFFSET, 0);
824 set_state_val(PART:"elm.text", STATE_REL2_OFFSET, TOOLBAR_SLIDING_TEXT_OFFSET, 0);
825 set_state(PART:"elm.text", "custom", 0.0);
827 set_state(PART:"elm.text", "visible", 0.0);
828 set_state(PART:"elm.text.dim.right", "default", 0.0);
831 public sliding(val) {
833 if (val == TOOLBAR_SLIDING_TEXT_OFFSET) {
834 set_int(loop_count, get_int(loop_count) + 1);
836 if (get_int(text_w) <= get_int(org_text_w)) {
841 val -= TOOLBAR_SLIDING_PER_FPS;
842 // for debuging //////////////////////////////
843 /* snprintf(buf, 127, "%d:%d:%d",
844 val, get_int(org_text_w), get_int(text_w));
845 set_text(PART:"dbg", buf);*/
847 if (val <= -get_int(text_w) - TOOLBAR_SLIDING_TEXT_GAP + TOOLBAR_SLIDING_TEXT_OFFSET)
848 val = TOOLBAR_SLIDING_TEXT_OFFSET;
849 custom_state(PART:"elm.text", "sliding", 0.0);
850 set_state_val(PART:"elm.text", STATE_REL1_OFFSET, val, 0);
851 set_state_val(PART:"elm.text", STATE_REL2_OFFSET, val, 0);
852 set_state(PART:"elm.text", "custom", 0.0);
854 set_state(PART:"elm.text_new.clipper", "animation", 0.0);
855 get_text(PART:"elm.text", buf, 128);
856 set_text(PART:"elm.text_new", buf);
857 custom_state(PART:"elm.text_new", "sliding", 0.0);
858 set_state_val(PART:"elm.text_new", STATE_REL1_OFFSET,
859 val + get_int(text_w) + TOOLBAR_SLIDING_TEXT_GAP, 0);
860 set_state_val(PART:"elm.text_new", STATE_REL2_OFFSET,
861 val + get_int(text_w) + TOOLBAR_SLIDING_TEXT_GAP, 0);
862 set_state(PART:"elm.text_new", "custom", 0.0);
864 set_state(PART:"elm.text.dim.left", "show", 0.0);
865 set_state(PART:"elm.text.dim.right", "show", 0.0);
867 if (val == TOOLBAR_SLIDING_TEXT_OFFSET || val <= -get_int(text_w))
868 set_state(PART:"elm.text.dim.left", "default", 0.0);
870 if (val == TOOLBAR_SLIDING_TEXT_OFFSET) {
871 if (get_int(loop_count) < 3)
872 set_int(sliding_timer, timer(2.0, "sliding", TOOLBAR_SLIDING_TEXT_OFFSET));
874 set_int(end_timer, timer(0.5, "ender", 1));
876 set_int(sliding_timer, timer(1.0/TOOLBAR_SLIDING_FPS, "sliding", val));
884 description { state: "default" 0.0;
888 description { state: "icon_text" 0.0;
889 inherit: "default" 0.0;
893 part { name: "selected_line";
897 description { state: "default" 0.0;
905 normal: "00_tab_select_bar.png";
914 description { state: "selected" 0.0;
915 inherit: "default" 0.0;
919 part { name: "bg_cover";
923 description { state: "default" 0.0;
926 normal: "00_tab_press.png";
931 description { state: "pressed" 0.0;
932 inherit: "default" 0.0;
935 description { state: "moving" 0.0;
936 inherit: "default" 0.0;
940 part { name: "padding_left_top";
944 description { state: "default" 0.0;
946 rel2.relative: 0.0 0.0;
953 part { name: "padding_right_bottom";
957 description { state: "default" 0.0;
959 rel1.relative: 1.0 1.0;
971 description { state: "default" 0.0;
976 to: "padding_left_top";
980 to_x: "padding_right_bottom";
981 to_y: "padding_left_top";
986 description { state: "visible" 0.0;
987 inherit: "default" 0.0;
988 min: TABBAR_ITEM_ICON_SIZE_INC;
990 description { state: "icononly" 0.0;
991 inherit: "default" 0.0;
994 part { name: "padding_after_icon";
998 description { state: "default" 0.0; //when only icon or no icon is there
1004 rel2.to: "icon_rect";
1009 description { state: "visible" 0.0;
1010 inherit: "default" 0.0;
1013 description { state: "icononly" 0.0;
1014 inherit: "default" 0.0;
1017 part { name: "padding_before_text";
1021 description { state: "default" 0.0; //when only icon or no icon is there
1025 to_x: "padding_left_top";
1030 to_x: "padding_right_bottom";
1038 part { name: "elm.swallow.icon.proxy";
1041 clip_to: "elm.icon.proxy.clipper";
1042 description { state: "default" 0.0;
1043 source: "elm.swallow.icon";
1044 proxy.source_clip: 0;
1045 rel1.to: "elm.swallow.icon";
1047 rel2.to: "elm.swallow.icon";
1051 part { name: "elm.swallow.icon_new.proxy";
1054 clip_to: "elm.icon_new.proxy.clipper";
1055 description { state: "default" 0.0;
1056 source: "elm.swallow.icon_new";
1057 proxy.source_clip: 0;
1058 rel1.to: "elm.swallow.icon_new";
1060 rel2.to: "elm.swallow.icon_new";
1064 part { name: "elm.swallow.icon";
1067 clip_to: "elm.icon.clipper";
1068 description { state: "default" 0.0;
1070 min: TABBAR_ITEM_ICON_SIZE_INC;
1071 max: TABBAR_ITEM_ICON_SIZE_INC;
1073 to: "padding_left_top";
1076 to: "padding_right_bottom";
1079 aspect_preference: HORIZONTAL;
1081 description { state: "visible" 0.0;
1083 min: TABBAR_ITEM_ICON_SIZE_INC;
1084 max: TABBAR_ITEM_ICON_SIZE_INC;
1088 to_x: "padding_left_top";
1089 to_y: "padding_before_text";
1093 to_x: "padding_right_bottom";
1094 to_y: "padding_before_text";
1097 aspect_preference: HORIZONTAL;
1099 description { state: "icononly" 0.0;
1100 inherit: "default" 0.0;
1104 part { name: "elm.swallow.icon_new";
1107 clip_to: "elm.icon_new.clipper";
1108 description { state: "default" 0.0;
1110 min: TABBAR_ITEM_ICON_SIZE_INC;
1111 max: TABBAR_ITEM_ICON_SIZE_INC;
1112 rel1.to: "padding_left_top";
1113 rel2.to: "padding_right_bottom";
1115 aspect_preference: HORIZONTAL;
1117 description { state: "visible" 0.0;
1119 min: TABBAR_ITEM_ICON_SIZE_INC;
1120 max: TABBAR_ITEM_ICON_SIZE_INC;
1123 to_x: "padding_left_top";
1124 to_y: "padding_before_text";
1128 to_x: "padding_right_bottom";
1129 to_y: "padding_before_text";
1132 aspect_preference: HORIZONTAL;
1134 description { state: "icononly" 0.0;
1135 inherit: "default" 0.0;
1139 part { name: "elm.text";
1143 clip_to: "elm.text.clipper";
1144 description { state: "default" 0.0;
1148 to_x: "padding_left_top";
1149 to_y: "padding_after_icon";
1153 to: "padding_right_bottom";
1158 style: "tabbar_text_style_30";
1163 description { state: "visible" 0.0;
1164 inherit: "default" 0.0;
1167 description { state: "sliding" 0.0;
1168 inherit: "visible" 0.0;
1169 rel1.offset: TOOLBAR_SLIDING_TEXT_OFFSET 0;
1170 rel2.offset: TOOLBAR_SLIDING_TEXT_OFFSET 0;
1175 part { name: "elm.text_new";
1179 clip_to: "elm.text_new.clipper";
1180 description { state: "default" 0.0;
1184 to_x: "padding_left_top";
1185 to_y: "padding_after_icon";
1189 to: "padding_right_bottom";
1194 style: "tabbar_text_style_30";
1199 description { state: "visible" 0.0;
1200 inherit: "default" 0.0;
1203 description { state: "sliding" 0.0;
1204 inherit: "visible" 0.0;
1205 rel1.offset: TOOLBAR_SLIDING_TEXT_OFFSET 0;
1206 rel2.offset: TOOLBAR_SLIDING_TEXT_OFFSET 0;
1211 part { name: "padding.badge";
1215 description { state: "default" 0.0;
1227 description { state: "default" 0.10;
1228 inherit: "default" 0.0;
1231 description { state: "default" 0.06;
1232 inherit: "default" 0.0;
1235 description { state: "default" 0.04;
1236 inherit: "default" 0.0;
1240 part { name: "elm.image.badge";
1243 description { state: "default" 0.0;
1248 to: "left.padding.text";
1252 to: "right.padding.text";
1256 normal: "00_badge_bg.png";
1261 description { state: "visible" 0.0;
1262 inherit: "default" 0.0;
1266 part { name: "left.padding.text";
1270 state: "default" 0.0;
1275 to: "elm.text.badge";
1279 to: "elm.text.badge";
1285 part { name: "right.padding.text";
1289 state: "default" 0.0;
1294 to: "padding.badge";
1298 to: "padding.badge";
1304 part { name: "elm.text.badge";
1309 state: "default" 0.0;
1312 to: "right.padding.text";
1316 to: "right.padding.text";
1322 color: 250 250 250 255;
1324 font: "Tizen:style=Bold";
1327 text_class: "tizen";
1330 description { state: "visible" 0.0;
1331 inherit: "default" 0.0;
1335 part { name: "elm.text.clipper";
1337 description { state: "default" 0.0;
1340 to: "padding_left_top";
1344 to: "padding_right_bottom";
1346 color: 255 255 255 255;
1348 description { state: "animation" 0.0;
1349 inherit: "default" 0.0;
1350 color: 255 255 255 0;
1352 description { state: "disabled" 0.0;
1353 inherit: "default" 0.0;
1354 color: 255 255 255 153;
1357 part { name: "elm.text_new.clipper";
1359 description { state: "default" 0.0;
1362 to: "padding_left_top";
1366 to: "padding_right_bottom";
1368 color: 255 255 255 0;
1370 description { state: "animation" 0.0;
1371 inherit: "default" 0.0;
1372 color: 255 255 255 255;
1374 description { state: "disabled" 0.0;
1375 inherit: "default" 0.0;
1376 color: 255 255 255 153;
1379 part { name: "elm.icon.proxy.clipper";
1381 description { state: "default" 0.0;
1384 to: "padding_left_top";
1388 to: "padding_right_bottom";
1392 description { state: "animation" 0.0;
1393 inherit: "default" 0.0;
1396 description { state: "selected" 0.0;
1397 inherit: "default" 0.0;
1400 description { state: "disabled" 0.0;
1401 inherit: "default" 0.0;
1405 part { name: "elm.icon_new.proxy.clipper";
1407 description { state: "default" 0.0;
1410 to: "padding_left_top";
1414 to: "padding_right_bottom";
1418 description { state: "animation" 0.0;
1419 inherit: "default" 0.0;
1422 description { state: "selected" 0.0;
1423 inherit: "default" 0.0;
1426 description { state: "disabled" 0.0;
1427 inherit: "default" 0.0;
1432 part { name: "elm.icon.clipper";
1434 description { state: "default" 0.0;
1437 to: "padding_left_top";
1441 to: "padding_right_bottom";
1443 color: 255 255 255 255;
1445 description { state: "animation" 0.0;
1446 inherit: "default" 0.0;
1447 color: 255 255 255 255;
1449 description { state: "selected" 0.0;
1450 inherit: "default" 0.0;
1451 color: 255 255 255 255;
1453 description { state: "disabled" 0.0;
1454 inherit: "default" 0.0;
1455 color: 255 255 255 255;
1458 part { name: "elm.icon_new.clipper";
1460 description { state: "default" 0.0;
1463 to: "padding_left_top";
1467 to: "padding_right_bottom";
1469 color: 255 255 255 255;
1471 description { state: "animation" 0.0;
1472 inherit: "default" 0.0;
1473 color: 255 255 255 255;
1475 description { state: "selected" 0.0;
1476 inherit: "default" 0.0;
1477 color: 255 255 255 255;
1479 description { state: "disabled" 0.0;
1480 inherit: "default" 0.0;
1481 color: 255 255 255 255;
1484 part { name: "elm.text.dim.left";
1488 description { state: "default" 0.0;
1494 to_x: "elm.text.clipper";
1499 to_x: "elm.text.clipper";
1502 image.normal: "00_effect_tab_text_dim_left.png";
1504 description { state: "show" 0.0;
1505 inherit: "default" 0.0;
1509 part { name: "elm.text.dim.right";
1513 description { state: "default" 0.0;
1519 to_x: "elm.text.clipper";
1524 to_x: "elm.text.clipper";
1527 image.normal: "00_effect_tab_text_dim_right.png";
1529 description { state: "show" 0.0;
1530 inherit: "default" 0.0;
1534 part { name: "divider";
1537 description { state: "default" 0.0;
1548 description { state: "hidden" 0.0;
1549 inherit: "default" 0.0;
1553 part { name: "divider_left";
1556 description { state: "default" 0.0;
1557 color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
1568 part { name: "divider_right";
1571 description { state: "default" 0.0;
1572 color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;
1583 part { name: "highlight";
1586 description { state: "default" 0.0;
1589 normal: "00_tab_focus.png";
1594 description { state: "highlighted" 0.0;
1595 inherit: "default" 0.0;
1599 part { name: "event";
1606 description { state: "default" 0.0;
1610 // for debuging //////////////////////////////
1611 /* part { name: "dbg";
1615 description { state: "default" 0.0;
1616 rel1.relative: 1.0 0.0;
1617 rel2.relative: 1.0 0.0;
1621 style: "tabbar_text_style_30";
1629 program { name: "go_active";
1630 signal: "elm,state,selected";
1632 action: STATE_SET "selected" 0.0;
1633 target: "elm.icon.clipper";
1634 target: "elm.icon.proxy.clipper";
1635 target: "selected_line";
1636 after: "selected_text";
1638 program { name: "selected_text";
1642 get_state(PART:"elm.text", st, 30, vl);
1643 if (strcmp(st, "default"))
1644 run_program(PROGRAM:"slide_start");
1647 program { name: "go_passive";
1648 signal: "elm,state,unselected";
1650 action: STATE_SET "default" 0.0;
1651 target: "elm.icon.clipper";
1652 target: "elm.icon.proxy.clipper";
1653 target: "selected_line";
1654 after: "unselected_text";
1656 program { name: "unselected_text";
1660 get_state(PART:"elm.text", st, 30, vl);
1661 if (strcmp(st, "default"))
1662 run_program(PROGRAM:"slide_stop");
1665 program { name: "moving";
1666 signal: "elm,state,moving";
1668 action: STATE_SET "moving" 0.0;
1671 program { name: "pressed";
1672 signal: "mouse,down,1";
1674 action: STATE_SET "pressed" 0.0;
1684 new Float:dx, Float:dy;
1685 get_state(PART:"bg_cover", st, 30, vl);
1686 if (strcmp(st, "moving"))
1688 get_drag(PART:"event", dx, dy);
1689 if ((abs(dx)*abs(dx))+(abs(dy)*abs(dy)) > 400)
1691 set_drag(PART:"event", 0.0, 0.0);
1692 set_state(PART:"bg_cover", "default", 0.0);
1694 set_drag(PART:"event", 0.0, 0.0);
1698 program { name: "unpressed";
1699 signal: "mouse,up,1";
1702 set_drag(PART:"event", 0.0, 0.0);
1703 set_state(PART:"bg_cover", "default", 0.0);
1706 program { name: "go";
1707 signal: "mouse,clicked,1";
1709 action: SIGNAL_EMIT "elm,action,click" "elm";
1710 after: "play_sound";
1712 program { name: "play_sound";
1713 action: PLAY_SAMPLE "touch_sound" 1.0;
1715 program { name: "mouse,in";
1718 action: SIGNAL_EMIT "elm,mouse,in" "elm";
1720 program { name: "mouse,out";
1721 signal: "mouse,out";
1723 action: SIGNAL_EMIT "elm,mouse,out" "elm";
1725 program { name: "disable";
1726 signal: "elm,state,disabled";
1729 set_int(item_state, ITEM_STATE_DISABLED);
1730 set_state(PART:"bg", "disabled", 0.0);
1731 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1732 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1733 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
1734 run_program(PROGRAM:"label_set,animation,done");
1735 run_program(PROGRAM:"icon_set,animation,done");
1738 program { name: "enable";
1739 signal: "elm,state,enabled";
1742 set_int(item_state, ITEM_STATE_ENABLED);
1743 set_state(PART:"bg", "default", 0.0);
1744 set_state(PART:"elm.text.clipper", "default", 0.0);
1745 set_state(PART:"elm.icon.clipper", "default", 0.0);
1746 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
1747 run_program(PROGRAM:"label_set,animation,done");
1748 run_program(PROGRAM:"icon_set,animation,done");
1751 program { name: "label_set,animation,forward";
1752 signal: "elm,state,label_set,forward";
1754 after: "label_set,sync";
1756 program { name: "label_set,animation,backward";
1757 signal: "elm,state,label_set,backward";
1759 after: "label_set,sync";
1761 program { name: "label_set,sync";
1762 signal: "elm,state,label_set";
1767 get_state(PART:"elm.text", st, 30, vl);
1768 set_state(PART:"elm.text_new", st, vl);
1770 after: "label_set,animation";
1772 program { name: "label_set,animation";
1773 action: STATE_SET "animation" 0.0;
1774 target: "elm.text.clipper";
1775 target: "elm.text_new.clipper";
1776 after: "label_set,animation,done";
1778 program { name: "label_set,animation,done";
1779 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
1781 program { name: "label,reset";
1782 signal: "elm,state,label,reset";
1785 set_state(PART:"elm.text_new.clipper", "default", 0.0);
1786 if (get_int(item_state) != ITEM_STATE_DISABLED)
1787 set_state(PART:"elm.text.clipper", "default", 0.0);
1789 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1792 program { name: "icon_set,animation,forward";
1793 signal: "elm,state,icon_set,forward";
1795 after: "icon_set,animation";
1797 program { name: "icon_set,animation,backward";
1798 signal: "elm,state,icon_set,backward";
1800 after: "icon_set,animation";
1802 program { name: "icon_set,animation";
1803 signal: "elm,state,icon_set";
1805 action: STATE_SET "animation" 0.0;
1806 target: "elm.icon.clipper";
1807 target: "elm.icon_new.clipper";
1808 target: "elm.icon.proxy.clipper";
1809 target: "elm.icon_new.proxy.clipper";
1810 after: "icon_set,animation,done";
1812 program { name: "icon_set,animation,done";
1813 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
1815 program { name: "icon,reset";
1816 signal: "elm,state,icon,reset";
1819 set_state(PART:"elm.icon_new.clipper", "default", 0.0);
1820 if (get_int(item_state) != ITEM_STATE_DISABLED)
1822 set_state(PART:"elm.icon.clipper", "default", 0.0);
1823 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
1827 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1828 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
1832 program { name: "text_show";
1833 signal: "elm,state,text,visible";
1838 get_state(PART:"elm.swallow.icon", st, 30, vl);
1839 if (!strcmp(st, "icononly"))
1841 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1842 set_state(PART:"icon_rect", "visible", 0.0);
1843 set_state(PART:"padding_after_icon", "visible", 0.0);
1844 set_state(PART:"bg", "icon_text", 0.0);
1846 set_state(PART:"elm.text", "visible", 0.0);
1849 program { name: "text_hide";
1850 signal: "elm,state,text,hidden";
1855 get_state(PART:"elm.swallow.icon", st, 30, vl);
1856 if (strcmp(st, "default"))
1858 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1859 set_state(PART:"icon_rect", "icononly", 0.0);
1860 set_state(PART:"padding_after_icon", "icononly", 0.0);
1862 set_state(PART:"elm.text", "default", 0.0);
1863 set_state(PART:"bg", "default", 0.0);
1866 program { name: "icon_show";
1867 signal: "elm,state,icon,visible";
1872 get_state(PART:"elm.text", st, 30, vl);
1873 if (strncmp(st, "default", 7))
1875 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1876 set_state(PART:"icon_rect", "visible", 0.0);
1877 set_state(PART:"padding_after_icon", "visible", 0.0);
1878 set_state(PART:"bg", "icon_text", 0.0);
1882 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1883 set_state(PART:"icon_rect", "icononly", 0.0);
1884 set_state(PART:"padding_after_icon", "icononly", 0.0);
1888 program { name: "icon_hide";
1889 signal: "elm,state,icon,hidden";
1892 set_state(PART:"elm.swallow.icon", "default", 0.0);
1893 set_state(PART:"icon_rect", "default", 0.0);
1894 set_state(PART:"padding_after_icon", "default", 0.0);
1895 set_state(PART:"bg", "default", 0.0);
1898 program { name: "badge_show";
1899 signal: "elm,state,elm.text.badge,visible";
1901 action: STATE_SET "visible" 0.0;
1902 target: "elm.text.badge";
1903 target: "elm.image.badge";
1905 program { name: "badge_hide";
1906 signal: "elm,state,elm.text.badge,hidden";
1908 action: STATE_SET "default" 0.0;
1909 target: "elm.text.badge";
1910 target: "elm.image.badge";
1912 program { name: "divider_visible";
1913 signal: "elm,order,first,item";
1914 signal: "elm,order,default,item";
1916 action: STATE_SET "default" 0.0;
1919 program { name: "divider_hidden";
1920 signal: "elm,order,last,item";
1922 action: STATE_SET "hidden" 0.0;
1925 program { name: "highlight_on";
1926 signal: "elm,highlight,on";
1928 action: STATE_SET "highlighted" 0.0;
1929 target: "highlight";
1931 program { name: "highlight_off";
1932 signal: "elm,highlight,off";
1934 action: STATE_SET "default" 0.0;
1935 target: "highlight";
1937 program { name: "tab_item_2";
1938 signal: "elm,number,item,2";
1941 set_int(items_number, 2);
1942 set_state(PART:"padding.badge", "default", 0.10);
1945 program { name: "tab_item_3";
1946 signal: "elm,number,item,3";
1949 set_int(items_number, 3);
1950 set_state(PART:"padding.badge", "default", 0.06);
1953 program { name: "tab_item_4";
1954 signal: "elm,number,item,4";
1957 set_int(items_number, 4);
1959 after: "tab_item_upper_4";
1961 program { name: "tab_item_5";
1962 signal: "elm,number,item,5";
1965 set_int(items_number, 5);
1967 after: "tab_item_upper_4";
1969 program { name: "tab_item_6";
1970 signal: "elm,number,item,6";
1973 set_int(items_number, 6);
1975 after: "tab_item_upper_4";
1977 program { name: "tab_item_7";
1978 signal: "elm,number,item,7";
1981 set_int(items_number, 7);
1983 after: "tab_item_upper_4";
1985 program { name: "tab_item_8";
1986 signal: "elm,number,item,8";
1989 set_int(items_number, 8);
1991 after: "tab_item_upper_4";
1993 program { name: "tab_item_9";
1994 signal: "elm,number,item,9";
1997 set_int(items_number, 9);
1999 after: "tab_item_upper_4";
2001 program { name: "tab_item_10";
2002 signal: "elm,number,item,10";
2005 set_int(items_number, 10);
2007 after: "tab_item_upper_4";
2009 program { name: "tab_item_upper_4";
2011 set_state(PART:"padding.badge", "default", 0.04);
2014 program { name: "slide_start";
2016 if (!get_int(sliding_timer) && !get_int(end_timer)) {
2017 set_int(sliding_timer, timer(1.5, "sliding", TOOLBAR_SLIDING_TEXT_OFFSET));
2021 program { name: "slide_stop";
2029 group { name: "elm/toolbar/base/tabbar/item_with_title";
2030 inherit: "elm/toolbar/base/tabbar";
2032 image: "00_sub_title_bg.png" COMP;
2035 part { name: "base_bg";
2039 state: "default" 0.0;
2049 normal: "00_sub_title_bg.png";
2058 group { name: "elm/toolbar/item/tabbar/item_with_title";
2059 inherit: "elm/toolbar/item/tabbar";
2061 image: "00_effect_tab_text_dim_left_02.png" COMP;
2062 image: "00_effect_tab_text_dim_right_02.png" COMP;
2065 part { name: "elm.text.dim.left";
2066 description { state: "default" 0.0;
2067 image.normal: "00_effect_tab_text_dim_left_02.png";
2069 description { state: "show" 0.0;
2070 inherit: "default" 0.0;
2074 part { name: "elm.text.dim.right";
2075 description { state: "default" 0.0;
2076 image.normal: "00_effect_tab_text_dim_right_02.png";
2078 description { state: "show" 0.0;
2079 inherit: "default" 0.0;
2083 part { name: "divider";
2086 description { state: "default" 0.0;
2097 description { state: "hidden" 0.0;
2098 inherit: "default" 0.0;
2102 part { name: "divider_left";
2105 description { state: "default" 0.0;
2106 color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
2117 part { name: "divider_right";
2120 description { state: "default" 0.0;
2121 color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;