2 * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
4 * PROPRIETARY/CONFIDENTIAL
6 * This software is the confidential and proprietary information of SAMSUNG
7 * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8 * software is owned by Samsung and you shall not disclose such Confidential
9 * Information and shall use it only in accordance with the terms of the license
10 * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11 * representations or warranties about the suitability of the software, either
12 * express or implied, including but not limited to the implied warranties of
13 * merchantability, fitness for a particular purpose, or non-infringement.
14 * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15 * of or releated to this software.
19 #define ITEM_STATE_ENABLED 0
20 #define ITEM_STATE_DISABLED 1
22 group { name: "elm/toolbar/base/default";
24 image: "00_winset_control_toolbar_bg.png" COMP;
29 description { state: "default" 0.0;
30 image.normal: "00_winset_control_toolbar_bg.png";
33 part { name: "clipper";
48 part { name: "elm.swallow.content";
61 description { state: "default" 0.0;
68 group { name: "elm/toolbar/item/default";
70 image: "00_winset_toolbar_press.png" COMP;
73 style { name: "toolbar_style";
74 base: "font=SLP:style=Medium font_size="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC" align=center color="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXTBLOCK_COLOR_INC" wrap=mixed ellipsis=1 text_class=slp_medium";
77 tag: "hilight" "+ font=SLP:style=Bold";
78 tag: "b" "+ font=SLP:style=Bold";
83 data.item: "transition_animation_on" "1";
85 public item_state = ITEM_STATE_ENABLED;
90 description { state: "default" 0.0;
102 normal: "00_winset_toolbar_press.png";
108 description { state: "selected" 0.0;
109 inherit: "default" 0.0;
111 color: 255 255 255 255;
113 description { state: "disabled" 0.0;
114 inherit: "default" 0.0;
116 color: 255 255 255 0;
119 part { name: "padding_left_top";
123 description { state: "default" 0.0;
125 rel2.relative: 0.0 0.0;
132 part { name: "padding_right_bottom";
136 description { state: "default" 0.0;
138 rel1.relative: 1.0 1.0;
150 description { state: "default" 0.0;
155 to: "padding_left_top";
159 to_x: "padding_right_bottom";
160 to_y: "padding_left_top";
165 description { state: "visible" 0.0;
166 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
170 to: "padding_left_top";
174 to_x: "padding_right_bottom";
175 to_y: "padding_left_top";
180 description { state: "icononly" 0.0;
181 inherit: "default" 0.0;
184 part { name: "padding_after_icon";
188 description { state: "default" 0.0; //when only icon or no icon is there
194 rel2.to: "icon_rect";
199 description { state: "visible" 0.0;
200 inherit: "default" 0.0;
202 description { state: "icononly" 0.0;
203 inherit: "default" 0.0;
206 part { name: "padding_before_text";
210 description { state: "default" 0.0; //when only icon or no icon is there
214 to_x: "padding_left_top";
219 to_x: "padding_right_bottom";
227 part { name: "elm.swallow.icon";
230 clip_to: "elm.icon.clipper";
231 description { state: "default" 0.0;
236 to: "padding_left_top";
240 to_x: "padding_right_bottom";
241 to_y: "padding_left_top";
245 description { state: "visible" 0.0;
247 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
248 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
251 to: "padding_left_top";
255 to_x: "padding_right_bottom";
256 to_y: "padding_before_text";
259 aspect_preference: HORIZONTAL;
261 description { state: "icononly" 0.0;
262 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
263 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
266 to: "padding_left_top";
270 to: "padding_right_bottom";
273 aspect_preference: HORIZONTAL;
276 part { name: "elm.swallow.icon_new";
279 clip_to: "elm.icon_new.clipper";
280 description { state: "default" 0.0;
285 to: "padding_left_top";
289 to_x: "padding_right_bottom";
290 to_y: "padding_left_top";
294 description { state: "visible" 0.0;
296 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
297 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
300 to: "padding_left_top";
304 to_x: "padding_right_bottom";
305 to_y: "padding_before_text";
308 aspect_preference: HORIZONTAL;
310 description { state: "icononly" 0.0;
311 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
312 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
315 to: "padding_left_top";
319 to: "padding_right_bottom";
322 aspect_preference: HORIZONTAL;
325 part { name: "elm.text";
329 clip_to: "elm.text.clipper";
330 description { state: "default" 0.0;
334 to_x: "padding_left_top";
335 to_y: "padding_after_icon";
339 to: "padding_right_bottom";
341 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
344 style: "toolbar_style";
348 description { state: "selected" 0.0;
349 inherit: "default" 0.0;
352 description { state: "visible" 0.0;
353 inherit: "default" 0.0;
356 description { state: "clicked" 0.0;
357 inherit: "default" 0.0;
359 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
361 description { state: "focused" 0.0;
362 inherit: "default" 0.0;
364 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
367 part { name: "elm.text_new";
371 clip_to: "elm.text_new.clipper";
372 description { state: "default" 0.0;
376 to_x: "padding_left_top";
377 to_y: "padding_after_icon";
381 to: "padding_right_bottom";
383 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
386 style: "toolbar_style";
390 description { state: "visible" 0.0;
391 inherit: "default" 0.0;
394 description { state: "clicked" 0.0;
395 inherit: "default" 0.0;
397 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
399 description { state: "focused" 0.0;
400 inherit: "default" 0.0;
402 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
405 part { name: "elm.text.clipper";
407 description { state: "default" 0.0;
408 color: 255 255 255 255;
410 description { state: "animation" 0.0;
411 color: 255 255 255 0;
413 description { state: "disabled" 0.0;
414 color: 255 255 255 153;
417 part { name: "elm.text_new.clipper";
419 description { state: "default" 0.0;
420 color: 255 255 255 0;
422 description { state: "animation" 0.0;
423 color: 255 255 255 255;
425 description { state: "disabled" 0.0;
426 color: 255 255 255 153;
429 part { name: "elm.icon.clipper";
431 description { state: "default" 0.0;
432 color: 255 255 255 255;
434 description { state: "animation" 0.0;
435 color: 255 255 255 0;
437 description { state: "disabled" 0.0;
438 color: 255 255 255 153;
441 part { name: "elm.icon_new.clipper";
443 description { state: "default" 0.0;
444 color: 255 255 255 0;
446 description { state: "animation" 0.0;
447 color: 255 255 255 255;
449 description { state: "disabled" 0.0;
450 color: 255 255 255 153;
453 part { name: "event";
456 ignore_flags: ON_HOLD;
457 description { state: "default" 0.0;
461 part { name: "event2";
465 description { state: "default" 0.0;
471 program { name: "pressed";
472 signal: "mouse,down,1";
475 if (get_int(item_state) != ITEM_STATE_DISABLED)
476 set_state(PART:"bg", "selected", 0.0);
478 transition: LINEAR 0.2;
480 program { name: "unpressed";
481 signal: "mouse,up,1";
483 action: STATE_SET "default" 0.0;
485 transition: LINEAR 0.1;
487 program { name: "go";
488 signal: "mouse,clicked,1";
490 action: SIGNAL_EMIT "elm,action,click" "elm";
492 program { name: "mouse,in";
495 action: SIGNAL_EMIT "elm,mouse,in" "elm";
497 program { name: "mouse,out";
500 action: SIGNAL_EMIT "elm,mouse,out" "elm";
502 program { name: "disable";
503 signal: "elm,state,disabled";
506 set_int(item_state, ITEM_STATE_DISABLED);
507 set_state(PART:"bg", "disabled", 0.0);
508 set_state(PART:"elm.text.clipper", "disabled", 0.0);
509 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
510 run_program(PROGRAM:"label_set,animation,done");
511 run_program(PROGRAM:"icon_set,animation,done");
514 program { name: "enable";
515 signal: "elm,state,enabled";
518 set_int(item_state, ITEM_STATE_ENABLED);
519 set_state(PART:"bg", "default", 0.0);
520 set_state(PART:"elm.text.clipper", "default", 0.0);
521 set_state(PART:"elm.icon.clipper", "default", 0.0);
522 run_program(PROGRAM:"label_set,animation,done");
523 run_program(PROGRAM:"icon_set,animation,done");
526 program { name: "label_set,animation,forward";
527 signal: "elm,state,label_set,forward";
529 after: "label_set,animation";
531 program { name: "label_set,animation,backward";
532 signal: "elm,state,label_set,backward";
534 after: "label_set,animation";
536 program { name: "label_set,animation";
537 signal: "elm,state,label_set";
539 action: STATE_SET "animation" 0.0;
540 target: "elm.text.clipper";
541 target: "elm.text_new.clipper";
542 transition: LINEAR 0.2;
543 after: "label_set,animation,done";
545 program { name: "label_set,animation,done";
546 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
548 program { name: "label,reset";
549 signal: "elm,state,label,reset";
552 set_state(PART:"elm.text_new.clipper", "default", 0.0);
553 if (get_int(item_state) != ITEM_STATE_DISABLED)
554 set_state(PART:"elm.text.clipper", "default", 0.0);
556 set_state(PART:"elm.text.clipper", "disabled", 0.0);
559 program { name: "icon_set,animation,forward";
560 signal: "elm,state,icon_set,forward";
562 after: "icon_set,animation";
564 program { name: "icon_set,animation,backward";
565 signal: "elm,state,icon_set,backward";
567 after: "icon_set,animation";
569 program { name: "icon_set,animation";
570 signal: "elm,state,icon_set";
572 action: STATE_SET "animation" 0.0;
573 target: "elm.icon.clipper";
574 target: "elm.icon_new.clipper";
575 transition: LINEAR 0.2;
576 after: "icon_set,animation,done";
578 program { name: "icon_set,animation,done";
579 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
581 program { name: "icon,reset";
582 signal: "elm,state,icon,reset";
585 set_state(PART:"elm.icon_new.clipper", "default", 0.0);
586 if (get_int(item_state) != ITEM_STATE_DISABLED)
587 set_state(PART:"elm.icon.clipper", "default", 0.0);
589 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
592 program { name: "text_show";
593 signal: "elm,state,text,visible";
598 get_state(PART:"elm.swallow.icon", st, 30, vl);
599 if (!strcmp(st, "icononly"))
601 set_state(PART:"elm.swallow.icon", "visible", 0.0);
602 set_state(PART:"icon_rect", "visible", 0.0);
603 set_state(PART:"padding_after_icon", "visible", 0.0);
605 set_state(PART:"elm.text", "visible", 0.0);
608 program { name: "text_hide";
609 signal: "elm,state,text,hidden";
614 get_state(PART:"elm.swallow.icon", st, 30, vl);
615 if (!strcmp(st, "visible"))
617 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
618 set_state(PART:"icon_rect", "icononly", 0.0);
619 set_state(PART:"padding_after_icon", "icononly", 0.0);
621 set_state(PART:"elm.text", "default", 0.0);
624 program { name: "icon_show";
625 signal: "elm,state,icon,visible";
630 get_state(PART:"elm.text", st, 30, vl);
631 if (!strcmp(st, "visible"))
633 set_state(PART:"elm.swallow.icon", "visible", 0.0);
634 set_state(PART:"icon_rect", "visible", 0.0);
635 set_state(PART:"padding_after_icon", "visible", 0.0);
639 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
640 set_state(PART:"icon_rect", "icononly", 0.0);
641 set_state(PART:"padding_after_icon", "icononly", 0.0);
648 group { name: "elm/toolbar/item/item_horizontal";
649 inherit: "elm/toolbar/item/default";
651 public item_state = ITEM_STATE_ENABLED;
654 part { name: "icon_rect";
655 description { state: "default" 0.0;
659 description { state: "visible" 0.0;
663 to_x: "padding_left_top";
664 to_y: "padding_right_bottom";
669 part { name: "padding_after_icon";
670 description { state: "default" 0.0; //when only icon or no icon is there
671 rel1.relative: 1.0 0.0;
674 description { state: "visible" 0.0;
675 inherit: "default" 0.0;
679 part { name: "padding_before_text";
680 description { state: "default" 0.0; //when only icon or no icon is there
685 to_y: "padding_left_top";
689 to_y: "padding_right_bottom";
695 part { name: "elm.swallow.icon";
696 description { state: "default" 0.0;
700 to_x: "padding_left_top";
701 to_y: "padding_right_bottom";
705 description { state: "visible" 0.0;
710 to_x: "padding_before_text";
711 to_y: "padding_left_top";
715 to_x: "padding_before_text";
716 to_y: "padding_right_bottom";
718 aspect_preference: VERTICAL;
720 description { state: "icononly" 0.0;
721 aspect_preference: VERTICAL;
724 part { name: "elm.swallow.icon_new";
725 description { state: "default" 0.0;
729 to_x: "padding_left_top";
730 to_y: "padding_right_bottom";
734 description { state: "visible" 0.0;
739 to_x: "padding_before_text";
740 to_y: "padding_left_top";
744 to_x: "padding_before_text";
745 to_y: "padding_right_bottom";
747 aspect_preference: VERTICAL;
749 description { state: "icononly" 0.0;
750 aspect_preference: VERTICAL;
753 part { name: "elm.text";
755 description { state: "default" 0.0;
758 to_x: "padding_after_icon";
759 to_y: "padding_left_top";
762 style: "toolbar_style";
766 description { state: "selected" 0.0;
767 inherit: "default" 0.0;
770 description { state: "visible" 0.0;
771 inherit: "default" 0.0;
774 description { state: "clicked" 0.0;
775 inherit: "default" 0.0;
777 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
779 description { state: "focused" 0.0;
780 inherit: "default" 0.0;
782 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
785 part { name: "elm.text_new";
787 description { state: "default" 0.0;
790 to_x: "padding_after_icon";
791 to_y: "padding_left_top";
794 style: "toolbar_style";
798 description { state: "selected" 0.0;
799 inherit: "default" 0.0;
802 description { state: "visible" 0.0;
803 inherit: "default" 0.0;
806 description { state: "clicked" 0.0;
807 inherit: "default" 0.0;
809 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
811 description { state: "focused" 0.0;
812 inherit: "default" 0.0;
814 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
820 group { name: "elm/toolbar/separator/default";
824 description { state: "default" 0.0;
830 part { name: "separator_left";
832 description { state: "default" 0.0;
844 color: TOOLBAR_ITEM_SEPARATOR_LEFT_COLOR_INC;
847 part { name: "separator_middle";
849 description { state: "default" 0.0;
856 to: "separator_left";
861 to: "separator_left";
863 color: TOOLBAR_ITEM_SEPARATOR_MIDDLE_COLOR_INC;
866 part { name: "separator_right";
868 description { state: "default" 0.0;
875 to: "separator_middle";
880 to: "separator_middle";
882 color: TOOLBAR_ITEM_SEPARATOR_RIGHT_COLOR_INC;
888 group { name: "elm/toolbar/object/default";
890 part { name: "elm.swallow.object"; // object group
893 state: "default" 0.0;
899 group { name: "elm/toolbar/base/tabbar";
900 alias: "elm/toolbar/base/tabbar/item_horizontal";
902 image: "00_winset_title_tabbar_bg.png" COMP;
908 description { state: "default" 0.0;
909 image.normal: "00_winset_title_tabbar_bg.png";
912 part { name: "clipper";
916 state: "default" 0.0;
927 part { name: "elm.swallow.content";
931 state: "default" 0.0;
936 part { name: "event";
940 description { state: "default" 0.0;
947 group { name: "elm/toolbar/more/tabbar";
949 image: "00_winset_control_tab_h_line_h.png" COMP;
954 description { state: "default" 0.0;
955 rel1.relative: 0.0 0.0;
956 rel2.relative: 1.0 0.0;
957 image.normal: "00_winset_title_tabbar_bg.png";
959 description { state: "open" 0.0;
960 inherit: "default" 0.0;
961 rel2.relative: 1.0 1.0;
963 description { state: "open2" 0.0;
964 inherit: "default" 0.0;
965 rel2.relative: 1.0 2.0;
968 part { name: "clipper";
972 state: "default" 0.0;
981 description { state: "open" 0.0;
982 inherit: "default" 0.0;
983 rel2.relative: 1.0 1.0;
985 description { state: "open2" 0.0;
986 inherit: "default" 0.0;
987 rel2.relative: 1.0 0.5;
990 part { name: "clipper2";
994 state: "default" 0.0;
1004 description { state: "open" 0.0;
1005 inherit: "default" 0.0;
1006 rel1.relative: 0.0 1.0;
1008 description { state: "open2" 0.0;
1009 inherit: "default" 0.0;
1010 rel1.relative: 0.0 0.5;
1013 part { name: "elm.swallow.content";
1017 state: "default" 0.0;
1023 part { name: "elm.swallow.content2";
1024 clip_to: "clipper2";
1027 state: "default" 0.0;
1029 rel1.to: "clipper2";
1030 rel2.to: "clipper2";
1033 part { name: "separator";
1035 description { state: "default" 0.0;
1050 normal: "00_winset_control_tab_h_line_h.png";
1058 part { name: "separator2";
1059 clip_to: "clipper2";
1060 description { state: "default" 0.0;
1075 normal: "00_winset_control_tab_h_line_h.png";
1085 program { name: "open";
1086 signal: "elm,state,open";
1088 action: STATE_SET "open" 0.0;
1092 transition: LINEAR 0.2;
1094 program { name: "open2";
1095 signal: "elm,state,open2";
1097 action: STATE_SET "open2" 0.0;
1101 transition: LINEAR 0.2;
1103 program { name: "close";
1104 signal: "elm,state,close";
1106 action: STATE_SET "default" 0.0;
1108 transition: LINEAR 0.2;
1113 group { name: "elm/toolbar/item/tabbar";
1115 image: "00_winset_tabbar_focus.png" COMP;
1116 image: "00_tab_move_bg.png" COMP;
1119 data.item: "transition_animation_on" "1";
1121 public item_state = ITEM_STATE_ENABLED;
1126 description { state: "default" 0.0;
1128 color: 255 255 255 0;
1130 normal: "00_winset_tabbar_focus.png";
1132 image.middle: SOLID;
1135 description { state: "selected" 0.0;
1136 inherit: "default" 0.0;
1138 color: 255 255 255 255;
1140 description { state: "disabled" 0.0;
1141 inherit: "default" 0.0;
1143 color: 255 255 255 0;
1145 description { state: "moving" 0.0;
1146 inherit: "default" 0.0;
1148 image.normal: "00_tab_move_bg.png";
1149 image.border: 10 10 10 10;
1150 color: 255 255 255 255;
1153 part { name: "padding_left_top";
1157 description { state: "default" 0.0;
1159 rel2.relative: 0.0 0.0;
1166 part { name: "padding_right_bottom";
1170 description { state: "default" 0.0;
1172 rel1.relative: 1.0 1.0;
1184 description { state: "default" 0.0;
1189 to: "padding_left_top";
1193 to_x: "padding_right_bottom";
1194 to_y: "padding_left_top";
1199 description { state: "visible" 0.0;
1200 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1204 to: "padding_left_top";
1208 to_x: "padding_right_bottom";
1209 to_y: "padding_left_top";
1214 description { state: "icononly" 0.0;
1215 inherit: "default" 0.0;
1218 part { name: "padding_after_icon";
1222 description { state: "default" 0.0; //when only icon or no icon is there
1228 rel2.to: "icon_rect";
1233 description { state: "visible" 0.0;
1239 rel2.to: "icon_rect";
1244 description { state: "icononly" 0.0;
1245 inherit: "default" 0.0;
1248 part { name: "padding_before_text";
1252 description { state: "default" 0.0; //when only icon or no icon is there
1256 to_x: "padding_left_top";
1261 to_x: "padding_right_bottom";
1269 part { name: "elm.swallow.icon";
1272 clip_to: "elm.icon.clipper";
1273 description { state: "default" 0.0;
1278 to: "padding_left_top";
1282 to_x: "padding_right_bottom";
1283 to_y: "padding_left_top";
1287 description { state: "visible" 0.0;
1289 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1290 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1293 to: "padding_left_top";
1297 to_x: "padding_right_bottom";
1298 to_y: "padding_before_text";
1301 aspect_preference: HORIZONTAL;
1303 description { state: "icononly" 0.0;
1304 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1305 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1308 to: "padding_left_top";
1312 to: "padding_right_bottom";
1315 aspect_preference: HORIZONTAL;
1318 part { name: "elm.swallow.icon_new";
1321 clip_to: "elm.icon_new.clipper";
1322 description { state: "default" 0.0;
1327 to: "padding_left_top";
1331 to_x: "padding_right_bottom";
1332 to_y: "padding_left_top";
1336 description { state: "visible" 0.0;
1338 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1339 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1342 to: "padding_left_top";
1346 to_x: "padding_right_bottom";
1347 to_y: "padding_before_text";
1350 aspect_preference: HORIZONTAL;
1352 description { state: "icononly" 0.0;
1353 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1354 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1357 to: "padding_left_top";
1361 to: "padding_right_bottom";
1364 aspect_preference: HORIZONTAL;
1367 part { name: "elm.text";
1371 clip_to: "elm.text.clipper";
1372 description { state: "default" 0.0;
1376 to_x: "padding_left_top";
1377 to_y: "padding_after_icon";
1381 to: "padding_right_bottom";
1383 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1386 style: "toolbar_style";
1390 description { state: "selected" 0.0;
1391 inherit: "default" 0.0;
1394 description { state: "visible" 0.0;
1395 inherit: "default" 0.0;
1398 description { state: "clicked" 0.0;
1399 inherit: "default" 0.0;
1401 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1403 description { state: "focused" 0.0;
1404 inherit: "default" 0.0;
1406 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1409 part { name: "elm.text_new";
1413 clip_to: "elm.text_new.clipper";
1414 description { state: "default" 0.0;
1418 to_x: "padding_left_top";
1419 to_y: "padding_after_icon";
1423 to: "padding_right_bottom";
1425 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1428 style: "toolbar_style";
1432 description { state: "visible" 0.0;
1433 inherit: "default" 0.0;
1436 description { state: "clicked" 0.0;
1437 inherit: "default" 0.0;
1439 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1441 description { state: "focused" 0.0;
1442 inherit: "default" 0.0;
1444 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1447 part { name: "elm.text.clipper";
1449 description { state: "default" 0.0;
1450 color: 255 255 255 255;
1452 description { state: "animation" 0.0;
1453 color: 255 255 255 0;
1455 description { state: "disabled" 0.0;
1456 color: 255 255 255 153;
1459 part { name: "elm.text_new.clipper";
1461 description { state: "default" 0.0;
1462 color: 255 255 255 0;
1464 description { state: "animation" 0.0;
1465 color: 255 255 255 255;
1467 description { state: "disabled" 0.0;
1468 color: 255 255 255 153;
1471 part { name: "elm.icon.clipper";
1473 description { state: "default" 0.0;
1474 color: 255 255 255 255;
1476 description { state: "animation" 0.0;
1477 color: 255 255 255 0;
1479 description { state: "disabled" 0.0;
1480 color: 255 255 255 153;
1483 part { name: "elm.icon_new.clipper";
1485 description { state: "default" 0.0;
1486 color: 255 255 255 0;
1488 description { state: "animation" 0.0;
1489 color: 255 255 255 255;
1491 description { state: "disabled" 0.0;
1492 color: 255 255 255 153;
1495 part { name: "event";
1498 ignore_flags: ON_HOLD;
1499 description { state: "default" 0.0;
1505 program { name: "go_active";
1506 signal: "elm,state,selected";
1508 action: STATE_SET "selected" 0.0;
1510 transition: LINEAR 0.2;
1512 program { name: "go_passive";
1513 signal: "elm,state,unselected";
1515 action: STATE_SET "default" 0.0;
1517 transition: LINEAR 0.1;
1519 program { name: "moving";
1520 signal: "elm,state,moving";
1522 action: STATE_SET "moving" 0.0;
1525 /* program { name: "pressed";
1526 signal: "mouse,down,1";
1528 action: STATE_SET "selected" 0.0;
1531 target: "elm.text_new";
1532 transition: LINEAR 0.2;
1534 program { name: "unpressed";
1535 signal: "mouse,up,1";
1537 action: STATE_SET "default" 0.0;
1540 target: "elm.text_new";
1541 transition: LINEAR 0.1;
1543 program { name: "go";
1544 signal: "mouse,clicked,1";
1546 action: SIGNAL_EMIT "elm,action,click" "elm";
1548 program { name: "mouse,in";
1551 action: SIGNAL_EMIT "elm,mouse,in" "elm";
1553 program { name: "mouse,out";
1554 signal: "mouse,out";
1556 action: SIGNAL_EMIT "elm,mouse,out" "elm";
1558 program { name: "disable";
1559 signal: "elm,state,disabled";
1562 set_int(item_state, ITEM_STATE_DISABLED);
1563 set_state(PART:"bg", "disabled", 0.0);
1564 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1565 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1566 run_program(PROGRAM:"label_set,animation,done");
1567 run_program(PROGRAM:"icon_set,animation,done");
1570 program { name: "enable";
1571 signal: "elm,state,enabled";
1574 set_int(item_state, ITEM_STATE_ENABLED);
1575 set_state(PART:"bg", "default", 0.0);
1576 set_state(PART:"elm.text.clipper", "default", 0.0);
1577 set_state(PART:"elm.icon.clipper", "default", 0.0);
1578 run_program(PROGRAM:"label_set,animation,done");
1579 run_program(PROGRAM:"icon_set,animation,done");
1582 program { name: "label_set,animation,forward";
1583 signal: "elm,state,label_set,forward";
1585 after: "label_set,animation";
1587 program { name: "label_set,animation,backward";
1588 signal: "elm,state,label_set,backward";
1590 after: "label_set,animation";
1592 program { name: "label_set,animation";
1593 signal: "elm,state,label_set";
1595 action: STATE_SET "animation" 0.0;
1596 target: "elm.text.clipper";
1597 target: "elm.text_new.clipper";
1598 transition: LINEAR 0.2;
1599 after: "label_set,animation,done";
1601 program { name: "label_set,animation,done";
1602 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
1604 program { name: "label,reset";
1605 signal: "elm,state,label,reset";
1608 set_state(PART:"elm.text_new.clipper", "default", 0.0);
1609 if (get_int(item_state) != ITEM_STATE_DISABLED)
1610 set_state(PART:"elm.text.clipper", "default", 0.0);
1612 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1615 program { name: "icon_set,animation,forward";
1616 signal: "elm,state,icon_set,forward";
1618 after: "icon_set,animation";
1620 program { name: "icon_set,animation,backward";
1621 signal: "elm,state,icon_set,backward";
1623 after: "icon_set,animation";
1625 program { name: "icon_set,animation";
1626 signal: "elm,state,icon_set";
1628 action: STATE_SET "animation" 0.0;
1629 target: "elm.icon.clipper";
1630 target: "elm.icon_new.clipper";
1631 transition: LINEAR 0.2;
1632 after: "icon_set,animation,done";
1634 program { name: "icon_set,animation,done";
1635 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
1637 program { name: "icon,reset";
1638 signal: "elm,state,icon,reset";
1641 set_state(PART:"elm.icon_new.clipper", "default", 0.0);
1642 if (get_int(item_state) != ITEM_STATE_DISABLED)
1643 set_state(PART:"elm.icon.clipper", "default", 0.0);
1645 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1648 program { name: "text_show";
1649 signal: "elm,state,text,visible";
1654 get_state(PART:"elm.swallow.icon", st, 30, vl);
1655 if (!strcmp(st, "icononly"))
1657 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1658 set_state(PART:"icon_rect", "visible", 0.0);
1659 set_state(PART:"padding_after_icon", "visible", 0.0);
1661 set_state(PART:"elm.text", "visible", 0.0);
1664 program { name: "text_hide";
1665 signal: "elm,state,text,hidden";
1670 get_state(PART:"elm.swallow.icon", st, 30, vl);
1671 if (!strcmp(st, "visible"))
1673 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1674 set_state(PART:"icon_rect", "icononly", 0.0);
1675 set_state(PART:"padding_after_icon", "icononly", 0.0);
1677 set_state(PART:"elm.text", "default", 0.0);
1680 program { name: "icon_show";
1681 signal: "elm,state,icon,visible";
1686 get_state(PART:"elm.text", st, 30, vl);
1687 if (!strcmp(st, "visible"))
1689 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1690 set_state(PART:"icon_rect", "visible", 0.0);
1691 set_state(PART:"padding_after_icon", "visible", 0.0);
1695 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1696 set_state(PART:"icon_rect", "icononly", 0.0);
1697 set_state(PART:"padding_after_icon", "icononly", 0.0);
1704 group { name: "elm/toolbar/item/tabbar/item_horizontal";
1705 inherit: "elm/toolbar/item/tabbar";
1707 public item_state = ITEM_STATE_ENABLED;
1710 part { name: "icon_rect";
1711 description { state: "default" 0.0;
1715 description { state: "visible" 0.0;
1719 to_x: "padding_left_top";
1720 to_y: "padding_right_bottom";
1725 part { name: "padding_after_icon";
1726 description { state: "default" 0.0; //when only icon or no icon is there
1727 rel1.relative: 1.0 0.0;
1730 description { state: "visible" 0.0;
1731 inherit: "default" 0.0;
1735 part { name: "padding_before_text";
1736 description { state: "default" 0.0; //when only icon or no icon is there
1741 to_y: "padding_left_top";
1745 to_y: "padding_right_bottom";
1751 part { name: "elm.swallow.icon";
1752 description { state: "default" 0.0;
1756 to_x: "padding_left_top";
1757 to_y: "padding_right_bottom";
1761 description { state: "visible" 0.0;
1766 to_x: "padding_before_text";
1767 to_y: "padding_left_top";
1771 to_x: "padding_before_text";
1772 to_y: "padding_right_bottom";
1774 aspect_preference: VERTICAL;
1776 description { state: "icononly" 0.0;
1777 aspect_preference: VERTICAL;
1780 part { name: "elm.swallow.icon_new";
1781 description { state: "default" 0.0;
1785 to_x: "padding_left_top";
1786 to_y: "padding_right_bottom";
1790 description { state: "visible" 0.0;
1795 to_x: "padding_before_text";
1796 to_y: "padding_left_top";
1800 to_x: "padding_before_text";
1801 to_y: "padding_right_bottom";
1803 aspect_preference: VERTICAL;
1805 description { state: "icononly" 0.0;
1806 aspect_preference: VERTICAL;
1809 part { name: "elm.text";
1811 description { state: "default" 0.0;
1814 to_x: "padding_after_icon";
1815 to_y: "padding_left_top";
1818 style: "toolbar_style";
1822 description { state: "selected" 0.0;
1823 inherit: "default" 0.0;
1826 description { state: "visible" 0.0;
1827 inherit: "default" 0.0;
1830 description { state: "clicked" 0.0;
1831 inherit: "default" 0.0;
1833 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1835 description { state: "focused" 0.0;
1836 inherit: "default" 0.0;
1838 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1841 part { name: "elm.text_new";
1843 description { state: "default" 0.0;
1846 to_x: "padding_after_icon";
1847 to_y: "padding_left_top";
1850 style: "toolbar_style";
1854 description { state: "selected" 0.0;
1855 inherit: "default" 0.0;
1858 description { state: "visible" 0.0;
1859 inherit: "default" 0.0;
1862 description { state: "clicked" 0.0;
1863 inherit: "default" 0.0;
1865 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1867 description { state: "focused" 0.0;
1868 inherit: "default" 0.0;
1870 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1876 group { name: "elm/toolbar/base/naviframe";
1878 part { name: "base";
1880 description { state: "default" 0.0;
1884 part { name: "clipper";
1888 state: "default" 0.0;
1899 part { name: "elm.swallow.content";
1903 state: "default" 0.0;
1908 part { name: "event";
1912 description { state: "default" 0.0;
1919 group { name: "elm/toolbar/object/naviframe";
1921 part { name: "elm.swallow.object"; // object group
1924 state: "default" 0.0;