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;
1495 to_x: "elm.text.clipper";
1500 to_x: "elm.text.clipper";
1503 image.normal: "00_effect_tab_text_dim_left.png";
1505 description { state: "show" 0.0;
1506 inherit: "default" 0.0;
1510 part { name: "elm.text.dim.right";
1514 description { state: "default" 0.0;
1521 to_x: "elm.text.clipper";
1526 to_x: "elm.text.clipper";
1529 image.normal: "00_effect_tab_text_dim_right.png";
1531 description { state: "show" 0.0;
1532 inherit: "default" 0.0;
1536 part { name: "divider";
1539 description { state: "default" 0.0;
1550 description { state: "hidden" 0.0;
1551 inherit: "default" 0.0;
1555 part { name: "divider_left";
1558 description { state: "default" 0.0;
1559 color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
1570 part { name: "divider_right";
1573 description { state: "default" 0.0;
1574 color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;
1585 part { name: "highlight";
1588 description { state: "default" 0.0;
1591 normal: "00_tab_focus.png";
1596 description { state: "highlighted" 0.0;
1597 inherit: "default" 0.0;
1601 part { name: "event";
1608 description { state: "default" 0.0;
1612 // for debuging //////////////////////////////
1613 /* part { name: "dbg";
1617 description { state: "default" 0.0;
1618 rel1.relative: 1.0 0.0;
1619 rel2.relative: 1.0 0.0;
1623 style: "tabbar_text_style_30";
1631 program { name: "go_active";
1632 signal: "elm,state,selected";
1634 action: STATE_SET "selected" 0.0;
1635 target: "elm.icon.clipper";
1636 target: "elm.icon.proxy.clipper";
1637 target: "selected_line";
1638 after: "selected_text";
1640 program { name: "selected_text";
1644 get_state(PART:"elm.text", st, 30, vl);
1645 if (strcmp(st, "default"))
1646 run_program(PROGRAM:"slide_start");
1649 program { name: "go_passive";
1650 signal: "elm,state,unselected";
1652 action: STATE_SET "default" 0.0;
1653 target: "elm.icon.clipper";
1654 target: "elm.icon.proxy.clipper";
1655 target: "selected_line";
1656 after: "unselected_text";
1658 program { name: "unselected_text";
1662 get_state(PART:"elm.text", st, 30, vl);
1663 if (strcmp(st, "default"))
1664 run_program(PROGRAM:"slide_stop");
1667 program { name: "moving";
1668 signal: "elm,state,moving";
1670 action: STATE_SET "moving" 0.0;
1673 program { name: "pressed";
1674 signal: "mouse,down,1";
1676 action: STATE_SET "pressed" 0.0;
1686 new Float:dx, Float:dy;
1687 get_state(PART:"bg_cover", st, 30, vl);
1688 if (strcmp(st, "moving"))
1690 get_drag(PART:"event", dx, dy);
1691 if ((abs(dx)*abs(dx))+(abs(dy)*abs(dy)) > 400)
1693 set_drag(PART:"event", 0.0, 0.0);
1694 set_state(PART:"bg_cover", "default", 0.0);
1696 set_drag(PART:"event", 0.0, 0.0);
1700 program { name: "unpressed";
1701 signal: "mouse,up,1";
1704 set_drag(PART:"event", 0.0, 0.0);
1705 set_state(PART:"bg_cover", "default", 0.0);
1708 program { name: "go";
1709 signal: "mouse,clicked,1";
1711 action: SIGNAL_EMIT "elm,action,click" "elm";
1712 after: "play_sound";
1714 program { name: "play_sound";
1715 action: PLAY_SAMPLE "touch_sound" 1.0;
1717 program { name: "mouse,in";
1720 action: SIGNAL_EMIT "elm,mouse,in" "elm";
1722 program { name: "mouse,out";
1723 signal: "mouse,out";
1725 action: SIGNAL_EMIT "elm,mouse,out" "elm";
1727 program { name: "disable";
1728 signal: "elm,state,disabled";
1731 set_int(item_state, ITEM_STATE_DISABLED);
1732 set_state(PART:"bg", "disabled", 0.0);
1733 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1734 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1735 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
1736 run_program(PROGRAM:"label_set,animation,done");
1737 run_program(PROGRAM:"icon_set,animation,done");
1740 program { name: "enable";
1741 signal: "elm,state,enabled";
1744 set_int(item_state, ITEM_STATE_ENABLED);
1745 set_state(PART:"bg", "default", 0.0);
1746 set_state(PART:"elm.text.clipper", "default", 0.0);
1747 set_state(PART:"elm.icon.clipper", "default", 0.0);
1748 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
1749 run_program(PROGRAM:"label_set,animation,done");
1750 run_program(PROGRAM:"icon_set,animation,done");
1753 program { name: "label_set,animation,forward";
1754 signal: "elm,state,label_set,forward";
1756 after: "label_set,sync";
1758 program { name: "label_set,animation,backward";
1759 signal: "elm,state,label_set,backward";
1761 after: "label_set,sync";
1763 program { name: "label_set,sync";
1764 signal: "elm,state,label_set";
1769 get_state(PART:"elm.text", st, 30, vl);
1770 set_state(PART:"elm.text_new", st, vl);
1772 after: "label_set,animation";
1774 program { name: "label_set,animation";
1775 action: STATE_SET "animation" 0.0;
1776 target: "elm.text.clipper";
1777 target: "elm.text_new.clipper";
1778 after: "label_set,animation,done";
1780 program { name: "label_set,animation,done";
1781 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
1783 program { name: "label,reset";
1784 signal: "elm,state,label,reset";
1787 set_state(PART:"elm.text_new.clipper", "default", 0.0);
1788 if (get_int(item_state) != ITEM_STATE_DISABLED)
1789 set_state(PART:"elm.text.clipper", "default", 0.0);
1791 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1794 program { name: "icon_set,animation,forward";
1795 signal: "elm,state,icon_set,forward";
1797 after: "icon_set,animation";
1799 program { name: "icon_set,animation,backward";
1800 signal: "elm,state,icon_set,backward";
1802 after: "icon_set,animation";
1804 program { name: "icon_set,animation";
1805 signal: "elm,state,icon_set";
1807 action: STATE_SET "animation" 0.0;
1808 target: "elm.icon.clipper";
1809 target: "elm.icon_new.clipper";
1810 target: "elm.icon.proxy.clipper";
1811 target: "elm.icon_new.proxy.clipper";
1812 after: "icon_set,animation,done";
1814 program { name: "icon_set,animation,done";
1815 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
1817 program { name: "icon,reset";
1818 signal: "elm,state,icon,reset";
1821 set_state(PART:"elm.icon_new.clipper", "default", 0.0);
1822 if (get_int(item_state) != ITEM_STATE_DISABLED)
1824 set_state(PART:"elm.icon.clipper", "default", 0.0);
1825 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
1829 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1830 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
1834 program { name: "text_show";
1835 signal: "elm,state,text,visible";
1840 get_state(PART:"elm.swallow.icon", st, 30, vl);
1841 if (!strcmp(st, "icononly"))
1843 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1844 set_state(PART:"icon_rect", "visible", 0.0);
1845 set_state(PART:"padding_after_icon", "visible", 0.0);
1846 set_state(PART:"bg", "icon_text", 0.0);
1848 set_state(PART:"elm.text", "visible", 0.0);
1851 program { name: "text_hide";
1852 signal: "elm,state,text,hidden";
1857 get_state(PART:"elm.swallow.icon", st, 30, vl);
1858 if (strcmp(st, "default"))
1860 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1861 set_state(PART:"icon_rect", "icononly", 0.0);
1862 set_state(PART:"padding_after_icon", "icononly", 0.0);
1864 set_state(PART:"elm.text", "default", 0.0);
1865 set_state(PART:"bg", "default", 0.0);
1868 program { name: "icon_show";
1869 signal: "elm,state,icon,visible";
1874 get_state(PART:"elm.text", st, 30, vl);
1875 if (strncmp(st, "default", 7))
1877 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1878 set_state(PART:"icon_rect", "visible", 0.0);
1879 set_state(PART:"padding_after_icon", "visible", 0.0);
1880 set_state(PART:"bg", "icon_text", 0.0);
1884 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1885 set_state(PART:"icon_rect", "icononly", 0.0);
1886 set_state(PART:"padding_after_icon", "icononly", 0.0);
1890 program { name: "icon_hide";
1891 signal: "elm,state,icon,hidden";
1894 set_state(PART:"elm.swallow.icon", "default", 0.0);
1895 set_state(PART:"icon_rect", "default", 0.0);
1896 set_state(PART:"padding_after_icon", "default", 0.0);
1897 set_state(PART:"bg", "default", 0.0);
1900 program { name: "badge_show";
1901 signal: "elm,state,elm.text.badge,visible";
1903 action: STATE_SET "visible" 0.0;
1904 target: "elm.text.badge";
1905 target: "elm.image.badge";
1907 program { name: "badge_hide";
1908 signal: "elm,state,elm.text.badge,hidden";
1910 action: STATE_SET "default" 0.0;
1911 target: "elm.text.badge";
1912 target: "elm.image.badge";
1914 program { name: "divider_visible";
1915 signal: "elm,order,first,item";
1916 signal: "elm,order,default,item";
1918 action: STATE_SET "default" 0.0;
1921 program { name: "divider_hidden";
1922 signal: "elm,order,last,item";
1924 action: STATE_SET "hidden" 0.0;
1927 program { name: "highlight_on";
1928 signal: "elm,highlight,on";
1930 action: STATE_SET "highlighted" 0.0;
1931 target: "highlight";
1933 program { name: "highlight_off";
1934 signal: "elm,highlight,off";
1936 action: STATE_SET "default" 0.0;
1937 target: "highlight";
1939 program { name: "tab_item_2";
1940 signal: "elm,number,item,2";
1943 set_int(items_number, 2);
1944 set_state(PART:"padding.badge", "default", 0.10);
1947 program { name: "tab_item_3";
1948 signal: "elm,number,item,3";
1951 set_int(items_number, 3);
1952 set_state(PART:"padding.badge", "default", 0.06);
1955 program { name: "tab_item_4";
1956 signal: "elm,number,item,4";
1959 set_int(items_number, 4);
1961 after: "tab_item_upper_4";
1963 program { name: "tab_item_5";
1964 signal: "elm,number,item,5";
1967 set_int(items_number, 5);
1969 after: "tab_item_upper_4";
1971 program { name: "tab_item_6";
1972 signal: "elm,number,item,6";
1975 set_int(items_number, 6);
1977 after: "tab_item_upper_4";
1979 program { name: "tab_item_7";
1980 signal: "elm,number,item,7";
1983 set_int(items_number, 7);
1985 after: "tab_item_upper_4";
1987 program { name: "tab_item_8";
1988 signal: "elm,number,item,8";
1991 set_int(items_number, 8);
1993 after: "tab_item_upper_4";
1995 program { name: "tab_item_9";
1996 signal: "elm,number,item,9";
1999 set_int(items_number, 9);
2001 after: "tab_item_upper_4";
2003 program { name: "tab_item_10";
2004 signal: "elm,number,item,10";
2007 set_int(items_number, 10);
2009 after: "tab_item_upper_4";
2011 program { name: "tab_item_upper_4";
2013 set_state(PART:"padding.badge", "default", 0.04);
2016 program { name: "slide_start";
2018 if (!get_int(sliding_timer) && !get_int(end_timer)) {
2019 set_int(sliding_timer, timer(1.5, "sliding", TOOLBAR_SLIDING_TEXT_OFFSET));
2023 program { name: "slide_stop";
2031 group { name: "elm/toolbar/base/tabbar/item_with_title";
2032 inherit: "elm/toolbar/base/tabbar";
2034 image: "00_sub_title_bg.png" COMP;
2037 part { name: "base_bg";
2041 state: "default" 0.0;
2051 normal: "00_sub_title_bg.png";
2060 group { name: "elm/toolbar/item/tabbar/item_with_title";
2061 inherit: "elm/toolbar/item/tabbar";
2063 image: "00_effect_tab_text_dim_left_02.png" COMP;
2064 image: "00_effect_tab_text_dim_right_02.png" COMP;
2067 part { name: "elm.text.dim.left";
2068 description { state: "default" 0.0;
2069 image.normal: "00_effect_tab_text_dim_left_02.png";
2071 description { state: "show" 0.0;
2072 inherit: "default" 0.0;
2076 part { name: "elm.text.dim.right";
2077 description { state: "default" 0.0;
2078 image.normal: "00_effect_tab_text_dim_right_02.png";
2080 description { state: "show" 0.0;
2081 inherit: "default" 0.0;
2085 part { name: "divider";
2088 description { state: "default" 0.0;
2099 description { state: "hidden" 0.0;
2100 inherit: "default" 0.0;
2104 part { name: "divider_left";
2107 description { state: "default" 0.0;
2108 color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
2119 part { name: "divider_right";
2122 description { state: "default" 0.0;
2123 color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;