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 BUTTON_STATE_ENABLED 0
21 #define BUTTON_STATE_DISABLED 1
25 name: "touch_sound" AS_IS;
26 source: "S_Touch_30ms.wav";
30 ///////////////////////////////////////////////////////////////////////////////////////
31 group { name: "elm/button/base/style1";
32 alias: "elm/button/base/text_only/style1";
33 alias: "elm/button/base/center";
34 alias: "elm/button/base/icon_and_text/center";
35 alias: "elm/button/base/nocontents/search_button";
36 alias: "elm/button/base/style1/multiline";
38 image: "00_button_01.png" COMP;
39 image: "00_button_01_press.png" COMP;
40 image: "00_button_01_dim.png" COMP;
43 public button_state = BUTTON_STATE_ENABLED;
46 part { name: "button_image";
48 description { state: "default" 0.0;
50 normal: "00_button_01.png";
51 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
55 description { state: "clicked" 0.0;
56 inherit: "default" 0.0;
57 image.normal: "00_button_01_press.png";
59 description { state: "disabled" 0.0;
60 inherit: "default" 0.0;
61 image.normal: "00_button_01_dim.png";
63 description { state: "focused" 0.0;
64 inherit: "default" 0.0;
65 image.normal: "00_button_01_press.png";
68 part { name: "padding_left_top";
72 description { state: "default" 0.0;
74 rel2.relative: 0.0 0.0;
75 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
84 description { state: "default" 0.0;
85 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
88 description { state: "visible" 0.0;
89 inherit: "default" 0.0;
90 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
92 description { state: "icononly" 0.0;
93 inherit: "default" 0.0;
94 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
97 part { name: "padding_right_bottom";
101 description { state: "default" 0.0;
103 rel1.relative: 1.0 1.0;
104 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
109 part { name: "icon_rect";
113 description { state: "default" 0.0;
119 to: "padding_left_top";
123 to_x: "padding_left_top";
124 to_y: "padding_right_bottom";
128 description { state: "visible" 0.0;
129 inherit: "default" 0.0;
130 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
131 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
133 description { state: "icononly" 0.0;
134 inherit: "default" 0.0;
137 part { name: "padding_after_icon";
141 description { state: "default" 0.0; //when only icon or no icon is there
147 rel2.to: "icon_rect";
152 description { state: "visible" 0.0;
153 inherit: "default" 0.0;
154 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
156 description { state: "icononly" 0.0;
157 inherit: "default" 0.0;
160 part { name: "padding_before_text";
164 description { state: "default" 0.0; //when only icon or no icon is there
169 to_y: "padding_left_top";
174 to_y: "padding_right_bottom";
177 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
181 part { name: "elm.swallow.content";
185 description { state: "default" 0.0;
190 to: "padding_left_top";
194 to_x: "padding_left_top";
195 to_y: "padding_right_bottom";
199 description { state: "visible" 0.0;
201 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
202 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
206 to_x: "padding_before_text";
207 to_y: "padding_left_top";
211 to_x: "padding_before_text";
212 to_y: "padding_right_bottom";
215 description { state: "icononly" 0.0;
216 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
217 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
220 part { name: "elm.text";
223 effect: SHADOW BOTTOM;
226 description { state: "default" 0.0;
230 to_x: "padding_after_icon";
231 to_y: "padding_left_top";
235 to: "padding_right_bottom";
237 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
238 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
240 font: "Tizen:style=Regular";
241 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
247 description { state: "visible" 0.0;
248 inherit: "default" 0.0;
251 description { state: "clicked" 0.0;
252 inherit: "default" 0.0;
254 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
255 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
257 description { state: "disabled" 0.0;
258 inherit: "default" 0.0;
260 description { state: "disabled_visible" 0.0;
261 inherit: "default" 0.0;
262 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
263 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
266 description { state: "focused" 0.0;
267 inherit: "default" 0.0;
269 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
272 part { name: "over2";
275 ignore_flags: ON_HOLD;
276 description { state: "default" 0.0;
280 part { name: "over3";
283 description { state: "default" 0.0;
287 part { name: "clipper";
289 description { state: "default" 0.0;
290 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
292 description { state: "disabled" 0.0;
293 inherit: "default" 0.0;
294 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
297 part { name: "disabler";
299 description { state: "default" 0.0;
303 description { state: "disabled" 0.0;
304 inherit: "default" 0.0;
310 program { name: "button_click";
311 signal: "mouse,down,1";
313 action: SIGNAL_EMIT "elm,action,press" "";
314 after: "button_click_anim";
316 program { name: "button_click_anim";
317 action: STATE_SET "clicked" 0.0;
318 target: "button_image";
319 after: "text_clicked";
321 program { name: "text_clicked";
325 get_state(PART:"elm.text", st, 30, vl);
326 if (!strcmp(st, "visible"))
327 set_state(PART:"elm.text", "clicked", 0.0);
330 program { name: "button_double_click";
331 signal: "mouse,down,1,double";
333 after: "button_click_anim";
335 program { name: "button_unpress";
336 action: SIGNAL_EMIT "elm,action,unpress" "";
338 program { name: "button_mouseout_clicked";
339 signal: "mouse,up,1";
344 get_state(PART:"elm.swallow.content", st, 30, vl);
345 if (strcmp(st, "icononly"))
347 emit("elm,action,default,text,set", "");
348 set_state(PART:"elm.text", "visible", 0.0);
350 if (get_int(button_state) != BUTTON_STATE_DISABLED)
351 set_state(PART:"button_image", "default", 0.0);
353 after: button_unpress;
355 program { name: "touch_snd";
356 signal: "mouse,clicked,1";
358 action: PLAY_SAMPLE "touch_sound" 1.0;
359 after: button_unclick3;
361 program { name: "button_unclick3";
362 action: SIGNAL_EMIT "elm,action,click" "";
364 program { name: "text_show";
365 signal: "elm,state,text,visible";
370 get_state(PART:"elm.swallow.content", st, 30, vl);
371 if (!strcmp(st, "icononly"))
373 set_state(PART:"elm.swallow.content", "visible", 0.0);
374 set_state(PART:"icon_rect", "visible", 0.0);
375 set_state(PART:"padding_after_icon", "visible", 0.0);
376 set_state(PART:"bg", "visible", 0.0);
378 if (get_int(button_state) != BUTTON_STATE_DISABLED)
379 set_state(PART:"elm.text", "visible", 0.0);
381 set_state(PART:"elm.text", "disabled_visible", 0.0);
384 program { name: "text_hide";
385 signal: "elm,state,text,hidden";
390 get_state(PART:"elm.swallow.content", st, 30, vl);
391 if (!strcmp(st, "visible"))
393 set_state(PART:"elm.swallow.content", "icononly", 0.0);
394 set_state(PART:"icon_rect", "icononly", 0.0);
395 set_state(PART:"padding_after_icon", "icononly", 0.0);
396 set_state(PART:"bg", "icononly", 0.0);
398 set_state(PART:"elm.text", "default", 0.0);
401 program { name: "icon_show";
402 signal: "elm,state,icon,visible";
407 get_state(PART:"elm.text", st, 30, vl);
408 if (!strcmp(st, "visible"))
410 set_state(PART:"elm.swallow.content", "visible", 0.0);
411 set_state(PART:"icon_rect", "visible", 0.0);
412 set_state(PART:"padding_after_icon", "visible", 0.0);
413 set_state(PART:"bg", "visible", 0.0);
417 set_state(PART:"elm.swallow.content", "icononly", 0.0);
418 set_state(PART:"icon_rect", "icononly", 0.0);
419 set_state(PART:"padding_after_icon", "icononly", 0.0);
420 set_state(PART:"bg", "icononly", 0.0);
424 program { name: "icon_hide";
425 signal: "elm,state,icon,hidden";
427 action: STATE_SET "default" 0.0;
428 target: "elm.swallow.content";
429 target: "padding_after_icon";
433 program { name: "disable";
434 signal: "elm,state,disabled";
436 action: STATE_SET "disabled" 0.0;
437 target: "button_image";
440 after: "disable_text";
442 program { name: "disable_text";
446 get_state(PART:"elm.text", st, 30, vl);
447 if (!strcmp(st, "visible"))
448 set_state(PART:"elm.text", "disabled_visible", 0.0);
450 set_state(PART:"elm.text", "disabled", 0.0);
451 set_int(button_state, BUTTON_STATE_DISABLED);
454 program { name: "enable";
455 signal: "elm,state,enabled";
457 action: STATE_SET "default" 0.0;
458 target: "button_image";
461 after: "enable_text";
463 program { name: "enable_text";
467 get_state(PART:"elm.text", st, 30, vl);
468 if (!strcmp(st, "disabled_visible"))
469 set_state(PART:"elm.text", "visible", 0.0);
471 set_state(PART:"elm.text", "default", 0.0);
472 set_int(button_state, BUTTON_STATE_ENABLED);
475 program { name: "focused";
476 //signal: "elm,action,focus";
478 action: STATE_SET "focused" 0.0;
479 target: "button_image";
482 program { name: "unfocused";
483 //signal: "elm,action,unfocus";
485 action: STATE_SET "default" 0.0;
486 target: "button_image";
487 after: "unfocus_text";
489 program { name: "unfocus_text";
490 action: STATE_SET "visible" 0.0;
496 //////////////////////////////////////////////////////////////
497 group { name: "elm/button/base/style1/auto_expand";
498 inherit: "elm/button/base/style1";
500 part { name: "elm.text";
503 effect: SHADOW BOTTOM;
506 description { state: "default" 0.0;
510 to_x: "padding_after_icon";
511 to_y: "padding_left_top";
515 to: "padding_right_bottom";
517 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
518 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
520 font: "Tizen:style=Regular";
521 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
527 description { state: "visible" 0.0;
528 inherit: "default" 0.0;
531 description { state: "clicked" 0.0;
532 inherit: "default" 0.0;
534 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
535 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
537 description { state: "disabled" 0.0;
538 inherit: "default" 0.0;
540 description { state: "disabled_visible" 0.0;
541 inherit: "default" 0.0;
542 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
543 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
546 description { state: "focused" 0.0;
547 inherit: "default" 0.0;
549 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
555 //////////////////////////////////////////////////////////////////////////////////////
556 group { name: "elm/button/base/datetime/ampm/default";
557 alias: "elm/button/base/datetime_ampm/default";
558 inherit: "elm/button/base/style1/auto_expand";
560 part { name: "button_image";
562 description { state: "default" 0.0;
564 normal: "00_button_01.png";
565 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
568 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
569 max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
571 description { state: "clicked" 0.0;
572 inherit: "default" 0.0;
573 image.normal: "00_button_01_press.png";
575 description { state: "disabled" 0.0;
576 inherit: "default" 0.0;
577 image.normal: "00_button_01_dim.png";
579 description { state: "focused" 0.0;
580 inherit: "default" 0.0;
581 image.normal: "00_button_01_press.png";
588 description { state: "default" 0.0;
592 description { state: "visible" 0.0;
593 inherit: "default" 0.0;
594 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
596 description { state: "icononly" 0.0;
597 inherit: "default" 0.0;
600 part { name: "elm.text";
603 effect: SHADOW BOTTOM;
606 description { state: "default" 0.0;
609 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
610 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
613 description { state: "visible" 0.0;
614 inherit: "default" 0.0;
617 description { state: "clicked" 0.0;
618 inherit: "default" 0.0;
620 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
621 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
623 description { state: "disabled" 0.0;
624 inherit: "default" 0.0;
626 description { state: "disabled_visible" 0.0;
627 inherit: "default" 0.0;
628 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
629 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
632 description { state: "focused" 0.0;
633 inherit: "default" 0.0;
635 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
641 ///////////////////////////////////////////////////////////////////////////////////////
642 group { name: "elm/button/base/style1/delete";
643 inherit: "elm/button/base/style1";
645 image: "00_button_01_Delete.png" COMP;
646 image: "00_button_01_Delete_dim.png" COMP;
647 image: "00_button_01_Delete_press.png" COMP;
650 part { name: "button_image";
652 description { state: "default" 0.0;
654 normal: "00_button_01_Delete.png";
655 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
659 description { state: "clicked" 0.0;
660 inherit: "default" 0.0;
661 image.normal: "00_button_01_Delete_press.png";
663 description { state: "disabled" 0.0;
664 inherit: "default" 0.0;
665 image.normal: "00_button_01_Delete_dim.png";
667 description { state: "focused" 0.0;
668 inherit: "default" 0.0;
669 image.normal: "00_button_01_Delete_press.png";
672 part { name: "elm.text";
675 effect: SHADOW BOTTOM;
678 description { state: "default" 0.0;
682 to_x: "padding_after_icon";
683 to_y: "padding_left_top";
687 to: "padding_right_bottom";
689 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
690 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
692 font: "Tizen:style=Regular";
693 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
699 description { state: "visible" 0.0;
700 inherit: "default" 0.0;
703 description { state: "clicked" 0.0;
704 inherit: "default" 0.0;
706 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
707 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
709 description { state: "disabled" 0.0;
710 inherit: "default" 0.0;
712 description { state: "disabled_visible" 0.0;
713 inherit: "default" 0.0;
714 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
715 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
718 description { state: "focused" 0.0;
719 inherit: "default" 0.0;
721 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
727 ///////////////////////////////////////////////////////////////////////////////////////
728 group { name: "elm/button/base/search_button/text";
729 alias: "elm/button/base/searchbar/default";
730 inherit: "elm/button/base/style1";
732 image: "00_button_01.png" COMP;
733 image: "00_button_01_dim.png" COMP;
734 image: "00_button_01_press.png" COMP;
737 part { name: "button_image";
739 description { state: "default" 0.0;
741 normal: "00_button_01.png";
742 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
746 description { state: "clicked" 0.0;
747 inherit: "default" 0.0;
748 image.normal: "00_button_01_press.png";
750 description { state: "disabled" 0.0;
751 inherit: "default" 0.0;
752 image.normal: "00_button_01_dim.png";
754 description { state: "focused" 0.0;
755 inherit: "default" 0.0;
756 image.normal: "00_button_01_press.png";
763 description { state: "default" 0.0;
764 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
767 description { state: "visible" 0.0;
768 inherit: "default" 0.0;
769 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
771 description { state: "icononly" 0.0;
772 inherit: "default" 0.0;
773 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
776 part { name: "elm.text";
779 effect: SHADOW BOTTOM;
782 description { state: "default" 0.0;
786 to_x: "padding_after_icon";
787 to_y: "padding_left_top";
791 to: "padding_right_bottom";
793 color: BUTTON_SEARCH_BUTTON_TEXT_NORMAL_COLOR_INC;
795 font: "Tizen:style=Regular";
796 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
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_SEARCH_BUTTON_TEXT_PRESSED_COLOR_INC;
810 color2: BUTTON_SEARCH_BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
812 description { state: "disabled" 0.0;
813 inherit: "default" 0.0;
815 description { state: "disabled_visible" 0.0;
816 inherit: "default" 0.0;
817 color: BUTTON_SEARCH_BUTTON_TEXT_DISABLED_COLOR_INC;
820 description { state: "focused" 0.0;
821 inherit: "default" 0.0;
823 color: BUTTON_SEARCH_BUTTON_TEXT_FOCUSED_COLOR_INC;
829 ///////////////////////////////////////////////////////////////////////////////////////
830 group { name: "elm/button/base/search_button/send";
831 inherit: "elm/button/base/style1";
833 image: "00_button_01_send.png" COMP;
834 image: "00_button_01_send_dim.png" COMP;
835 image: "00_button_01_send_press.png" COMP;
838 part { name: "button_image";
840 description { state: "default" 0.0;
842 normal: "00_button_01_send.png";
843 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
847 description { state: "clicked" 0.0;
848 inherit: "default" 0.0;
849 image.normal: "00_button_01_send_press.png";
851 description { state: "disabled" 0.0;
852 inherit: "default" 0.0;
853 image.normal: "00_button_01_send_dim.png";
855 description { state: "focused" 0.0;
856 inherit: "default" 0.0;
857 image.normal: "00_button_01_send_press.png";
864 description { state: "default" 0.0;
865 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
868 description { state: "visible" 0.0;
869 inherit: "default" 0.0;
870 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
872 description { state: "icononly" 0.0;
873 inherit: "default" 0.0;
874 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
877 part { name: "elm.text";
880 effect: SHADOW BOTTOM;
883 description { state: "default" 0.0;
887 to_x: "padding_after_icon";
888 to_y: "padding_left_top";
892 to: "padding_right_bottom";
894 color: BUTTON_SEARCH_BUTTON_SEND_NORMAL_COLOR_INC;
895 color2: BUTTON_SEARCH_BUTTON_SEND_SHADOW_NORMAL_COLOR_INC;
897 font: "Tizen:style=Regular";
898 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
904 description { state: "visible" 0.0;
905 inherit: "default" 0.0;
908 description { state: "clicked" 0.0;
909 inherit: "default" 0.0;
911 color: BUTTON_SEARCH_BUTTON_SEND_PRESSED_COLOR_INC;
913 description { state: "disabled" 0.0;
914 inherit: "default" 0.0;
916 description { state: "disabled_visible" 0.0;
917 inherit: "default" 0.0;
918 color: BUTTON_SEARCH_BUTTON_SEND_DISABLED_COLOR_INC;
921 description { state: "focused" 0.0;
922 inherit: "default" 0.0;
924 color: BUTTON_SEARCH_BUTTON_SEND_FOCUSED_COLOR_INC;
930 ///////////////////////////////////////////////////////////////////////////////////////
931 group { name: "elm/button/base/search_button/cancel";
932 inherit: "elm/button/base/style1";
934 image: "00_button_01_Delete.png" COMP;
935 image: "00_button_01_Delete_dim.png" COMP;
936 image: "00_button_01_Delete_press.png" COMP;
939 part { name: "button_image";
941 description { state: "default" 0.0;
943 normal: "00_button_01_Delete.png";
944 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
948 description { state: "clicked" 0.0;
949 inherit: "default" 0.0;
950 image.normal: "00_button_01_Delete_press.png";
952 description { state: "disabled" 0.0;
953 inherit: "default" 0.0;
954 image.normal: "00_button_01_Delete_dim.png";
956 description { state: "focused" 0.0;
957 inherit: "default" 0.0;
958 image.normal: "00_button_01_Delete_press.png";
965 description { state: "default" 0.0;
966 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
969 description { state: "visible" 0.0;
970 inherit: "default" 0.0;
971 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
973 description { state: "icononly" 0.0;
974 inherit: "default" 0.0;
975 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
978 part { name: "elm.text";
981 effect: SHADOW BOTTOM;
984 description { state: "default" 0.0;
988 to_x: "padding_after_icon";
989 to_y: "padding_left_top";
993 to: "padding_right_bottom";
995 color: BUTTON_SEARCH_BUTTON_CANCEL_NORMAL_COLOR_INC;
996 color2: BUTTON_SEARCH_BUTTON_CANCEL_SHADOW_NORMAL_COLOR_INC;
998 font: "Tizen:style=Regular";
999 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
1002 text_class: "tizen";
1005 description { state: "visible" 0.0;
1006 inherit: "default" 0.0;
1009 description { state: "clicked" 0.0;
1010 inherit: "default" 0.0;
1012 color: BUTTON_SEARCH_BUTTON_CANCEL_PRESSED_COLOR_INC;
1014 description { state: "disabled" 0.0;
1015 inherit: "default" 0.0;
1017 description { state: "disabled_visible" 0.0;
1018 inherit: "default" 0.0;
1019 color: BUTTON_SEARCH_BUTTON_CANCEL_DISABLED_COLOR_INC;
1022 description { state: "focused" 0.0;
1023 inherit: "default" 0.0;
1025 color: BUTTON_SEARCH_BUTTON_CANCEL_FOCUSED_COLOR_INC;
1031 ///////////////////////////////////////////////////////////////////////////////////////
1032 group { name: "elm/button/base/style2";
1033 alias: "elm/button/base/text_only/style2";
1034 alias: "elm/button/base/style2/multiline";
1036 image: "00_button_01.png" COMP;
1037 image: "00_button_01_press.png" COMP;
1038 image: "00_button_01_dim.png" COMP;
1041 public button_state = BUTTON_STATE_ENABLED;
1044 part { name: "button_image";
1046 description { state: "default" 0.0;
1048 normal: "00_button_01.png";
1049 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1053 description { state: "clicked" 0.0;
1054 inherit: "default" 0.0;
1055 image.normal: "00_button_01_press.png";
1057 description { state: "disabled" 0.0;
1058 inherit: "default" 0.0;
1059 image.normal: "00_button_01_dim.png";
1061 description { state: "focused" 0.0;
1062 inherit: "default" 0.0;
1063 image.normal: "00_button_01_press.png";
1066 part { name: "padding_left_top";
1070 description { state: "default" 0.0;
1072 rel2.relative: 0.0 0.0;
1073 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1082 description { state: "default" 0.0;
1083 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1086 description { state: "visible" 0.0;
1087 inherit: "default" 0.0;
1088 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1090 description { state: "icononly" 0.0;
1091 inherit: "default" 0.0;
1092 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1095 part { name: "padding_right_bottom";
1099 description { state: "default" 0.0;
1101 rel1.relative: 1.0 1.0;
1102 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1107 part { name: "icon_rect";
1111 description { state: "default" 0.0;
1117 to: "padding_left_top";
1121 to_x: "padding_left_top";
1122 to_y: "padding_right_bottom";
1126 description { state: "visible" 0.0;
1127 inherit: "default" 0.0;
1128 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1129 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1131 description { state: "icononly" 0.0;
1132 inherit: "default" 0.0;
1135 part { name: "padding_after_icon";
1139 description { state: "default" 0.0; //when only icon or no icon is there
1147 rel2.to: "icon_rect";
1150 description { state: "visible" 0.0;
1151 inherit: "default" 0.0;
1152 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1154 description { state: "icononly" 0.0;
1155 inherit: "default" 0.0;
1158 part { name: "padding_before_text";
1162 description { state: "default" 0.0; //when only icon or no icon is there
1167 to_y: "padding_left_top";
1172 to_y: "padding_right_bottom";
1175 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1179 part { name: "elm.swallow.content";
1183 description { state: "default" 0.0;
1188 to: "padding_left_top";
1192 to_x: "padding_left_top";
1193 to_y: "padding_right_bottom";
1197 description { state: "visible" 0.0;
1199 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1200 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1204 to_x: "padding_before_text";
1205 to_y: "padding_left_top";
1209 to_x: "padding_before_text";
1210 to_y: "padding_right_bottom";
1213 description { state: "icononly" 0.0;
1214 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1215 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1218 part { name: "elm.text";
1223 effect: SHADOW BOTTOM;
1224 description { state: "default" 0.0;
1228 to_x: "padding_after_icon";
1229 to_y: "padding_left_top";
1233 to: "padding_right_bottom";
1235 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1236 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1238 font: "Tizen:style=Regular";
1239 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1242 text_class: "tizen";
1245 description { state: "visible" 0.0;
1246 inherit: "default" 0.0;
1249 description { state: "clicked" 0.0;
1250 inherit: "default" 0.0;
1252 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1253 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1255 description { state: "disabled" 0.0;
1256 inherit: "default" 0.0;
1258 description { state: "disabled_visible" 0.0;
1259 inherit: "default" 0.0;
1260 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1261 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1264 description { state: "focused" 0.0;
1265 inherit: "default" 0.0;
1267 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1270 part { name: "over2";
1273 ignore_flags: ON_HOLD;
1274 description { state: "default" 0.0;
1278 part { name: "over3";
1281 description { state: "default" 0.0;
1285 part { name: "clipper";
1287 description { state: "default" 0.0;
1288 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1290 description { state: "disabled" 0.0;
1291 inherit: "default" 0.0;
1292 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1295 part { name: "disabler";
1297 description { state: "default" 0.0;
1301 description { state: "disabled" 0.0;
1302 inherit: "default" 0.0;
1308 program { name: "button_click";
1309 signal: "mouse,down,1";
1311 action: SIGNAL_EMIT "elm,action,press" "";
1312 after: "button_click_anim";
1314 program { name: "button_click_anim";
1315 action: STATE_SET "clicked" 0.0;
1316 target: "button_image";
1317 after: "text_clicked";
1319 program { name: "text_clicked";
1323 get_state(PART:"elm.text", st, 30, vl);
1324 if (!strcmp(st, "visible"))
1325 set_state(PART:"elm.text", "clicked", 0.0);
1328 program { name: "button_double_click";
1329 signal: "mouse,down,1,double";
1331 after: "button_click_anim";
1333 program { name: "button_unpress";
1334 action: SIGNAL_EMIT "elm,action,unpress" "";
1336 program { name: "button_mouseout_clicked";
1337 signal: "mouse,up,1";
1342 get_state(PART:"elm.swallow.content", st, 30, vl);
1343 if (strcmp(st, "icononly"))
1345 emit("elm,action,default,text,set", "");
1346 set_state(PART:"elm.text", "visible", 0.0);
1348 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1349 set_state(PART:"button_image", "default", 0.0);
1351 after: button_unpress;
1353 program { name: "touch_snd";
1354 signal: "mouse,clicked,1";
1356 action: PLAY_SAMPLE "touch_sound" 1.0;
1357 after: button_unclick3;
1359 program { name: "button_unclick3";
1360 action: SIGNAL_EMIT "elm,action,click" "";
1362 program { name: "text_show";
1363 signal: "elm,state,text,visible";
1368 get_state(PART:"elm.swallow.content", st, 30, vl);
1369 if (!strcmp(st, "icononly"))
1371 set_state(PART:"elm.swallow.content", "visible", 0.0);
1372 set_state(PART:"icon_rect", "visible", 0.0);
1373 set_state(PART:"padding_after_icon", "visible", 0.0);
1374 set_state(PART:"bg", "visible", 0.0);
1376 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1377 set_state(PART:"elm.text", "visible", 0.0);
1379 set_state(PART:"elm.text", "disabled_visible", 0.0);
1382 program { name: "text_hide";
1383 signal: "elm,state,text,hidden";
1388 get_state(PART:"elm.swallow.content", st, 30, vl);
1389 if (!strcmp(st, "visible"))
1391 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1392 set_state(PART:"icon_rect", "icononly", 0.0);
1393 set_state(PART:"padding_after_icon", "icononly", 0.0);
1394 set_state(PART:"bg", "icononly", 0.0);
1396 set_state(PART:"elm.text", "default", 0.0);
1399 program { name: "icon_show";
1400 signal: "elm,state,icon,visible";
1405 get_state(PART:"elm.text", st, 30, vl);
1406 if (!strcmp(st, "visible"))
1408 set_state(PART:"elm.swallow.content", "visible", 0.0);
1409 set_state(PART:"icon_rect", "visible", 0.0);
1410 set_state(PART:"padding_after_icon", "visible", 0.0);
1411 set_state(PART:"bg", "visible", 0.0);
1415 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1416 set_state(PART:"icon_rect", "icononly", 0.0);
1417 set_state(PART:"padding_after_icon", "icononly", 0.0);
1418 set_state(PART:"bg", "icononly", 0.0);
1422 program { name: "icon_hide";
1423 signal: "elm,state,icon,hidden";
1425 action: STATE_SET "default" 0.0;
1426 target: "elm.swallow.content";
1427 target: "padding_after_icon";
1428 target: "icon_rect";
1431 program { name: "disable";
1432 signal: "elm,state,disabled";
1434 action: STATE_SET "disabled" 0.0;
1435 target: "button_image";
1438 after: "disable_text";
1440 program { name: "disable_text";
1444 get_state(PART:"elm.text", st, 30, vl);
1445 if (!strcmp(st, "visible"))
1446 set_state(PART:"elm.text", "disabled_visible", 0.0);
1448 set_state(PART:"elm.text", "disabled", 0.0);
1449 set_int(button_state, BUTTON_STATE_DISABLED);
1452 program { name: "enable";
1453 signal: "elm,state,enabled";
1455 action: STATE_SET "default" 0.0;
1456 target: "button_image";
1459 after: "enable_text";
1461 program { name: "enable_text";
1465 get_state(PART:"elm.text", st, 30, vl);
1466 if (!strcmp(st, "disabled_visible"))
1467 set_state(PART:"elm.text", "visible", 0.0);
1469 set_state(PART:"elm.text", "default", 0.0);
1470 set_int(button_state, BUTTON_STATE_ENABLED);
1473 program { name: "focused";
1474 //signal: "elm,action,focus";
1476 action: STATE_SET "focused" 0.0;
1477 target: "button_image";
1480 program { name: "unfocused";
1481 //signal: "elm,action,unfocus";
1483 action: STATE_SET "default" 0.0;
1484 target: "button_image";
1485 after: "unfocus_text";
1487 program { name: "unfocus_text";
1488 action: STATE_SET "visible" 0.0;
1494 ///////////////////////////////////////////////////////////////////////////////////////
1495 group { name: "elm/button/base/sweep";
1496 alias: "elm/button/base/text_only/sweep";
1497 alias: "elm/button/base/hidden";
1498 alias: "elm/button/base/sweep/multiline";
1500 image: "00_button_01.png" COMP;
1501 image: "00_button_01_press.png" COMP;
1502 image: "00_button_01_dim.png" COMP;
1505 public button_state = BUTTON_STATE_ENABLED;
1508 style { name: "btn_sweep_multiline";
1509 base: "font=Tizen:style=Regular font_size="BUTTON_SWEEP_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed linegap=-7 ellipsis=1.0 text_class=tizen";
1516 part { name: "button_image";
1518 description { state: "default" 0.0;
1519 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1521 normal: "00_button_01.png";
1522 border: BUTTON_SWEEP_BG_BORDER_INC;
1526 description { state: "clicked" 0.0;
1527 inherit: "default" 0.0;
1528 image.normal: "00_button_01_press.png";
1530 description { state: "disabled" 0.0;
1531 inherit: "default" 0.0;
1532 image.normal: "00_button_01_dim.png";
1534 description { state: "focused" 0.0;
1535 inherit: "default" 0.0;
1536 image.normal: "00_button_01_press.png";
1539 part { name: "padding_left_top";
1543 description { state: "default" 0.0;
1545 rel2.relative: 0.0 0.0;
1546 min: BUTTON_SWEEP_PADDING_MIN_INC;
1551 part { name: "padding_right_bottom";
1555 description { state: "default" 0.0;
1557 rel1.relative: 1.0 1.0;
1558 min: BUTTON_SWEEP_PADDING_MIN_INC;
1563 part { name: "icon_rect";
1567 description { state: "default" 0.0;
1568 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1572 to_x: "elm.swallow.content";
1573 to_y: "padding_left_top";
1577 to_x: "elm.swallow.content";
1578 to_y: "padding_right_bottom";
1584 part { name: "padding_icon_text";
1588 description { state: "default" 0.0; //when only icon or no icon is there
1596 rel2.to: "icon_rect";
1599 description { state: "visible" 0.0; //when icon is visible
1600 inherit: "default" 0.0;
1601 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1603 description { state: "icononly" 0.0;
1604 inherit: "default" 0.0;
1607 part { name: "elm.swallow.content";
1611 description { state: "default" 0.0;
1616 to: "padding_left_top";
1620 to_x: "padding_left_top";
1621 to_y: "padding_right_bottom";
1625 description { state: "visible" 0.0;
1626 inherit: "default" 0.0;
1627 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1628 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1631 aspect_preference: VERTICAL;
1633 description { state: "icononly" 0.0;
1634 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1635 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1638 part { name: "elm.text";
1641 effect: SHADOW BOTTOM;
1644 description { state: "default" 0.0;
1649 to_x: "padding_icon_text";
1650 to_y: "padding_left_top";
1654 to: "padding_right_bottom";
1656 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1657 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1659 style: "btn_sweep_multiline";
1663 description { state: "visible" 0.0;
1664 inherit: "default" 0.0;
1666 min: BUTTON_SWEEP_TEXT_MIN_INC;
1668 description { state: "clicked" 0.0;
1669 inherit: "default" 0.0;
1672 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1673 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1675 description { state: "disabled" 0.0;
1676 inherit: "default" 0.0;
1678 description { state: "disabled_visible" 0.0;
1679 inherit: "default" 0.0;
1680 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1681 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1683 min: BUTTON_SWEEP_TEXT_MIN_INC;
1685 description { state: "focused" 0.0;
1686 inherit: "default" 0.0;
1689 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1692 part { name: "over2";
1695 ignore_flags: ON_HOLD;
1696 description { state: "default" 0.0;
1700 part { name: "over3";
1703 description { state: "default" 0.0;
1707 part { name: "clipper";
1709 description { state: "default" 0.0;
1710 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1712 description { state: "disabled" 0.0;
1713 inherit: "default" 0.0;
1714 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1717 part { name: "disabler";
1719 description { state: "default" 0.0;
1723 description { state: "disabled" 0.0;
1724 inherit: "default" 0.0;
1730 program { name: "button_click";
1731 signal: "mouse,down,1";
1733 action: SIGNAL_EMIT "elm,action,press" "";
1734 after: "button_click_anim";
1736 program { name: "button_click_anim";
1737 action: STATE_SET "clicked" 0.0;
1738 target: "button_image";
1739 after: "text_clicked";
1741 program { name: "text_clicked";
1745 get_state(PART:"elm.text", st, 30, vl);
1746 if (!strcmp(st, "visible"))
1747 set_state(PART:"elm.text", "clicked", 0.0);
1750 program { name: "button_double_click";
1751 signal: "mouse,down,1,double";
1753 after: "button_click_anim";
1755 program { name: "button_unpress";
1756 action: SIGNAL_EMIT "elm,action,unpress" "";
1758 program { name: "button_mouseout_clicked";
1759 signal: "mouse,up,1";
1764 get_state(PART:"elm.swallow.content", st, 30, vl);
1765 if (strcmp(st, "icononly"))
1767 emit("elm,action,default,text,set", "");
1768 set_state(PART:"elm.text", "visible", 0.0);
1770 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1771 set_state(PART:"button_image", "default", 0.0);
1773 after: button_unpress;
1775 program { name: "touch_snd";
1776 signal: "mouse,clicked,1";
1778 action: PLAY_SAMPLE "touch_sound" 1.0;
1779 after: button_unclick3;
1781 program { name: "button_unclick3";
1782 action: SIGNAL_EMIT "elm,action,click" "";
1784 program { name: "text_show";
1785 signal: "elm,state,text,visible";
1790 get_state(PART:"elm.swallow.content", st, 30, vl);
1791 if (!strcmp(st, "icononly"))
1793 set_state(PART:"elm.swallow.content", "visible", 0.0);
1794 set_state(PART:"padding_icon_text", "visible", 0.0);
1796 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1797 set_state(PART:"elm.text", "visible", 0.0);
1799 set_state(PART:"elm.text", "disabled_visible", 0.0);
1802 program { name: "text_hide";
1803 signal: "elm,state,text,hidden";
1808 get_state(PART:"elm.swallow.content", st, 30, vl);
1809 if (!strcmp(st, "visible"))
1811 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1812 set_state(PART:"padding_icon_text", "icononly", 0.0);
1814 set_state(PART:"elm.text", "default", 0.0);
1817 program { name: "icon_show";
1818 signal: "elm,state,icon,visible";
1823 get_state(PART:"elm.text", st, 30, vl);
1824 if (!strcmp(st, "visible"))
1826 set_state(PART:"elm.swallow.content", "visible", 0.0);
1827 set_state(PART:"padding_icon_text", "visible", 0.0);
1831 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1832 set_state(PART:"padding_icon_text", "icononly", 0.0);
1836 program { name: "icon_hide";
1837 signal: "elm,state,icon,hidden";
1839 action: STATE_SET "default" 0.0;
1840 target: "elm.swallow.content";
1841 target: "padding_icon_text";
1843 program { name: "disable";
1844 signal: "elm,state,disabled";
1846 action: STATE_SET "disabled" 0.0;
1847 target: "button_image";
1850 after: "disable_text";
1852 program { name: "disable_text";
1856 get_state(PART:"elm.text", st, 30, vl);
1857 if (!strcmp(st, "visible"))
1858 set_state(PART:"elm.text", "disabled_visible", 0.0);
1860 set_state(PART:"elm.text", "disabled", 0.0);
1861 set_int(button_state, BUTTON_STATE_DISABLED);
1864 program { name: "enable";
1865 signal: "elm,state,enabled";
1867 action: STATE_SET "default" 0.0;
1868 target: "button_image";
1871 after: "enable_text";
1873 program { name: "enable_text";
1877 get_state(PART:"elm.text", st, 30, vl);
1878 if (!strcmp(st, "disabled_visible"))
1879 set_state(PART:"elm.text", "visible", 0.0);
1881 set_state(PART:"elm.text", "default", 0.0);
1882 set_int(button_state, BUTTON_STATE_ENABLED);
1885 program { name: "focused";
1886 //signal: "elm,action,focus";
1888 action: STATE_SET "focused" 0.0;
1889 target: "button_image";
1892 program { name: "unfocused";
1893 //signal: "elm,action,unfocus";
1895 action: STATE_SET "default" 0.0;
1896 target: "button_image";
1897 after: "unfocus_text";
1899 program { name: "unfocus_text";
1900 action: STATE_SET "visible" 0.0;
1906 ///////////////////////////////////////////////////////////////////////////////////////
1907 group { name: "elm/button/base/sweep/delete";
1908 inherit: "elm/button/base/sweep";
1909 alias: "elm/button/base/sweep/delete/multiline";
1911 image: "00_button_01_Delete_press.png" COMP;
1912 image: "00_button_01_Delete.png" COMP;
1913 image: "00_button_01_Delete_dim.png" COMP;
1916 style { name: "btn_sweep_delete_multiline";
1917 base: "font=Tizen:style=Regular font_size="BUTTON_SWEEP_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed linegap=-7 ellipsis=1.0 text_class=tizen";
1924 part { name: "button_image";
1926 description { state: "default" 0.0;
1927 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1929 normal: "00_button_01_Delete.png";
1930 border: BUTTON_SWEEP_BG_BORDER_INC;
1934 description { state: "clicked" 0.0;
1935 inherit: "default" 0.0;
1936 image.normal: "00_button_01_Delete_press.png";
1938 description { state: "disabled" 0.0;
1939 inherit: "default" 0.0;
1940 image.normal: "00_button_01_Delete_dim.png";
1942 description { state: "focused" 0.0;
1943 inherit: "default" 0.0;
1944 image.normal: "00_button_01_Delete_press.png";
1947 part { name: "elm.text";
1950 effect: SHADOW BOTTOM;
1953 description { state: "default" 0.0;
1958 to_x: "padding_icon_text";
1959 to_y: "padding_left_top";
1963 to: "padding_right_bottom";
1965 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
1966 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1968 style: "btn_sweep_multiline";
1972 description { state: "visible" 0.0;
1973 inherit: "default" 0.0;
1975 min: BUTTON_SWEEP_TEXT_MIN_INC;
1977 description { state: "clicked" 0.0;
1978 inherit: "default" 0.0;
1981 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
1982 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1984 description { state: "disabled" 0.0;
1985 inherit: "default" 0.0;
1987 description { state: "disabled_visible" 0.0;
1988 inherit: "default" 0.0;
1989 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
1990 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1992 min: BUTTON_SWEEP_TEXT_MIN_INC;
1994 description { state: "focused" 0.0;
1995 inherit: "default" 0.0;
1998 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
2004 ///////////////////////////////////////////////////////////////////////////////////////
2005 group { name: "elm/button/base/popup_button/default";
2006 alias: "elm/button/base/popup_button/menustyle";
2007 alias: "elm/button/base/popup_button/liststyle";
2008 alias: "elm/button/base/popup_button/volumebarstyle";
2009 alias: "elm/button/base/popup_button/customstyle";
2010 alias: "elm/button/base/popup_button/verticalbuttonstyle";
2011 alias: "elm/button/base/popup_button/default/multiline";
2013 image: "00_button_01.png" COMP;
2014 image: "00_button_01_dim.png" COMP;
2015 image: "00_button_01_press.png" COMP;
2018 public button_state = BUTTON_STATE_ENABLED;
2021 part { name: "button_image";
2023 description { state: "default" 0.0;
2024 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2026 normal: "00_button_01.png";
2027 border: BUTTON_POPUP_BG_BORDER_INC;
2031 description { state: "clicked" 0.0;
2032 inherit: "default" 0.0;
2033 image.normal: "00_button_01_press.png";
2035 description { state: "disabled" 0.0;
2036 inherit: "default" 0.0;
2037 image.normal: "00_button_01_dim.png";
2039 description { state: "focused" 0.0;
2040 inherit: "default" 0.0;
2041 image.normal: "00_button_01_press.png";
2044 part { name: "padding_left_top";
2048 description { state: "default" 0.0;
2050 rel2.relative: 0.0 0.0;
2051 min: BUTTON_POPUP_PADDING_MIN_INC;
2056 part { name: "padding_right_bottom";
2059 description { state: "default" 0.0;
2061 rel1.relative: 1.0 1.0;
2062 min: BUTTON_POPUP_PADDING_MIN_INC;
2067 part { name: "padding_icon_text";
2070 description { state: "default" 0.0; //when only icon or no icon is there
2074 to: "elm.swallow.content";
2076 rel2.to: "elm.swallow.content";
2081 description { state: "icononly" 0.0;
2082 inherit: "default" 0.0;
2084 description { state: "visible" 0.0; //when icon is visible
2085 inherit: "default" 0.0;
2086 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2089 part { name: "elm.swallow.content";
2093 description { state: "default" 0.0;
2098 to: "padding_left_top";
2102 to_x: "padding_left_top";
2103 to_y: "padding_right_bottom";
2107 description { state: "visible" 0.0;
2108 inherit: "default" 0.0;
2112 aspect_preference: VERTICAL;
2114 description { state: "icononly" 0.0;
2115 inherit: "default" 0.0;
2116 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2121 part { name: "elm.text";
2126 effect: SHADOW BOTTOM;
2127 description { state: "default" 0.0;
2131 to_x: "padding_icon_text";
2132 to_y: "padding_left_top";
2136 to: "padding_right_bottom";
2138 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
2139 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2141 font: "Tizen:style=Regular";
2142 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
2144 text_class: "tizen";
2147 description { state: "visible" 0.0;
2148 inherit: "default" 0.0;
2150 min: BUTTON_POPUP_TEXT_MIN_INC;
2152 description { state: "clicked" 0.0;
2153 inherit: "default" 0.0;
2156 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
2157 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
2159 description { state: "disabled" 0.0;
2160 inherit: "default" 0.0;
2162 description { state: "disabled_visible" 0.0;
2163 inherit: "default" 0.0;
2164 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
2165 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2167 min: BUTTON_POPUP_TEXT_MIN_INC;
2169 description { state: "focused" 0.0;
2170 inherit: "default" 0.0;
2173 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2176 part { name: "over2";
2179 ignore_flags: ON_HOLD;
2180 description { state: "default" 0.0;
2184 part { name: "over3";
2187 description { state: "default" 0.0;
2191 part { name: "clipper";
2193 description { state: "default" 0.0;
2194 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
2196 description { state: "disabled" 0.0;
2197 inherit: "default" 0.0;
2198 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
2201 part { name: "disabler";
2203 description { state: "default" 0.0;
2207 description { state: "disabled" 0.0;
2208 inherit: "default" 0.0;
2214 program { name: "button_click";
2215 signal: "mouse,down,1";
2217 action: SIGNAL_EMIT "elm,action,press" "";
2218 after: "button_click_anim";
2220 program { name: "button_click_anim";
2221 action: STATE_SET "clicked" 0.0;
2222 target: "button_image";
2223 after: "text_clicked";
2225 program { name: "text_clicked";
2229 get_state(PART:"elm.text", st, 30, vl);
2230 if (!strcmp(st, "visible"))
2231 set_state(PART:"elm.text", "clicked", 0.0);
2234 program { name: "button_double_click";
2235 signal: "mouse,down,1,double";
2237 after: "button_click_anim";
2239 program { name: "button_unpress";
2240 action: SIGNAL_EMIT "elm,action,unpress" "";
2242 program { name: "button_mouseout_clicked";
2243 signal: "mouse,up,1";
2248 get_state(PART:"elm.swallow.content", st, 30, vl);
2249 if (strcmp(st, "icononly"))
2251 emit("elm,action,default,text,set", "");
2252 set_state(PART:"elm.text", "visible", 0.0);
2254 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2255 set_state(PART:"button_image", "default", 0.0);
2257 after: button_unpress;
2259 program { name: "touch_snd";
2260 signal: "mouse,clicked,1";
2262 action: PLAY_SAMPLE "touch_sound" 1.0;
2263 after: button_unclick3;
2265 program { name: "button_unclick3";
2266 action: SIGNAL_EMIT "elm,action,click" "";
2268 program { name: "text_show";
2269 signal: "elm,state,text,visible";
2274 get_state(PART:"elm.swallow.content", st, 30, vl);
2275 if (!strcmp(st, "icononly"))
2277 set_state(PART:"elm.swallow.content", "visible", 0.0);
2278 set_state(PART:"padding_icon_text", "visible", 0.0);
2280 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2281 set_state(PART:"elm.text", "visible", 0.0);
2283 set_state(PART:"elm.text", "disabled_visible", 0.0);
2286 program { name: "text_hide";
2287 signal: "elm,state,text,hidden";
2292 get_state(PART:"elm.swallow.content", st, 30, vl);
2293 if (!strcmp(st, "visible"))
2295 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2296 set_state(PART:"padding_icon_text", "icononly", 0.0);
2298 set_state(PART:"elm.text", "default", 0.0);
2301 program { name: "icon_show";
2302 signal: "elm,state,icon,visible";
2307 get_state(PART:"elm.text", st, 30, vl);
2308 if (!strcmp(st, "visible"))
2310 set_state(PART:"elm.swallow.content", "visible", 0.0);
2311 set_state(PART:"padding_icon_text", "visible", 0.0);
2315 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2316 set_state(PART:"padding_icon_text", "icononly", 0.0);
2320 program { name: "icon_hide";
2321 signal: "elm,state,icon,hidden";
2323 action: STATE_SET "default" 0.0;
2324 target: "elm.swallow.content";
2325 target: "padding_icon_text";
2327 program { name: "disable";
2328 signal: "elm,state,disabled";
2330 action: STATE_SET "disabled" 0.0;
2331 target: "button_image";
2334 after: "disable_text";
2336 program { name: "disable_text";
2340 get_state(PART:"elm.text", st, 30, vl);
2341 if (!strcmp(st, "visible"))
2342 set_state(PART:"elm.text", "disabled_visible", 0.0);
2344 set_state(PART:"elm.text", "disabled", 0.0);
2345 set_int(button_state, BUTTON_STATE_DISABLED);
2348 program { name: "enable";
2349 signal: "elm,state,enabled";
2351 action: STATE_SET "default" 0.0;
2352 target: "button_image";
2355 after: "enable_text";
2357 program { name: "enable_text";
2361 get_state(PART:"elm.text", st, 30, vl);
2362 if (!strcmp(st, "disabled_visible"))
2363 set_state(PART:"elm.text", "visible", 0.0);
2365 set_state(PART:"elm.text", "default", 0.0);
2366 set_int(button_state, BUTTON_STATE_ENABLED);
2369 program { name: "focused";
2370 //signal: "elm,action,focus";
2372 action: STATE_SET "focused" 0.0;
2373 target: "button_image";
2376 program { name: "unfocused";
2377 //signal: "elm,action,unfocus";
2379 action: STATE_SET "default" 0.0;
2380 target: "button_image";
2381 after: "unfocus_text";
2383 program { name: "unfocus_text";
2384 action: STATE_SET "visible" 0.0;
2390 ///////////////////////////////////////////////////////////////////////////////////////
2391 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2392 group { name: "elm/button/base/"style_name; \
2394 image: "00_circle_button.png" COMP; \
2395 image: "00_circle_button_press.png" COMP; \
2396 image: "00_circle_button_dim.png" COMP; \
2397 image: image_normal COMP; \
2398 image: image_press COMP; \
2401 part { name: "button_image"; \
2403 description { state: "default" 0.0; \
2404 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2405 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2406 image.normal: "00_circle_button.png"; \
2409 state: "clicked" 0.0; \
2410 inherit: "default" 0.0; \
2411 image.normal: "00_circle_button_press.png"; \
2414 state: "disabled" 0.0; \
2415 inherit: "default" 0.0; \
2416 image.normal: "00_circle_button_dim.png"; \
2419 part { name: "button_center_part"; \
2421 clip_to: "icon_clipper"; \
2422 description { state: "default" 0.0; \
2423 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2424 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2425 image.normal: image_normal; \
2427 description { state: "clicked" 0.0; \
2428 inherit: "default"; \
2429 image.normal: image_press; \
2431 description { state: "disabled" 0.0; \
2432 inherit: "default"; \
2435 part { name: "icon_clipper"; \
2438 description { state: "default" 0.0; \
2439 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2441 description { state: "clicked" 0.0; \
2442 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2444 description { state: "disabled" 0.0; \
2445 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2448 part { name: "over1"; \
2450 ignore_flags: ON_HOLD; \
2451 description { state: "default" 0.0; \
2453 min: min_width min_height; \
2456 part { name: "over2"; \
2459 description { state: "default" 0.0; \
2463 part { name: "disabler"; \
2465 description { state: "default" 0.0; \
2469 description { state: "disabled" 0.0; \
2470 inherit: "default" 0.0; \
2476 program { name: "button_click"; \
2477 signal: "mouse,down,1"; \
2479 action: SIGNAL_EMIT "elm,action,press" ""; \
2480 after: "button_click_anim"; \
2482 program { name: "button_click_anim"; \
2483 action: STATE_SET "clicked" 0.0; \
2484 target: "button_image"; \
2485 target: "button_center_part"; \
2486 target: "icon_clipper"; \
2488 program { name: "button_double_click"; \
2489 signal: "mouse,down,1,double"; \
2491 after: "button_click_anim"; \
2493 program { name: "button_unclick"; \
2494 signal: "mouse,up,1"; \
2496 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2497 after: "button_unclick_anim"; \
2499 program { name: "button_unclick_anim"; \
2500 action: STATE_SET "default" 0.0; \
2501 target: "button_image"; \
2502 target: "button_center_part"; \
2503 target: "icon_clipper"; \
2505 program { name: "touch_snd"; \
2506 signal: "mouse,clicked,1"; \
2508 action: PLAY_SAMPLE "touch_sound" 1.0; \
2509 after: button_unclick3; \
2511 program { name: "button_unclick3"; \
2512 action: SIGNAL_EMIT "elm,action,click" ""; \
2514 program { name: "disable"; \
2515 signal: "elm,state,disabled"; \
2517 action: STATE_SET "disabled" 0.0; \
2518 target: "disabler"; \
2519 target: "button_image"; \
2520 target: "button_center_part"; \
2521 target: "icon_clipper"; \
2523 program { name: "enable"; \
2524 signal: "elm,state,enabled"; \
2526 action: STATE_SET "default" 0.0; \
2527 target: "disabler"; \
2528 target: "button_image"; \
2529 target: "button_center_part"; \
2530 target: "icon_clipper"; \
2535 ///////////////////////////////////////////////////////////////////////////////////////
2536 BUTTON_CIRCLE_STYLES("reveal","00_button_right.png", "00_button_right_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2538 ///////////////////////////////////////////////////////////////////////////////////////
2539 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_right.png", "00_button_right_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2541 ///////////////////////////////////////////////////////////////////////////////////////
2542 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2544 ///////////////////////////////////////////////////////////////////////////////////////
2545 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2547 ///////////////////////////////////////////////////////////////////////////////////////
2548 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2550 ///////////////////////////////////////////////////////////////////////////////////////
2551 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2553 ///////////////////////////////////////////////////////////////////////////////////////
2554 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2556 ///////////////////////////////////////////////////////////////////////////////////////
2557 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2559 ///////////////////////////////////////////////////////////////////////////////////////
2560 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2562 ///////////////////////////////////////////////////////////////////////////////////////
2563 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2565 ///////////////////////////////////////////////////////////////////////////////////////
2566 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2568 ///////////////////////////////////////////////////////////////////////////////////////
2569 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2571 ///////////////////////////////////////////////////////////////////////////////////////
2572 BUTTON_CIRCLE_STYLES("plus", "00_button_add.png", "00_button_add_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2574 ///////////////////////////////////////////////////////////////////////////////////////
2575 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_add.png", "00_button_add_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2577 ///////////////////////////////////////////////////////////////////////////////////////
2578 BUTTON_CIRCLE_STYLES("minus", "00_button_delete.png", "00_button_delete_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2580 ///////////////////////////////////////////////////////////////////////////////////////
2581 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_delete.png", "00_button_delete_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2583 ///////////////////////////////////////////////////////////////////////////////////////
2584 BUTTON_CIRCLE_STYLES("cancel", "00_button_expand_cancel.png", "00_button_expand_cancel_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2586 ///////////////////////////////////////////////////////////////////////////////////////
2587 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_expand_cancel.png", "00_button_expand_cancel_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2589 ///////////////////////////////////////////////////////////////////////////////////////
2590 BUTTON_CIRCLE_STYLES("send", "00_button_expand_send.png", "00_button_expand_send_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2592 ///////////////////////////////////////////////////////////////////////////////////////
2593 BUTTON_CIRCLE_STYLES("send/extended", "00_button_expand_send.png", "00_button_expand_send_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2594 ///////////////////////////////////////////////////////////////////////////////////////
2597 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2598 group { name: "elm/button/base/"style_name; \
2599 inherit: "elm/button/base/info"; \
2601 image: "00_circle_button_delete.png" COMP; \
2602 image: "00_circle_button_delete_press.png" COMP; \
2603 image: "00_circle_button_delete_dim.png" COMP; \
2604 image: "00_button_warning.png" COMP; \
2605 image: "00_button_warning_press.png" COMP; \
2608 part { name: "button_image"; \
2610 description { state: "default" 0.0; \
2611 image.normal: "00_circle_button_delete.png"; \
2614 state: "clicked" 0.0; \
2615 inherit: "default" 0.0; \
2616 image.normal: "00_circle_button_delete_press.png"; \
2619 state: "disabled" 0.0; \
2620 inherit: "default" 0.0; \
2621 image.normal: "00_circle_button_delete_dim.png"; \
2624 part { name: "button_center_part"; \
2626 clip_to: "icon_clipper"; \
2627 description { state: "default" 0.0; \
2628 image.normal: "00_button_warning.png"; \
2630 description { state: "clicked" 0.0; \
2631 inherit: "default"; \
2632 image.normal: "00_button_warning_press.png"; \
2634 description { state: "disabled" 0.0; \
2635 inherit: "default"; \
2638 part { name: "icon_clipper"; \
2641 description { state: "default" 0.0; \
2642 color: BUTTON_CIRCLE_STYLE_WARNING_NORMAL_COLOR_INC; \
2644 description { state: "clicked" 0.0; \
2645 color: BUTTON_CIRCLE_STYLE_WARNING_PRESSED_COLOR_INC; \
2647 description { state: "disabled" 0.0; \
2648 color: BUTTON_CIRCLE_STYLE_WARNING_DISABLED_COLOR_INC; \
2651 part { name: "over1"; \
2653 ignore_flags: ON_HOLD; \
2654 description { state: "default" 0.0; \
2656 min: min_width min_height; \
2662 ///////////////////////////////////////////////////////////////////////////////////////
2663 BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2665 ///////////////////////////////////////////////////////////////////////////////////////
2666 BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2668 ///////////////////////////////////////////////////////////////////////////////////////
2669 group { name: "elm/button/base/circle/empty";
2671 image: "00_circle_button.png" COMP;
2672 image: "00_circle_button_press.png" COMP;
2673 image: "00_circle_button_dim.png" COMP;
2676 part { name: "button_image";
2678 description { state: "default" 0.0;
2679 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2680 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2682 image.normal: "00_circle_button.png";
2684 description { state: "clicked" 0.0;
2685 inherit: "default" 0.0;
2686 image.normal: "00_circle_button_press.png";
2688 description { state: "disabled" 0.0;
2689 inherit: "default" 0.0;
2690 image.normal: "00_circle_button_dim.png";
2693 part { name: "elm.swallow.content";
2695 clip_to: "icon_clipper";
2697 description { state: "default" 0.0;
2701 description { state: "visible" 0.0;
2702 inherit: "default" 0.0;
2704 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2705 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2708 part { name: "icon_clipper";
2711 description { state: "default" 0.0;
2712 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2714 description { state: "clicked" 0.0;
2715 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2717 description { state: "disabled" 0.0;
2718 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2721 part { name: "over1";
2723 ignore_flags: ON_HOLD;
2724 description { state: "default" 0.0;
2728 part { name: "over2";
2731 description { state: "default" 0.0;
2735 part { name: "disabler";
2737 description { state: "default" 0.0;
2741 description { state: "disabled" 0.0;
2742 inherit: "default" 0.0;
2748 program { name: "button_click";
2749 signal: "mouse,down,1";
2751 action: SIGNAL_EMIT "elm,action,press" "";
2752 after: "button_click_anim";
2754 program { name: "button_click_anim";
2755 action: STATE_SET "clicked" 0.0;
2756 target: "button_image";
2757 target: "icon_clipper";
2759 program { name: "button_double_click";
2760 signal: "mouse,down,1,double";
2762 after: "button_click_anim";
2764 program { name: "touch_snd";
2765 signal: "mouse,clicked,1";
2767 action: PLAY_SAMPLE "touch_sound" 1.0;
2768 after: button_unclick2;
2770 program { name: "button_unclick2";
2771 action: SIGNAL_EMIT "elm,action,click" "";
2773 program { name: "button_unclick";
2774 signal: "mouse,up,1";
2776 action: SIGNAL_EMIT "elm,action,unpress" "";
2777 after: "button_unclick_anim";
2779 program { name: "button_unclick_anim";
2780 action: STATE_SET "default" 0.0;
2781 target: "button_image";
2782 target: "icon_clipper";
2784 program { name: "disable";
2785 signal: "elm,state,disabled";
2787 action: STATE_SET "disabled" 0.0;
2789 target: "button_image";
2790 target: "icon_clipper";
2792 program { name: "enable";
2793 signal: "elm,state,enabled";
2795 action: STATE_SET "default" 0.0;
2797 target: "button_image";
2798 target: "icon_clipper";
2800 program { name: "icon_show";
2801 signal: "elm,state,icon,visible";
2803 action: STATE_SET "visible" 0.0;
2804 target: "elm.swallow.content";
2806 program { name: "icon_hide";
2807 signal: "elm,state,icon,hidden";
2809 action: STATE_SET "default" 0.0;
2810 target: "elm.swallow.content";
2815 ///////////////////////////////////////////////////////////////////////////////////////
2816 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2817 group { name: "elm/button/base/contacts/"style_name; \
2818 alias: "elm/button/base/"style_name; \
2820 image: "00_circle_button.png" COMP; \
2821 image: "00_circle_button_press.png" COMP; \
2822 image: "00_circle_button_dim.png" COMP; \
2823 image: edit_normal COMP; \
2824 image: edit_press COMP; \
2827 part { name: "button_image"; \
2829 description { state: "default" 0.0; \
2830 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2831 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2832 image.normal: "00_circle_button.png"; \
2834 description { state: "clicked" 0.0; \
2835 inherit: "default" 0.0; \
2836 image.normal: "00_circle_button_press.png"; \
2838 description { state: "disabled" 0.0; \
2839 inherit: "default" 0.0; \
2840 image.normal: "00_circle_button_dim.png"; \
2843 part { name: "button_center_part"; \
2846 clip_to: "icon_clipper"; \
2847 description { state: "default" 0.0; \
2848 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2849 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2850 image.normal: image_normal; \
2853 state: "clicked" 0.0; \
2854 inherit: "default" 0.0; \
2855 image.normal: image_press; \
2857 description { state: "disabled" 0.0; \
2858 inherit: "default" 0.0; \
2861 part { name: "icon_clipper"; \
2864 description { state: "default" 0.0; \
2865 color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
2867 description { state: "clicked" 0.0; \
2868 color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
2870 description { state: "disabled" 0.0; \
2871 color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
2874 part { name: "over1"; \
2877 ignore_flags: ON_HOLD; \
2878 description { state: "default" 0.0; \
2880 min: min_width min_height; \
2883 part { name: "over2"; \
2886 description { state: "default" 0.0; \
2890 part { name: "disabler"; \
2892 description { state: "default" 0.0; \
2896 description { state: "disabled" 0.0; \
2897 inherit: "default" 0.0; \
2903 program { name: "button_click"; \
2904 signal: "mouse,down,1"; \
2906 action: SIGNAL_EMIT "elm,action,press" ""; \
2907 after: "button_click_anim"; \
2909 program { name: "button_click_anim"; \
2910 action: STATE_SET "clicked" 0.0; \
2911 target: "button_image"; \
2912 target: "button_center_part"; \
2913 target: "icon_clipper"; \
2915 program { name: "button_double_click"; \
2916 signal: "mouse,down,1,double"; \
2918 after: "button_click_anim"; \
2920 program { name: "button_unclick"; \
2921 signal: "mouse,up,1"; \
2923 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2924 after: "button_unclick_anim"; \
2926 program { name: "button_unclick_anim"; \
2927 action: STATE_SET "default" 0.0; \
2928 target: "button_image"; \
2929 target: "button_center_part"; \
2930 target: "icon_clipper"; \
2932 program { name: "touch_snd"; \
2933 signal: "mouse,clicked,1"; \
2935 action: PLAY_SAMPLE "touch_sound" 1.0; \
2936 after: button_unclick3; \
2938 program { name: "button_unclick3"; \
2939 action: SIGNAL_EMIT "elm,action,click" ""; \
2941 program { name: "disable"; \
2942 signal: "elm,state,disabled"; \
2944 action: STATE_SET "disabled" 0.0; \
2945 target: "disabler"; \
2946 target: "button_image"; \
2947 target: "button_center_part"; \
2948 target: "icon_clipper"; \
2950 program { name: "enable"; \
2951 signal: "elm,state,enabled"; \
2953 action: STATE_SET "default" 0.0; \
2954 target: "disabler"; \
2955 target: "button_image"; \
2956 target: "button_center_part"; \
2957 target: "icon_clipper"; \
2961 ///////////////////////////////////////////////////////////////////////////////////////
2962 BUTTON_EDIT_STYLES("icon_plus", "00_button_add.png", "00_button_add_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2964 ///////////////////////////////////////////////////////////////////////////////////////
2965 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_add.png", "00_button_add_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2967 ///////////////////////////////////////////////////////////////////////////////////////
2968 BUTTON_EDIT_STYLES("icon_expand", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2970 ///////////////////////////////////////////////////////////////////////////////////////
2971 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2973 ///////////////////////////////////////////////////////////////////////////////////////
2974 BUTTON_EDIT_STYLES("icon_expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2976 ///////////////////////////////////////////////////////////////////////////////////////
2977 BUTTON_EDIT_STYLES("icon_expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2979 ///////////////////////////////////////////////////////////////////////////////////////
2981 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
2982 group { name: "elm/button/base/contacts/"style_name; \
2983 alias: "elm/button/base/"style_name; \
2984 inherit: "elm/button/base/contacts/icon_plus"; \
2986 image: "00_circle_button_delete.png" COMP; \
2987 image: "00_circle_button_delete_press.png" COMP; \
2988 image: "00_circle_button_delete_dim.png" COMP; \
2989 image: "00_button_delete.png" COMP; \
2990 image: "00_button_delete_press.png" COMP; \
2993 part { name: "button_image"; \
2995 description { state: "default" 0.0; \
2996 image.normal: "00_circle_button_delete.png"; \
2998 description { state: "clicked" 0.0; \
2999 inherit: "default" 0.0; \
3000 image.normal: "00_circle_button_delete_press.png"; \
3002 description { state: "disabled" 0.0; \
3003 inherit: "default" 0.0; \
3004 image.normal: "00_circle_button_delete_dim.png"; \
3007 part { name: "button_center_part"; \
3010 clip_to: "icon_clipper"; \
3011 description { state: "default" 0.0; \
3012 image.normal: "00_button_delete.png"; \
3015 state: "clicked" 0.0; \
3016 inherit: "default" 0.0; \
3017 image.normal: "00_button_delete_press.png"; \
3019 description { state: "disabled" 0.0; \
3020 inherit: "default" 0.0; \
3023 part { name: "icon_clipper"; \
3026 description { state: "default" 0.0; \
3027 color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
3029 description { state: "clicked" 0.0; \
3030 color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
3032 description { state: "disabled" 0.0; \
3033 color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
3036 part { name: "over1"; \
3039 ignore_flags: ON_HOLD; \
3040 description { state: "default" 0.0; \
3042 min: min_width min_height; \
3048 ///////////////////////////////////////////////////////////////////////////////////////
3049 BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3051 ///////////////////////////////////////////////////////////////////////////////////////
3052 BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3054 ///////////////////////////////////////////////////////////////////////////////////////
3055 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
3056 group { name: "elm/button/base/"style_name; \
3058 image: "00_button_01.png" COMP; \
3059 image: "00_button_01_press.png" COMP; \
3060 image: "00_button_01_dim.png" COMP; \
3061 image: image_normal COMP; \
3064 part { name: "button_image";\
3067 description { state: "default" 0.0; \
3068 min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
3070 normal: "00_button_01.png"; \
3071 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3075 description { state: "clicked" 0.0; \
3076 inherit: "default" 0.0; \
3077 image.normal: "00_button_01_press.png"; \
3079 description { state: "disabled" 0.0; \
3080 inherit: "default" 0.0; \
3081 image.normal: "00_button_01_dim.png"; \
3084 part { name: "padding_left_top"; \
3087 description { state: "default" 0.0; \
3089 rel2.relative: 0.0 0.0; \
3090 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3094 part { name: "padding_right_bottom"; \
3097 description { state: "default" 0.0; \
3099 rel1.relative: 1.0 1.0; \
3100 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3104 part { name: "jump_image"; \
3107 description { state: "default" 0.0; \
3108 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3111 relative: 1.0 0.0; \
3112 to_x: "padding_left_top"; \
3115 relative: 0.0 1.0; \
3116 to_x: "padding_right_bottom"; \
3118 image.normal: image_normal; \
3120 aspect_preference: VERTICAL; \
3121 color: BUTTON_JUMP_ICON_NORMAL_COLOR_INC; \
3123 description { state: "clicked" 0.0; \
3124 inherit: "default" 0.0; \
3125 color: BUTTON_JUMP_ICON_PRESSED_COLOR_INC; \
3127 description { state: "disabled" 0.0; \
3128 inherit: "default" 0.0; \
3129 color: BUTTON_JUMP_ICON_DIM_COLOR_INC; \
3132 part { name: "over1"; \
3135 ignore_flags: ON_HOLD; \
3136 description { state: "default" 0.0; \
3138 rel1.relative: 0.0 0.0; \
3139 rel2.relative: 1.0 1.0; \
3142 part { name: "over2"; \
3145 description { state: "default" 0.0; \
3151 program { name: "button_click"; \
3152 signal: "mouse,down,1"; \
3154 action: SIGNAL_EMIT "elm,action,press" ""; \
3155 after: "button_click_anim"; \
3157 program { name: "button_click_anim"; \
3158 action: STATE_SET "clicked" 0.0; \
3159 target: "button_image"; \
3160 target: "jump_image"; \
3162 program { name: "button_double_click"; \
3163 signal: "mouse,down,1,double"; \
3165 after: "button_click_anim"; \
3167 program { name: "button_unclick"; \
3168 signal: "mouse,up,1"; \
3170 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3171 after: "button_unclick_anim"; \
3173 program { name: "button_unclick_anim"; \
3174 action: STATE_SET "default" 0.0; \
3175 target: "button_image"; \
3176 target: "jump_image"; \
3178 program { name: "touch_snd"; \
3179 signal: "mouse,clicked,1"; \
3181 action: PLAY_SAMPLE "touch_sound" 1.0; \
3182 after: button_unclick3; \
3184 program { name: "button_unclick3"; \
3185 action: SIGNAL_EMIT "elm,action,click" ""; \
3187 program { name: "disable"; \
3188 signal: "elm,state,disabled"; \
3190 action: STATE_SET "disabled" 0.0; \
3191 target: "button_image"; \
3192 target: "jump_image"; \
3194 program { name: "enable"; \
3195 signal: "elm,state,enabled"; \
3197 action: STATE_SET "default" 0.0; \
3198 target: "button_image"; \
3199 target: "jump_image"; \
3204 ////////////////////////////////////////////////////////////////////////
3205 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3206 ////////////////////////////////////////////////////////////////////////
3207 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3209 ////////////////////////////////////////////////////////////////////////
3210 group { name: "elm/button/base/default";
3212 image: "00_button_01.png" COMP;
3213 image: "00_button_01_press.png" COMP;
3214 image: "00_button_01_dim.png" COMP;
3217 public button_state = BUTTON_STATE_ENABLED;
3220 part { name: "button_image";
3222 description { state: "default" 0.0;
3223 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3225 normal: "00_button_01.png";
3226 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3230 description { state: "clicked" 0.0;
3231 inherit: "default" 0.0;
3232 image.normal: "00_button_01_press.png";
3234 description { state: "disabled" 0.0;
3235 inherit: "default" 0.0;
3236 image.normal: "00_button_01_dim.png";
3238 description { state: "focused" 0.0;
3239 inherit: "default" 0.0;
3240 image.normal: "00_button_01_press.png";
3243 part { name: "padding_left_top";
3247 description { state: "default" 0.0;
3249 rel2.relative: 0.0 0.0;
3250 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3255 part { name: "padding_right_bottom";
3259 description { state: "default" 0.0;
3261 rel1.relative: 1.0 1.0;
3262 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3267 part { name: "padding_icon_text";
3271 description { state: "default" 0.0; //when only icon or no icon is there
3277 to: "elm.swallow.content";
3279 rel2.to: "elm.swallow.content";
3282 description { state: "icononly" 0.0;
3283 inherit: "default" 0.0;
3285 description { state: "visible" 0.0; //when icon is visible
3286 inherit: "default" 0.0;
3287 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3290 part { name: "elm.swallow.content";
3294 description { state: "default" 0.0;
3300 to: "padding_left_top";
3304 to_x: "padding_left_top";
3305 to_y: "padding_right_bottom";
3308 description { state: "visible" 0.0;
3309 inherit: "default" 0.0;
3312 aspect_preference: VERTICAL;
3314 description { state: "icononly" 0.0;
3315 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3318 to_x: "padding_left_top";
3322 to_x: "padding_right_bottom";
3325 aspect_preference: VERTICAL;
3328 part { name: "elm.text";
3333 effect: SHADOW BOTTOM;
3334 description { state: "default" 0.0;
3339 to_x: "padding_icon_text";
3340 to_y: "padding_left_top";
3344 to: "padding_right_bottom";
3346 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3347 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
3349 font: "Tizen:style=Regular";
3350 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3352 text_class: "tizen";
3355 description { state: "visible" 0.0;
3356 inherit: "default" 0.0;
3358 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3360 description { state: "clicked" 0.0;
3361 inherit: "default" 0.0;
3363 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3364 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3366 description { state: "disabled" 0.0;
3367 inherit: "default" 0.0;
3369 description { state: "disabled_visible" 0.0;
3370 inherit: "default" 0.0;
3371 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3372 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
3374 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3376 description { state: "focused" 0.0;
3377 inherit: "default" 0.0;
3380 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3383 part { name: "over2";
3386 ignore_flags: ON_HOLD;
3387 description { state: "default" 0.0;
3391 part { name: "over3";
3394 description { state: "default" 0.0;
3398 part { name: "disclip";
3400 description { state: "default" 0.0;
3401 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3403 description { state: "disabled" 0.0;
3404 inherit: "default" 0.0;
3405 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3408 part { name: "disabler";
3410 description { state: "default" 0.0;
3414 description { state: "disabled" 0.0;
3415 inherit: "default" 0.0;
3421 program { name: "button_click";
3422 signal: "mouse,down,1";
3424 action: SIGNAL_EMIT "elm,action,press" "";
3425 after: "button_click_anim";
3427 program { name: "button_click_anim";
3428 action: STATE_SET "clicked" 0.0;
3429 target: "button_image";
3430 after: "text_clicked";
3432 program { name: "text_clicked";
3436 get_state(PART:"elm.text", st, 30, vl);
3437 if (!strcmp(st, "visible"))
3438 set_state(PART:"elm.text", "clicked", 0.0);
3441 program { name: "button_double_click";
3442 signal: "mouse,down,1,double";
3444 after: "button_click_anim";
3446 program { name: "button_unpress";
3447 action: SIGNAL_EMIT "elm,action,unpress" "";
3449 program { name: "button_mouseout_clicked";
3450 signal: "mouse,up,1";
3455 get_state(PART:"elm.swallow.content", st, 30, vl);
3456 if (strcmp(st, "icononly"))
3458 emit("elm,action,default,text,set", "");
3459 set_state(PART:"elm.text", "visible", 0.0);
3461 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3462 set_state(PART:"button_image", "default", 0.0);
3464 after: button_unpress;
3466 program { name: "touch_snd";
3467 signal: "mouse,clicked,1";
3469 action: PLAY_SAMPLE "touch_sound" 1.0;
3470 after: button_unclick3;
3472 program { name: "button_unclick3";
3473 action: SIGNAL_EMIT "elm,action,click" "";
3475 program { name: "text_show";
3476 signal: "elm,state,text,visible";
3481 get_state(PART:"elm.swallow.content", st, 30, vl);
3482 if (!strcmp(st, "icononly"))
3484 set_state(PART:"elm.swallow.content", "visible", 0.0);
3485 set_state(PART:"padding_icon_text", "visible", 0.0);
3487 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3488 set_state(PART:"elm.text", "visible", 0.0);
3490 set_state(PART:"elm.text", "disabled_visible", 0.0);
3493 program { name: "text_hide";
3494 signal: "elm,state,text,hidden";
3499 get_state(PART:"elm.swallow.content", st, 30, vl);
3500 if (!strcmp(st, "visible"))
3502 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3503 set_state(PART:"padding_icon_text", "icononly", 0.0);
3505 set_state(PART:"elm.text", "default", 0.0);
3508 program { name: "icon_show";
3509 signal: "elm,state,icon,visible";
3514 get_state(PART:"elm.text", st, 30, vl);
3515 if (!strcmp(st, "visible"))
3517 set_state(PART:"elm.swallow.content", "visible", 0.0);
3518 set_state(PART:"padding_icon_text", "visible", 0.0);
3522 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3523 set_state(PART:"padding_icon_text", "icononly", 0.0);
3527 program { name: "icon_hide";
3528 signal: "elm,state,icon,hidden";
3530 action: STATE_SET "default" 0.0;
3531 target: "elm.swallow.content";
3532 target: "padding_icon_text";
3534 program { name: "disable";
3535 signal: "elm,state,disabled";
3537 action: STATE_SET "disabled" 0.0;
3538 target: "button_image";
3541 after: "disable_text";
3543 program { name: "disable_text";
3547 get_state(PART:"elm.text", st, 30, vl);
3548 if (!strcmp(st, "visible"))
3549 set_state(PART:"elm.text", "disabled_visible", 0.0);
3551 set_state(PART:"elm.text", "disabled", 0.0);
3552 set_int(button_state, BUTTON_STATE_DISABLED);
3555 program { name: "enable";
3556 signal: "elm,state,enabled";
3558 action: STATE_SET "default" 0.0;
3559 target: "button_image";
3562 after: "enable_text";
3564 program { name: "enable_text";
3568 get_state(PART:"elm.text", st, 30, vl);
3569 if (!strcmp(st, "disabled_visible"))
3570 set_state(PART:"elm.text", "visible", 0.0);
3572 set_state(PART:"elm.text", "default", 0.0);
3573 set_int(button_state, BUTTON_STATE_ENABLED);
3576 program { name: "focused";
3577 //signal: "elm,action,focus";
3579 action: STATE_SET "focused" 0.0;
3580 target: "button_image";
3583 program { name: "unfocused";
3584 //signal: "elm,action,unfocus";
3586 action: STATE_SET "default" 0.0;
3587 target: "button_image";
3588 after: "unfocus_text";
3590 program { name: "unfocus_text";
3591 action: STATE_SET "visible" 0.0;
3597 ///////////////////////////////////////////////////////////////////////////////////////
3598 group { name: "elm/button/base/multiline";
3599 alias: "elm/button/base/text_only/multiline";
3600 inherit: "elm/button/base/default";
3602 style { name: "btn_multiline_style";
3603 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
3610 part { name: "button_image";
3612 description { state: "default" 0.0;
3613 min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3615 normal: "00_button_01.png";
3616 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3620 description { state: "clicked" 0.0;
3621 inherit: "default" 0.0;
3622 image.normal: "00_button_01_press.png";
3624 description { state: "disabled" 0.0;
3625 inherit: "default" 0.0;
3626 image.normal: "00_button_01_dim.png";
3628 description { state: "focused" 0.0;
3629 inherit: "default" 0.0;
3630 image.normal: "00_button_01_press.png";
3633 part { name: "padding_left_top";
3637 description { state: "default" 0.0;
3639 rel2.relative: 0.0 0.0;
3640 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3645 part { name: "padding_right_bottom";
3649 description { state: "default" 0.0;
3651 rel1.relative: 1.0 1.0;
3652 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3657 part { name: "elm.text";
3662 description { state: "default" 0.0;
3666 to_x: "padding_icon_text";
3667 to_y: "padding_left_top";
3671 to: "padding_right_bottom";
3673 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3675 style: "btn_multiline_style";
3678 description { state: "visible" 0.0;
3679 inherit: "default" 0.0;
3683 description { state: "clicked" 0.0;
3684 inherit: "default" 0.0;
3687 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3689 description { state: "disabled" 0.0;
3690 inherit: "default" 0.0;
3692 description { state: "disabled_visible" 0.0;
3693 inherit: "default" 0.0;
3694 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3698 description { state: "focused" 0.0;
3699 inherit: "default" 0.0;
3702 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3708 ///////////////////////////////////////////////////////////////////////////////////////
3709 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
3710 group { name: "elm/button/base/"style_name; \
3712 image: image_normal COMP; \
3713 image: image_press COMP; \
3714 image: image_dim COMP; \
3715 image: "00_button_01.png" COMP; \
3716 image: "00_button_01_press.png" COMP; \
3719 part { name: "button_image"; \
3721 description { state: "default" 0.0; \
3722 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3723 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3725 normal: "00_button_01.png"; \
3726 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3731 state: "clicked" 0.0; \
3732 inherit: "default" 0.0; \
3733 image.normal: "00_button_01_press.png"; \
3736 state: "disabled" 0.0; \
3737 inherit: "default" 0.0; \
3738 image.normal: "00_button_01_dim.png"; \
3741 state: "focused" 0.0; \
3742 inherit: "default" 0.0; \
3743 image.normal: "00_button_01_press.png"; \
3746 part { name: "button_center_part"; \
3748 clip_to: "icon_clipper"; \
3749 description { state: "default" 0.0; \
3750 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3751 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3752 image.normal: image_normal; \
3755 state: "clicked" 0.0; \
3756 inherit: "default" 0.0; \
3757 image.normal: image_press; \
3760 state: "disabled" 0.0; \
3761 inherit: "default" 0.0; \
3764 part { name: "icon_clipper"; \
3767 description { state: "default" 0.0; \
3768 color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
3770 description { state: "clicked" 0.0; \
3771 color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
3773 description { state: "disabled" 0.0; \
3774 color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
3777 part { name: "over1"; \
3779 ignore_flags: ON_HOLD; \
3780 description { state: "default" 0.0; \
3784 part { name: "over2"; \
3787 description { state: "default" 0.0; \
3791 part { name: "disabler"; \
3793 description { state: "default" 0.0; \
3797 description { state: "disabled" 0.0; \
3798 inherit: "default" 0.0; \
3804 program { name: "button_click"; \
3805 signal: "mouse,down,1"; \
3807 action: SIGNAL_EMIT "elm,action,press" ""; \
3808 after: "button_click_anim"; \
3810 program { name: "button_click_anim"; \
3811 action: STATE_SET "clicked" 0.0; \
3812 target: "button_image"; \
3813 target: "button_center_part"; \
3814 target: ""icon_clipper""; \
3816 program { name: "button_double_click"; \
3817 signal: "mouse,down,1,double"; \
3819 after: "button_click_anim"; \
3821 program { name: "button_unclick"; \
3822 signal: "mouse,up,1"; \
3824 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3825 after: "button_unclick_anim"; \
3827 program { name: "button_unclick_anim"; \
3828 action: STATE_SET "default" 0.0; \
3829 target: "button_image"; \
3830 target: "button_center_part"; \
3831 target: ""icon_clipper""; \
3833 program { name: "touch_snd"; \
3834 signal: "mouse,clicked,1"; \
3836 action: PLAY_SAMPLE "touch_sound" 1.0; \
3837 after: button_unclick3; \
3839 program { name: "button_unclick3"; \
3840 action: SIGNAL_EMIT "elm,action,click" ""; \
3842 program { name: "disable"; \
3843 signal: "elm,state,disabled"; \
3845 action: STATE_SET "disabled" 0.0; \
3846 target: "disabler"; \
3847 target: "button_image"; \
3848 target: "button_center_part"; \
3849 target: ""icon_clipper""; \
3851 program { name: "enable"; \
3852 signal: "elm,state,enabled"; \
3854 action: STATE_SET "default" 0.0; \
3855 target: "disabler"; \
3856 target: "button_image"; \
3857 target: "button_center_part"; \
3858 target: ""icon_clipper""; \
3862 ///////////////////////////////////////////////////////////////////////////////////////
3863 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
3864 ///////////////////////////////////////////////////////////////////////////////////////
3865 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
3866 ///////////////////////////////////////////////////////////////////////////////////////
3868 group { name: "elm/button/base/contact";
3869 alias: "elm/button/base/text_only/contact";
3871 image: "00_contacts_button.png" COMP;
3872 image: "00_contacts_button_press.png" COMP;
3875 public button_state = BUTTON_STATE_ENABLED;
3878 part { name: "button_image";
3880 description { state: "default" 0.0;
3882 to_x: "padding.left";
3886 to_x: "padding.right";
3889 min: BUTTON_CONTACT_BG_MIN_INC;
3891 normal: "00_contacts_button.png";
3892 border: BUTTON_CONTACT_BG_BORDER_INC;
3896 description { state: "clicked" 0.0;
3897 inherit: "default" 0.0;
3898 image.normal: "00_contacts_button_press.png";
3900 description { state: "disabled" 0.0;
3901 inherit: "default" 0.0;
3903 description { state: "focused" 0.0;
3904 inherit: "default" 0.0;
3905 image.normal: "00_contacts_button_press.png";
3908 part { name: "padding.left";
3911 description { state: "default" 0.0;
3913 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
3923 part { name: "padding.right";
3926 description { state: "default" 0.0;
3928 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
3938 part { name: "elm.text";
3942 description { state: "default" 0.0;
3945 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
3947 font: "Tizen:style=Regular";
3948 size: BUTTON_CONTACT_FONT_SIZE_INC;
3950 text_class: "tizen";
3953 description { state: "visible" 0.0;
3954 inherit: "default" 0.0;
3958 description { state: "clicked" 0.0;
3959 inherit: "default" 0.0;
3962 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
3964 description { state: "disabled" 0.0;
3965 inherit: "default" 0.0;
3967 description { state: "disabled_visible" 0.0;
3968 inherit: "default" 0.0;
3969 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
3973 description { state: "focused" 0.0;
3974 inherit: "default" 0.0;
3977 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
3980 part { name: "over1";
3983 description { state: "default" 0.0;
3984 rel2.relative: 1.0 0.5;
3988 part { name: "over2";
3991 ignore_flags: ON_HOLD;
3992 description { state: "default" 0.0;
3993 rel1.to: "button_image";
3994 rel2.to: "button_image";
3998 part { name: "over3";
4001 description { state: "default" 0.0;
4002 rel1.to: "button_image";
4003 rel2.to: "button_image";
4007 part { name: "disabler";
4009 description { state: "default" 0.0;
4010 rel1.to: "button_image";
4011 rel2.to: "button_image";
4015 description { state: "disabled" 0.0;
4016 inherit: "default" 0.0;
4022 program { name: "button_click";
4023 signal: "mouse,down,1";
4025 action: SIGNAL_EMIT "elm,action,press" "";
4026 after: "button_click_anim";
4028 program { name: "button_click_anim";
4029 action: STATE_SET "clicked" 0.0;
4030 target: "button_image";
4033 program { name: "button_double_click";
4034 signal: "mouse,down,1,double";
4036 after: "button_click_anim";
4038 program { name: "button_unpress";
4039 action: SIGNAL_EMIT "elm,action,unpress" "";
4041 program { name: "button_mouseout_clicked";
4042 signal: "mouse,up,1";
4047 get_state(PART:"elm.text", st, 30, vl);
4048 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4050 emit("elm,action,default,text,set", "");
4051 set_state(PART:"elm.text", "visible", 0.0);
4053 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4054 set_state(PART:"button_image", "default", 0.0);
4056 after: button_unpress;
4058 program { name: "touch_snd";
4059 signal: "mouse,clicked,1";
4061 action: PLAY_SAMPLE "touch_sound" 1.0;
4062 after: button_unclick3;
4064 program { name: "button_unclick3";
4065 action: SIGNAL_EMIT "elm,action,click" "";
4067 program { name: "text_show";
4068 signal: "elm,state,text,visible";
4071 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4072 set_state(PART:"elm.text", "visible", 0.0);
4074 set_state(PART:"elm.text", "disabled_visible", 0.0);
4077 program { name: "text_hide";
4078 signal: "elm,state,text,hidden";
4080 action: STATE_SET "default" 0.0;
4083 program { name: "disable";
4084 signal: "elm,state,disabled";
4086 action: STATE_SET "disabled" 0.0;
4087 target: "button_image";
4089 after: "disable_text";
4091 program { name: "disable_text";
4095 get_state(PART:"elm.text", st, 30, vl);
4096 if (!strcmp(st, "visible"))
4097 set_state(PART:"elm.text", "disabled_visible", 0.0);
4099 set_state(PART:"elm.text", "disabled", 0.0);
4100 set_int(button_state, BUTTON_STATE_DISABLED);
4103 program { name: "enable";
4104 signal: "elm,state,enabled";
4106 action: STATE_SET "default" 0.0;
4107 target: "button_image";
4109 after: "enable_text";
4111 program { name: "enable_text";
4115 get_state(PART:"elm.text", st, 30, vl);
4116 if (!strcmp(st, "disabled_visible"))
4117 set_state(PART:"elm.text", "visible", 0.0);
4119 set_state(PART:"elm.text", "default", 0.0);
4120 set_int(button_state, BUTTON_STATE_ENABLED);
4123 program { name: "focused";
4124 //signal: "elm,action,focus";
4126 action: STATE_SET "focused" 0.0;
4127 target: "button_image";
4130 program { name: "unfocused";
4131 //signal: "elm,action,unfocus";
4133 action: STATE_SET "default" 0.0;
4134 target: "button_image";
4135 action: STATE_SET "visible" 0.0;
4141 ///////////////////////////////////////////////////////////////////////////////////////
4142 group { name: "elm/button/base/naviframe/back_btn/default";
4143 alias: "elm/button/base/naviframe/prev_btn/default";
4144 alias: "elm/button/base/naviframe/end_btn/default";
4146 image: "00_icon_Back.png" COMP;
4149 part { name: "button_image";
4152 description { state: "default" 0.0;
4153 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4154 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4157 description { state: "landscape" 0.0;
4158 min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4159 max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4163 part { name: "back_button";
4166 clip_to: "back_button.clipper";
4167 description { state: "default" 0.0;
4168 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4169 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4171 rel1.to: "button_image";
4172 rel2.to: "button_image";
4173 image.normal: "00_icon_Back.png";
4176 part { name: "back_button.clipper";
4178 description { state: "default" 0.0;
4179 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4181 description { state: "clicked" 0.0;
4182 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4184 description { state: "disabled" 0.0;
4185 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4188 part { name: "over2";
4190 ignore_flags: ON_HOLD;
4191 description { state: "default" 0.0;
4195 part { name: "over3";
4198 description { state: "default" 0.0;
4202 part { name: "disabler";
4204 description { state: "default" 0.0;
4208 description { state: "disabled" 0.0;
4209 inherit: "default" 0.0;
4215 program { name: "button_click";
4216 signal: "mouse,down,1";
4218 action: SIGNAL_EMIT "elm,action,press" "";
4219 after: "button_click_anim";
4221 program { name: "button_click_anim";
4223 set_state(PART:"back_button.clipper", "clicked", 0.0);
4226 program { name: "button_double_click";
4227 signal: "mouse,down,1,double";
4229 after: "button_click_anim";
4231 program { name: "button_unclick";
4232 signal: "mouse,up,1";
4234 action: SIGNAL_EMIT "elm,action,unpress" "";
4235 after: "button_unclick_anim";
4237 program { name: "button_unclick_anim";
4239 set_state(PART:"back_button.clipper", "default", 0.0);
4242 program { name: "touch_snd";
4243 signal: "mouse,clicked,1";
4245 action: PLAY_SAMPLE "touch_sound" 1.0;
4246 after: button_unclick3;
4248 program { name: "button_unclick3";
4249 action: SIGNAL_EMIT "elm,action,click" "";
4251 program { name: "disable";
4252 signal: "elm,state,disabled";
4255 set_state(PART:"back_button.clipper", "disabled", 0.0);
4258 program { name: "enable";
4259 signal: "elm,state,enabled";
4262 set_state(PART:"back_button.clipper", "default", 0.0);
4265 program { name: "change_to_landscape";
4266 signal: "elm,state,landscape";
4268 action: STATE_SET "landscape" 0.0;
4269 target: "button_image";
4271 program { name: "change_to_portrait";
4272 signal: "elm,state,portrait";
4274 action: STATE_SET "default" 0.0;
4275 target: "button_image";
4277 program { name: "landscape_mode";
4279 signal: "elm,state,orient,90";
4280 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4282 program { name: "landscape_mode2";
4284 signal: "elm,state,orient,270";
4285 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4287 program { name: "portrait_mode";
4289 signal: "elm,state,orient,0";
4290 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4292 program { name: "portrait_mode2";
4294 signal: "elm,state,orient,180";
4295 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4300 //////////////////////////////////////////////////////////////
4301 group { name: "elm/button/base/naviframe/toolbar/default";
4302 alias: "elm/button/base/naviframe/title/default";
4304 image: "00_toolbar_button.png" COMP;
4305 image: "00_toolbar_button_press.png" COMP;
4306 image: "00_toolbar_button_dim.png" COMP;
4307 image: "00_badge_bg.png" COMP;
4310 style { name: "btn_naviframe_toolbar";
4311 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color=#ffffff ellipsis=1.0 wrap=none text_class=tizen";
4318 public button_state = BUTTON_STATE_ENABLED;
4321 part { name: "button_image";
4323 description { state: "default" 0.0;
4324 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4325 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4327 rel1.to: "padding_text_left_top";
4328 rel2.to: "padding_text_right_bottom";
4330 normal: "00_toolbar_button.png";
4331 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4335 description { state: "clicked" 0.0;
4336 inherit: "default" 0.0;
4337 image.normal: "00_toolbar_button_press.png";
4339 description { state: "disabled" 0.0;
4340 inherit: "default" 0.0;
4341 image.normal: "00_toolbar_button_dim.png";
4343 description { state: "focused" 0.0;
4344 inherit: "default" 0.0;
4345 image.normal: "00_toolbar_button_press.png";
4348 part { name: "padding_left_top";
4352 description { state: "default" 0.0;
4355 rel2.relative: 0.0 0.0;
4356 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4360 part { name: "padding_right_bottom";
4364 description { state: "default" 0.0;
4366 rel1.relative: 1.0 1.0;
4367 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4372 part { name: "padding_text_left_top";
4376 description { state: "default" 0.0;
4378 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4380 rel1.to: "elm.text";
4388 part { name: "padding_text_right_bottom";
4392 description { state: "default" 0.0;
4393 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4400 rel2.to: "elm.text";
4404 part { name: "elm.text";
4408 effect: FAR_SHADOW BOTTOM;
4410 description { state: "default" 0.0;
4413 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4416 to: "padding_left_top";
4420 to: "padding_right_bottom";
4422 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4423 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4427 style: "btn_naviframe_toolbar";
4430 description { state: "visible" 0.0;
4431 inherit: "default" 0.0;
4434 description { state: "clicked" 0.0;
4435 inherit: "default" 0.0;
4437 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4439 description { state: "disabled" 0.0;
4440 inherit: "default" 0.0;
4442 description { state: "disabled_visible" 0.0;
4443 inherit: "default" 0.0;
4444 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4445 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4448 description { state: "focused" 0.0;
4449 inherit: "default" 0.0;
4451 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4454 part { name: "disclip";
4456 description { state: "default" 0.0;
4457 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4459 description { state: "disabled" 0.0;
4460 inherit: "default" 0.0;
4461 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4464 part { name: "over2";
4467 ignore_flags: ON_HOLD;
4468 description { state: "default" 0.0;
4469 rel1.to: "button_image";
4470 rel2.to: "button_image";
4474 part { name: "over3";
4477 description { state: "default" 0.0;
4478 rel1.to: "button_image";
4479 rel2.to: "button_image";
4483 part { name: "disabler";
4485 description { state: "default" 0.0;
4486 rel1.to: "button_image";
4487 rel2.to: "button_image";
4491 description { state: "disabled" 0.0;
4492 inherit: "default" 0.0;
4498 program { name: "button_click";
4499 signal: "mouse,down,1";
4501 action: SIGNAL_EMIT "elm,action,press" "";
4502 after: "button_click_anim";
4504 program { name: "button_click_anim";
4505 action: STATE_SET "clicked" 0.0;
4506 target: "button_image";
4509 program { name: "button_double_click";
4510 signal: "mouse,down,1,double";
4512 after: "button_click_anim";
4514 program { name: "button_unpress";
4515 action: SIGNAL_EMIT "elm,action,unpress" "";
4517 program { name: "button_mouseout_clicked";
4518 signal: "mouse,up,1";
4523 get_state(PART:"elm.text", st, 30, vl);
4524 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4526 emit("elm,action,default,text,set", "");
4527 set_state(PART:"elm.text", "visible", 0.0);
4529 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4530 set_state(PART:"button_image", "default", 0.0);
4532 after: button_unpress;
4534 program { name: "touch_snd";
4535 signal: "mouse,clicked,1";
4537 action: PLAY_SAMPLE "touch_sound" 1.0;
4538 after: button_unclick3;
4540 program { name: "button_unclick3";
4541 action: SIGNAL_EMIT "elm,action,click" "";
4543 program { name: "text_show";
4544 signal: "elm,state,text,visible";
4547 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4548 set_state(PART:"elm.text", "visible", 0.0);
4550 set_state(PART:"elm.text", "disabled_visible", 0.0);
4553 program { name: "text_hide";
4554 signal: "elm,state,text,hidden";
4556 action: STATE_SET "default" 0.0;
4559 program { name: "disable";
4560 signal: "elm,state,disabled";
4562 action: STATE_SET "disabled" 0.0;
4563 target: "button_image";
4566 after: "disable_text";
4568 program { name: "disable_text";
4572 get_state(PART:"elm.text", st, 30, vl);
4573 if (!strcmp(st, "visible"))
4574 set_state(PART:"elm.text", "disabled_visible", 0.0);
4576 set_state(PART:"elm.text", "disabled", 0.0);
4577 set_int(button_state, BUTTON_STATE_DISABLED);
4580 program { name: "enable";
4581 signal: "elm,state,enabled";
4583 action: STATE_SET "default" 0.0;
4584 target: "button_image";
4587 after: "enable_text";
4589 program { name: "enable_text";
4593 get_state(PART:"elm.text", st, 30, vl);
4594 if (!strcmp(st, "disabled_visible"))
4595 set_state(PART:"elm.text", "visible", 0.0);
4597 set_state(PART:"elm.text", "default", 0.0);
4598 set_int(button_state, BUTTON_STATE_ENABLED);
4601 program { name: "focused";
4602 //signal: "elm,action,focus";
4604 action: STATE_SET "focused" 0.0;
4605 target: "button_image";
4608 program { name: "unfocused";
4609 //signal: "elm,action,unfocus";
4611 action: STATE_SET "default" 0.0;
4612 target: "button_image";
4613 action: STATE_SET "visible" 0.0;
4619 //////////////////////////////////////////////////////////////
4620 group { name: "elm/button/base/naviframe/toolbar/left";
4621 inherit: "elm/button/base/naviframe/toolbar/default";
4623 part { name: "button_image";
4625 description { state: "default" 0.0;
4626 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4627 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4629 rel1.to: "padding_text_left_top";
4630 rel2.to: "padding_text_right_bottom";
4633 normal: "00_toolbar_button.png";
4634 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4638 description { state: "clicked" 0.0;
4639 inherit: "default" 0.0;
4640 image.normal: "00_toolbar_button_press.png";
4642 description { state: "disabled" 0.0;
4643 inherit: "default" 0.0;
4644 image.normal: "00_toolbar_button_dim.png";
4646 description { state: "focused" 0.0;
4647 inherit: "default" 0.0;
4648 image.normal: "00_toolbar_button_press.png";
4651 part { name: "elm.text";
4655 effect: FAR_SHADOW BOTTOM;
4657 description { state: "default" 0.0;
4660 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4663 to: "padding_left_top";
4667 to: "padding_right_bottom";
4670 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4671 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4675 style: "btn_naviframe_toolbar";
4678 description { state: "visible" 0.0;
4679 inherit: "default" 0.0;
4682 description { state: "clicked" 0.0;
4683 inherit: "default" 0.0;
4685 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4687 description { state: "disabled" 0.0;
4688 inherit: "default" 0.0;
4690 description { state: "disabled_visible" 0.0;
4691 inherit: "default" 0.0;
4692 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4693 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4696 description { state: "focused" 0.0;
4697 inherit: "default" 0.0;
4699 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4705 //////////////////////////////////////////////////////////////
4706 group { name: "elm/button/base/naviframe/toolbar/right";
4707 inherit: "elm/button/base/naviframe/toolbar/default";
4709 part { name: "button_image";
4711 description { state: "default" 0.0;
4712 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4713 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4715 rel1.to: "padding_text_left_top";
4716 rel2.to: "padding_text_right_bottom";
4719 normal: "00_toolbar_button.png";
4720 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4724 description { state: "clicked" 0.0;
4725 inherit: "default" 0.0;
4726 image.normal: "00_toolbar_button_press.png";
4728 description { state: "disabled" 0.0;
4729 inherit: "default" 0.0;
4730 image.normal: "00_toolbar_button_dim.png";
4732 description { state: "focused" 0.0;
4733 inherit: "default" 0.0;
4734 image.normal: "00_toolbar_button_press.png";
4737 part { name: "elm.text";
4741 effect: FAR_SHADOW BOTTOM;
4743 description { state: "default" 0.0;
4746 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4749 to: "padding_left_top";
4753 to: "padding_right_bottom";
4756 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4757 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4761 style: "btn_naviframe_toolbar";
4764 description { state: "visible" 0.0;
4765 inherit: "default" 0.0;
4768 description { state: "clicked" 0.0;
4769 inherit: "default" 0.0;
4771 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4773 description { state: "disabled" 0.0;
4774 inherit: "default" 0.0;
4776 description { state: "disabled_visible" 0.0;
4777 inherit: "default" 0.0;
4778 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4779 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4782 description { state: "focused" 0.0;
4783 inherit: "default" 0.0;
4785 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4791 ////////////////////////////////////////////////////////////////////
4792 group { name: "elm/button/base/toolbar/segmentedcontrol";
4794 image: "00_toolbar_button.png" COMP;
4795 image: "00_toolbar_button_press.png" COMP;
4796 image: "00_toolbar_button_dim.png" COMP;
4797 image: "00_button_icon_arrow.png" COMP;
4798 image: "00_button_icon_arrow_press.png" COMP;
4801 style { name: "btn_toolbar_segmentedcontrol";
4802 base: "font=Tizen:style=Bold font_size="BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXT_FONT_SIZE_INC" align=center color=#ffffff ellipsis=1.0 wrap=none text_class=tizen";
4809 public button_state = BUTTON_STATE_ENABLED;
4812 part { name: "button_image";
4814 description { state: "default" 0.0;
4815 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
4816 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
4818 rel1.to: "padding_text_left_top";
4819 rel2.to: "padding_text_right_bottom";
4821 normal: "00_toolbar_button.png";
4822 border: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_BORDER_INC;
4826 description { state: "clicked" 0.0;
4827 inherit: "default" 0.0;
4828 image.normal: "00_toolbar_button_press.png";
4830 description { state: "disabled" 0.0;
4831 inherit: "default" 0.0;
4832 image.normal: "00_toolbar_button_dim.png";
4834 description { state: "focused" 0.0;
4835 inherit: "default" 0.0;
4836 image.normal: "00_toolbar_button_press.png";
4839 part { name: "padding_left_top";
4843 description { state: "default" 0.0;
4846 rel2.relative: 0.0 0.0;
4847 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4851 part { name: "padding_right_bottom";
4855 description { state: "default" 0.0;
4857 rel1.relative: 1.0 1.0;
4858 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
4863 part { name: "padding_text_left_top";
4867 description { state: "default" 0.0;
4869 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4871 rel1.to: "elm.text";
4879 part { name: "padding_text_right_bottom";
4883 description { state: "default" 0.0;
4884 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
4900 part { name: "elm.text";
4904 effect: FAR_SHADOW BOTTOM;
4906 description { state: "default" 0.0;
4909 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXTBLOCK_MIN_INC;
4912 to: "padding_left_top";
4916 to: "padding_right_bottom";
4918 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4919 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4923 style: "btn_toolbar_segmentedcontrol";
4926 description { state: "visible" 0.0;
4927 inherit: "default" 0.0;
4930 description { state: "clicked" 0.0;
4931 inherit: "default" 0.0;
4933 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4935 description { state: "disabled" 0.0;
4936 inherit: "default" 0.0;
4938 description { state: "disabled_visible" 0.0;
4939 inherit: "default" 0.0;
4940 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4941 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4944 description { state: "focused" 0.0;
4945 inherit: "default" 0.0;
4947 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4950 part { name: "icon_padding";
4953 description { state: "default" 0.0;
4962 rel2.to: "elm.text";
4965 part { name: "icon";
4967 clip_to: "icon_clipper";
4968 description { state: "default" 0.0;
4969 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
4970 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
4975 to_x: "icon_padding";
4981 to_x: "icon_padding";
4984 image.normal: "00_button_icon_arrow.png";
4986 description { state: "clicked" 0.0;
4987 inherit: "default" 0.0;
4988 image.normal: "00_button_icon_arrow_press.png";
4991 part { name: "icon_clipper";
4993 description { state: "default" 0.0;
4994 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_NORMAL_COLOR_INC;
4996 description { state: "clicked" 0.0;
4997 inherit: "default" 0.0;
4998 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_PRESSED_COLOR_INC;
5001 part { name: "disclip";
5003 description { state: "default" 0.0;
5004 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5006 description { state: "disabled" 0.0;
5007 inherit: "default" 0.0;
5008 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5011 part { name: "over2";
5014 ignore_flags: ON_HOLD;
5015 description { state: "default" 0.0;
5016 rel1.to: "button_image";
5017 rel2.to: "button_image";
5021 part { name: "over3";
5024 description { state: "default" 0.0;
5025 rel1.to: "button_image";
5026 rel2.to: "button_image";
5030 part { name: "disabler";
5032 description { state: "default" 0.0;
5033 rel1.to: "button_image";
5034 rel2.to: "button_image";
5038 description { state: "disabled" 0.0;
5039 inherit: "default" 0.0;
5045 program { name: "button_click";
5046 signal: "mouse,down,1";
5048 action: SIGNAL_EMIT "elm,action,press" "";
5049 after: "button_click_anim";
5051 program { name: "button_click_anim";
5052 action: STATE_SET "clicked" 0.0;
5053 target: "button_image";
5056 target: "icon_clipper";
5058 program { name: "button_double_click";
5059 signal: "mouse,down,1,double";
5061 after: "button_click_anim";
5063 program { name: "button_unpress";
5064 action: SIGNAL_EMIT "elm,action,unpress" "";
5066 program { name: "button_mouseout_clicked";
5067 signal: "mouse,up,1";
5072 get_state(PART:"elm.text", st, 30, vl);
5073 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5075 emit("elm,action,default,text,set", "");
5076 set_state(PART:"elm.text", "visible", 0.0);
5078 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5079 set_state(PART:"button_image", "default", 0.0);
5080 set_state(PART:"icon", "default", 0.0);
5081 set_state(PART:"icon_clipper", "default", 0.0);
5083 after: button_unpress;
5085 program { name: "touch_snd";
5086 signal: "mouse,clicked,1";
5088 action: PLAY_SAMPLE "touch_sound" 1.0;
5089 after: button_unclick3;
5091 program { name: "button_unclick3";
5092 action: SIGNAL_EMIT "elm,action,click" "";
5094 program { name: "text_show";
5095 signal: "elm,state,text,visible";
5098 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5099 set_state(PART:"elm.text", "visible", 0.0);
5101 set_state(PART:"elm.text", "disabled_visible", 0.0);
5104 program { name: "text_hide";
5105 signal: "elm,state,text,hidden";
5107 action: STATE_SET "default" 0.0;
5110 program { name: "disable";
5111 signal: "elm,state,disabled";
5113 action: STATE_SET "disabled" 0.0;
5114 target: "button_image";
5117 after: "disable_text";
5119 program { name: "disable_text";
5123 get_state(PART:"elm.text", st, 30, vl);
5124 if (!strcmp(st, "visible"))
5125 set_state(PART:"elm.text", "disabled_visible", 0.0);
5127 set_state(PART:"elm.text", "disabled", 0.0);
5128 set_int(button_state, BUTTON_STATE_DISABLED);
5131 program { name: "enable";
5132 signal: "elm,state,enabled";
5134 action: STATE_SET "default" 0.0;
5135 target: "button_image";
5138 after: "enable_text";
5140 program { name: "enable_text";
5144 get_state(PART:"elm.text", st, 30, vl);
5145 if (!strcmp(st, "disabled_visible"))
5146 set_state(PART:"elm.text", "visible", 0.0);
5148 set_state(PART:"elm.text", "default", 0.0);
5149 set_int(button_state, BUTTON_STATE_ENABLED);
5152 program { name: "focused";
5153 //signal: "elm,action,focus";
5155 action: STATE_SET "focused" 0.0;
5156 target: "button_image";
5159 program { name: "unfocused";
5160 //signal: "elm,action,unfocus";
5162 action: STATE_SET "default" 0.0;
5163 target: "button_image";
5164 action: STATE_SET "visible" 0.0;
5170 ////////////////////////////////////////////////////////////////////
5171 group { name: "elm/button/base/naviframe/title_icon";
5173 part { name: "button_image";
5176 description { state: "default" 0.0;
5178 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5179 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5181 description { state: "landscape" 0.0;
5183 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5184 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5187 part { name: "top_padding";
5190 description { state: "default" 0.0;
5192 min: BUTTON_NAVIFRAME_TITLE_ICON_TOP_PADDING_INC;
5195 rel1 { relative: 0.0 0.0; to: "button_image"; }
5196 rel2 { relative: 1.0 0.0; to: "button_image"; }
5198 description { state: "landscape" 0.0;
5199 inherit: "default" 0.0;
5200 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_TOP_PADDING_INC;
5203 part { name: "elm.swallow.content";
5206 clip_to: "elm.icon.clipper";
5207 description { state: "default" 0.0;
5209 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5212 rel1 { relative: 0.0 1.0; to: "top_padding"; }
5213 rel2 { relative: 1.0 1.0; to: "button_image"; }
5215 description { state: "visible" 0.0;
5216 inherit: "default" 0.0;
5220 part { name: "elm.swallow.icon.proxy";
5223 clip_to: "elm.icon.proxy.clipper";
5224 description { state: "default" 0.0;
5225 source: "elm.swallow.content";
5226 rel1.to: "elm.swallow.content";
5228 rel2.to: "elm.swallow.content";
5232 part { name: "elm.icon.proxy.clipper";
5234 description { state: "default" 0.0;
5235 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5237 description { state: "clicked" 0.0;
5238 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5240 description { state: "disabled" 0.0;
5241 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5244 part { name: "elm.icon.clipper";
5246 description { state: "default" 0.0;
5247 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5249 description { state: "clicked" 0.0;
5250 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5252 description { state: "disabled" 0.0;
5253 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5256 part { name: "over2";
5258 ignore_flags: ON_HOLD;
5259 description { state: "default" 0.0;
5263 part { name: "over3";
5266 description { state: "default" 0.0;
5270 part { name: "disabler";
5272 description { state: "default" 0.0;
5276 description { state: "disabled" 0.0;
5277 inherit: "default" 0.0;
5283 program { name: "button_click";
5284 signal: "mouse,down,1";
5286 action: SIGNAL_EMIT "elm,action,press" "";
5287 after: "button_click_anim";
5289 program { name: "button_click_anim";
5291 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5292 set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0);
5295 program { name: "button_double_click";
5296 signal: "mouse,down,1,double";
5298 after: "button_click_anim";
5300 program { name: "button_unpress";
5301 action: SIGNAL_EMIT "elm,action,unpress" "";
5303 program { name: "button_mouseout_clicked";
5304 signal: "mouse,up,1";
5306 action: STATE_SET "default" 0.0;
5307 target: "elm.icon.clipper";
5308 target: "elm.icon.proxy.clipper";
5309 after: button_unpress;
5311 program { name: "touch_snd";
5312 signal: "mouse,clicked,1";
5314 action: PLAY_SAMPLE "touch_sound" 1.0;
5315 after: button_unclick3;
5317 program { name: "button_unclick3";
5318 action: SIGNAL_EMIT "elm,action,click" "";
5320 program { name: "icon_show";
5321 signal: "elm,state,icon,visible";
5323 action: STATE_SET "visible" 0.0;
5324 target: "elm.swallow.content";
5326 program { name: "icon_hide";
5327 signal: "elm,state,icon,hidden";
5329 action: STATE_SET "default" 0.0;
5330 target: "elm.swallow.content";
5332 program { name: "disable";
5333 signal: "elm,state,disabled";
5336 set_state(PART:"disabler", "disabled", 0.0);
5337 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5338 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
5341 program { name: "enable";
5342 signal: "elm,state,enabled";
5345 set_state(PART:"disabler", "default", 0.0);
5346 set_state(PART:"elm.icon.clipper", "default", 0.0);
5347 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
5350 program { name: "change_to_landscape";
5351 signal: "elm,state,landscape";
5353 action: STATE_SET "landscape" 0.0;
5354 target: "button_image";
5355 target: "top_padding";
5357 program { name: "change_to_portrait";
5358 signal: "elm,state,portrait";
5360 action: STATE_SET "default" 0.0;
5361 target: "button_image";
5362 target: "top_padding";
5364 /* program { name: "landscape_mode";
5366 signal: "elm,state,orient,90";
5367 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5369 program { name: "landscape_mode2";
5371 signal: "elm,state,orient,270";
5372 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5374 program { name: "portrait_mode";
5376 signal: "elm,state,orient,0";
5377 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5379 program { name: "portrait_mode2";
5381 signal: "elm,state,orient,180";
5382 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5387 /////////////////////////////////////////////////////////////////////////////////////////
5388 group { name: "elm/button/base/naviframe/more/default";
5390 image: "00_icon_more.png" COMP;
5393 part { name: "button_image";
5396 description { state: "default" 0.0;
5397 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5398 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5401 description { state: "landscape" 0.0;
5402 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5403 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5407 part { name: "more_image";
5410 clip_to: "more_image.clipper";
5411 description { state: "default" 0.0;
5412 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5413 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5415 rel1.to: "button_image";
5416 rel2.to: "button_image";
5417 image.normal: "00_icon_more.png";
5420 part { name: "more_image.clipper";
5422 description { state: "default" 0.0;
5423 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5425 description { state: "clicked" 0.0;
5426 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5428 description { state: "disabled" 0.0;
5429 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5432 part { name: "elm.text.badge.bg";
5436 state: "default" 0.0;
5439 to: "left.padding.text.badge";
5443 to: "right.padding.text.badge";
5448 normal: "00_badge_bg.png";
5453 description { state: "visible" 0.0;
5454 inherit: "default" 0.0;
5458 part { name: "left.padding.text.badge";
5462 state: "default" 0.0;
5467 to: "elm.text.badge";
5471 to: "elm.text.badge";
5477 part { name: "right.padding.text.badge";
5481 state: "default" 0.0;
5496 part { name: "elm.text.badge";
5501 state: "default" 0.0;
5509 to: "right.padding.text.badge";
5513 color: 10 100 208 255;
5515 font: "Tizen:style=Bold";
5521 description { state: "visible" 0.0;
5522 inherit: "default" 0.0;
5526 part { name: "over2";
5528 ignore_flags: ON_HOLD;
5529 description { state: "default" 0.0;
5533 part { name: "over3";
5536 description { state: "default" 0.0;
5540 part { name: "disabler";
5542 description { state: "default" 0.0;
5546 description { state: "disabled" 0.0;
5547 inherit: "default" 0.0;
5553 program { name: "button_click";
5554 signal: "mouse,down,1";
5556 action: SIGNAL_EMIT "elm,action,press" "";
5557 after: "button_click_anim";
5559 program { name: "button_click_anim";
5561 set_state(PART:"more_image.clipper", "clicked", 0.0);
5564 program { name: "button_double_click";
5565 signal: "mouse,down,1,double";
5567 after: "button_click_anim";
5569 program { name: "button_unclick";
5570 signal: "mouse,up,1";
5572 action: SIGNAL_EMIT "elm,action,unpress" "";
5573 after: "button_unclick_anim";
5575 program { name: "button_unclick_anim";
5577 set_state(PART:"more_image.clipper", "default", 0.0);
5580 program { name: "touch_snd";
5581 signal: "mouse,clicked,1";
5583 action: PLAY_SAMPLE "touch_sound" 1.0;
5584 after: button_unclick3;
5586 program { name: "button_unclick3";
5587 action: SIGNAL_EMIT "elm,action,click" "";
5589 program { name: "badge_text_show";
5590 signal: "elm,state,elm.text.badge,visible";
5592 action: STATE_SET "visible" 0.0;
5593 target: "elm.text.badge";
5594 target: "elm.text.badge.bg";
5596 program { name: "badge_text_hide";
5597 signal: "elm,state,elm.text.badge,hidden";
5599 action: STATE_SET "default" 0.0;
5600 target: "elm.text.badge";
5601 target: "elm.text.badge.bg";
5603 program { name: "disable";
5604 signal: "elm,state,disabled";
5607 set_state(PART:"disabler", "disabled", 0.0);
5608 set_state(PART:"more_image.clipper", "disabled", 0.0);
5611 program { name: "enable";
5612 signal: "elm,state,enabled";
5615 set_state(PART:"disabler", "default", 0.0);
5616 set_state(PART:"more_image.clipper", "default", 0.0);
5619 program { name: "change_to_landscape";
5620 signal: "elm,state,landscape";
5622 action: STATE_SET "landscape" 0.0;
5623 target: "button_image";
5625 program { name: "change_to_portrait";
5626 signal: "elm,state,portrait";
5628 action: STATE_SET "default" 0.0;
5629 target: "button_image";
5631 program { name: "landscape_mode";
5633 signal: "elm,state,orient,90";
5634 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5636 program { name: "landscape_mode2";
5638 signal: "elm,state,orient,270";
5639 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5641 program { name: "portrait_mode";
5643 signal: "elm,state,orient,0";
5644 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5646 program { name: "portrait_mode2";
5648 signal: "elm,state,orient,180";
5649 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5654 ///////////////////////////////////////////////////////////////////////////////////////
5655 group { name: "elm/button/base/tickernoti";
5657 image: "00_notification_button_bg.png" COMP;
5658 image: "00_notification_button_bg_press.png" COMP;
5659 image: "00_notification_button_bg_dim.png" COMP;
5662 public button_state = BUTTON_STATE_ENABLED;
5665 part { name: "button_image";
5667 description { state: "default" 0.0;
5668 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5669 max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5671 normal: "00_notification_button_bg.png";
5672 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
5676 description { state: "clicked" 0.0;
5677 inherit: "default" 0.0;
5678 image.normal: "00_notification_button_bg_press.png";
5680 description { state: "disabled" 0.0;
5681 inherit: "default" 0.0;
5682 image.normal: "00_notification_button_bg_dim.png";
5684 description { state: "focused" 0.0;
5685 inherit: "default" 0.0;
5686 image.normal: "00_notification_button_bg_press.png";
5689 part { name: "padding_left_top";
5693 description { state: "default" 0.0;
5696 rel2.relative: 0.0 0.0;
5697 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5705 description { state: "default" 0.0;
5706 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5709 description { state: "visible" 0.0;
5710 inherit: "default" 0.0;
5712 description { state: "icononly" 0.0;
5713 inherit: "default" 0.0;
5716 part { name: "padding_right_bottom";
5720 description { state: "default" 0.0;
5722 rel1.relative: 1.0 1.0;
5723 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5728 part { name: "icon_rect";
5732 description { state: "default" 0.0;
5738 to: "padding_left_top";
5742 to_x: "padding_left_top";
5743 to_y: "padding_right_bottom";
5747 description { state: "visible" 0.0;
5748 inherit: "default" 0.0;
5749 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5750 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5752 description { state: "icononly" 0.0;
5753 inherit: "default" 0.0;
5756 part { name: "padding_after_icon";
5760 description { state: "default" 0.0; //when only icon or no icon is there
5769 rel2.to: "icon_rect";
5771 description { state: "visible" 0.0;
5772 inherit: "default" 0.0;
5773 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5775 description { state: "icononly" 0.0;
5776 inherit: "default" 0.0;
5779 part { name: "padding_before_text";
5783 description { state: "default" 0.0; //when only icon or no icon is there
5787 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5791 to_y: "padding_left_top";
5796 to_y: "padding_right_bottom";
5800 part { name: "elm.swallow.content";
5804 description { state: "default" 0.0;
5810 to: "padding_left_top";
5814 to_x: "padding_left_top";
5815 to_y: "padding_right_bottom";
5818 description { state: "visible" 0.0;
5820 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5821 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5825 to_x: "padding_before_text";
5826 to_y: "padding_left_top";
5830 to_x: "padding_before_text";
5831 to_y: "padding_right_bottom";
5834 description { state: "icononly" 0.0;
5835 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5836 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5839 part { name: "elm.text";
5842 effect: FAR_SHADOW BOTTOM;
5845 description { state: "default" 0.0;
5849 to_x: "padding_after_icon";
5850 to_y: "padding_left_top";
5854 to: "padding_right_bottom";
5856 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
5857 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5859 font: "Tizen:style=Regular";
5860 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
5863 text_class: "tizen";
5866 description { state: "visible" 0.0;
5867 inherit: "default" 0.0;
5870 description { state: "clicked" 0.0;
5871 inherit: "default" 0.0;
5873 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5875 description { state: "disabled" 0.0;
5876 inherit: "default" 0.0;
5878 description { state: "disabled_visible" 0.0;
5879 inherit: "default" 0.0;
5880 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
5881 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5884 description { state: "focused" 0.0;
5885 inherit: "default" 0.0;
5887 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5890 part { name: "over2";
5893 ignore_flags: ON_HOLD;
5894 description { state: "default" 0.0;
5898 part { name: "over3";
5901 description { state: "default" 0.0;
5905 part { name: "clipper";
5907 description { state: "default" 0.0;
5908 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5910 description { state: "disabled" 0.0;
5911 inherit: "default" 0.0;
5912 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5915 part { name: "disabler";
5917 description { state: "default" 0.0;
5921 description { state: "disabled" 0.0;
5922 inherit: "default" 0.0;
5928 program { name: "button_click";
5929 signal: "mouse,down,1";
5931 action: SIGNAL_EMIT "elm,action,press" "";
5932 after: "button_click_anim";
5934 program { name: "button_click_anim";
5935 action: STATE_SET "clicked" 0.0;
5936 target: "button_image";
5937 after: "text_clicked";
5939 program { name: "text_clicked";
5943 get_state(PART:"elm.text", st, 30, vl);
5944 if (!strcmp(st, "visible"))
5945 set_state(PART:"elm.text", "clicked", 0.0);
5948 program { name: "button_double_click";
5949 signal: "mouse,down,1,double";
5951 after: "button_click_anim";
5953 program { name: "button_unpress";
5954 action: SIGNAL_EMIT "elm,action,unpress" "";
5956 program { name: "button_mouseout_clicked";
5957 signal: "mouse,up,1";
5962 get_state(PART:"elm.swallow.content", st, 30, vl);
5963 if (strcmp(st, "icononly"))
5965 emit("elm,action,default,text,set", "");
5966 set_state(PART:"elm.text", "visible", 0.0);
5968 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5969 set_state(PART:"button_image", "default", 0.0);
5971 after: button_unpress;
5973 program { name: "touch_snd";
5974 signal: "mouse,clicked,1";
5976 action: PLAY_SAMPLE "touch_sound" 1.0;
5977 after: button_unclick3;
5979 program { name: "button_unclick3";
5980 action: SIGNAL_EMIT "elm,action,click" "";
5982 program { name: "text_show";
5983 signal: "elm,state,text,visible";
5988 get_state(PART:"elm.swallow.content", st, 30, vl);
5989 if (!strcmp(st, "icononly"))
5991 set_state(PART:"elm.swallow.content", "visible", 0.0);
5992 set_state(PART:"icon_rect", "visible", 0.0);
5993 set_state(PART:"padding_after_icon", "visible", 0.0);
5994 set_state(PART:"bg", "visible", 0.0);
5996 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5997 set_state(PART:"elm.text", "visible", 0.0);
5999 set_state(PART:"elm.text", "disabled_visible", 0.0);
6002 program { name: "text_hide";
6003 signal: "elm,state,text,hidden";
6008 get_state(PART:"elm.swallow.content", st, 30, vl);
6009 if (!strcmp(st, "visible"))
6011 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6012 set_state(PART:"icon_rect", "icononly", 0.0);
6013 set_state(PART:"padding_after_icon", "icononly", 0.0);
6014 set_state(PART:"bg", "icononly", 0.0);
6016 set_state(PART:"elm.text", "default", 0.0);
6019 program { name: "icon_show";
6020 signal: "elm,state,icon,visible";
6025 get_state(PART:"elm.text", st, 30, vl);
6026 if (!strcmp(st, "visible"))
6028 set_state(PART:"elm.swallow.content", "visible", 0.0);
6029 set_state(PART:"icon_rect", "visible", 0.0);
6030 set_state(PART:"padding_after_icon", "visible", 0.0);
6031 set_state(PART:"bg", "visible", 0.0);
6035 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6036 set_state(PART:"icon_rect", "icononly", 0.0);
6037 set_state(PART:"padding_after_icon", "icononly", 0.0);
6038 set_state(PART:"bg", "icononly", 0.0);
6042 program { name: "icon_hide";
6043 signal: "elm,state,icon,hidden";
6045 action: STATE_SET "default" 0.0;
6046 target: "elm.swallow.content";
6047 target: "padding_after_icon";
6048 target: "icon_rect";
6051 program { name: "disable";
6052 signal: "elm,state,disabled";
6054 action: STATE_SET "disabled" 0.0;
6055 target: "button_image";
6058 after: "disable_text";
6060 program { name: "disable_text";
6064 get_state(PART:"elm.text", st, 30, vl);
6065 if (!strcmp(st, "visible"))
6066 set_state(PART:"elm.text", "disabled_visible", 0.0);
6068 set_state(PART:"elm.text", "disabled", 0.0);
6069 set_int(button_state, BUTTON_STATE_DISABLED);
6072 program { name: "enable";
6073 signal: "elm,state,enabled";
6075 action: STATE_SET "default" 0.0;
6076 target: "button_image";
6079 after: "enable_text";
6081 program { name: "enable_text";
6085 get_state(PART:"elm.text", st, 30, vl);
6086 if (!strcmp(st, "disabled_visible"))
6087 set_state(PART:"elm.text", "visible", 0.0);
6089 set_state(PART:"elm.text", "default", 0.0);
6090 set_int(button_state, BUTTON_STATE_ENABLED);
6093 program { name: "focused";
6094 //signal: "elm,action,focus";
6096 action: STATE_SET "focused" 0.0;
6097 target: "button_image";
6100 program { name: "unfocused";
6101 //signal: "elm,action,unfocus";
6103 action: STATE_SET "default" 0.0;
6104 target: "button_image";
6105 after: "unfocus_text";
6107 program { name: "unfocus_text";
6108 action: STATE_SET "visible" 0.0;
6114 ///////////////////////////////////////////////////////////////////////////////////////
6115 group { name: "elm/button/base/expandable_number";
6116 alias: "elm/button/base/text_only/expandable_number";
6118 image: "00_button_01.png" COMP;
6119 image: "00_button_01_press.png" COMP;
6120 image: "00_button_01_dim.png" COMP;
6121 image: "00_arrow_expand.png" COMP;
6124 public button_state = BUTTON_STATE_ENABLED;
6127 part { name: "button_image";
6129 description { state: "default" 0.0;
6130 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6131 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6133 normal: "00_button_01.png";
6134 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6138 description { state: "clicked" 0.0;
6139 inherit: "default" 0.0;
6140 image.normal: "00_button_01_press.png";
6142 description { state: "disabled" 0.0;
6143 inherit: "default" 0.0;
6144 image.normal: "00_button_01_dim.png";
6146 description { state: "focused" 0.0;
6147 inherit: "default" 0.0;
6148 image.normal: "00_button_01_press.png";
6151 part { name: "padding_left_top";
6155 description { state: "default" 0.0;
6158 rel2.relative: 0.0 0.0;
6159 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6163 part { name: "padding_right_bottom";
6167 description { state: "default" 0.0;
6170 rel1.relative: 1.0 1.0;
6171 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6175 part { name: "icon_rect";
6179 description { state: "default" 0.0;
6181 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6182 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6186 to_x: "padding_right_bottom";
6187 to_y: "padding_left_top";
6191 to: "padding_right_bottom";
6196 part { name: "arrow_expand";
6198 clip_to: "icon_clipper";
6200 description { state: "default" 0.0;
6202 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6203 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6205 rel1.to: "icon_rect";
6206 rel2.to: "icon_rect";
6207 image.normal:"00_arrow_expand.png";
6210 part { name: "elm.text";
6213 effect: SHADOW BOTTOM;
6215 description { state: "default" 0.0;
6216 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6217 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6221 to: "padding_left_top";
6225 to_x:"padding_left_top";
6226 to_y:"padding_right_bottom";
6229 color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6230 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6232 font: "Tizen:style=Regular";
6233 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6237 text_class: "tizen";
6240 description { state: "visible" 0.0;
6241 inherit: "default" 0.0;
6243 description { state: "clicked" 0.0;
6244 inherit: "default" 0.0;
6245 color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
6247 description { state: "disabled" 0.0;
6248 inherit: "default" 0.0;
6250 description { state: "disabled_visible" 0.0;
6251 inherit: "default" 0.0;
6252 color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6253 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
6255 description { state: "focused" 0.0;
6256 inherit: "default" 0.0;
6257 color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6260 part { name: "icon_clipper";
6263 description { state: "default" 0.0;
6264 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6266 description { state: "clicked" 0.0;
6267 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6269 description { state: "disabled" 0.0;
6270 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6273 part { name: "over2";
6276 ignore_flags: ON_HOLD;
6277 description { state: "default" 0.0;
6281 part { name: "over3";
6284 description { state: "default" 0.0;
6288 part { name: "disabler";
6290 description { state: "default" 0.0;
6294 description { state: "disabled" 0.0;
6295 inherit: "default" 0.0;
6301 program { name: "button_click";
6302 signal: "mouse,down,1";
6304 action: SIGNAL_EMIT "elm,action,press" "";
6305 after: "button_click_anim";
6307 program { name: "button_click_anim";
6308 action: STATE_SET "clicked" 0.0;
6309 target: "button_image";
6310 target: "icon_clipper";
6311 after: "text_clicked";
6313 program { name: "text_clicked";
6317 get_state(PART:"elm.text", st, 30, vl);
6318 if (!strcmp(st, "visible"))
6319 set_state(PART:"elm.text", "clicked", 0.0);
6322 program { name: "button_double_click";
6323 signal: "mouse,down,1,double";
6325 after: "button_click_anim";
6327 program { name: "button_unpress";
6328 action: SIGNAL_EMIT "elm,action,unpress" "";
6330 program { name: "button_mouseout_clicked";
6331 signal: "mouse,up,1";
6334 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6336 set_state(PART:"button_image", "default", 0.0);
6337 set_state(PART:"elm.text", "visible", 0.0);
6338 set_state(PART:"icon_clipper", "default", 0.0);
6341 after: button_unpress;
6343 program { name: "touch_snd";
6344 signal: "mouse,clicked,1";
6346 action: PLAY_SAMPLE "touch_sound" 1.0;
6347 after: button_unclick3;
6349 program { name: "button_unclick3";
6350 action: SIGNAL_EMIT "elm,action,click" "";
6352 program { name: "text_show";
6353 signal: "elm,state,text,visible";
6356 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6357 set_state(PART:"elm.text", "visible", 0.0);
6359 set_state(PART:"elm.text", "disabled_visible", 0.0);
6362 program { name: "text_hide";
6363 signal: "elm,state,text,hidden";
6366 set_state(PART:"elm.text", "default", 0.0);
6369 program { name: "disable";
6370 signal: "elm,state,disabled";
6372 action: STATE_SET "disabled" 0.0;
6373 target: "button_image";
6375 target: "icon_clipper";
6376 after: "disable_text";
6378 program { name: "disable_text";
6382 get_state(PART:"elm.text", st, 30, vl);
6383 if (!strcmp(st, "visible"))
6384 set_state(PART:"elm.text", "disabled_visible", 0.0);
6386 set_state(PART:"elm.text", "disabled", 0.0);
6387 set_int(button_state, BUTTON_STATE_DISABLED);
6390 program { name: "enable";
6391 signal: "elm,state,enabled";
6393 action: STATE_SET "default" 0.0;
6394 target: "button_image";
6396 target: "icon_clipper";
6397 after: "enable_text";
6399 program { name: "enable_text";
6403 get_state(PART:"elm.text", st, 30, vl);
6404 if (!strcmp(st, "disabled_visible"))
6405 set_state(PART:"elm.text", "visible", 0.0);
6407 set_state(PART:"elm.text", "default", 0.0);
6408 set_int(button_state, BUTTON_STATE_ENABLED);
6411 program { name: "focused";
6412 //signal: "elm,action,focus";
6414 action: STATE_SET "focused" 0.0;
6415 target: "button_image";
6418 program { name: "unfocused";
6419 //signal: "elm,action,unfocus";
6421 action: STATE_SET "default" 0.0;
6422 target: "button_image";
6423 after: "unfocus_text";
6425 program { name: "unfocus_text";
6426 action: STATE_SET "visible" 0.0;
6432 ////////////////////////////////////////////////////////////////////////
6433 group { name: "elm/button/base/bubble_sent";
6434 inherit: "elm/button/base/style1";
6436 image: "00_messagebubble_button_sent.png" COMP;
6437 image: "00_messagebubble_button_sent_press.png" COMP;
6438 image: "00_messagebubble_button_sent_dim.png" COMP;
6441 part { name: "button_image";
6443 description { state: "default" 0.0;
6445 normal: "00_messagebubble_button_sent.png";
6446 border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
6450 description { state: "clicked" 0.0;
6451 inherit: "default" 0.0;
6452 image.normal: "00_messagebubble_button_sent_press.png";
6454 description { state: "disabled" 0.0;
6455 inherit: "default" 0.0;
6456 image.normal: "00_messagebubble_button_sent_dim.png";
6458 description { state: "focused" 0.0;
6459 inherit: "default" 0.0;
6460 image.normal: "00_messagebubble_button_sent_press.png";
6463 part { name: "elm.text";
6466 effect: FAR_SHADOW BOTTOM;
6469 description { state: "default" 0.0;
6473 to_x: "padding_after_icon";
6474 to_y: "padding_left_top";
6478 to: "padding_right_bottom";
6480 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6481 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6483 font: "Tizen:style=Regular";
6484 size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
6487 text_class: "tizen";
6490 description { state: "visible" 0.0;
6491 inherit: "default" 0.0;
6494 description { state: "clicked" 0.0;
6495 inherit: "default" 0.0;
6497 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6499 description { state: "disabled" 0.0;
6500 inherit: "default" 0.0;
6502 description { state: "disabled_visible" 0.0;
6503 inherit: "default" 0.0;
6504 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6507 description { state: "focused" 0.0;
6508 inherit: "default" 0.0;
6510 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6516 ////////////////////////////////////////////////////////////////////////
6517 group { name: "elm/button/base/bubble_sent/multiline";
6518 inherit: "elm/button/base/bubble_sent";
6520 style { name: "bubble_sent_multiline";
6521 base: "font=Tizen:style=Regular font_size="BUTTON_SENT_BUBBLE_TEXT_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
6528 part { name: "elm.text";
6531 effect: FAR_SHADOW BOTTOM;
6534 description { state: "default" 0.0;
6539 to_x: "padding_after_icon";
6540 to_y: "padding_left_top";
6544 to: "padding_right_bottom";
6546 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6547 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6549 style: "bubble_sent_multiline";
6552 description { state: "visible" 0.0;
6553 inherit: "default" 0.0;
6556 description { state: "clicked" 0.0;
6557 inherit: "default" 0.0;
6559 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6561 description { state: "disabled" 0.0;
6562 inherit: "default" 0.0;
6564 description { state: "disabled_visible" 0.0;
6565 inherit: "default" 0.0;
6566 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6569 description { state: "focused" 0.0;
6570 inherit: "default" 0.0;
6572 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6578 ///////////////////////////////////////////////////////////////////////
6579 group { name: "elm/button/base/bubble_receive";
6580 inherit: "elm/button/base/style1";
6582 image: "00_messagebubble_button_receive.png" COMP;
6583 image: "00_messagebubble_button_receive_press.png" COMP;
6584 image: "00_messagebubble_button_receive_dim.png" COMP;
6587 part { name: "button_image";
6589 description { state: "default" 0.0;
6591 normal: "00_messagebubble_button_receive.png";
6592 border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
6596 description { state: "clicked" 0.0;
6597 inherit: "default" 0.0;
6598 image.normal: "00_messagebubble_button_receive_press.png";
6600 description { state: "disabled" 0.0;
6601 inherit: "default" 0.0;
6602 image.normal: "00_messagebubble_button_receive_dim.png";
6604 description { state: "focused" 0.0;
6605 inherit: "default" 0.0;
6606 image.normal: "00_messagebubble_button_receive_press.png";
6609 part { name: "elm.text";
6612 effect: SHADOW BOTTOM;
6615 description { state: "default" 0.0;
6619 to_x: "padding_after_icon";
6620 to_y: "padding_left_top";
6624 to: "padding_right_bottom";
6626 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6627 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6629 font: "Tizen:style=Regular";
6630 size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
6633 text_class: "tizen";
6636 description { state: "visible" 0.0;
6637 inherit: "default" 0.0;
6640 description { state: "clicked" 0.0;
6641 inherit: "default" 0.0;
6643 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6645 description { state: "disabled" 0.0;
6646 inherit: "default" 0.0;
6648 description { state: "disabled_visible" 0.0;
6649 inherit: "default" 0.0;
6650 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6653 description { state: "focused" 0.0;
6654 inherit: "default" 0.0;
6656 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6662 ///////////////////////////////////////////////////////////////////////
6663 group { name: "elm/button/base/bubble_receive/multiline";
6664 inherit: "elm/button/base/bubble_receive";
6666 style { name: "bubble_receive_multiline";
6667 base: "font=Tizen:style=Regular font_size="BUTTON_RECEIVE_BUBBLE_TEXT_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
6674 part { name: "elm.text";
6677 effect: SHADOW BOTTOM;
6680 description { state: "default" 0.0;
6685 to_x: "padding_after_icon";
6686 to_y: "padding_left_top";
6690 to: "padding_right_bottom";
6692 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6693 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6695 style: "btn_style1_multiline";
6698 description { state: "visible" 0.0;
6699 inherit: "default" 0.0;
6702 description { state: "clicked" 0.0;
6703 inherit: "default" 0.0;
6705 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6707 description { state: "disabled" 0.0;
6708 inherit: "default" 0.0;
6710 description { state: "disabled_visible" 0.0;
6711 inherit: "default" 0.0;
6712 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6715 description { state: "focused" 0.0;
6716 inherit: "default" 0.0;
6718 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6724 ///////////////////////////////////////////////////////////////////////
6725 group { name: "elm/button/base/bubble_circle/receive";
6727 image: "00_messagebubble_circle_receive.png" COMP;
6728 image: "00_messagebubble_circle_receive_press.png" COMP;
6729 image: "00_messagebubble_circle_receive_dim.png" COMP;
6730 image: "00_button_right.png" COMP;
6731 image: "00_button_right_press.png" COMP;
6734 part { name: "button_image";
6736 description { state: "default" 0.0;
6737 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6738 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6739 image.normal: "00_messagebubble_circle_receive.png";
6742 state: "clicked" 0.0;
6743 inherit: "default" 0.0;
6744 image.normal: "00_messagebubble_circle_receive_press.png";
6747 state: "disabled" 0.0;
6748 inherit: "default" 0.0;
6749 image.normal: "00_messagebubble_circle_receive_dim.png";
6752 part { name: "image";
6754 clip_to: "icon_clipper";
6755 description { state: "default" 0.0;
6756 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6757 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6758 image.normal: "00_button_right.png";
6761 state: "clicked" 0.0;
6762 inherit: "default" 0.0;
6763 image.normal: "00_button_right_press.png";
6766 state: "disabled" 0.0;
6767 inherit: "default" 0.0;
6770 part { name: "icon_clipper";
6773 description { state: "default" 0.0;
6774 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
6776 description { state: "clicked" 0.0;
6777 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
6779 description { state: "disabled" 0.0;
6780 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
6783 part { name: "over1";
6785 ignore_flags: ON_HOLD;
6786 description { state: "default" 0.0;
6790 part { name: "over2";
6793 description { state: "default" 0.0;
6797 part { name: "disabler";
6799 description { state: "default" 0.0;
6803 description { state: "disabled" 0.0;
6804 inherit: "default" 0.0;
6810 program { name: "button_click";
6811 signal: "mouse,down,1";
6813 action: SIGNAL_EMIT "elm,action,press" "";
6814 after: "button_click_anim";
6816 program { name: "button_click_anim";
6817 action: STATE_SET "clicked" 0.0;
6818 target: "button_image";
6820 target: "icon_clipper";
6822 program { name: "button_double_click";
6823 signal: "mouse,down,1,double";
6825 after: "button_click_anim";
6827 program { name: "button_unclick";
6828 signal: "mouse,up,1";
6830 action: SIGNAL_EMIT "elm,action,unpress" "";
6831 after: "button_unclick_anim";
6833 program { name: "button_unclick_anim";
6834 action: STATE_SET "default" 0.0;
6835 target: "button_image";
6837 target: "icon_clipper";
6839 program { name: "touch_snd";
6840 signal: "mouse,clicked,1";
6842 action: PLAY_SAMPLE "touch_sound" 1.0;
6843 after: button_unclick3;
6845 program { name: "button_unclick3";
6846 action: SIGNAL_EMIT "elm,action,click" "";
6848 program { name: "disable";
6849 signal: "elm,state,disabled";
6851 action: STATE_SET "disabled" 0.0;
6853 target: "button_image";
6854 target: "icon_clipper";
6857 program { name: "enable";
6858 signal: "elm,state,enabled";
6860 action: STATE_SET "default" 0.0;
6862 target: "button_image";
6863 target: "icon_clipper";
6868 ///////////////////////////////////////////////////////////////////////
6869 group { name: "elm/button/base/bubble_circle/sent";
6871 image: "00_messagebubble_circle_sent.png" COMP;
6872 image: "00_messagebubble_circle_sent_press.png" COMP;
6873 image: "00_messagebubble_circle_sent_dim.png" COMP;
6874 image: "00_button_right.png" COMP;
6875 image: "00_button_right_press.png" COMP;
6878 part { name: "button_image";
6880 description { state: "default" 0.0;
6881 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6882 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6883 image.normal: "00_messagebubble_circle_sent.png";
6886 state: "clicked" 0.0;
6887 inherit: "default" 0.0;
6888 image.normal: "00_messagebubble_circle_sent_press.png";
6891 state: "disabled" 0.0;
6892 inherit: "default" 0.0;
6893 image.normal: "00_messagebubble_circle_sent_dim.png";
6896 part { name: "image";
6898 clip_to: "icon_clipper";
6899 description { state: "default" 0.0;
6900 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6901 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6902 image.normal: "00_button_right.png";
6905 state: "clicked" 0.0;
6906 inherit: "default" 0.0;
6907 image.normal: "00_button_right_press.png";
6910 state: "disabled" 0.0;
6911 inherit: "default" 0.0;
6914 part { name: "icon_clipper";
6917 description { state: "default" 0.0;
6918 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
6920 description { state: "clicked" 0.0;
6921 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
6923 description { state: "disabled" 0.0;
6924 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
6927 part { name: "over1";
6929 ignore_flags: ON_HOLD;
6930 description { state: "default" 0.0;
6934 part { name: "over2";
6937 description { state: "default" 0.0;
6941 part { name: "disabler";
6943 description { state: "default" 0.0;
6947 description { state: "disabled" 0.0;
6948 inherit: "default" 0.0;
6954 program { name: "button_click";
6955 signal: "mouse,down,1";
6957 action: SIGNAL_EMIT "elm,action,press" "";
6958 after: "button_click_anim";
6960 program { name: "button_click_anim";
6961 action: STATE_SET "clicked" 0.0;
6962 target: "button_image";
6964 target: "icon_clipper";
6966 program { name: "button_double_click";
6967 signal: "mouse,down,1,double";
6969 after: "button_click_anim";
6971 program { name: "button_unclick";
6972 signal: "mouse,up,1";
6974 action: SIGNAL_EMIT "elm,action,unpress" "";
6975 after: "button_unclick_anim";
6977 program { name: "button_unclick_anim";
6978 action: STATE_SET "default" 0.0;
6979 target: "button_image";
6981 target: "icon_clipper";
6983 program { name: "touch_snd";
6984 signal: "mouse,clicked,1";
6986 action: PLAY_SAMPLE "touch_sound" 1.0;
6987 after: button_unclick3;
6989 program { name: "button_unclick3";
6990 action: SIGNAL_EMIT "elm,action,click" "";
6992 program { name: "disable";
6993 signal: "elm,state,disabled";
6995 action: STATE_SET "disabled" 0.0;
6997 target: "button_image";
6998 target: "icon_clipper";
7000 program { name: "enable";
7001 signal: "elm,state,enabled";
7003 action: STATE_SET "default" 0.0;
7005 target: "button_image";
7006 target: "icon_clipper";
7011 //////////////////////////////////////////////////////////////////////////////////////
7012 group { name: "elm/button/base/editfield_clear";
7014 image: "00_EditField_clear" COMP;
7017 part { name: "button_image";
7020 description { state: "default" 0.0;
7023 description { state: "clicked" 0.0;
7024 inherit: "default" 0.0;
7026 description { state: "disabled" 0.0;
7027 inherit: "default" 0.0;
7029 description { state: "focused" 0.0;
7030 inherit: "default" 0.0;
7033 part { name: "clear_button";
7036 clip_to: "clear_button.clipper";
7037 description { state: "default" 0.0;
7038 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7039 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7042 image.normal: "00_EditField_clear.png";
7045 part { name: "clear_button.clipper";
7047 description { state: "default" 0.0;
7048 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7050 description { state: "clicked" 0.0;
7051 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7053 description { state: "disabled" 0.0;
7054 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7057 part { name: "over2";
7059 ignore_flags: ON_HOLD;
7060 description { state: "default" 0.0;
7064 part { name: "over3";
7067 description { state: "default" 0.0;
7071 part { name: "disabler";
7073 description { state: "default" 0.0;
7077 description { state: "disabled" 0.0;
7078 inherit: "default" 0.0;
7084 program { name: "button_click";
7085 signal: "mouse,down,1";
7087 action: SIGNAL_EMIT "elm,action,press" "";
7088 after: "button_click_anim";
7090 program { name: "button_click_anim";
7091 action: STATE_SET "clicked" 0.0;
7092 target: "button_image";
7093 target: "clear_button.clipper";
7095 program { name: "button_double_click";
7096 signal: "mouse,down,1,double";
7098 after: "button_click_anim";
7100 program { name: "button_unclick";
7101 signal: "mouse,up,1";
7103 action: SIGNAL_EMIT "elm,action,unpress" "";
7104 after: "button_unclick_anim";
7106 program { name: "button_unclick_anim";
7107 action: STATE_SET "default" 0.0;
7108 target: "button_image";
7109 target: "clear_button.clipper";
7111 program { name: "touch_snd";
7112 signal: "mouse,clicked,1";
7114 action: PLAY_SAMPLE "touch_sound" 1.0;
7115 after: button_unclick3;
7117 program { name: "button_unclick3";
7118 action: SIGNAL_EMIT "elm,action,click" "";
7120 program { name: "disable";
7121 signal: "elm,state,disabled";
7123 action: STATE_SET "disabled" 0.0;
7124 target: "button_image";
7126 target: "clear_button.clipper";
7128 program { name: "enable";
7129 signal: "elm,state,enabled";
7131 action: STATE_SET "default" 0.0;
7132 target: "button_image";
7134 target: "clear_button.clipper";
7139 group { name: "elm/button/base/search_clear";
7140 inherit: "elm/button/base/editfield_clear";
7142 part { name: "clear_button";
7145 clip_to: "clear_button.clipper";
7146 description { state: "default" 0.0;
7147 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7148 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7151 image.normal: "00_EditField_clear.png";
7158 ///////////////////////////////////////////////////////////////////////////////////////
7160 group { name: "elm/button/base/contacts/delete";
7162 image: "00_button_edit_Delete.png" COMP;
7163 image: "00_button_edit_Delete_press.png" COMP;
7164 image: "00_button_edit_dim.png" COMP;
7165 image: "00_button_edit_focus.png" COMP;
7168 public button_state = BUTTON_STATE_ENABLED;
7171 part { name: "button_image";
7173 description { state: "default" 0.0;
7174 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
7176 normal: "00_button_edit_Delete.png";
7177 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
7181 description { state: "clicked" 0.0;
7182 inherit: "default" 0.0;
7183 image.normal: "00_button_edit_Delete_press.png";
7185 description { state: "disabled" 0.0;
7186 inherit: "default" 0.0;
7187 image.normal: "00_button_edit_dim.png";
7189 description { state: "focused" 0.0;
7190 inherit: "default" 0.0;
7191 image.normal: "00_button_edit_focus.png";
7194 part { name: "padding_left_top";
7198 description { state: "default" 0.0;
7200 rel2.relative: 0.0 0.0;
7201 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
7206 part { name: "padding_right_bottom";
7210 description { state: "default" 0.0;
7212 rel1.relative: 1.0 1.0;
7213 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
7218 part { name: "padding_icon_text";
7222 description { state: "default" 0.0; //when only icon or no icon is there
7226 to: "elm.swallow.content";
7228 rel2.to: "elm.swallow.content";
7233 description { state: "icononly" 0.0;
7234 inherit: "default" 0.0;
7236 description { state: "visible" 0.0; //when icon is visible
7237 inherit: "default" 0.0;
7238 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
7241 part { name: "elm.swallow.content";
7245 description { state: "default" 0.0;
7250 to: "padding_left_top";
7254 to_x: "padding_left_top";
7255 to_y: "padding_right_bottom";
7259 description { state: "visible" 0.0;
7264 to: "padding_left_top";
7268 to_x: "padding_left_top";
7269 to_y: "padding_right_bottom";
7272 aspect_preference: VERTICAL;
7274 description { state: "icononly" 0.0;
7275 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
7278 to: "padding_left_top";
7282 to: "padding_right_bottom";
7285 aspect_preference: VERTICAL;
7288 part { name: "elm.text";
7293 description { state: "default" 0.0;
7296 to_x: "padding_icon_text";
7297 to_y: "padding_left_top";
7301 to: "padding_right_bottom";
7303 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
7305 font: "Tizen:style=Regular";
7306 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
7310 text_class: "tizen";
7313 description { state: "visible" 0.0;
7314 inherit: "default" 0.0;
7316 description { state: "clicked" 0.0;
7317 inherit: "default" 0.0;
7318 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
7320 description { state: "disabled" 0.0;
7321 inherit: "default" 0.0;
7323 description { state: "disabled_visible" 0.0;
7324 inherit: "default" 0.0;
7325 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
7327 description { state: "focused" 0.0;
7328 inherit: "default" 0.0;
7330 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
7333 part { name: "over2";
7336 ignore_flags: ON_HOLD;
7337 description { state: "default" 0.0;
7341 part { name: "over3";
7344 description { state: "default" 0.0;
7348 part { name: "clipper";
7350 description { state: "default" 0.0;
7351 color: 255 255 255 255;
7354 part { name: "disabler";
7356 description { state: "default" 0.0;
7360 description { state: "disabled" 0.0;
7361 inherit: "default" 0.0;
7367 program { name: "button_click";
7368 signal: "mouse,down,1";
7370 action: SIGNAL_EMIT "elm,action,press" "";
7371 after: "button_click_anim";
7373 program { name: "button_click_anim";
7374 action: STATE_SET "clicked" 0.0;
7375 target: "button_image";
7376 after: "text_clicked";
7378 program { name: "text_clicked";
7382 get_state(PART:"elm.text", st, 30, vl);
7383 if (!strcmp(st, "visible"))
7384 set_state(PART:"elm.text", "clicked", 0.0);
7387 program { name: "button_unpress";
7388 action: SIGNAL_EMIT "elm,action,unpress" "";
7390 program { name: "button_mouseout_clicked";
7391 signal: "mouse,up,1";
7396 get_state(PART:"elm.swallow.content", st, 30, vl);
7397 if (strcmp(st, "icononly"))
7399 emit("elm,action,default,text,set", "");
7400 set_state(PART:"elm.text", "visible", 0.0);
7402 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7403 set_state(PART:"button_image", "default", 0.0);
7405 after: button_unpress;
7407 program { name: "touch_snd";
7408 signal: "mouse,clicked,1";
7410 action: PLAY_SAMPLE "touch_sound" 1.0;
7411 after: button_unclick3;
7413 program { name: "button_unclick3";
7414 action: SIGNAL_EMIT "elm,action,click" "";
7416 program { name: "text_show";
7417 signal: "elm,state,text,visible";
7422 get_state(PART:"elm.swallow.content", st, 30, vl);
7423 if (!strcmp(st, "icononly"))
7425 set_state(PART:"elm.swallow.content", "visible", 0.0);
7426 set_state(PART:"padding_icon_text", "visible", 0.0);
7428 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7429 set_state(PART:"elm.text", "visible", 0.0);
7431 set_state(PART:"elm.text", "disabled_visible", 0.0);
7434 program { name: "text_hide";
7435 signal: "elm,state,text,hidden";
7440 get_state(PART:"elm.swallow.content", st, 30, vl);
7441 if (!strcmp(st, "visible"))
7443 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7444 set_state(PART:"padding_icon_text", "icononly", 0.0);
7446 set_state(PART:"elm.text", "default", 0.0);
7449 program { name: "icon_show";
7450 signal: "elm,state,icon,visible";
7455 get_state(PART:"elm.text", st, 30, vl);
7456 if (!strcmp(st, "visible"))
7458 set_state(PART:"elm.swallow.content", "visible", 0.0);
7459 set_state(PART:"padding_icon_text", "visible", 0.0);
7463 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7464 set_state(PART:"padding_icon_text", "icononly", 0.0);
7468 program { name: "icon_hide";
7469 signal: "elm,state,icon,hidden";
7471 action: STATE_SET "default" 0.0;
7472 target: "elm.swallow.content";
7473 target: "padding_icon_text";
7475 program { name: "disable";
7476 signal: "elm,state,disabled";
7478 action: STATE_SET "disabled" 0.0;
7479 target: "button_image";
7481 after: "disable_text";
7483 program { name: "disable_text";
7487 get_state(PART:"elm.text", st, 30, vl);
7488 if (!strcmp(st, "visible"))
7489 set_state(PART:"elm.text", "disabled_visible", 0.0);
7491 set_state(PART:"elm.text", "disabled", 0.0);
7492 set_int(button_state, BUTTON_STATE_DISABLED);
7495 program { name: "enable";
7496 signal: "elm,state,enabled";
7498 action: STATE_SET "default" 0.0;
7499 target: "button_image";
7501 after: "enable_text";
7503 program { name: "enable_text";
7507 get_state(PART:"elm.text", st, 30, vl);
7508 if (!strcmp(st, "disabled_visible"))
7509 set_state(PART:"elm.text", "visible", 0.0);
7511 set_state(PART:"elm.text", "default", 0.0);
7512 set_int(button_state, BUTTON_STATE_ENABLED);
7515 program { name: "focused";
7516 //signal: "elm,action,focus";
7518 action: STATE_SET "focused" 0.0;
7519 target: "button_image";
7522 program { name: "unfocused";
7523 //signal: "elm,action,unfocus";
7525 action: STATE_SET "default" 0.0;
7526 target: "button_image";
7527 after: "unfocus_text";
7529 program { name: "unfocus_text";
7530 action: STATE_SET "visible" 0.0;
7536 /////////////////////////////////////////////////////////////////////
7537 #define BUTTON_CONTACT_STYLES(style_name, image_normal, image_press) \
7538 group { name: "elm/button/base/contact/"style_name; \
7540 image: "00_circle_button.png" COMP; \
7541 image: "00_circle_button_press.png" COMP; \
7542 image: image_normal COMP; \
7543 image: image_press COMP; \
7546 part { name: "button_image"; \
7548 description { state: "default" 0.0; \
7549 min: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7550 max: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7551 image.normal: "00_circle_button.png"; \
7554 state: "clicked" 0.0; \
7555 inherit: "default" 0.0; \
7556 image.normal: "00_circle_button_press.png"; \
7559 state: "disabled" 0.0; \
7560 inherit: "default" 0.0; \
7561 image.normal: "00_circle_button.png"; \
7564 part { name: "button_center_part"; \
7566 clip_to: "disclip"; \
7567 description { state: "default" 0.0; \
7568 min: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7569 max: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7570 image.normal: image_normal; \
7573 state: "clicked" 0.0; \
7574 inherit: "default" 0.0; \
7575 image.normal: image_press; \
7578 state: "disabled" 0.0; \
7579 inherit: "default" 0.0; \
7582 part { name: "over1"; \
7584 ignore_flags: ON_HOLD; \
7585 description { state: "default" 0.0; \
7589 part { name: "over2"; \
7591 description { state: "default" 0.0; \
7595 part { name: "disclip"; \
7598 description { state: "default" 0.0; \
7599 color: BUTTON_DISCLIP_NORMAL_COLOR_INC; \
7601 description { state: "disabled" 0.0; \
7602 inherit: "default" 0.0; \
7603 color: BUTTON_DISCLIP_DISABLED_COLOR_INC; \
7606 part { name: "disabler"; \
7608 description { state: "default" 0.0; \
7612 description { state: "disabled" 0.0; \
7613 inherit: "default" 0.0; \
7619 program { name: "button_click"; \
7620 signal: "mouse,down,1"; \
7622 action: SIGNAL_EMIT "elm,action,press" ""; \
7623 after: "button_click_anim"; \
7625 program { name: "button_click_anim"; \
7626 action: STATE_SET "clicked" 0.0; \
7627 target: "button_image"; \
7628 target: "button_center_part"; \
7630 program { name: "button_unclick"; \
7631 signal: "mouse,up,1"; \
7633 action: SIGNAL_EMIT "elm,action,unpress" ""; \
7634 after: "button_unclick_anim"; \
7636 program { name: "button_unclick_anim"; \
7637 action: STATE_SET "default" 0.0; \
7638 target: "button_image"; \
7639 target: "button_center_part"; \
7641 program { name: "touch_snd"; \
7642 signal: "mouse,clicked,1"; \
7644 action: PLAY_SAMPLE "touch_sound" 1.0; \
7645 after: button_unclick3; \
7647 program { name: "button_unclick3"; \
7648 action: SIGNAL_EMIT "elm,action,click" ""; \
7650 program { name: "disable"; \
7651 signal: "elm,state,disabled"; \
7653 action: STATE_SET "disabled" 0.0; \
7654 target: "disabler"; \
7655 target: "disclip"; \
7656 target: "button_image"; \
7657 target: "button_center_part"; \
7659 program { name: "enable"; \
7660 signal: "elm,state,enabled"; \
7662 action: STATE_SET "default" 0.0; \
7663 target: "disabler"; \
7664 target: "disclip"; \
7665 target: "button_image"; \
7666 target: "button_center_part"; \
7671 ///////////////////////////////////////////////////////////////////////////////////////
7672 BUTTON_CONTACT_STYLES("expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png")
7674 BUTTON_CONTACT_STYLES("expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png")
7676 BUTTON_CONTACT_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png")
7678 ///////////////////////////////////////////////////////////////////////////////////////
7681 #undef BUTTON_STATE_ENABLED
7682 #undef BUTTON_STATE_DISABLED