2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #define BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC 28
18 #define BUTTON_CONTROLBAR_ITEM_BUTTON_TEXTBLOCK_COLOR_INC "#f9f9f9"
19 #define BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC 56 56
20 #define BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC 249 249 249 255
21 #define BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC 249 249 249 255
23 #define ITEM_STATE_ENABLED 0
24 #define ITEM_STATE_DISABLED 1
26 group { name: "elm/toolbar/base/gallery/default";
28 image: GALLERY_EDC_IMAGE_CONTROL_TOOLBAR_BG COMP;
33 description { state: "default" 0.0;
34 image.normal: GALLERY_EDC_IMAGE_CONTROL_TOOLBAR_BG;
37 part { name: "clipper";
52 part { name: "elm.swallow.content";
65 description { state: "default" 0.0;
72 group { name: "elm/toolbar/item/gallery/default";
74 image: GALLERY_EDC_IMAGE_TOOLBAR_PRESS COMP;
77 style { name: "toolbar_style";
78 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";
81 tag: "hilight" "+ font=SLP:style=Bold";
82 tag: "b" "+ font=SLP:style=Bold";
87 data.item: "transition_animation_on" "1";
89 public item_state = ITEM_STATE_ENABLED;
94 description { state: "default" 0.0;
99 to: "padding_left_top";
103 to: "padding_right_bottom";
106 normal: GALLERY_EDC_IMAGE_TOOLBAR_PRESS;
112 description { state: "selected" 0.0;
113 inherit: "default" 0.0;
115 color: 255 255 255 255;
117 description { state: "disabled" 0.0;
118 inherit: "default" 0.0;
120 color: 255 255 255 0;
123 part { name: "padding_left_top";
127 description { state: "default" 0.0;
129 rel2.relative: 0.0 0.0;
136 part { name: "padding_right_bottom";
140 description { state: "default" 0.0;
142 rel1.relative: 1.0 1.0;
154 description { state: "default" 0.0;
159 to: "padding_left_top";
163 to_x: "padding_right_bottom";
164 to_y: "padding_left_top";
169 description { state: "visible" 0.0;
170 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
174 to: "padding_left_top";
178 to_x: "padding_right_bottom";
179 to_y: "padding_left_top";
184 description { state: "icononly" 0.0;
185 inherit: "default" 0.0;
188 part { name: "padding_after_icon";
192 description { state: "default" 0.0; //when only icon or no icon is there
198 rel2.to: "icon_rect";
203 description { state: "visible" 0.0;
204 inherit: "default" 0.0;
206 description { state: "icononly" 0.0;
207 inherit: "default" 0.0;
210 part { name: "padding_before_text";
214 description { state: "default" 0.0; //when only icon or no icon is there
218 to_x: "padding_left_top";
223 to_x: "padding_right_bottom";
231 part { name: "elm.swallow.icon";
234 clip_to: "elm.icon.clipper";
235 description { state: "default" 0.0;
240 to: "padding_left_top";
244 to_x: "padding_right_bottom";
245 to_y: "padding_left_top";
249 description { state: "visible" 0.0;
251 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
252 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
255 to: "padding_left_top";
259 to_x: "padding_right_bottom";
260 to_y: "padding_before_text";
263 aspect_preference: HORIZONTAL;
265 description { state: "icononly" 0.0;
266 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
267 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
270 to: "padding_left_top";
274 to: "padding_right_bottom";
277 aspect_preference: HORIZONTAL;
280 part { name: "elm.swallow.icon_new";
283 clip_to: "elm.icon_new.clipper";
284 description { state: "default" 0.0;
289 to: "padding_left_top";
293 to_x: "padding_right_bottom";
294 to_y: "padding_left_top";
298 description { state: "visible" 0.0;
300 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
301 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
304 to: "padding_left_top";
308 to_x: "padding_right_bottom";
309 to_y: "padding_before_text";
312 aspect_preference: HORIZONTAL;
314 description { state: "icononly" 0.0;
315 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
316 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
319 to: "padding_left_top";
323 to: "padding_right_bottom";
326 aspect_preference: HORIZONTAL;
329 part { name: "elm.text";
333 clip_to: "elm.text.clipper";
334 description { state: "default" 0.0;
338 to_x: "padding_left_top";
339 to_y: "padding_after_icon";
343 to: "padding_right_bottom";
345 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
348 style: "toolbar_style";
353 description { state: "selected" 0.0;
354 inherit: "default" 0.0;
357 description { state: "visible" 0.0;
358 inherit: "default" 0.0;
361 description { state: "clicked" 0.0;
362 inherit: "default" 0.0;
364 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
366 description { state: "focused" 0.0;
367 inherit: "default" 0.0;
369 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
372 part { name: "elm.text_new";
376 clip_to: "elm.text_new.clipper";
377 description { state: "default" 0.0;
381 to_x: "padding_left_top";
382 to_y: "padding_after_icon";
386 to: "padding_right_bottom";
388 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
391 style: "toolbar_style";
396 description { state: "visible" 0.0;
397 inherit: "default" 0.0;
400 description { state: "clicked" 0.0;
401 inherit: "default" 0.0;
403 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
405 description { state: "focused" 0.0;
406 inherit: "default" 0.0;
408 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
411 part { name: "elm.text.clipper";
413 description { state: "default" 0.0;
414 color: 255 255 255 255;
416 description { state: "animation" 0.0;
417 color: 255 255 255 0;
419 description { state: "disabled" 0.0;
420 color: 255 255 255 153;
423 part { name: "elm.text_new.clipper";
425 description { state: "default" 0.0;
426 color: 255 255 255 0;
428 description { state: "animation" 0.0;
429 color: 255 255 255 255;
432 part { name: "elm.icon.clipper";
434 description { state: "default" 0.0;
435 color: 255 255 255 255;
437 description { state: "animation" 0.0;
438 color: 255 255 255 0;
440 description { state: "disabled" 0.0;
441 color: 255 255 255 153;
444 part { name: "elm.icon_new.clipper";
446 description { state: "default" 0.0;
447 color: 255 255 255 0;
449 description { state: "animation" 0.0;
450 color: 255 255 255 255;
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,up,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";
505 action: STATE_SET "disabled" 0.0;
507 after: "disable_text";
509 program { name: "disable_text";
513 get_state(PART:"elm.text", st, 30, vl);
514 if (!strcmp(st, "visible"))
516 set_state(PART:"elm.text", "disabled_visible", 0.0);
517 set_state(PART:"elm.text_new", "disabled_visible", 0.0);
521 set_state(PART:"elm.text", "disabled", 0.0);
522 set_state(PART:"elm.text_new", "disabled", 0.0);
524 set_state(PART:"elm.text.clipper", "disabled", 0.0);
525 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
526 set_int(item_state, ITEM_STATE_DISABLED);
529 program { name: "enable";
530 signal: "elm,state,enabled";
532 action: STATE_SET "default" 0.0;
534 after: "enable_text";
536 program { name: "enable_text";
540 get_state(PART:"elm.text", st, 30, vl);
541 if (!strcmp(st, "disabled_visible"))
543 set_state(PART:"elm.text", "visible", 0.0);
544 set_state(PART:"elm.text_new", "visible", 0.0);
548 set_state(PART:"elm.text", "default", 0.0);
549 set_state(PART:"elm.text_new", "default", 0.0);
551 set_state(PART:"elm.text.clipper", "default", 0.0);
552 set_state(PART:"elm.icon.clipper", "default", 0.0);
553 set_int(item_state, ITEM_STATE_ENABLED);
556 program { name: "label_set,animation,forward";
557 signal: "elm,state,label_set,forward";
559 after: "label_set,animation";
561 program { name: "label_set,animation,backward";
562 signal: "elm,state,label_set,backward";
564 after: "label_set,animation";
566 program { name: "label_set,animation";
567 signal: "elm,state,label_set";
569 action: STATE_SET "animation" 0.0;
570 target: "elm.text.clipper";
571 target: "elm.text_new.clipper";
572 transition: LINEAR 0.2;
573 after: "label_set,animation,done";
575 program { name: "label_set,animation,done";
576 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
578 program { name: "label,reset";
579 signal: "elm,state,label,reset";
581 action: STATE_SET "default" 0.0;
582 target: "elm.text.clipper";
583 target: "elm.text_new.clipper";
585 program { name: "icon_set,animation,forward";
586 signal: "elm,state,icon_set,forward";
588 after: "icon_set,animation";
590 program { name: "icon_set,animation,backward";
591 signal: "elm,state,icon_set,backward";
593 after: "icon_set,animation";
595 program { name: "icon_set,animation";
596 signal: "elm,state,icon_set";
598 action: STATE_SET "animation" 0.0;
599 target: "elm.icon.clipper";
600 target: "elm.icon_new.clipper";
601 transition: LINEAR 0.2;
602 after: "icon_set,animation,done";
604 program { name: "icon_set,animation,done";
605 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
607 program { name: "icon,reset";
608 signal: "elm,state,icon,reset";
610 action: STATE_SET "default" 0.0;
611 target: "elm.icon.clipper";
612 target: "elm.icon_new.clipper";
614 program { name: "text_show";
615 signal: "elm,state,text,visible";
620 get_state(PART:"elm.swallow.icon", st, 30, vl);
621 if (!strcmp(st, "icononly"))
623 set_state(PART:"elm.swallow.icon", "visible", 0.0);
624 set_state(PART:"icon_rect", "visible", 0.0);
625 set_state(PART:"padding_after_icon", "visible", 0.0);
627 set_state(PART:"elm.text", "visible", 0.0);
630 program { name: "text_hide";
631 signal: "elm,state,text,hidden";
636 get_state(PART:"elm.swallow.icon", st, 30, vl);
637 if (!strcmp(st, "visible"))
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);
643 set_state(PART:"elm.text", "default", 0.0);
646 program { name: "icon_show";
647 signal: "elm,state,icon,visible";
652 get_state(PART:"elm.text", st, 30, vl);
653 if (!strcmp(st, "visible"))
655 set_state(PART:"elm.swallow.icon", "visible", 0.0);
656 set_state(PART:"icon_rect", "visible", 0.0);
657 set_state(PART:"padding_after_icon", "visible", 0.0);
661 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
662 set_state(PART:"icon_rect", "icononly", 0.0);
663 set_state(PART:"padding_after_icon", "icononly", 0.0);
670 group { name: "elm/toolbar/item/gallery/item_horizontal";
671 inherit: "elm/toolbar/item/gallery/default";
673 public item_state = ITEM_STATE_ENABLED;
676 part { name: "icon_rect";
677 description { state: "default" 0.0;
681 description { state: "visible" 0.0;
685 to_x: "padding_left_top";
686 to_y: "padding_right_bottom";
691 part { name: "padding_after_icon";
692 description { state: "default" 0.0; //when only icon or no icon is there
693 rel1.relative: 1.0 0.0;
696 description { state: "visible" 0.0;
697 inherit: "default" 0.0;
701 part { name: "padding_before_text";
702 description { state: "default" 0.0; //when only icon or no icon is there
707 to_y: "padding_left_top";
711 to_y: "padding_right_bottom";
717 part { name: "elm.swallow.icon";
718 description { state: "default" 0.0;
722 to_x: "padding_left_top";
723 to_y: "padding_right_bottom";
727 description { state: "visible" 0.0;
732 to_x: "padding_before_text";
733 to_y: "padding_left_top";
737 to_x: "padding_before_text";
738 to_y: "padding_right_bottom";
740 aspect_preference: VERTICAL;
742 description { state: "icononly" 0.0;
743 aspect_preference: VERTICAL;
746 part { name: "elm.swallow.icon_new";
747 description { state: "default" 0.0;
751 to_x: "padding_left_top";
752 to_y: "padding_right_bottom";
756 description { state: "visible" 0.0;
761 to_x: "padding_before_text";
762 to_y: "padding_left_top";
766 to_x: "padding_before_text";
767 to_y: "padding_right_bottom";
769 aspect_preference: VERTICAL;
771 description { state: "icononly" 0.0;
772 aspect_preference: VERTICAL;
775 part { name: "elm.text";
777 description { state: "default" 0.0;
780 to_x: "padding_after_icon";
781 to_y: "padding_left_top";
784 style: "toolbar_style";
789 description { state: "selected" 0.0;
790 inherit: "default" 0.0;
793 description { state: "visible" 0.0;
794 inherit: "default" 0.0;
797 description { state: "clicked" 0.0;
798 inherit: "default" 0.0;
800 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
802 description { state: "focused" 0.0;
803 inherit: "default" 0.0;
805 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
808 part { name: "elm.text_new";
810 description { state: "default" 0.0;
813 to_x: "padding_after_icon";
814 to_y: "padding_left_top";
817 style: "toolbar_style";
822 description { state: "selected" 0.0;
823 inherit: "default" 0.0;
826 description { state: "visible" 0.0;
827 inherit: "default" 0.0;
830 description { state: "clicked" 0.0;
831 inherit: "default" 0.0;
833 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
835 description { state: "focused" 0.0;
836 inherit: "default" 0.0;
838 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
844 group { name: "elm/toolbar/separator/gallery/default";
846 image: GALLERY_EDC_IMAGE_SEPARATOR_V COMP;
849 part { name: "separator"; // separator group
850 description { state: "default" 0.0;
856 normal: GALLERY_EDC_IMAGE_SEPARATOR_V;
866 group { name: "elm/toolbar/object/gallery/default";
868 part { name: "elm.swallow.object"; // object group
871 state: "default" 0.0;
877 group { name: "elm/toolbar/base/gallery/tabbar";
879 image: GALLERY_EDC_IMAGE_CONTROL_TABBAR_BG_TOP COMP;
885 description { state: "default" 0.0;
886 image.normal: GALLERY_EDC_IMAGE_CONTROL_TABBAR_BG_TOP;
889 part { name: "clipper";
893 state: "default" 0.0;
904 part { name: "elm.swallow.content";
908 state: "default" 0.0;
913 part { name: "event";
917 description { state: "default" 0.0;
924 group { name: "elm/toolbar/item/gallery/tabbar";
925 alias: "elm/toolbar/item/gallery/tabbar/item_horizontal";
927 image: GALLERY_EDC_IMAGE_TABBAR_FOCUS COMP;
930 data.item: "transition_animation_on" "1";
934 description { state: "default" 0.0;
936 color: 255 255 255 0;
938 normal: GALLERY_EDC_IMAGE_TABBAR_FOCUS;
943 description { state: "selected" 0.0;
944 inherit: "default" 0.0;
946 color: 255 255 255 255;
948 description { state: "disabled" 0.0;
949 inherit: "default" 0.0;
951 color: 255 255 255 0;
954 part { name: "padding_left_top";
958 description { state: "default" 0.0;
960 rel2.relative: 0.0 0.0;
967 part { name: "padding_right_bottom";
971 description { state: "default" 0.0;
973 rel1.relative: 1.0 1.0;
985 description { state: "default" 0.0;
990 to: "padding_left_top";
994 to_x: "padding_right_bottom";
995 to_y: "padding_left_top";
1000 description { state: "visible" 0.0;
1001 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1005 to: "padding_left_top";
1009 to_x: "padding_right_bottom";
1010 to_y: "padding_left_top";
1015 description { state: "icononly" 0.0;
1016 inherit: "default" 0.0;
1019 part { name: "padding_after_icon";
1023 description { state: "default" 0.0; //when only icon or no icon is there
1029 rel2.to: "icon_rect";
1034 description { state: "visible" 0.0;
1040 rel2.to: "icon_rect";
1045 description { state: "icononly" 0.0;
1046 inherit: "default" 0.0;
1049 part { name: "padding_before_text";
1053 description { state: "default" 0.0; //when only icon or no icon is there
1057 to_x: "padding_left_top";
1062 to_x: "padding_right_bottom";
1070 part { name: "elm.swallow.icon";
1073 clip_to: "elm.icon.clipper";
1074 description { state: "default" 0.0;
1079 to: "padding_left_top";
1083 to_x: "padding_right_bottom";
1084 to_y: "padding_left_top";
1088 description { state: "visible" 0.0;
1090 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1091 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1094 to: "padding_left_top";
1098 to_x: "padding_right_bottom";
1099 to_y: "padding_before_text";
1102 aspect_preference: HORIZONTAL;
1104 description { state: "icononly" 0.0;
1105 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1106 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1109 to: "padding_left_top";
1113 to: "padding_right_bottom";
1116 aspect_preference: HORIZONTAL;
1119 part { name: "elm.swallow.icon_new";
1122 clip_to: "elm.icon_new.clipper";
1123 description { state: "default" 0.0;
1128 to: "padding_left_top";
1132 to_x: "padding_right_bottom";
1133 to_y: "padding_left_top";
1137 description { state: "visible" 0.0;
1139 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1140 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1143 to: "padding_left_top";
1147 to_x: "padding_right_bottom";
1148 to_y: "padding_before_text";
1151 aspect_preference: HORIZONTAL;
1153 description { state: "icononly" 0.0;
1154 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1155 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1158 to: "padding_left_top";
1162 to: "padding_right_bottom";
1165 aspect_preference: HORIZONTAL;
1168 part { name: "elm.text";
1172 clip_to: "elm.text.clipper";
1173 description { state: "default" 0.0;
1177 to_x: "padding_left_top";
1178 to_y: "padding_after_icon";
1182 to: "padding_right_bottom";
1184 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1187 style: "toolbar_style";
1192 description { state: "selected" 0.0;
1193 inherit: "default" 0.0;
1196 description { state: "visible" 0.0;
1197 inherit: "default" 0.0;
1200 description { state: "clicked" 0.0;
1201 inherit: "default" 0.0;
1203 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1205 description { state: "focused" 0.0;
1206 inherit: "default" 0.0;
1208 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1211 part { name: "elm.text_new";
1215 clip_to: "elm.text_new.clipper";
1216 description { state: "default" 0.0;
1220 to_x: "padding_left_top";
1221 to_y: "padding_after_icon";
1225 to: "padding_right_bottom";
1227 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1230 style: "toolbar_style";
1235 description { state: "visible" 0.0;
1236 inherit: "default" 0.0;
1239 description { state: "clicked" 0.0;
1240 inherit: "default" 0.0;
1242 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1244 description { state: "focused" 0.0;
1245 inherit: "default" 0.0;
1247 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1250 part { name: "elm.text.clipper";
1252 description { state: "default" 0.0;
1253 color: 255 255 255 255;
1255 description { state: "animation" 0.0;
1256 color: 255 255 255 0;
1258 description { state: "disabled" 0.0;
1259 color: 255 255 255 153;
1262 part { name: "elm.text_new.clipper";
1264 description { state: "default" 0.0;
1265 color: 255 255 255 0;
1267 description { state: "animation" 0.0;
1268 color: 255 255 255 255;
1271 part { name: "elm.icon.clipper";
1273 description { state: "default" 0.0;
1274 color: 255 255 255 255;
1276 description { state: "animation" 0.0;
1277 color: 255 255 255 0;
1279 description { state: "disabled" 0.0;
1280 color: 255 255 255 153;
1283 part { name: "elm.icon_new.clipper";
1285 description { state: "default" 0.0;
1286 color: 255 255 255 0;
1288 description { state: "animation" 0.0;
1289 color: 255 255 255 255;
1292 part { name: "event";
1295 ignore_flags: ON_HOLD;
1296 description { state: "default" 0.0;
1302 program { name: "go_active";
1303 signal: "elm,state,selected";
1305 action: STATE_SET "selected" 0.0;
1307 transition: LINEAR 0.2;
1309 program { name: "go_passive";
1310 signal: "elm,state,unselected";
1312 action: STATE_SET "default" 0.0;
1314 transition: LINEAR 0.1;
1316 program { name: "pressed";
1317 signal: "mouse,down,1";
1319 action: STATE_SET "selected" 0.0;
1322 target: "elm.text_new";
1323 transition: LINEAR 0.2;
1325 program { name: "unpressed";
1326 signal: "mouse,up,1";
1328 action: STATE_SET "default" 0.0;
1331 target: "elm.text_new";
1332 transition: LINEAR 0.1;
1334 program { name: "go";
1335 signal: "mouse,up,1";
1337 action: SIGNAL_EMIT "elm,action,click" "elm";
1339 program { name: "mouse,in";
1342 action: SIGNAL_EMIT "elm,mouse,in" "elm";
1344 program { name: "mouse,out";
1345 signal: "mouse,out";
1347 action: SIGNAL_EMIT "elm,mouse,out" "elm";
1349 program { name: "disable";
1350 signal: "elm,state,disabled";
1352 action: STATE_SET "disabled" 0.0;
1354 after: "disable_text";
1356 program { name: "disable_text";
1360 get_state(PART:"elm.text", st, 30, vl);
1361 if (!strcmp(st, "visible"))
1363 set_state(PART:"elm.text", "disabled_visible", 0.0);
1364 set_state(PART:"elm.text_new", "disabled_visible", 0.0);
1368 set_state(PART:"elm.text", "disabled", 0.0);
1369 set_state(PART:"elm.text_new", "disabled", 0.0);
1371 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1372 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1375 program { name: "enable";
1376 signal: "elm,state,enabled";
1378 action: STATE_SET "default" 0.0;
1380 after: "enable_text";
1382 program { name: "enable_text";
1386 get_state(PART:"elm.text", st, 30, vl);
1387 if (!strcmp(st, "disabled_visible"))
1389 set_state(PART:"elm.text", "visible", 0.0);
1390 set_state(PART:"elm.text_new", "visible", 0.0);
1394 set_state(PART:"elm.text", "default", 0.0);
1395 set_state(PART:"elm.text_new", "default", 0.0);
1397 set_state(PART:"elm.text.clipper", "default", 0.0);
1398 set_state(PART:"elm.icon.clipper", "default", 0.0);
1401 program { name: "label_set,animation,forward";
1402 signal: "elm,state,label_set,forward";
1404 after: "label_set,animation";
1406 program { name: "label_set,animation,backward";
1407 signal: "elm,state,label_set,backward";
1409 after: "label_set,animation";
1411 program { name: "label_set,animation";
1412 signal: "elm,state,label_set";
1414 action: STATE_SET "animation" 0.0;
1415 target: "elm.text.clipper";
1416 target: "elm.text_new.clipper";
1417 transition: LINEAR 0.2;
1418 after: "label_set,animation,done";
1420 program { name: "label_set,animation,done";
1421 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
1423 program { name: "label,reset";
1424 signal: "elm,state,label,reset";
1426 action: STATE_SET "default" 0.0;
1427 target: "elm.text.clipper";
1428 target: "elm.text_new.clipper";
1430 program { name: "icon_set,animation,forward";
1431 signal: "elm,state,icon_set,forward";
1433 after: "icon_set,animation";
1435 program { name: "icon_set,animation,backward";
1436 signal: "elm,state,icon_set,backward";
1438 after: "icon_set,animation";
1440 program { name: "icon_set,animation";
1441 signal: "elm,state,icon_set";
1443 action: STATE_SET "animation" 0.0;
1444 target: "elm.icon.clipper";
1445 target: "elm.icon_new.clipper";
1446 transition: LINEAR 0.2;
1447 after: "icon_set,animation,done";
1449 program { name: "icon_set,animation,done";
1450 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
1452 program { name: "icon,reset";
1453 signal: "elm,state,icon,reset";
1455 action: STATE_SET "default" 0.0;
1456 target: "elm.icon.clipper";
1457 target: "elm.icon_new.clipper";
1459 program { name: "text_show";
1460 signal: "elm,state,text,visible";
1465 get_state(PART:"elm.swallow.icon", st, 30, vl);
1466 if (!strcmp(st, "icononly"))
1468 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1469 set_state(PART:"icon_rect", "visible", 0.0);
1470 set_state(PART:"padding_after_icon", "visible", 0.0);
1472 set_state(PART:"elm.text", "visible", 0.0);
1475 program { name: "text_hide";
1476 signal: "elm,state,text,hidden";
1481 get_state(PART:"elm.swallow.icon", st, 30, vl);
1482 if (!strcmp(st, "visible"))
1484 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1485 set_state(PART:"icon_rect", "icononly", 0.0);
1486 set_state(PART:"padding_after_icon", "icononly", 0.0);
1488 set_state(PART:"elm.text", "default", 0.0);
1491 program { name: "icon_show";
1492 signal: "elm,state,icon,visible";
1497 get_state(PART:"elm.text", st, 30, vl);
1498 if (!strcmp(st, "visible"))
1500 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1501 set_state(PART:"icon_rect", "visible", 0.0);
1502 set_state(PART:"padding_after_icon", "visible", 0.0);
1506 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1507 set_state(PART:"icon_rect", "icononly", 0.0);
1508 set_state(PART:"padding_after_icon", "icononly", 0.0);
1515 group { name: "elm/toolbar/item/gallery/tabbar/item_horizontal";
1516 inherit: "elm/toolbar/item/gallery/tabbar";
1518 public item_state = ITEM_STATE_ENABLED;
1521 part { name: "icon_rect";
1522 description { state: "default" 0.0;
1526 description { state: "visible" 0.0;
1530 to_x: "padding_left_top";
1531 to_y: "padding_right_bottom";
1536 part { name: "padding_after_icon";
1537 description { state: "default" 0.0; //when only icon or no icon is there
1538 rel1.relative: 1.0 0.0;
1541 description { state: "visible" 0.0;
1542 inherit: "default" 0.0;
1546 part { name: "padding_before_text";
1547 description { state: "default" 0.0; //when only icon or no icon is there
1552 to_y: "padding_left_top";
1556 to_y: "padding_right_bottom";
1562 part { name: "elm.swallow.icon";
1563 description { state: "default" 0.0;
1567 to_x: "padding_left_top";
1568 to_y: "padding_right_bottom";
1572 description { state: "visible" 0.0;
1577 to_x: "padding_before_text";
1578 to_y: "padding_left_top";
1582 to_x: "padding_before_text";
1583 to_y: "padding_right_bottom";
1585 aspect_preference: VERTICAL;
1587 description { state: "icononly" 0.0;
1588 aspect_preference: VERTICAL;
1591 part { name: "elm.swallow.icon_new";
1592 description { state: "default" 0.0;
1596 to_x: "padding_left_top";
1597 to_y: "padding_right_bottom";
1601 description { state: "visible" 0.0;
1606 to_x: "padding_before_text";
1607 to_y: "padding_left_top";
1611 to_x: "padding_before_text";
1612 to_y: "padding_right_bottom";
1614 aspect_preference: VERTICAL;
1616 description { state: "icononly" 0.0;
1617 aspect_preference: VERTICAL;
1620 part { name: "elm.text";
1622 description { state: "default" 0.0;
1625 to_x: "padding_after_icon";
1626 to_y: "padding_left_top";
1629 style: "toolbar_style";
1634 description { state: "selected" 0.0;
1635 inherit: "default" 0.0;
1638 description { state: "visible" 0.0;
1639 inherit: "default" 0.0;
1642 description { state: "clicked" 0.0;
1643 inherit: "default" 0.0;
1645 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1647 description { state: "focused" 0.0;
1648 inherit: "default" 0.0;
1650 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1653 part { name: "elm.text_new";
1655 description { state: "default" 0.0;
1658 to_x: "padding_after_icon";
1659 to_y: "padding_left_top";
1662 style: "toolbar_style";
1667 description { state: "selected" 0.0;
1668 inherit: "default" 0.0;
1671 description { state: "visible" 0.0;
1672 inherit: "default" 0.0;
1675 description { state: "clicked" 0.0;
1676 inherit: "default" 0.0;
1678 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1680 description { state: "focused" 0.0;
1681 inherit: "default" 0.0;
1683 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1689 group { name: "elm/toolbar/base/naviframe";
1691 part { name: "base";
1693 description { state: "default" 0.0;
1697 part { name: "clipper";
1701 state: "default" 0.0;
1712 part { name: "elm.swallow.content";
1716 state: "default" 0.0;
1721 part { name: "event";
1725 description { state: "default" 0.0;
1732 group { name: "elm/toolbar/object/naviframe";
1734 part { name: "elm.swallow.object"; // object group
1737 state: "default" 0.0;