1 group { name: "elm/button/base/default";
2 alias: "elm/button/base/popup_button/default";
3 alias: "elm/button/base/naviframe/back_btn/default";
4 alias: "elm/button/base/datetime_ampm/default";
6 image: "bt_base1.png" COMP;
7 image: "bt_base2.png" COMP;
8 image: "bt_hilight.png" COMP;
9 image: "bt_shine.png" COMP;
10 image: "bt_glow.png" COMP;
11 image: "bt_dis_base.png" COMP;
12 image: "bt_dis_hilight.png" COMP;
15 part { name: "button_image";
17 description { state: "default" 0.0;
20 normal: "bt_base2.png";
25 description { state: "clicked" 0.0;
26 inherit: "default" 0.0;
27 image.normal: "bt_base1.png";
29 description { state: "disabled" 0.0;
30 inherit: "default" 0.0;
32 normal: "bt_dis_base.png";
37 part { name: "elm.swallow.content";
39 description { state: "default" 0.0;
45 rel2.relative: 0.0 1.0;
47 description { state: "visible" 0.0;
48 inherit: "default" 0.0;
52 // aspect_preference: VERTICAL;
55 description { state: "icononly" 0.0;
56 inherit: "default" 0.0;
62 rel2.relative: 1.0 1.0;
63 // aspect_preference: VERTICAL;
72 description { state: "default" 0.0;
74 rel1.to_x: "elm.swallow.content";
75 rel1.relative: 1.0 0.0;
78 color: 224 224 224 255;
81 font: "Sans,Edje-Vera";
88 description { state: "visible" 0.0;
89 inherit: "default" 0.0;
93 description { state: "disabled" 0.0;
94 inherit: "default" 0.0;
96 description { state: "disabled_visible" 0.0;
97 inherit: "default" 0.0;
104 part { name: "over1";
106 description { state: "default" 0.0;
107 rel2.relative: 1.0 0.5;
109 normal: "bt_hilight.png";
113 description { state: "disabled" 0.0;
114 inherit: "default" 0.0;
116 normal: "bt_dis_hilight.png";
121 part { name: "over2";
124 ignore_flags: ON_HOLD;
125 description { state: "default" 0.0;
127 normal: "bt_shine.png";
131 description { state: "disabled" 0.0;
132 inherit: "default" 0.0;
136 part { name: "over3";
139 description { state: "default" 0.0;
140 color: 255 255 255 0;
142 normal: "bt_glow.png";
147 description { state: "clicked" 0.0;
148 inherit: "default" 0.0;
149 color: 255 255 255 255;
152 part { name: "disabler";
154 description { state: "default" 0.0;
158 description { state: "disabled" 0.0;
159 inherit: "default" 0.0;
163 // used to force sizing of icon to follow label sizing nearby
164 part { name: "sizer.content"; type: TEXT;
167 description { state: "default" 0.0;
170 font: "Sans,Edje-Vera";
173 text_class: "button";
176 description { state: "visible" 0.0;
177 inherit: "default" 0.0;
178 rel1.to: "elm.swallow.content";
179 rel2.to: "elm.swallow.content";
185 description { state: "icononly" 0.0;
186 inherit: "default" 0.0;
187 rel1.to: "elm.swallow.content";
188 rel2.to: "elm.swallow.content";
199 name: "button_click";
200 signal: "mouse,down,1";
202 action: SIGNAL_EMIT "elm,action,press" "";
203 after: "button_click_anim";
206 name: "button_click_anim";
207 action: STATE_SET "clicked" 0.0;
208 target: "button_image";
211 name: "button_unclick";
212 signal: "mouse,up,1";
214 action: SIGNAL_EMIT "elm,action,unpress" "";
215 after: "button_unclick_anim";
218 name: "button_pressed_anim";
219 signal: "elm,anim,activate";
221 action: STATE_SET "clicked" 0.0;
222 target: "button_image";
224 after: "button_unpressed_anim";
227 name: "button_unpressed_anim";
228 action: STATE_SET "default" 0.0;
229 transition: DECELERATE 0.5;
230 target: "button_image";
234 name: "button_unclick_anim";
235 action: STATE_SET "default" 0.0;
236 target: "button_image";
239 name: "button_click2";
240 signal: "mouse,down,1";
242 action: STATE_SET "clicked" 0.0;
246 name: "button_unclick2";
247 signal: "mouse,up,1";
249 action: STATE_SET "default" 0.0;
250 transition: DECELERATE 0.5;
254 name: "button_unclick3";
255 signal: "mouse,clicked,1";
257 action: SIGNAL_EMIT "elm,action,click" "";
259 program { name: "text_show";
260 signal: "elm,state,text,visible";
265 get_state(PART:"elm.swallow.content", st, 30, vl);
266 if (!strcmp(st, "icononly")) {
267 set_state(PART:"elm.swallow.content", "visible", 0.0);
268 set_state(PART:"sizer.content", "visible", 0.0);
270 get_state(PART:"elm.text", st, 30, vl);
271 if (!strcmp(st, "disabled") || (!strcmp(st, "disabled_visible")))
272 set_state(PART:"elm.text", "disabled_visible", 0.0);
274 set_state(PART:"elm.text", "visible", 0.0);
277 program { name: "text_hide";
278 signal: "elm,state,text,hidden";
283 get_state(PART:"elm.swallow.content", st, 30, vl);
284 if (!strcmp(st, "visible")) {
285 set_state(PART:"elm.swallow.content", "icononly", 0.0);
286 set_state(PART:"sizer.content", "icononly", 0.0);
288 set_state(PART:"elm.text", "default", 0.0);
289 get_state(PART:"elm.text", st, 30, vl);
290 if (!strcmp(st, "default") || (!strcmp(st, "visible")))
291 set_state(PART:"elm.text", "default", 0.0);
293 set_state(PART:"elm.text", "disabled", 0.0);
296 program { name: "icon_show";
297 signal: "elm,state,icon,visible";
302 get_state(PART:"elm.text", st, 30, vl);
303 if (!strcmp(st, "visible")) {
304 set_state(PART:"elm.swallow.content", "visible", 0.0);
305 set_state(PART:"sizer.content", "visible", 0.0);
308 set_state(PART:"elm.swallow.content", "icononly", 0.0);
309 set_state(PART:"sizer.content", "icononly", 0.0);
313 program { name: "icon_hide";
314 signal: "elm,state,icon,hidden";
316 action: STATE_SET "default" 0.0;
317 target: "elm.swallow.content";
318 target: "sizer.content";
320 program { name: "disable";
321 signal: "elm,state,disabled";
326 set_state(PART:"button_image", "disabled", 0.0);
327 set_state(PART:"over1", "disabled", 0.0);
328 set_state(PART:"over2", "disabled", 0.0);
329 set_state(PART:"disabler", "disabled", 0.0);
330 get_state(PART:"elm.text", st, 30, vl);
331 if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible"))
332 set_state(PART:"elm.text", "disabled_visible", 0.0);
334 set_state(PART:"elm.text", "disabled", 0.0);
337 program { name: "enable";
338 signal: "elm,state,enabled";
343 set_state(PART:"button_image", "visible", 0.0);
344 set_state(PART:"over1", "visible", 0.0);
345 set_state(PART:"over2", "visible", 0.0);
346 set_state(PART:"disabler", "visible", 0.0);
347 get_state(PART:"elm.text", st, 30, vl);
348 if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible"))
349 set_state(PART:"elm.text", "visible", 0.0);
351 set_state(PART:"elm.text", "default", 0.0);
357 group { name: "elm/button/base/hoversel_vertical/default";
358 alias: "elm/button/base/hoversel_vertical/entry";
359 alias: "elm/button/base/hoversel_horizontal/default";
360 alias: "elm/button/base/hoversel_horizontal/entry";
362 image: "bt_base1.png" COMP;
363 image: "bt_base2.png" COMP;
364 image: "bt_hilight.png" COMP;
365 image: "bt_shine.png" COMP;
366 image: "bt_glow.png" COMP;
367 image: "updown.png" COMP;
368 image: "bt_dis_base.png" COMP;
369 image: "bt_dis_hilight.png" COMP;
372 part { name: "button_image";
374 description { state: "default" 0.0;
376 normal: "bt_base2.png";
381 description { state: "clicked" 0.0;
382 inherit: "default" 0.0;
383 image.normal: "bt_base1.png";
386 description { state: "disabled" 0.0;
387 inherit: "default" 0.0;
389 normal: "bt_dis_base.png";
394 part { name: "arrow";
396 description { state: "default" 0.0;
397 image.normal: "updown.png";
398 aspect: 0.6666666666 0.6666666666;
399 aspect_preference: VERTICAL;
402 rel2.relative: 0.0 1.0;
406 part { name: "elm.swallow.content";
408 description { state: "default" 0.0;
423 description { state: "visible" 0.0;
424 inherit: "default" 0.0;
428 aspect_preference: VERTICAL;
431 description { state: "icononly" 0.0;
432 inherit: "default" 0.0;
438 to_x: "button_image";
442 aspect_preference: VERTICAL;
451 description { state: "default" 0.0;
453 rel1.to_x: "elm.swallow.content";
454 rel1.relative: 1.0 0.0;
457 color: 224 224 224 255;
460 font: "Sans,Edje-Vera";
464 text_class: "button";
467 description { state: "visible" 0.0;
468 inherit: "default" 0.0;
472 description { state: "disabled" 0.0;
473 inherit: "default" 0.0;
477 description { state: "disabled_visible" 0.0;
478 inherit: "default" 0.0;
485 part { name: "over1";
487 description { state: "default" 0.0;
488 rel2.relative: 1.0 0.5;
490 normal: "bt_hilight.png";
494 description { state: "disabled" 0.0;
495 inherit: "default" 0.0;
497 normal: "bt_dis_hilight.png";
502 part { name: "over2";
505 ignore_flags: ON_HOLD;
506 description { state: "default" 0.0;
508 normal: "bt_shine.png";
512 description { state: "disabled" 0.0;
513 inherit: "default" 0.0;
517 part { name: "over3";
520 description { state: "default" 0.0;
521 color: 255 255 255 0;
523 normal: "bt_glow.png";
528 description { state: "clicked" 0.0;
529 inherit: "default" 0.0;
531 color: 255 255 255 255;
534 part { name: "disabler";
536 description { state: "default" 0.0;
540 description { state: "disabled" 0.0;
541 inherit: "default" 0.0;
545 // used to force sizing of icon to follow label sizing nearby
546 part { name: "sizer.content"; type: TEXT;
549 description { state: "default" 0.0;
552 font: "Sans,Edje-Vera";
555 text_class: "button";
558 description { state: "visible" 0.0;
559 inherit: "default" 0.0;
560 rel1.to: "elm.swallow.content";
561 rel2.to: "elm.swallow.content";
567 description { state: "icononly" 0.0;
568 inherit: "default" 0.0;
569 rel1.to: "elm.swallow.content";
570 rel2.to: "elm.swallow.content";
581 name: "button_click";
582 signal: "mouse,down,1";
584 action: STATE_SET "clicked" 0.0;
585 target: "button_image";
588 name: "button_unclick";
589 signal: "mouse,up,1";
591 action: STATE_SET "default" 0.0;
592 target: "button_image";
595 name: "button_click2";
596 signal: "mouse,down,1";
598 action: STATE_SET "clicked" 0.0;
602 name: "button_unclick2";
603 signal: "mouse,up,1";
605 action: STATE_SET "default" 0.0;
606 transition: DECELERATE 0.5;
610 name: "button_unclick3";
611 signal: "mouse,up,1";
613 action: SIGNAL_EMIT "elm,action,click" "";
615 program { name: "text_show";
616 signal: "elm,state,text,visible";
621 get_state(PART:"elm.swallow.content", st, 30, vl);
622 if (!strcmp(st, "icononly")) {
623 set_state(PART:"elm.swallow.content", "visible", 0.0);
624 set_state(PART:"sizer.content", "visible", 0.0);
626 set_state(PART:"elm.text", "visible", 0.0);
629 program { name: "text_hide";
630 signal: "elm,state,text,hidden";
635 get_state(PART:"elm.swallow.content", st, 30, vl);
636 if (!strcmp(st, "visible")) {
637 set_state(PART:"elm.swallow.content", "icononly", 0.0);
638 set_state(PART:"sizer.content", "icononly", 0.0);
640 set_state(PART:"elm.text", "default", 0.0);
643 program { name: "icon_show";
644 signal: "elm,state,icon,visible";
649 get_state(PART:"elm.text", st, 30, vl);
650 if (!strcmp(st, "visible")) {
651 set_state(PART:"elm.swallow.content", "visible", 0.0);
652 set_state(PART:"sizer.content", "visible", 0.0);
655 set_state(PART:"elm.swallow.content", "icononly", 0.0);
656 set_state(PART:"sizer.content", "icononly", 0.0);
660 program { name: "icon_hide";
661 signal: "elm,state,icon,hidden";
663 action: STATE_SET "default" 0.0;
664 target: "elm.swallow.content";
665 target: "sizer.content";
667 program { name: "disable";
668 signal: "elm,state,disabled";
670 action: STATE_SET "disabled" 0.0;
671 target: "button_image";
675 after: "disable_text";
677 program { name: "disable_text";
681 get_state(PART:"elm.text", st, 30, vl);
682 if (!strcmp(st, "visible"))
683 set_state(PART:"elm.text", "disabled_visible", 0.0);
685 set_state(PART:"elm.text", "disabled", 0.0);
688 program { name: "enable";
689 signal: "elm,state,enabled";
691 action: STATE_SET "default" 0.0;
692 target: "button_image";
696 after: "enable_text";
698 program { name: "enable_text";
702 get_state(PART:"elm.text", st, 30, vl);
703 if (!strcmp(st, "disabled_visible"))
704 set_state(PART:"elm.text", "visible", 0.0);
706 set_state(PART:"elm.text", "default", 0.0);
712 group { name: "elm/button/base/hoversel_vertical_entry/default";
713 alias: "elm/button/base/hoversel_vertical_entry/entry";
714 alias: "elm/button/base/hoversel_horizontal_entry/default";
715 alias: "elm/button/base/hoversel_horizontal_entry/entry";
717 image: "hoversel_entry_bg.png" COMP;
720 part { name: "button_image";
722 description { state: "default" 0.0;
723 color: 255 255 255 0;
724 image.normal: "hoversel_entry_bg.png";
725 image.border: 0 0 2 2;
728 description { state: "clicked" 0.0;
729 inherit: "default" 0.0;
730 color: 255 255 255 255;
733 part { name: "elm.swallow.content";
735 description { state: "default" 0.0;
740 rel2.relative: 0.0 1.0;
742 description { state: "visible" 0.0;
743 inherit: "default" 0.0;
747 aspect_preference: VERTICAL;
750 description { state: "icononly" 0.0;
751 inherit: "default" 0.0;
757 rel2.relative: 1.0 1.0;
758 aspect_preference: VERTICAL;
761 part { name: "textvis";
764 description { state: "default" 0.0;
767 description { state: "visible" 0.0;
778 description { state: "default" 0.0;
779 rel1.to_x: "elm.swallow.content";
780 rel1.relative: 1.0 0.0;
783 color: 224 224 224 255;
786 font: "Sans,Edje-Vera";
790 text_class: "button";
793 description { state: "visible" 0.0;
794 inherit: "default" 0.0;
797 description { state: "clicked" 0.0;
798 inherit: "default" 0.0;
804 part { name: "over2";
807 description { state: "default" 0.0;
811 // used to force sizing of icon to follow label sizing nearby
812 part { name: "sizer.content"; type: TEXT;
815 description { state: "default" 0.0;
818 font: "Sans,Edje-Vera";
821 text_class: "button";
824 description { state: "visible" 0.0;
825 inherit: "default" 0.0;
826 rel1.to: "elm.swallow.content";
827 rel2.to: "elm.swallow.content";
833 description { state: "icononly" 0.0;
834 inherit: "default" 0.0;
835 rel1.to: "elm.swallow.content";
836 rel2.to: "elm.swallow.content";
847 name: "button_click";
848 signal: "mouse,down,1";
850 action: STATE_SET "clicked" 0.0;
851 target: "button_image";
855 name: "button_unclick";
856 signal: "mouse,up,1";
858 action: STATE_SET "default" 0.0;
859 target: "button_image";
863 name: "button_unclick3";
864 signal: "mouse,up,1";
866 action: SIGNAL_EMIT "elm,action,click" "";
868 program { name: "text_show";
869 signal: "elm,state,text,visible";
874 get_state(PART:"elm.swallow.content", st, 30, vl);
875 if (!strcmp(st, "icononly")) {
876 set_state(PART:"elm.swallow.content", "visible", 0.0);
877 set_state(PART:"sizer.content", "visible", 0.0);
879 set_state(PART:"textvis", "visible", 0.0);
880 set_state(PART:"elm.text", "visible", 0.0);
883 program { name: "text_hide";
884 signal: "elm,state,text,hidden";
889 get_state(PART:"elm.swallow.content", st, 30, vl);
890 if (!strcmp(st, "visible")) {
891 set_state(PART:"elm.swallow.content", "icononly", 0.0);
892 set_state(PART:"sizer.content", "icononly", 0.0);
894 set_state(PART:"textvis", "default", 0.0);
895 set_state(PART:"elm.text", "default", 0.0);
898 program { name: "icon_show";
899 signal: "elm,state,icon,visible";
904 get_state(PART:"textvis", st, 30, vl);
905 if (!strcmp(st, "visible")) {
906 set_state(PART:"elm.swallow.content", "visible", 0.0);
907 set_state(PART:"sizer.content", "visible", 0.0);
910 set_state(PART:"elm.swallow.content", "icononly", 0.0);
911 set_state(PART:"sizer.content", "icononly", 0.0);
915 program { name: "icon_hide";
916 signal: "elm,state,icon,hidden";
918 action: STATE_SET "default" 0.0;
919 target: "elm.swallow.content";
920 target: "sizer.content";
925 group { name: "elm/button/base/anchor";
927 image: "bt_base1.png" COMP;
928 image: "bt_base2.png" COMP;
929 image: "bt_hilight.png" COMP;
930 image: "bt_shine.png" COMP;
931 image: "bt_glow.png" COMP;
932 image: "bt_dis_base.png" COMP;
933 image: "bt_dis_hilight.png" COMP;
936 part { name: "button_image";
938 description { state: "default" 0.0;
940 color: 255 255 255 0;
942 normal: "bt_base2.png";
947 description { state: "visible" 0.0;
948 inherit: "default" 0.0;
949 color: 255 255 255 255;
951 description { state: "clicked" 0.0;
952 inherit: "default" 0.0;
953 inherit: "visible" 0.0;
954 image.normal: "bt_base1.png";
957 description { state: "disabled" 0.0;
958 inherit: "default" 0.0;
959 inherit: "visible" 0.0;
961 normal: "bt_dis_base.png";
966 part { name: "elm.swallow.content";
968 description { state: "default" 0.0;
974 rel2.relative: 0.0 1.0;
976 description { state: "visible" 0.0;
977 inherit: "default" 0.0;
981 aspect_preference: VERTICAL;
984 description { state: "icononly" 0.0;
985 inherit: "default" 0.0;
991 rel2.relative: 1.0 1.0;
992 aspect_preference: VERTICAL;
1001 description { state: "default" 0.0;
1003 rel1.to_x: "elm.swallow.content";
1004 rel1.relative: 1.0 0.0;
1007 color: 224 224 224 255;
1010 font: "Sans,Edje-Vera";
1014 text_class: "button";
1017 description { state: "visible" 0.0;
1018 inherit: "default" 0.0;
1022 description { state: "disabled" 0.0;
1023 inherit: "default" 0.0;
1025 description { state: "disabled_visible" 0.0;
1026 inherit: "default" 0.0;
1033 part { name: "over1";
1035 description { state: "default" 0.0;
1036 color: 255 255 255 0;
1037 rel2.relative: 1.0 0.5;
1039 normal: "bt_hilight.png";
1043 description { state: "visible" 0.0;
1044 inherit: "default" 0.0;
1045 color: 255 255 255 255;
1047 description { state: "disabled" 0.0;
1048 inherit: "default" 0.0;
1049 inherit: "visible" 0.0;
1051 normal: "bt_dis_hilight.png";
1056 part { name: "over2";
1059 ignore_flags: ON_HOLD;
1060 description { state: "default" 0.0;
1062 normal: "bt_shine.png";
1066 description { state: "disabled" 0.0;
1067 inherit: "default" 0.0;
1071 part { name: "over3";
1074 description { state: "default" 0.0;
1075 color: 255 255 255 0;
1077 normal: "bt_glow.png";
1078 border: 12 12 12 12;
1082 description { state: "clicked" 0.0;
1083 inherit: "default" 0.0;
1085 color: 255 255 255 255;
1088 part { name: "disabler";
1090 description { state: "default" 0.0;
1094 description { state: "disabled" 0.0;
1095 inherit: "default" 0.0;
1099 // used to force sizing of icon to follow label sizing nearby
1100 part { name: "sizer.content"; type: TEXT;
1103 description { state: "default" 0.0;
1106 font: "Sans,Edje-Vera";
1109 text_class: "button";
1112 description { state: "visible" 0.0;
1113 inherit: "default" 0.0;
1114 rel1.to: "elm.swallow.content";
1115 rel2.to: "elm.swallow.content";
1121 description { state: "icononly" 0.0;
1122 inherit: "default" 0.0;
1123 rel1.to: "elm.swallow.content";
1124 rel2.to: "elm.swallow.content";
1135 name: "button_mouse_in";
1138 action: STATE_SET "visible" 0.0;
1139 target: "button_image";
1141 transition: DECELERATE 0.5;
1144 name: "button_mouse_out";
1145 signal: "mouse,out";
1147 action: STATE_SET "default" 0.0;
1148 target: "button_image";
1150 transition: DECELERATE 0.5;
1153 name: "button_unclick";
1154 signal: "mouse,up,1";
1156 action: STATE_SET "visible" 0.0;
1157 target: "button_image";
1160 name: "button_click2";
1161 signal: "mouse,down,1";
1163 action: STATE_SET "clicked" 0.0;
1167 name: "button_unclick2";
1168 signal: "mouse,up,1";
1170 action: STATE_SET "default" 0.0;
1171 transition: DECELERATE 0.5;
1175 name: "button_unclick3";
1176 signal: "mouse,up,1";
1178 action: SIGNAL_EMIT "elm,action,click" "";
1180 program { name: "text_show";
1181 signal: "elm,state,text,visible";
1186 get_state(PART:"elm.swallow.content", st, 30, vl);
1187 if (!strcmp(st, "icononly")) {
1188 set_state(PART:"elm.swallow.content", "visible", 0.0);
1189 set_state(PART:"sizer.content", "visible", 0.0);
1191 get_state(PART:"elm.text", st, 30, vl);
1192 if (!strcmp(st, "disabled") || (!strcmp(st, "disabled_visible")))
1193 set_state(PART:"elm.text", "disabled_visible", 0.0);
1195 set_state(PART:"elm.text", "visible", 0.0);
1198 program { name: "text_hide";
1199 signal: "elm,state,text,hidden";
1204 get_state(PART:"elm.swallow.content", st, 30, vl);
1205 if (!strcmp(st, "visible")) {
1206 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1207 set_state(PART:"sizer.content", "icononly", 0.0);
1209 get_state(PART:"elm.text", st, 30, vl);
1210 if (!strcmp(st, "default") || (!strcmp(st, "visible")))
1211 set_state(PART:"elm.text", "default", 0.0);
1213 set_state(PART:"elm.text", "disabled", 0.0);
1216 program { name: "icon_show";
1217 signal: "elm,state,icon,visible";
1222 get_state(PART:"elm.text", st, 30, vl);
1223 if (!strcmp(st, "visible")) {
1224 set_state(PART:"elm.swallow.content", "visible", 0.0);
1225 set_state(PART:"sizer.content", "visible", 0.0);
1228 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1229 set_state(PART:"sizer.content", "icononly", 0.0);
1233 program { name: "icon_hide";
1234 signal: "elm,state,icon,hidden";
1236 action: STATE_SET "default" 0.0;
1237 target: "elm.swallow.content";
1238 target: "sizer.content";
1240 program { name: "disable";
1241 signal: "elm,state,disabled";
1246 set_state(PART:"button_image", "disabled", 0.0);
1247 set_state(PART:"over1", "disabled", 0.0);
1248 set_state(PART:"over2", "disabled", 0.0);
1249 set_state(PART:"disabler", "disabled", 0.0);
1250 get_state(PART:"elm.text", st, 30, vl);
1251 if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible"))
1252 set_state(PART:"elm.text", "disabled_visible", 0.0);
1254 set_state(PART:"elm.text", "disabled", 0.0);
1257 program { name: "enable";
1258 signal: "elm,state,enabled";
1263 set_state(PART:"button_image", "visible", 0.0);
1264 set_state(PART:"over1", "visible", 0.0);
1265 set_state(PART:"over2", "visible", 0.0);
1266 set_state(PART:"disabler", "visible", 0.0);
1267 get_state(PART:"elm.text", st, 30, vl);
1268 if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible"))
1269 set_state(PART:"elm.text", "visible", 0.0);
1271 set_state(PART:"elm.text", "default", 0.0);
1277 group { name: "elm/button/base/colorselector/left/default";
1279 image: "bt_base1.png" COMP;
1280 image: "bt_base2.png" COMP;
1281 image: "bt_hilight.png" COMP;
1282 image: "bt_shine.png" COMP;
1283 image: "bt_glow.png" COMP;
1284 image: "bt_dis_base.png" COMP;
1285 image: "bt_dis_hilight.png" COMP;
1286 image: "sp_bt_l.png" COMP;
1289 part { name: "button_image";
1291 description { state: "default" 0.0;
1294 normal: "bt_base2.png";
1297 image.middle: SOLID;
1299 description { state: "clicked" 0.0;
1300 inherit: "default" 0.0;
1301 image.normal: "bt_base1.png";
1303 description { state: "disabled" 0.0;
1304 inherit: "default" 0.0;
1306 normal: "bt_dis_base.png";
1311 part { name: "prev_image";
1314 description { state: "default" 0.0;
1319 image.normal: "sp_bt_l.png";
1322 part { name: "over1";
1324 description { state: "default" 0.0;
1325 rel2.relative: 1.0 0.5;
1327 normal: "bt_hilight.png";
1331 description { state: "disabled" 0.0;
1332 inherit: "default" 0.0;
1334 normal: "bt_dis_hilight.png";
1339 part { name: "over2";
1342 ignore_flags: ON_HOLD;
1343 description { state: "default" 0.0;
1345 normal: "bt_shine.png";
1349 description { state: "disabled" 0.0;
1350 inherit: "default" 0.0;
1354 part { name: "over3";
1357 description { state: "default" 0.0;
1358 color: 255 255 255 0;
1360 normal: "bt_glow.png";
1361 border: 12 12 12 12;
1365 description { state: "clicked" 0.0;
1366 inherit: "default" 0.0;
1367 color: 255 255 255 255;
1370 part { name: "disabler";
1372 description { state: "default" 0.0;
1376 description { state: "disabled" 0.0;
1377 inherit: "default" 0.0;
1384 name: "button_click";
1385 signal: "mouse,down,1";
1387 action: SIGNAL_EMIT "elm,action,press" "";
1388 after: "button_click_anim";
1391 name: "button_click_anim";
1392 action: STATE_SET "clicked" 0.0;
1393 target: "button_image";
1396 name: "button_unclick";
1397 signal: "mouse,up,1";
1399 action: SIGNAL_EMIT "elm,action,unpress" "";
1400 after: "button_unclick_anim";
1403 name: "button_pressed_anim";
1404 signal: "elm,anim,activate";
1406 action: STATE_SET "clicked" 0.0;
1407 target: "button_image";
1409 after: "button_unpressed_anim";
1412 name: "button_unpressed_anim";
1413 action: STATE_SET "default" 0.0;
1414 transition: DECELERATE 0.5;
1415 target: "button_image";
1419 name: "button_unclick_anim";
1420 action: STATE_SET "default" 0.0;
1421 target: "button_image";
1424 name: "button_click2";
1425 signal: "mouse,down,1";
1427 action: STATE_SET "clicked" 0.0;
1431 name: "button_unclick2";
1432 signal: "mouse,up,1";
1434 action: STATE_SET "default" 0.0;
1435 transition: DECELERATE 0.5;
1439 name: "button_unclick3";
1440 signal: "mouse,clicked,1";
1442 action: SIGNAL_EMIT "elm,action,click" "";
1444 program { name: "disable";
1445 signal: "elm,state,disabled";
1447 action: STATE_SET "disabled" 0.0;
1448 target: "button_image";
1453 program { name: "enable";
1454 signal: "elm,state,enabled";
1456 action: STATE_SET "default" 0.0;
1457 target: "button_image";
1465 group { name: "elm/button/base/colorselector/right/default";
1466 inherit: "elm/button/base/colorselector/left/default";
1468 image: "sp_bt_r.png" COMP;
1471 part { name: "prev_image";
1474 description { state: "default" 0.0;
1479 image.normal: "sp_bt_r.png";