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 inherit: "elm/button/base/style1/auto_expand";
559 part { name: "button_image";
561 description { state: "default" 0.0;
563 normal: "00_button_01.png";
564 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
567 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
568 max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
570 description { state: "clicked" 0.0;
571 inherit: "default" 0.0;
572 image.normal: "00_button_01_press.png";
574 description { state: "disabled" 0.0;
575 inherit: "default" 0.0;
576 image.normal: "00_button_01_dim.png";
578 description { state: "focused" 0.0;
579 inherit: "default" 0.0;
580 image.normal: "00_button_01_press.png";
587 description { state: "default" 0.0;
591 description { state: "visible" 0.0;
592 inherit: "default" 0.0;
593 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
595 description { state: "icononly" 0.0;
596 inherit: "default" 0.0;
599 part { name: "elm.text";
602 effect: SHADOW BOTTOM;
605 description { state: "default" 0.0;
608 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
609 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
612 description { state: "visible" 0.0;
613 inherit: "default" 0.0;
616 description { state: "clicked" 0.0;
617 inherit: "default" 0.0;
619 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
620 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
622 description { state: "disabled" 0.0;
623 inherit: "default" 0.0;
625 description { state: "disabled_visible" 0.0;
626 inherit: "default" 0.0;
627 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
628 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
631 description { state: "focused" 0.0;
632 inherit: "default" 0.0;
634 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
640 ///////////////////////////////////////////////////////////////////////////////////////
641 group { name: "elm/button/base/style1/delete";
642 inherit: "elm/button/base/style1";
644 image: "00_button_01_Delete.png" COMP;
645 image: "00_button_01_Delete_dim.png" COMP;
646 image: "00_button_01_Delete_press.png" COMP;
649 part { name: "button_image";
651 description { state: "default" 0.0;
653 normal: "00_button_01_Delete.png";
654 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
658 description { state: "clicked" 0.0;
659 inherit: "default" 0.0;
660 image.normal: "00_button_01_Delete_press.png";
662 description { state: "disabled" 0.0;
663 inherit: "default" 0.0;
664 image.normal: "00_button_01_Delete_dim.png";
666 description { state: "focused" 0.0;
667 inherit: "default" 0.0;
668 image.normal: "00_button_01_Delete_press.png";
671 part { name: "elm.text";
674 effect: SHADOW BOTTOM;
677 description { state: "default" 0.0;
681 to_x: "padding_after_icon";
682 to_y: "padding_left_top";
686 to: "padding_right_bottom";
688 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
689 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
691 font: "Tizen:style=Regular";
692 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
698 description { state: "visible" 0.0;
699 inherit: "default" 0.0;
702 description { state: "clicked" 0.0;
703 inherit: "default" 0.0;
705 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
706 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
708 description { state: "disabled" 0.0;
709 inherit: "default" 0.0;
711 description { state: "disabled_visible" 0.0;
712 inherit: "default" 0.0;
713 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
714 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
717 description { state: "focused" 0.0;
718 inherit: "default" 0.0;
720 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
726 ///////////////////////////////////////////////////////////////////////////////////////
727 group { name: "elm/button/base/search_button/text";
728 alias: "elm/button/base/searchbar/default";
729 inherit: "elm/button/base/style1";
731 image: "00_button_01.png" COMP;
732 image: "00_button_01_dim.png" COMP;
733 image: "00_button_01_press.png" COMP;
736 part { name: "button_image";
738 description { state: "default" 0.0;
740 normal: "00_button_01.png";
741 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
745 description { state: "clicked" 0.0;
746 inherit: "default" 0.0;
747 image.normal: "00_button_01_press.png";
749 description { state: "disabled" 0.0;
750 inherit: "default" 0.0;
751 image.normal: "00_button_01_dim.png";
753 description { state: "focused" 0.0;
754 inherit: "default" 0.0;
755 image.normal: "00_button_01_press.png";
762 description { state: "default" 0.0;
763 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
766 description { state: "visible" 0.0;
767 inherit: "default" 0.0;
768 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
770 description { state: "icononly" 0.0;
771 inherit: "default" 0.0;
772 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
775 part { name: "elm.text";
778 effect: SHADOW BOTTOM;
781 description { state: "default" 0.0;
785 to_x: "padding_after_icon";
786 to_y: "padding_left_top";
790 to: "padding_right_bottom";
792 color: BUTTON_SEARCH_BUTTON_TEXT_NORMAL_COLOR_INC;
794 font: "Tizen:style=Regular";
795 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
801 description { state: "visible" 0.0;
802 inherit: "default" 0.0;
805 description { state: "clicked" 0.0;
806 inherit: "default" 0.0;
808 color: BUTTON_SEARCH_BUTTON_TEXT_PRESSED_COLOR_INC;
809 color2: BUTTON_SEARCH_BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
811 description { state: "disabled" 0.0;
812 inherit: "default" 0.0;
814 description { state: "disabled_visible" 0.0;
815 inherit: "default" 0.0;
816 color: BUTTON_SEARCH_BUTTON_TEXT_DISABLED_COLOR_INC;
819 description { state: "focused" 0.0;
820 inherit: "default" 0.0;
822 color: BUTTON_SEARCH_BUTTON_TEXT_FOCUSED_COLOR_INC;
828 ///////////////////////////////////////////////////////////////////////////////////////
829 group { name: "elm/button/base/search_button/send";
830 inherit: "elm/button/base/style1";
832 image: "00_button_01_send.png" COMP;
833 image: "00_button_01_send_dim.png" COMP;
834 image: "00_button_01_send_press.png" COMP;
837 part { name: "button_image";
839 description { state: "default" 0.0;
841 normal: "00_button_01_send.png";
842 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
846 description { state: "clicked" 0.0;
847 inherit: "default" 0.0;
848 image.normal: "00_button_01_send_press.png";
850 description { state: "disabled" 0.0;
851 inherit: "default" 0.0;
852 image.normal: "00_button_01_send_dim.png";
854 description { state: "focused" 0.0;
855 inherit: "default" 0.0;
856 image.normal: "00_button_01_send_press.png";
863 description { state: "default" 0.0;
864 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
867 description { state: "visible" 0.0;
868 inherit: "default" 0.0;
869 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
871 description { state: "icononly" 0.0;
872 inherit: "default" 0.0;
873 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
876 part { name: "elm.text";
879 effect: SHADOW BOTTOM;
882 description { state: "default" 0.0;
886 to_x: "padding_after_icon";
887 to_y: "padding_left_top";
891 to: "padding_right_bottom";
893 color: BUTTON_SEARCH_BUTTON_SEND_NORMAL_COLOR_INC;
894 color2: BUTTON_SEARCH_BUTTON_SEND_SHADOW_NORMAL_COLOR_INC;
896 font: "Tizen:style=Regular";
897 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
903 description { state: "visible" 0.0;
904 inherit: "default" 0.0;
907 description { state: "clicked" 0.0;
908 inherit: "default" 0.0;
910 color: BUTTON_SEARCH_BUTTON_SEND_PRESSED_COLOR_INC;
912 description { state: "disabled" 0.0;
913 inherit: "default" 0.0;
915 description { state: "disabled_visible" 0.0;
916 inherit: "default" 0.0;
917 color: BUTTON_SEARCH_BUTTON_SEND_DISABLED_COLOR_INC;
920 description { state: "focused" 0.0;
921 inherit: "default" 0.0;
923 color: BUTTON_SEARCH_BUTTON_SEND_FOCUSED_COLOR_INC;
929 ///////////////////////////////////////////////////////////////////////////////////////
930 group { name: "elm/button/base/search_button/cancel";
931 inherit: "elm/button/base/style1";
933 image: "00_button_01_Delete.png" COMP;
934 image: "00_button_01_Delete_dim.png" COMP;
935 image: "00_button_01_Delete_press.png" COMP;
938 part { name: "button_image";
940 description { state: "default" 0.0;
942 normal: "00_button_01_Delete.png";
943 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
947 description { state: "clicked" 0.0;
948 inherit: "default" 0.0;
949 image.normal: "00_button_01_Delete_press.png";
951 description { state: "disabled" 0.0;
952 inherit: "default" 0.0;
953 image.normal: "00_button_01_Delete_dim.png";
955 description { state: "focused" 0.0;
956 inherit: "default" 0.0;
957 image.normal: "00_button_01_Delete_press.png";
964 description { state: "default" 0.0;
965 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
968 description { state: "visible" 0.0;
969 inherit: "default" 0.0;
970 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
972 description { state: "icononly" 0.0;
973 inherit: "default" 0.0;
974 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
977 part { name: "elm.text";
980 effect: SHADOW BOTTOM;
983 description { state: "default" 0.0;
987 to_x: "padding_after_icon";
988 to_y: "padding_left_top";
992 to: "padding_right_bottom";
994 color: BUTTON_SEARCH_BUTTON_CANCEL_NORMAL_COLOR_INC;
995 color2: BUTTON_SEARCH_BUTTON_CANCEL_SHADOW_NORMAL_COLOR_INC;
997 font: "Tizen:style=Regular";
998 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
1001 text_class: "tizen";
1004 description { state: "visible" 0.0;
1005 inherit: "default" 0.0;
1008 description { state: "clicked" 0.0;
1009 inherit: "default" 0.0;
1011 color: BUTTON_SEARCH_BUTTON_CANCEL_PRESSED_COLOR_INC;
1013 description { state: "disabled" 0.0;
1014 inherit: "default" 0.0;
1016 description { state: "disabled_visible" 0.0;
1017 inherit: "default" 0.0;
1018 color: BUTTON_SEARCH_BUTTON_CANCEL_DISABLED_COLOR_INC;
1021 description { state: "focused" 0.0;
1022 inherit: "default" 0.0;
1024 color: BUTTON_SEARCH_BUTTON_CANCEL_FOCUSED_COLOR_INC;
1030 ///////////////////////////////////////////////////////////////////////////////////////
1031 group { name: "elm/button/base/style2";
1032 alias: "elm/button/base/text_only/style2";
1033 alias: "elm/button/base/style2/multiline";
1035 image: "00_button_01.png" COMP;
1036 image: "00_button_01_press.png" COMP;
1037 image: "00_button_01_dim.png" COMP;
1040 public button_state = BUTTON_STATE_ENABLED;
1043 part { name: "button_image";
1045 description { state: "default" 0.0;
1047 normal: "00_button_01.png";
1048 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1052 description { state: "clicked" 0.0;
1053 inherit: "default" 0.0;
1054 image.normal: "00_button_01_press.png";
1056 description { state: "disabled" 0.0;
1057 inherit: "default" 0.0;
1058 image.normal: "00_button_01_dim.png";
1060 description { state: "focused" 0.0;
1061 inherit: "default" 0.0;
1062 image.normal: "00_button_01_press.png";
1065 part { name: "padding_left_top";
1069 description { state: "default" 0.0;
1071 rel2.relative: 0.0 0.0;
1072 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1081 description { state: "default" 0.0;
1082 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1085 description { state: "visible" 0.0;
1086 inherit: "default" 0.0;
1087 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1089 description { state: "icononly" 0.0;
1090 inherit: "default" 0.0;
1091 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1094 part { name: "padding_right_bottom";
1098 description { state: "default" 0.0;
1100 rel1.relative: 1.0 1.0;
1101 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1106 part { name: "icon_rect";
1110 description { state: "default" 0.0;
1116 to: "padding_left_top";
1120 to_x: "padding_left_top";
1121 to_y: "padding_right_bottom";
1125 description { state: "visible" 0.0;
1126 inherit: "default" 0.0;
1127 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1128 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1130 description { state: "icononly" 0.0;
1131 inherit: "default" 0.0;
1134 part { name: "padding_after_icon";
1138 description { state: "default" 0.0; //when only icon or no icon is there
1146 rel2.to: "icon_rect";
1149 description { state: "visible" 0.0;
1150 inherit: "default" 0.0;
1151 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1153 description { state: "icononly" 0.0;
1154 inherit: "default" 0.0;
1157 part { name: "padding_before_text";
1161 description { state: "default" 0.0; //when only icon or no icon is there
1166 to_y: "padding_left_top";
1171 to_y: "padding_right_bottom";
1174 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1178 part { name: "elm.swallow.content";
1182 description { state: "default" 0.0;
1187 to: "padding_left_top";
1191 to_x: "padding_left_top";
1192 to_y: "padding_right_bottom";
1196 description { state: "visible" 0.0;
1198 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1199 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1203 to_x: "padding_before_text";
1204 to_y: "padding_left_top";
1208 to_x: "padding_before_text";
1209 to_y: "padding_right_bottom";
1212 description { state: "icononly" 0.0;
1213 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1214 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1217 part { name: "elm.text";
1222 effect: SHADOW BOTTOM;
1223 description { state: "default" 0.0;
1227 to_x: "padding_after_icon";
1228 to_y: "padding_left_top";
1232 to: "padding_right_bottom";
1234 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1235 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1237 font: "Tizen:style=Regular";
1238 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1241 text_class: "tizen";
1244 description { state: "visible" 0.0;
1245 inherit: "default" 0.0;
1248 description { state: "clicked" 0.0;
1249 inherit: "default" 0.0;
1251 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1252 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1254 description { state: "disabled" 0.0;
1255 inherit: "default" 0.0;
1257 description { state: "disabled_visible" 0.0;
1258 inherit: "default" 0.0;
1259 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1260 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1263 description { state: "focused" 0.0;
1264 inherit: "default" 0.0;
1266 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1269 part { name: "over2";
1272 ignore_flags: ON_HOLD;
1273 description { state: "default" 0.0;
1277 part { name: "over3";
1280 description { state: "default" 0.0;
1284 part { name: "clipper";
1286 description { state: "default" 0.0;
1287 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1289 description { state: "disabled" 0.0;
1290 inherit: "default" 0.0;
1291 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1294 part { name: "disabler";
1296 description { state: "default" 0.0;
1300 description { state: "disabled" 0.0;
1301 inherit: "default" 0.0;
1307 program { name: "button_click";
1308 signal: "mouse,down,1";
1310 action: SIGNAL_EMIT "elm,action,press" "";
1311 after: "button_click_anim";
1313 program { name: "button_click_anim";
1314 action: STATE_SET "clicked" 0.0;
1315 target: "button_image";
1316 after: "text_clicked";
1318 program { name: "text_clicked";
1322 get_state(PART:"elm.text", st, 30, vl);
1323 if (!strcmp(st, "visible"))
1324 set_state(PART:"elm.text", "clicked", 0.0);
1327 program { name: "button_double_click";
1328 signal: "mouse,down,1,double";
1330 after: "button_click_anim";
1332 program { name: "button_unpress";
1333 action: SIGNAL_EMIT "elm,action,unpress" "";
1335 program { name: "button_mouseout_clicked";
1336 signal: "mouse,up,1";
1341 get_state(PART:"elm.swallow.content", st, 30, vl);
1342 if (strcmp(st, "icononly"))
1344 emit("elm,action,default,text,set", "");
1345 set_state(PART:"elm.text", "visible", 0.0);
1347 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1348 set_state(PART:"button_image", "default", 0.0);
1350 after: button_unpress;
1352 program { name: "touch_snd";
1353 signal: "mouse,clicked,1";
1355 action: PLAY_SAMPLE "touch_sound" 1.0;
1356 after: button_unclick3;
1358 program { name: "button_unclick3";
1359 action: SIGNAL_EMIT "elm,action,click" "";
1361 program { name: "text_show";
1362 signal: "elm,state,text,visible";
1367 get_state(PART:"elm.swallow.content", st, 30, vl);
1368 if (!strcmp(st, "icononly"))
1370 set_state(PART:"elm.swallow.content", "visible", 0.0);
1371 set_state(PART:"icon_rect", "visible", 0.0);
1372 set_state(PART:"padding_after_icon", "visible", 0.0);
1373 set_state(PART:"bg", "visible", 0.0);
1375 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1376 set_state(PART:"elm.text", "visible", 0.0);
1378 set_state(PART:"elm.text", "disabled_visible", 0.0);
1381 program { name: "text_hide";
1382 signal: "elm,state,text,hidden";
1387 get_state(PART:"elm.swallow.content", st, 30, vl);
1388 if (!strcmp(st, "visible"))
1390 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1391 set_state(PART:"icon_rect", "icononly", 0.0);
1392 set_state(PART:"padding_after_icon", "icononly", 0.0);
1393 set_state(PART:"bg", "icononly", 0.0);
1395 set_state(PART:"elm.text", "default", 0.0);
1398 program { name: "icon_show";
1399 signal: "elm,state,icon,visible";
1404 get_state(PART:"elm.text", st, 30, vl);
1405 if (!strcmp(st, "visible"))
1407 set_state(PART:"elm.swallow.content", "visible", 0.0);
1408 set_state(PART:"icon_rect", "visible", 0.0);
1409 set_state(PART:"padding_after_icon", "visible", 0.0);
1410 set_state(PART:"bg", "visible", 0.0);
1414 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1415 set_state(PART:"icon_rect", "icononly", 0.0);
1416 set_state(PART:"padding_after_icon", "icononly", 0.0);
1417 set_state(PART:"bg", "icononly", 0.0);
1421 program { name: "icon_hide";
1422 signal: "elm,state,icon,hidden";
1424 action: STATE_SET "default" 0.0;
1425 target: "elm.swallow.content";
1426 target: "padding_after_icon";
1427 target: "icon_rect";
1430 program { name: "disable";
1431 signal: "elm,state,disabled";
1433 action: STATE_SET "disabled" 0.0;
1434 target: "button_image";
1437 after: "disable_text";
1439 program { name: "disable_text";
1443 get_state(PART:"elm.text", st, 30, vl);
1444 if (!strcmp(st, "visible"))
1445 set_state(PART:"elm.text", "disabled_visible", 0.0);
1447 set_state(PART:"elm.text", "disabled", 0.0);
1448 set_int(button_state, BUTTON_STATE_DISABLED);
1451 program { name: "enable";
1452 signal: "elm,state,enabled";
1454 action: STATE_SET "default" 0.0;
1455 target: "button_image";
1458 after: "enable_text";
1460 program { name: "enable_text";
1464 get_state(PART:"elm.text", st, 30, vl);
1465 if (!strcmp(st, "disabled_visible"))
1466 set_state(PART:"elm.text", "visible", 0.0);
1468 set_state(PART:"elm.text", "default", 0.0);
1469 set_int(button_state, BUTTON_STATE_ENABLED);
1472 program { name: "focused";
1473 //signal: "elm,action,focus";
1475 action: STATE_SET "focused" 0.0;
1476 target: "button_image";
1479 program { name: "unfocused";
1480 //signal: "elm,action,unfocus";
1482 action: STATE_SET "default" 0.0;
1483 target: "button_image";
1484 after: "unfocus_text";
1486 program { name: "unfocus_text";
1487 action: STATE_SET "visible" 0.0;
1493 ///////////////////////////////////////////////////////////////////////////////////////
1494 group { name: "elm/button/base/sweep";
1495 alias: "elm/button/base/text_only/sweep";
1496 alias: "elm/button/base/hidden";
1497 alias: "elm/button/base/sweep/multiline";
1499 image: "00_button_01.png" COMP;
1500 image: "00_button_01_press.png" COMP;
1501 image: "00_button_01_dim.png" COMP;
1504 public button_state = BUTTON_STATE_ENABLED;
1507 style { name: "btn_sweep_multiline";
1508 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";
1515 part { name: "button_image";
1517 description { state: "default" 0.0;
1518 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1520 normal: "00_button_01.png";
1521 border: BUTTON_SWEEP_BG_BORDER_INC;
1525 description { state: "clicked" 0.0;
1526 inherit: "default" 0.0;
1527 image.normal: "00_button_01_press.png";
1529 description { state: "disabled" 0.0;
1530 inherit: "default" 0.0;
1531 image.normal: "00_button_01_dim.png";
1533 description { state: "focused" 0.0;
1534 inherit: "default" 0.0;
1535 image.normal: "00_button_01_press.png";
1538 part { name: "padding_left_top";
1542 description { state: "default" 0.0;
1544 rel2.relative: 0.0 0.0;
1545 min: BUTTON_SWEEP_PADDING_MIN_INC;
1550 part { name: "padding_right_bottom";
1554 description { state: "default" 0.0;
1556 rel1.relative: 1.0 1.0;
1557 min: BUTTON_SWEEP_PADDING_MIN_INC;
1562 part { name: "icon_rect";
1566 description { state: "default" 0.0;
1567 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1571 to_x: "elm.swallow.content";
1572 to_y: "padding_left_top";
1576 to_x: "elm.swallow.content";
1577 to_y: "padding_right_bottom";
1583 part { name: "padding_icon_text";
1587 description { state: "default" 0.0; //when only icon or no icon is there
1595 rel2.to: "icon_rect";
1598 description { state: "visible" 0.0; //when icon is visible
1599 inherit: "default" 0.0;
1600 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1602 description { state: "icononly" 0.0;
1603 inherit: "default" 0.0;
1606 part { name: "elm.swallow.content";
1610 description { state: "default" 0.0;
1615 to: "padding_left_top";
1619 to_x: "padding_left_top";
1620 to_y: "padding_right_bottom";
1624 description { state: "visible" 0.0;
1625 inherit: "default" 0.0;
1626 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1627 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1630 aspect_preference: VERTICAL;
1632 description { state: "icononly" 0.0;
1633 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1634 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1637 part { name: "elm.text";
1640 effect: SHADOW BOTTOM;
1643 description { state: "default" 0.0;
1648 to_x: "padding_icon_text";
1649 to_y: "padding_left_top";
1653 to: "padding_right_bottom";
1655 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1656 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1658 style: "btn_sweep_multiline";
1662 description { state: "visible" 0.0;
1663 inherit: "default" 0.0;
1665 min: BUTTON_SWEEP_TEXT_MIN_INC;
1667 description { state: "clicked" 0.0;
1668 inherit: "default" 0.0;
1671 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1672 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1674 description { state: "disabled" 0.0;
1675 inherit: "default" 0.0;
1677 description { state: "disabled_visible" 0.0;
1678 inherit: "default" 0.0;
1679 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1680 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1682 min: BUTTON_SWEEP_TEXT_MIN_INC;
1684 description { state: "focused" 0.0;
1685 inherit: "default" 0.0;
1688 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1691 part { name: "over2";
1694 ignore_flags: ON_HOLD;
1695 description { state: "default" 0.0;
1699 part { name: "over3";
1702 description { state: "default" 0.0;
1706 part { name: "clipper";
1708 description { state: "default" 0.0;
1709 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1711 description { state: "disabled" 0.0;
1712 inherit: "default" 0.0;
1713 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1716 part { name: "disabler";
1718 description { state: "default" 0.0;
1722 description { state: "disabled" 0.0;
1723 inherit: "default" 0.0;
1729 program { name: "button_click";
1730 signal: "mouse,down,1";
1732 action: SIGNAL_EMIT "elm,action,press" "";
1733 after: "button_click_anim";
1735 program { name: "button_click_anim";
1736 action: STATE_SET "clicked" 0.0;
1737 target: "button_image";
1738 after: "text_clicked";
1740 program { name: "text_clicked";
1744 get_state(PART:"elm.text", st, 30, vl);
1745 if (!strcmp(st, "visible"))
1746 set_state(PART:"elm.text", "clicked", 0.0);
1749 program { name: "button_double_click";
1750 signal: "mouse,down,1,double";
1752 after: "button_click_anim";
1754 program { name: "button_unpress";
1755 action: SIGNAL_EMIT "elm,action,unpress" "";
1757 program { name: "button_mouseout_clicked";
1758 signal: "mouse,up,1";
1763 get_state(PART:"elm.swallow.content", st, 30, vl);
1764 if (strcmp(st, "icononly"))
1766 emit("elm,action,default,text,set", "");
1767 set_state(PART:"elm.text", "visible", 0.0);
1769 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1770 set_state(PART:"button_image", "default", 0.0);
1772 after: button_unpress;
1774 program { name: "touch_snd";
1775 signal: "mouse,clicked,1";
1777 action: PLAY_SAMPLE "touch_sound" 1.0;
1778 after: button_unclick3;
1780 program { name: "button_unclick3";
1781 action: SIGNAL_EMIT "elm,action,click" "";
1783 program { name: "text_show";
1784 signal: "elm,state,text,visible";
1789 get_state(PART:"elm.swallow.content", st, 30, vl);
1790 if (!strcmp(st, "icononly"))
1792 set_state(PART:"elm.swallow.content", "visible", 0.0);
1793 set_state(PART:"padding_icon_text", "visible", 0.0);
1795 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1796 set_state(PART:"elm.text", "visible", 0.0);
1798 set_state(PART:"elm.text", "disabled_visible", 0.0);
1801 program { name: "text_hide";
1802 signal: "elm,state,text,hidden";
1807 get_state(PART:"elm.swallow.content", st, 30, vl);
1808 if (!strcmp(st, "visible"))
1810 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1811 set_state(PART:"padding_icon_text", "icononly", 0.0);
1813 set_state(PART:"elm.text", "default", 0.0);
1816 program { name: "icon_show";
1817 signal: "elm,state,icon,visible";
1822 get_state(PART:"elm.text", st, 30, vl);
1823 if (!strcmp(st, "visible"))
1825 set_state(PART:"elm.swallow.content", "visible", 0.0);
1826 set_state(PART:"padding_icon_text", "visible", 0.0);
1830 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1831 set_state(PART:"padding_icon_text", "icononly", 0.0);
1835 program { name: "icon_hide";
1836 signal: "elm,state,icon,hidden";
1838 action: STATE_SET "default" 0.0;
1839 target: "elm.swallow.content";
1840 target: "padding_icon_text";
1842 program { name: "disable";
1843 signal: "elm,state,disabled";
1845 action: STATE_SET "disabled" 0.0;
1846 target: "button_image";
1849 after: "disable_text";
1851 program { name: "disable_text";
1855 get_state(PART:"elm.text", st, 30, vl);
1856 if (!strcmp(st, "visible"))
1857 set_state(PART:"elm.text", "disabled_visible", 0.0);
1859 set_state(PART:"elm.text", "disabled", 0.0);
1860 set_int(button_state, BUTTON_STATE_DISABLED);
1863 program { name: "enable";
1864 signal: "elm,state,enabled";
1866 action: STATE_SET "default" 0.0;
1867 target: "button_image";
1870 after: "enable_text";
1872 program { name: "enable_text";
1876 get_state(PART:"elm.text", st, 30, vl);
1877 if (!strcmp(st, "disabled_visible"))
1878 set_state(PART:"elm.text", "visible", 0.0);
1880 set_state(PART:"elm.text", "default", 0.0);
1881 set_int(button_state, BUTTON_STATE_ENABLED);
1884 program { name: "focused";
1885 //signal: "elm,action,focus";
1887 action: STATE_SET "focused" 0.0;
1888 target: "button_image";
1891 program { name: "unfocused";
1892 //signal: "elm,action,unfocus";
1894 action: STATE_SET "default" 0.0;
1895 target: "button_image";
1896 after: "unfocus_text";
1898 program { name: "unfocus_text";
1899 action: STATE_SET "visible" 0.0;
1905 ///////////////////////////////////////////////////////////////////////////////////////
1906 group { name: "elm/button/base/sweep/delete";
1907 inherit: "elm/button/base/sweep";
1908 alias: "elm/button/base/sweep/delete/multiline";
1910 image: "00_button_01_Delete_press.png" COMP;
1911 image: "00_button_01_Delete.png" COMP;
1912 image: "00_button_01_Delete_dim.png" COMP;
1915 style { name: "btn_sweep_delete_multiline";
1916 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";
1923 part { name: "button_image";
1925 description { state: "default" 0.0;
1926 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1928 normal: "00_button_01_Delete.png";
1929 border: BUTTON_SWEEP_BG_BORDER_INC;
1933 description { state: "clicked" 0.0;
1934 inherit: "default" 0.0;
1935 image.normal: "00_button_01_Delete_press.png";
1937 description { state: "disabled" 0.0;
1938 inherit: "default" 0.0;
1939 image.normal: "00_button_01_Delete_dim.png";
1941 description { state: "focused" 0.0;
1942 inherit: "default" 0.0;
1943 image.normal: "00_button_01_Delete_press.png";
1946 part { name: "elm.text";
1949 effect: SHADOW BOTTOM;
1952 description { state: "default" 0.0;
1957 to_x: "padding_icon_text";
1958 to_y: "padding_left_top";
1962 to: "padding_right_bottom";
1964 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
1965 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1967 style: "btn_sweep_multiline";
1971 description { state: "visible" 0.0;
1972 inherit: "default" 0.0;
1974 min: BUTTON_SWEEP_TEXT_MIN_INC;
1976 description { state: "clicked" 0.0;
1977 inherit: "default" 0.0;
1980 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
1981 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1983 description { state: "disabled" 0.0;
1984 inherit: "default" 0.0;
1986 description { state: "disabled_visible" 0.0;
1987 inherit: "default" 0.0;
1988 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
1989 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1991 min: BUTTON_SWEEP_TEXT_MIN_INC;
1993 description { state: "focused" 0.0;
1994 inherit: "default" 0.0;
1997 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
2003 ///////////////////////////////////////////////////////////////////////////////////////
2004 group { name: "elm/button/base/popup_button/default";
2005 alias: "elm/button/base/popup_button/menustyle";
2006 alias: "elm/button/base/popup_button/liststyle";
2007 alias: "elm/button/base/popup_button/volumebarstyle";
2008 alias: "elm/button/base/popup_button/customstyle";
2009 alias: "elm/button/base/popup_button/verticalbuttonstyle";
2010 alias: "elm/button/base/popup_button/default/multiline";
2012 image: "00_button_01.png" COMP;
2013 image: "00_button_01_dim.png" COMP;
2014 image: "00_button_01_press.png" COMP;
2017 public button_state = BUTTON_STATE_ENABLED;
2020 part { name: "button_image";
2022 description { state: "default" 0.0;
2023 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2025 normal: "00_button_01.png";
2026 border: BUTTON_POPUP_BG_BORDER_INC;
2030 description { state: "clicked" 0.0;
2031 inherit: "default" 0.0;
2032 image.normal: "00_button_01_press.png";
2034 description { state: "disabled" 0.0;
2035 inherit: "default" 0.0;
2036 image.normal: "00_button_01_dim.png";
2038 description { state: "focused" 0.0;
2039 inherit: "default" 0.0;
2040 image.normal: "00_button_01_press.png";
2043 part { name: "padding_left_top";
2047 description { state: "default" 0.0;
2049 rel2.relative: 0.0 0.0;
2050 min: BUTTON_POPUP_PADDING_MIN_INC;
2055 part { name: "padding_right_bottom";
2058 description { state: "default" 0.0;
2060 rel1.relative: 1.0 1.0;
2061 min: BUTTON_POPUP_PADDING_MIN_INC;
2066 part { name: "padding_icon_text";
2069 description { state: "default" 0.0; //when only icon or no icon is there
2073 to: "elm.swallow.content";
2075 rel2.to: "elm.swallow.content";
2080 description { state: "icononly" 0.0;
2081 inherit: "default" 0.0;
2083 description { state: "visible" 0.0; //when icon is visible
2084 inherit: "default" 0.0;
2085 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2088 part { name: "elm.swallow.content";
2092 description { state: "default" 0.0;
2097 to: "padding_left_top";
2101 to_x: "padding_left_top";
2102 to_y: "padding_right_bottom";
2106 description { state: "visible" 0.0;
2107 inherit: "default" 0.0;
2111 aspect_preference: VERTICAL;
2113 description { state: "icononly" 0.0;
2114 inherit: "default" 0.0;
2115 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2120 part { name: "elm.text";
2125 effect: SHADOW BOTTOM;
2126 description { state: "default" 0.0;
2130 to_x: "padding_icon_text";
2131 to_y: "padding_left_top";
2135 to: "padding_right_bottom";
2137 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
2138 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2140 font: "Tizen:style=Regular";
2141 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
2143 text_class: "tizen";
2146 description { state: "visible" 0.0;
2147 inherit: "default" 0.0;
2149 min: BUTTON_POPUP_TEXT_MIN_INC;
2151 description { state: "clicked" 0.0;
2152 inherit: "default" 0.0;
2155 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
2156 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
2158 description { state: "disabled" 0.0;
2159 inherit: "default" 0.0;
2161 description { state: "disabled_visible" 0.0;
2162 inherit: "default" 0.0;
2163 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
2164 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2166 min: BUTTON_POPUP_TEXT_MIN_INC;
2168 description { state: "focused" 0.0;
2169 inherit: "default" 0.0;
2172 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2175 part { name: "over2";
2178 ignore_flags: ON_HOLD;
2179 description { state: "default" 0.0;
2183 part { name: "over3";
2186 description { state: "default" 0.0;
2190 part { name: "clipper";
2192 description { state: "default" 0.0;
2193 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
2195 description { state: "disabled" 0.0;
2196 inherit: "default" 0.0;
2197 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
2200 part { name: "disabler";
2202 description { state: "default" 0.0;
2206 description { state: "disabled" 0.0;
2207 inherit: "default" 0.0;
2213 program { name: "button_click";
2214 signal: "mouse,down,1";
2216 action: SIGNAL_EMIT "elm,action,press" "";
2217 after: "button_click_anim";
2219 program { name: "button_click_anim";
2220 action: STATE_SET "clicked" 0.0;
2221 target: "button_image";
2222 after: "text_clicked";
2224 program { name: "text_clicked";
2228 get_state(PART:"elm.text", st, 30, vl);
2229 if (!strcmp(st, "visible"))
2230 set_state(PART:"elm.text", "clicked", 0.0);
2233 program { name: "button_double_click";
2234 signal: "mouse,down,1,double";
2236 after: "button_click_anim";
2238 program { name: "button_unpress";
2239 action: SIGNAL_EMIT "elm,action,unpress" "";
2241 program { name: "button_mouseout_clicked";
2242 signal: "mouse,up,1";
2247 get_state(PART:"elm.swallow.content", st, 30, vl);
2248 if (strcmp(st, "icononly"))
2250 emit("elm,action,default,text,set", "");
2251 set_state(PART:"elm.text", "visible", 0.0);
2253 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2254 set_state(PART:"button_image", "default", 0.0);
2256 after: button_unpress;
2258 program { name: "touch_snd";
2259 signal: "mouse,clicked,1";
2261 action: PLAY_SAMPLE "touch_sound" 1.0;
2262 after: button_unclick3;
2264 program { name: "button_unclick3";
2265 action: SIGNAL_EMIT "elm,action,click" "";
2267 program { name: "text_show";
2268 signal: "elm,state,text,visible";
2273 get_state(PART:"elm.swallow.content", st, 30, vl);
2274 if (!strcmp(st, "icononly"))
2276 set_state(PART:"elm.swallow.content", "visible", 0.0);
2277 set_state(PART:"padding_icon_text", "visible", 0.0);
2279 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2280 set_state(PART:"elm.text", "visible", 0.0);
2282 set_state(PART:"elm.text", "disabled_visible", 0.0);
2285 program { name: "text_hide";
2286 signal: "elm,state,text,hidden";
2291 get_state(PART:"elm.swallow.content", st, 30, vl);
2292 if (!strcmp(st, "visible"))
2294 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2295 set_state(PART:"padding_icon_text", "icononly", 0.0);
2297 set_state(PART:"elm.text", "default", 0.0);
2300 program { name: "icon_show";
2301 signal: "elm,state,icon,visible";
2306 get_state(PART:"elm.text", st, 30, vl);
2307 if (!strcmp(st, "visible"))
2309 set_state(PART:"elm.swallow.content", "visible", 0.0);
2310 set_state(PART:"padding_icon_text", "visible", 0.0);
2314 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2315 set_state(PART:"padding_icon_text", "icononly", 0.0);
2319 program { name: "icon_hide";
2320 signal: "elm,state,icon,hidden";
2322 action: STATE_SET "default" 0.0;
2323 target: "elm.swallow.content";
2324 target: "padding_icon_text";
2326 program { name: "disable";
2327 signal: "elm,state,disabled";
2329 action: STATE_SET "disabled" 0.0;
2330 target: "button_image";
2333 after: "disable_text";
2335 program { name: "disable_text";
2339 get_state(PART:"elm.text", st, 30, vl);
2340 if (!strcmp(st, "visible"))
2341 set_state(PART:"elm.text", "disabled_visible", 0.0);
2343 set_state(PART:"elm.text", "disabled", 0.0);
2344 set_int(button_state, BUTTON_STATE_DISABLED);
2347 program { name: "enable";
2348 signal: "elm,state,enabled";
2350 action: STATE_SET "default" 0.0;
2351 target: "button_image";
2354 after: "enable_text";
2356 program { name: "enable_text";
2360 get_state(PART:"elm.text", st, 30, vl);
2361 if (!strcmp(st, "disabled_visible"))
2362 set_state(PART:"elm.text", "visible", 0.0);
2364 set_state(PART:"elm.text", "default", 0.0);
2365 set_int(button_state, BUTTON_STATE_ENABLED);
2368 program { name: "focused";
2369 //signal: "elm,action,focus";
2371 action: STATE_SET "focused" 0.0;
2372 target: "button_image";
2375 program { name: "unfocused";
2376 //signal: "elm,action,unfocus";
2378 action: STATE_SET "default" 0.0;
2379 target: "button_image";
2380 after: "unfocus_text";
2382 program { name: "unfocus_text";
2383 action: STATE_SET "visible" 0.0;
2389 ///////////////////////////////////////////////////////////////////////////////////////
2390 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2391 group { name: "elm/button/base/"style_name; \
2393 image: "00_circle_button.png" COMP; \
2394 image: "00_circle_button_press.png" COMP; \
2395 image: "00_circle_button_dim.png" COMP; \
2396 image: image_normal COMP; \
2397 image: image_press COMP; \
2400 part { name: "button_image"; \
2402 description { state: "default" 0.0; \
2403 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2404 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2405 image.normal: "00_circle_button.png"; \
2408 state: "clicked" 0.0; \
2409 inherit: "default" 0.0; \
2410 image.normal: "00_circle_button_press.png"; \
2413 state: "disabled" 0.0; \
2414 inherit: "default" 0.0; \
2415 image.normal: "00_circle_button_dim.png"; \
2418 part { name: "button_center_part"; \
2420 clip_to: "icon_clipper"; \
2421 description { state: "default" 0.0; \
2422 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2423 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2424 image.normal: image_normal; \
2426 description { state: "clicked" 0.0; \
2427 inherit: "default"; \
2428 image.normal: image_press; \
2430 description { state: "disabled" 0.0; \
2431 inherit: "default"; \
2434 part { name: "icon_clipper"; \
2437 description { state: "default" 0.0; \
2438 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2440 description { state: "clicked" 0.0; \
2441 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2443 description { state: "disabled" 0.0; \
2444 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2447 part { name: "over1"; \
2449 ignore_flags: ON_HOLD; \
2450 description { state: "default" 0.0; \
2452 min: min_width min_height; \
2455 part { name: "over2"; \
2458 description { state: "default" 0.0; \
2462 part { name: "disabler"; \
2464 description { state: "default" 0.0; \
2468 description { state: "disabled" 0.0; \
2469 inherit: "default" 0.0; \
2475 program { name: "button_click"; \
2476 signal: "mouse,down,1"; \
2478 action: SIGNAL_EMIT "elm,action,press" ""; \
2479 after: "button_click_anim"; \
2481 program { name: "button_click_anim"; \
2482 action: STATE_SET "clicked" 0.0; \
2483 target: "button_image"; \
2484 target: "button_center_part"; \
2485 target: "icon_clipper"; \
2487 program { name: "button_double_click"; \
2488 signal: "mouse,down,1,double"; \
2490 after: "button_click_anim"; \
2492 program { name: "button_unclick"; \
2493 signal: "mouse,up,1"; \
2495 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2496 after: "button_unclick_anim"; \
2498 program { name: "button_unclick_anim"; \
2499 action: STATE_SET "default" 0.0; \
2500 target: "button_image"; \
2501 target: "button_center_part"; \
2502 target: "icon_clipper"; \
2504 program { name: "touch_snd"; \
2505 signal: "mouse,clicked,1"; \
2507 action: PLAY_SAMPLE "touch_sound" 1.0; \
2508 after: button_unclick3; \
2510 program { name: "button_unclick3"; \
2511 action: SIGNAL_EMIT "elm,action,click" ""; \
2513 program { name: "disable"; \
2514 signal: "elm,state,disabled"; \
2516 action: STATE_SET "disabled" 0.0; \
2517 target: "disabler"; \
2518 target: "button_image"; \
2519 target: "button_center_part"; \
2520 target: "icon_clipper"; \
2522 program { name: "enable"; \
2523 signal: "elm,state,enabled"; \
2525 action: STATE_SET "default" 0.0; \
2526 target: "disabler"; \
2527 target: "button_image"; \
2528 target: "button_center_part"; \
2529 target: "icon_clipper"; \
2534 ///////////////////////////////////////////////////////////////////////////////////////
2535 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)
2537 ///////////////////////////////////////////////////////////////////////////////////////
2538 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)
2540 ///////////////////////////////////////////////////////////////////////////////////////
2541 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)
2543 ///////////////////////////////////////////////////////////////////////////////////////
2544 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)
2546 ///////////////////////////////////////////////////////////////////////////////////////
2547 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)
2549 ///////////////////////////////////////////////////////////////////////////////////////
2550 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)
2552 ///////////////////////////////////////////////////////////////////////////////////////
2553 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)
2555 ///////////////////////////////////////////////////////////////////////////////////////
2556 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)
2558 ///////////////////////////////////////////////////////////////////////////////////////
2559 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)
2561 ///////////////////////////////////////////////////////////////////////////////////////
2562 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)
2564 ///////////////////////////////////////////////////////////////////////////////////////
2565 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)
2567 ///////////////////////////////////////////////////////////////////////////////////////
2568 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)
2570 ///////////////////////////////////////////////////////////////////////////////////////
2571 BUTTON_CIRCLE_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2573 ///////////////////////////////////////////////////////////////////////////////////////
2574 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_plus.png", "00_button_plus_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2576 ///////////////////////////////////////////////////////////////////////////////////////
2577 BUTTON_CIRCLE_STYLES("minus", "00_button_expand_minus.png", "00_button_expand_minus_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2579 ///////////////////////////////////////////////////////////////////////////////////////
2580 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_expand_minus.png", "00_button_expand_minus_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2582 ///////////////////////////////////////////////////////////////////////////////////////
2583 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)
2585 ///////////////////////////////////////////////////////////////////////////////////////
2586 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)
2588 ///////////////////////////////////////////////////////////////////////////////////////
2589 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)
2591 ///////////////////////////////////////////////////////////////////////////////////////
2592 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)
2593 ///////////////////////////////////////////////////////////////////////////////////////
2596 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2597 group { name: "elm/button/base/"style_name; \
2598 inherit: "elm/button/base/info"; \
2600 image: "00_circle_button_delete.png" COMP; \
2601 image: "00_circle_button_delete_press.png" COMP; \
2602 image: "00_circle_button_delete_dim.png" COMP; \
2603 image: "00_button_warning.png" COMP; \
2604 image: "00_button_warning_press.png" COMP; \
2607 part { name: "button_image"; \
2609 description { state: "default" 0.0; \
2610 image.normal: "00_circle_button_delete.png"; \
2613 state: "clicked" 0.0; \
2614 inherit: "default" 0.0; \
2615 image.normal: "00_circle_button_delete_press.png"; \
2618 state: "disabled" 0.0; \
2619 inherit: "default" 0.0; \
2620 image.normal: "00_circle_button_delete_dim.png"; \
2623 part { name: "button_center_part"; \
2625 clip_to: "icon_clipper"; \
2626 description { state: "default" 0.0; \
2627 image.normal: "00_button_warning.png"; \
2629 description { state: "clicked" 0.0; \
2630 inherit: "default"; \
2631 image.normal: "00_button_warning_press.png"; \
2633 description { state: "disabled" 0.0; \
2634 inherit: "default"; \
2637 part { name: "icon_clipper"; \
2640 description { state: "default" 0.0; \
2641 color: BUTTON_CIRCLE_STYLE_WARNING_NORMAL_COLOR_INC; \
2643 description { state: "clicked" 0.0; \
2644 color: BUTTON_CIRCLE_STYLE_WARNING_PRESSED_COLOR_INC; \
2646 description { state: "disabled" 0.0; \
2647 color: BUTTON_CIRCLE_STYLE_WARNING_DISABLED_COLOR_INC; \
2650 part { name: "over1"; \
2652 ignore_flags: ON_HOLD; \
2653 description { state: "default" 0.0; \
2655 min: min_width min_height; \
2661 ///////////////////////////////////////////////////////////////////////////////////////
2662 BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2664 ///////////////////////////////////////////////////////////////////////////////////////
2665 BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2667 ///////////////////////////////////////////////////////////////////////////////////////
2668 group { name: "elm/button/base/circle/empty";
2670 image: "00_circle_button.png" COMP;
2671 image: "00_circle_button_press.png" COMP;
2672 image: "00_circle_button_dim.png" COMP;
2675 part { name: "button_image";
2677 description { state: "default" 0.0;
2678 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2679 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2681 image.normal: "00_circle_button.png";
2683 description { state: "clicked" 0.0;
2684 inherit: "default" 0.0;
2685 image.normal: "00_circle_button_press.png";
2687 description { state: "disabled" 0.0;
2688 inherit: "default" 0.0;
2689 image.normal: "00_circle_button_dim.png";
2692 part { name: "elm.swallow.content";
2694 clip_to: "icon_clipper";
2696 description { state: "default" 0.0;
2700 description { state: "visible" 0.0;
2701 inherit: "default" 0.0;
2703 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2704 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2707 part { name: "icon_clipper";
2710 description { state: "default" 0.0;
2711 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2713 description { state: "clicked" 0.0;
2714 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2716 description { state: "disabled" 0.0;
2717 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2720 part { name: "over1";
2722 ignore_flags: ON_HOLD;
2723 description { state: "default" 0.0;
2727 part { name: "over2";
2730 description { state: "default" 0.0;
2734 part { name: "disabler";
2736 description { state: "default" 0.0;
2740 description { state: "disabled" 0.0;
2741 inherit: "default" 0.0;
2747 program { name: "button_click";
2748 signal: "mouse,down,1";
2750 action: SIGNAL_EMIT "elm,action,press" "";
2751 after: "button_click_anim";
2753 program { name: "button_click_anim";
2754 action: STATE_SET "clicked" 0.0;
2755 target: "button_image";
2756 target: "icon_clipper";
2758 program { name: "button_double_click";
2759 signal: "mouse,down,1,double";
2761 after: "button_click_anim";
2763 program { name: "touch_snd";
2764 signal: "mouse,clicked,1";
2766 action: PLAY_SAMPLE "touch_sound" 1.0;
2767 after: button_unclick2;
2769 program { name: "button_unclick2";
2770 action: SIGNAL_EMIT "elm,action,click" "";
2772 program { name: "button_unclick";
2773 signal: "mouse,up,1";
2775 action: SIGNAL_EMIT "elm,action,unpress" "";
2776 after: "button_unclick_anim";
2778 program { name: "button_unclick_anim";
2779 action: STATE_SET "default" 0.0;
2780 target: "button_image";
2781 target: "icon_clipper";
2783 program { name: "disable";
2784 signal: "elm,state,disabled";
2786 action: STATE_SET "disabled" 0.0;
2788 target: "button_image";
2789 target: "icon_clipper";
2791 program { name: "enable";
2792 signal: "elm,state,enabled";
2794 action: STATE_SET "default" 0.0;
2796 target: "button_image";
2797 target: "icon_clipper";
2799 program { name: "icon_show";
2800 signal: "elm,state,icon,visible";
2802 action: STATE_SET "visible" 0.0;
2803 target: "elm.swallow.content";
2805 program { name: "icon_hide";
2806 signal: "elm,state,icon,hidden";
2808 action: STATE_SET "default" 0.0;
2809 target: "elm.swallow.content";
2814 ///////////////////////////////////////////////////////////////////////////////////////
2815 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2816 group { name: "elm/button/base/contacts/"style_name; \
2817 alias: "elm/button/base/"style_name; \
2819 image: "00_circle_button.png" COMP; \
2820 image: "00_circle_button_press.png" COMP; \
2821 image: "00_circle_button_dim.png" COMP; \
2822 image: edit_normal COMP; \
2823 image: edit_press COMP; \
2826 part { name: "button_image"; \
2828 description { state: "default" 0.0; \
2829 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2830 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2831 image.normal: "00_circle_button.png"; \
2833 description { state: "clicked" 0.0; \
2834 inherit: "default" 0.0; \
2835 image.normal: "00_circle_button_press.png"; \
2837 description { state: "disabled" 0.0; \
2838 inherit: "default" 0.0; \
2839 image.normal: "00_circle_button_dim.png"; \
2842 part { name: "button_center_part"; \
2845 clip_to: "icon_clipper"; \
2846 description { state: "default" 0.0; \
2847 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2848 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2849 image.normal: image_normal; \
2852 state: "clicked" 0.0; \
2853 inherit: "default" 0.0; \
2854 image.normal: image_press; \
2856 description { state: "disabled" 0.0; \
2857 inherit: "default" 0.0; \
2860 part { name: "icon_clipper"; \
2863 description { state: "default" 0.0; \
2864 color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
2866 description { state: "clicked" 0.0; \
2867 color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
2869 description { state: "disabled" 0.0; \
2870 color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
2873 part { name: "over1"; \
2876 ignore_flags: ON_HOLD; \
2877 description { state: "default" 0.0; \
2879 min: min_width min_height; \
2882 part { name: "over2"; \
2885 description { state: "default" 0.0; \
2889 part { name: "disabler"; \
2891 description { state: "default" 0.0; \
2895 description { state: "disabled" 0.0; \
2896 inherit: "default" 0.0; \
2902 program { name: "button_click"; \
2903 signal: "mouse,down,1"; \
2905 action: SIGNAL_EMIT "elm,action,press" ""; \
2906 after: "button_click_anim"; \
2908 program { name: "button_click_anim"; \
2909 action: STATE_SET "clicked" 0.0; \
2910 target: "button_image"; \
2911 target: "button_center_part"; \
2912 target: "icon_clipper"; \
2914 program { name: "button_double_click"; \
2915 signal: "mouse,down,1,double"; \
2917 after: "button_click_anim"; \
2919 program { name: "button_unclick"; \
2920 signal: "mouse,up,1"; \
2922 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2923 after: "button_unclick_anim"; \
2925 program { name: "button_unclick_anim"; \
2926 action: STATE_SET "default" 0.0; \
2927 target: "button_image"; \
2928 target: "button_center_part"; \
2929 target: "icon_clipper"; \
2931 program { name: "touch_snd"; \
2932 signal: "mouse,clicked,1"; \
2934 action: PLAY_SAMPLE "touch_sound" 1.0; \
2935 after: button_unclick3; \
2937 program { name: "button_unclick3"; \
2938 action: SIGNAL_EMIT "elm,action,click" ""; \
2940 program { name: "disable"; \
2941 signal: "elm,state,disabled"; \
2943 action: STATE_SET "disabled" 0.0; \
2944 target: "disabler"; \
2945 target: "button_image"; \
2946 target: "button_center_part"; \
2947 target: "icon_clipper"; \
2949 program { name: "enable"; \
2950 signal: "elm,state,enabled"; \
2952 action: STATE_SET "default" 0.0; \
2953 target: "disabler"; \
2954 target: "button_image"; \
2955 target: "button_center_part"; \
2956 target: "icon_clipper"; \
2960 ///////////////////////////////////////////////////////////////////////////////////////
2961 BUTTON_EDIT_STYLES("icon_plus", "00_button_plus.png", "00_button_plus_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2963 ///////////////////////////////////////////////////////////////////////////////////////
2964 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_plus.png", "00_button_plus_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2966 ///////////////////////////////////////////////////////////////////////////////////////
2967 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)
2969 ///////////////////////////////////////////////////////////////////////////////////////
2970 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)
2972 ///////////////////////////////////////////////////////////////////////////////////////
2973 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)
2975 ///////////////////////////////////////////////////////////////////////////////////////
2976 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)
2978 ///////////////////////////////////////////////////////////////////////////////////////
2980 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
2981 group { name: "elm/button/base/contacts/"style_name; \
2982 alias: "elm/button/base/"style_name; \
2983 inherit: "elm/button/base/contacts/icon_plus"; \
2985 image: "00_circle_button_delete.png" COMP; \
2986 image: "00_circle_button_delete_press.png" COMP; \
2987 image: "00_circle_button_delete_dim.png" COMP; \
2988 image: "00_button_expand_minus.png" COMP; \
2989 image: "00_button_expand_minus_press.png" COMP; \
2992 part { name: "button_image"; \
2994 description { state: "default" 0.0; \
2995 image.normal: "00_circle_button_delete.png"; \
2997 description { state: "clicked" 0.0; \
2998 inherit: "default" 0.0; \
2999 image.normal: "00_circle_button_delete_press.png"; \
3001 description { state: "disabled" 0.0; \
3002 inherit: "default" 0.0; \
3003 image.normal: "00_circle_button_delete_dim.png"; \
3006 part { name: "button_center_part"; \
3009 clip_to: "icon_clipper"; \
3010 description { state: "default" 0.0; \
3011 image.normal: "00_button_expand_minus.png"; \
3014 state: "clicked" 0.0; \
3015 inherit: "default" 0.0; \
3016 image.normal: "00_button_expand_minus_press.png"; \
3018 description { state: "disabled" 0.0; \
3019 inherit: "default" 0.0; \
3022 part { name: "icon_clipper"; \
3025 description { state: "default" 0.0; \
3026 color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
3028 description { state: "clicked" 0.0; \
3029 color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
3031 description { state: "disabled" 0.0; \
3032 color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
3035 part { name: "over1"; \
3038 ignore_flags: ON_HOLD; \
3039 description { state: "default" 0.0; \
3041 min: min_width min_height; \
3047 ///////////////////////////////////////////////////////////////////////////////////////
3048 BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3050 ///////////////////////////////////////////////////////////////////////////////////////
3051 BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3053 ///////////////////////////////////////////////////////////////////////////////////////
3054 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
3055 group { name: "elm/button/base/"style_name; \
3057 image: "00_button_01.png" COMP; \
3058 image: "00_button_01_press.png" COMP; \
3059 image: "00_button_01_dim.png" COMP; \
3060 image: image_normal COMP; \
3063 part { name: "button_image";\
3066 description { state: "default" 0.0; \
3067 min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
3069 normal: "00_button_01.png"; \
3070 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3074 description { state: "clicked" 0.0; \
3075 inherit: "default" 0.0; \
3076 image.normal: "00_button_01_press.png"; \
3078 description { state: "disabled" 0.0; \
3079 inherit: "default" 0.0; \
3080 image.normal: "00_button_01_dim.png"; \
3083 part { name: "padding_left_top"; \
3086 description { state: "default" 0.0; \
3088 rel2.relative: 0.0 0.0; \
3089 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3093 part { name: "padding_right_bottom"; \
3096 description { state: "default" 0.0; \
3098 rel1.relative: 1.0 1.0; \
3099 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3103 part { name: "jump_image"; \
3106 description { state: "default" 0.0; \
3107 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3110 relative: 1.0 0.0; \
3111 to_x: "padding_left_top"; \
3114 relative: 0.0 1.0; \
3115 to_x: "padding_right_bottom"; \
3117 image.normal: image_normal; \
3119 aspect_preference: VERTICAL; \
3120 color: BUTTON_JUMP_ICON_NORMAL_COLOR_INC; \
3122 description { state: "clicked" 0.0; \
3123 inherit: "default" 0.0; \
3124 color: BUTTON_JUMP_ICON_PRESSED_COLOR_INC; \
3126 description { state: "disabled" 0.0; \
3127 inherit: "default" 0.0; \
3128 color: BUTTON_JUMP_ICON_DIM_COLOR_INC; \
3131 part { name: "over1"; \
3134 ignore_flags: ON_HOLD; \
3135 description { state: "default" 0.0; \
3137 rel1.relative: 0.0 0.0; \
3138 rel2.relative: 1.0 1.0; \
3141 part { name: "over2"; \
3144 description { state: "default" 0.0; \
3150 program { name: "button_click"; \
3151 signal: "mouse,down,1"; \
3153 action: SIGNAL_EMIT "elm,action,press" ""; \
3154 after: "button_click_anim"; \
3156 program { name: "button_click_anim"; \
3157 action: STATE_SET "clicked" 0.0; \
3158 target: "button_image"; \
3159 target: "jump_image"; \
3161 program { name: "button_double_click"; \
3162 signal: "mouse,down,1,double"; \
3164 after: "button_click_anim"; \
3166 program { name: "button_unclick"; \
3167 signal: "mouse,up,1"; \
3169 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3170 after: "button_unclick_anim"; \
3172 program { name: "button_unclick_anim"; \
3173 action: STATE_SET "default" 0.0; \
3174 target: "button_image"; \
3175 target: "jump_image"; \
3177 program { name: "touch_snd"; \
3178 signal: "mouse,clicked,1"; \
3180 action: PLAY_SAMPLE "touch_sound" 1.0; \
3181 after: button_unclick3; \
3183 program { name: "button_unclick3"; \
3184 action: SIGNAL_EMIT "elm,action,click" ""; \
3186 program { name: "disable"; \
3187 signal: "elm,state,disabled"; \
3189 action: STATE_SET "disabled" 0.0; \
3190 target: "button_image"; \
3191 target: "jump_image"; \
3193 program { name: "enable"; \
3194 signal: "elm,state,enabled"; \
3196 action: STATE_SET "default" 0.0; \
3197 target: "button_image"; \
3198 target: "jump_image"; \
3203 ////////////////////////////////////////////////////////////////////////
3204 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3205 ////////////////////////////////////////////////////////////////////////
3206 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3208 ////////////////////////////////////////////////////////////////////////
3209 group { name: "elm/button/base/default";
3211 image: "00_button_01.png" COMP;
3212 image: "00_button_01_press.png" COMP;
3213 image: "00_button_01_dim.png" COMP;
3216 public button_state = BUTTON_STATE_ENABLED;
3219 part { name: "button_image";
3221 description { state: "default" 0.0;
3222 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3224 normal: "00_button_01.png";
3225 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3229 description { state: "clicked" 0.0;
3230 inherit: "default" 0.0;
3231 image.normal: "00_button_01_press.png";
3233 description { state: "disabled" 0.0;
3234 inherit: "default" 0.0;
3235 image.normal: "00_button_01_dim.png";
3237 description { state: "focused" 0.0;
3238 inherit: "default" 0.0;
3239 image.normal: "00_button_01_press.png";
3242 part { name: "padding_left_top";
3246 description { state: "default" 0.0;
3248 rel2.relative: 0.0 0.0;
3249 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3254 part { name: "padding_right_bottom";
3258 description { state: "default" 0.0;
3260 rel1.relative: 1.0 1.0;
3261 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3266 part { name: "padding_icon_text";
3270 description { state: "default" 0.0; //when only icon or no icon is there
3276 to: "elm.swallow.content";
3278 rel2.to: "elm.swallow.content";
3281 description { state: "icononly" 0.0;
3282 inherit: "default" 0.0;
3284 description { state: "visible" 0.0; //when icon is visible
3285 inherit: "default" 0.0;
3286 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3289 part { name: "elm.swallow.content";
3293 description { state: "default" 0.0;
3299 to: "padding_left_top";
3303 to_x: "padding_left_top";
3304 to_y: "padding_right_bottom";
3307 description { state: "visible" 0.0;
3308 inherit: "default" 0.0;
3311 aspect_preference: VERTICAL;
3313 description { state: "icononly" 0.0;
3314 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3317 to_x: "padding_left_top";
3321 to_x: "padding_right_bottom";
3324 aspect_preference: VERTICAL;
3327 part { name: "elm.text";
3332 effect: SHADOW BOTTOM;
3333 description { state: "default" 0.0;
3338 to_x: "padding_icon_text";
3339 to_y: "padding_left_top";
3343 to: "padding_right_bottom";
3345 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3346 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
3348 font: "Tizen:style=Regular";
3349 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3351 text_class: "tizen";
3354 description { state: "visible" 0.0;
3355 inherit: "default" 0.0;
3357 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3359 description { state: "clicked" 0.0;
3360 inherit: "default" 0.0;
3362 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3363 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3365 description { state: "disabled" 0.0;
3366 inherit: "default" 0.0;
3368 description { state: "disabled_visible" 0.0;
3369 inherit: "default" 0.0;
3370 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3371 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
3373 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3375 description { state: "focused" 0.0;
3376 inherit: "default" 0.0;
3379 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3382 part { name: "over2";
3385 ignore_flags: ON_HOLD;
3386 description { state: "default" 0.0;
3390 part { name: "over3";
3393 description { state: "default" 0.0;
3397 part { name: "disclip";
3399 description { state: "default" 0.0;
3400 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3402 description { state: "disabled" 0.0;
3403 inherit: "default" 0.0;
3404 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3407 part { name: "disabler";
3409 description { state: "default" 0.0;
3413 description { state: "disabled" 0.0;
3414 inherit: "default" 0.0;
3420 program { name: "button_click";
3421 signal: "mouse,down,1";
3423 action: SIGNAL_EMIT "elm,action,press" "";
3424 after: "button_click_anim";
3426 program { name: "button_click_anim";
3427 action: STATE_SET "clicked" 0.0;
3428 target: "button_image";
3429 after: "text_clicked";
3431 program { name: "text_clicked";
3435 get_state(PART:"elm.text", st, 30, vl);
3436 if (!strcmp(st, "visible"))
3437 set_state(PART:"elm.text", "clicked", 0.0);
3440 program { name: "button_double_click";
3441 signal: "mouse,down,1,double";
3443 after: "button_click_anim";
3445 program { name: "button_unpress";
3446 action: SIGNAL_EMIT "elm,action,unpress" "";
3448 program { name: "button_mouseout_clicked";
3449 signal: "mouse,up,1";
3454 get_state(PART:"elm.swallow.content", st, 30, vl);
3455 if (strcmp(st, "icononly"))
3457 emit("elm,action,default,text,set", "");
3458 set_state(PART:"elm.text", "visible", 0.0);
3460 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3461 set_state(PART:"button_image", "default", 0.0);
3463 after: button_unpress;
3465 program { name: "touch_snd";
3466 signal: "mouse,clicked,1";
3468 action: PLAY_SAMPLE "touch_sound" 1.0;
3469 after: button_unclick3;
3471 program { name: "button_unclick3";
3472 action: SIGNAL_EMIT "elm,action,click" "";
3474 program { name: "text_show";
3475 signal: "elm,state,text,visible";
3480 get_state(PART:"elm.swallow.content", st, 30, vl);
3481 if (!strcmp(st, "icononly"))
3483 set_state(PART:"elm.swallow.content", "visible", 0.0);
3484 set_state(PART:"padding_icon_text", "visible", 0.0);
3486 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3487 set_state(PART:"elm.text", "visible", 0.0);
3489 set_state(PART:"elm.text", "disabled_visible", 0.0);
3492 program { name: "text_hide";
3493 signal: "elm,state,text,hidden";
3498 get_state(PART:"elm.swallow.content", st, 30, vl);
3499 if (!strcmp(st, "visible"))
3501 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3502 set_state(PART:"padding_icon_text", "icononly", 0.0);
3504 set_state(PART:"elm.text", "default", 0.0);
3507 program { name: "icon_show";
3508 signal: "elm,state,icon,visible";
3513 get_state(PART:"elm.text", st, 30, vl);
3514 if (!strcmp(st, "visible"))
3516 set_state(PART:"elm.swallow.content", "visible", 0.0);
3517 set_state(PART:"padding_icon_text", "visible", 0.0);
3521 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3522 set_state(PART:"padding_icon_text", "icononly", 0.0);
3526 program { name: "icon_hide";
3527 signal: "elm,state,icon,hidden";
3529 action: STATE_SET "default" 0.0;
3530 target: "elm.swallow.content";
3531 target: "padding_icon_text";
3533 program { name: "disable";
3534 signal: "elm,state,disabled";
3536 action: STATE_SET "disabled" 0.0;
3537 target: "button_image";
3540 after: "disable_text";
3542 program { name: "disable_text";
3546 get_state(PART:"elm.text", st, 30, vl);
3547 if (!strcmp(st, "visible"))
3548 set_state(PART:"elm.text", "disabled_visible", 0.0);
3550 set_state(PART:"elm.text", "disabled", 0.0);
3551 set_int(button_state, BUTTON_STATE_DISABLED);
3554 program { name: "enable";
3555 signal: "elm,state,enabled";
3557 action: STATE_SET "default" 0.0;
3558 target: "button_image";
3561 after: "enable_text";
3563 program { name: "enable_text";
3567 get_state(PART:"elm.text", st, 30, vl);
3568 if (!strcmp(st, "disabled_visible"))
3569 set_state(PART:"elm.text", "visible", 0.0);
3571 set_state(PART:"elm.text", "default", 0.0);
3572 set_int(button_state, BUTTON_STATE_ENABLED);
3575 program { name: "focused";
3576 //signal: "elm,action,focus";
3578 action: STATE_SET "focused" 0.0;
3579 target: "button_image";
3582 program { name: "unfocused";
3583 //signal: "elm,action,unfocus";
3585 action: STATE_SET "default" 0.0;
3586 target: "button_image";
3587 after: "unfocus_text";
3589 program { name: "unfocus_text";
3590 action: STATE_SET "visible" 0.0;
3596 ///////////////////////////////////////////////////////////////////////////////////////
3597 group { name: "elm/button/base/multiline";
3598 alias: "elm/button/base/text_only/multiline";
3599 inherit: "elm/button/base/default";
3601 style { name: "btn_multiline_style";
3602 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";
3609 part { name: "button_image";
3611 description { state: "default" 0.0;
3612 min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3614 normal: "00_button_01.png";
3615 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3619 description { state: "clicked" 0.0;
3620 inherit: "default" 0.0;
3621 image.normal: "00_button_01_press.png";
3623 description { state: "disabled" 0.0;
3624 inherit: "default" 0.0;
3625 image.normal: "00_button_01_dim.png";
3627 description { state: "focused" 0.0;
3628 inherit: "default" 0.0;
3629 image.normal: "00_button_01_press.png";
3632 part { name: "padding_left_top";
3636 description { state: "default" 0.0;
3638 rel2.relative: 0.0 0.0;
3639 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3644 part { name: "padding_right_bottom";
3648 description { state: "default" 0.0;
3650 rel1.relative: 1.0 1.0;
3651 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3656 part { name: "elm.text";
3661 description { state: "default" 0.0;
3665 to_x: "padding_icon_text";
3666 to_y: "padding_left_top";
3670 to: "padding_right_bottom";
3672 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3674 style: "btn_multiline_style";
3677 description { state: "visible" 0.0;
3678 inherit: "default" 0.0;
3682 description { state: "clicked" 0.0;
3683 inherit: "default" 0.0;
3686 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3688 description { state: "disabled" 0.0;
3689 inherit: "default" 0.0;
3691 description { state: "disabled_visible" 0.0;
3692 inherit: "default" 0.0;
3693 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3697 description { state: "focused" 0.0;
3698 inherit: "default" 0.0;
3701 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3707 ///////////////////////////////////////////////////////////////////////////////////////
3708 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
3709 group { name: "elm/button/base/"style_name; \
3711 image: image_normal COMP; \
3712 image: image_press COMP; \
3713 image: image_dim COMP; \
3714 image: "00_button_01.png" COMP; \
3715 image: "00_button_01_press.png" COMP; \
3718 part { name: "button_image"; \
3720 description { state: "default" 0.0; \
3721 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3722 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3724 normal: "00_button_01.png"; \
3725 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3730 state: "clicked" 0.0; \
3731 inherit: "default" 0.0; \
3732 image.normal: "00_button_01_press.png"; \
3735 state: "disabled" 0.0; \
3736 inherit: "default" 0.0; \
3737 image.normal: "00_button_01_dim.png"; \
3740 state: "focused" 0.0; \
3741 inherit: "default" 0.0; \
3742 image.normal: "00_button_01_press.png"; \
3745 part { name: "button_center_part"; \
3747 clip_to: "icon_clipper"; \
3748 description { state: "default" 0.0; \
3749 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3750 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3751 image.normal: image_normal; \
3754 state: "clicked" 0.0; \
3755 inherit: "default" 0.0; \
3756 image.normal: image_press; \
3759 state: "disabled" 0.0; \
3760 inherit: "default" 0.0; \
3763 part { name: "icon_clipper"; \
3766 description { state: "default" 0.0; \
3767 color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
3769 description { state: "clicked" 0.0; \
3770 color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
3772 description { state: "disabled" 0.0; \
3773 color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
3776 part { name: "over1"; \
3778 ignore_flags: ON_HOLD; \
3779 description { state: "default" 0.0; \
3783 part { name: "over2"; \
3786 description { state: "default" 0.0; \
3790 part { name: "disabler"; \
3792 description { state: "default" 0.0; \
3796 description { state: "disabled" 0.0; \
3797 inherit: "default" 0.0; \
3803 program { name: "button_click"; \
3804 signal: "mouse,down,1"; \
3806 action: SIGNAL_EMIT "elm,action,press" ""; \
3807 after: "button_click_anim"; \
3809 program { name: "button_click_anim"; \
3810 action: STATE_SET "clicked" 0.0; \
3811 target: "button_image"; \
3812 target: "button_center_part"; \
3813 target: ""icon_clipper""; \
3815 program { name: "button_double_click"; \
3816 signal: "mouse,down,1,double"; \
3818 after: "button_click_anim"; \
3820 program { name: "button_unclick"; \
3821 signal: "mouse,up,1"; \
3823 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3824 after: "button_unclick_anim"; \
3826 program { name: "button_unclick_anim"; \
3827 action: STATE_SET "default" 0.0; \
3828 target: "button_image"; \
3829 target: "button_center_part"; \
3830 target: ""icon_clipper""; \
3832 program { name: "touch_snd"; \
3833 signal: "mouse,clicked,1"; \
3835 action: PLAY_SAMPLE "touch_sound" 1.0; \
3836 after: button_unclick3; \
3838 program { name: "button_unclick3"; \
3839 action: SIGNAL_EMIT "elm,action,click" ""; \
3841 program { name: "disable"; \
3842 signal: "elm,state,disabled"; \
3844 action: STATE_SET "disabled" 0.0; \
3845 target: "disabler"; \
3846 target: "button_image"; \
3847 target: "button_center_part"; \
3848 target: ""icon_clipper""; \
3850 program { name: "enable"; \
3851 signal: "elm,state,enabled"; \
3853 action: STATE_SET "default" 0.0; \
3854 target: "disabler"; \
3855 target: "button_image"; \
3856 target: "button_center_part"; \
3857 target: ""icon_clipper""; \
3861 ///////////////////////////////////////////////////////////////////////////////////////
3862 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
3863 ///////////////////////////////////////////////////////////////////////////////////////
3864 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
3865 ///////////////////////////////////////////////////////////////////////////////////////
3867 group { name: "elm/button/base/contact";
3868 alias: "elm/button/base/text_only/contact";
3870 image: "00_contacts_button.png" COMP;
3871 image: "00_contacts_button_press.png" COMP;
3874 public button_state = BUTTON_STATE_ENABLED;
3877 part { name: "button_image";
3879 description { state: "default" 0.0;
3881 to_x: "padding.left";
3885 to_x: "padding.right";
3888 min: BUTTON_CONTACT_BG_MIN_INC;
3890 normal: "00_contacts_button.png";
3891 border: BUTTON_CONTACT_BG_BORDER_INC;
3895 description { state: "clicked" 0.0;
3896 inherit: "default" 0.0;
3897 image.normal: "00_contacts_button_press.png";
3899 description { state: "disabled" 0.0;
3900 inherit: "default" 0.0;
3902 description { state: "focused" 0.0;
3903 inherit: "default" 0.0;
3904 image.normal: "00_contacts_button_press.png";
3907 part { name: "padding.left";
3910 description { state: "default" 0.0;
3912 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
3922 part { name: "padding.right";
3925 description { state: "default" 0.0;
3927 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
3937 part { name: "elm.text";
3941 description { state: "default" 0.0;
3944 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
3946 font: "Tizen:style=Regular";
3947 size: BUTTON_CONTACT_FONT_SIZE_INC;
3949 text_class: "tizen";
3952 description { state: "visible" 0.0;
3953 inherit: "default" 0.0;
3957 description { state: "clicked" 0.0;
3958 inherit: "default" 0.0;
3961 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
3963 description { state: "disabled" 0.0;
3964 inherit: "default" 0.0;
3966 description { state: "disabled_visible" 0.0;
3967 inherit: "default" 0.0;
3968 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
3972 description { state: "focused" 0.0;
3973 inherit: "default" 0.0;
3976 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
3979 part { name: "over1";
3982 description { state: "default" 0.0;
3983 rel2.relative: 1.0 0.5;
3987 part { name: "over2";
3990 ignore_flags: ON_HOLD;
3991 description { state: "default" 0.0;
3992 rel1.to: "button_image";
3993 rel2.to: "button_image";
3997 part { name: "over3";
4000 description { state: "default" 0.0;
4001 rel1.to: "button_image";
4002 rel2.to: "button_image";
4006 part { name: "disabler";
4008 description { state: "default" 0.0;
4009 rel1.to: "button_image";
4010 rel2.to: "button_image";
4014 description { state: "disabled" 0.0;
4015 inherit: "default" 0.0;
4021 program { name: "button_click";
4022 signal: "mouse,down,1";
4024 action: SIGNAL_EMIT "elm,action,press" "";
4025 after: "button_click_anim";
4027 program { name: "button_click_anim";
4028 action: STATE_SET "clicked" 0.0;
4029 target: "button_image";
4032 program { name: "button_double_click";
4033 signal: "mouse,down,1,double";
4035 after: "button_click_anim";
4037 program { name: "button_unpress";
4038 action: SIGNAL_EMIT "elm,action,unpress" "";
4040 program { name: "button_mouseout_clicked";
4041 signal: "mouse,up,1";
4046 get_state(PART:"elm.text", st, 30, vl);
4047 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4049 emit("elm,action,default,text,set", "");
4050 set_state(PART:"elm.text", "visible", 0.0);
4052 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4053 set_state(PART:"button_image", "default", 0.0);
4055 after: button_unpress;
4057 program { name: "touch_snd";
4058 signal: "mouse,clicked,1";
4060 action: PLAY_SAMPLE "touch_sound" 1.0;
4061 after: button_unclick3;
4063 program { name: "button_unclick3";
4064 action: SIGNAL_EMIT "elm,action,click" "";
4066 program { name: "text_show";
4067 signal: "elm,state,text,visible";
4070 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4071 set_state(PART:"elm.text", "visible", 0.0);
4073 set_state(PART:"elm.text", "disabled_visible", 0.0);
4076 program { name: "text_hide";
4077 signal: "elm,state,text,hidden";
4079 action: STATE_SET "default" 0.0;
4082 program { name: "disable";
4083 signal: "elm,state,disabled";
4085 action: STATE_SET "disabled" 0.0;
4086 target: "button_image";
4088 after: "disable_text";
4090 program { name: "disable_text";
4094 get_state(PART:"elm.text", st, 30, vl);
4095 if (!strcmp(st, "visible"))
4096 set_state(PART:"elm.text", "disabled_visible", 0.0);
4098 set_state(PART:"elm.text", "disabled", 0.0);
4099 set_int(button_state, BUTTON_STATE_DISABLED);
4102 program { name: "enable";
4103 signal: "elm,state,enabled";
4105 action: STATE_SET "default" 0.0;
4106 target: "button_image";
4108 after: "enable_text";
4110 program { name: "enable_text";
4114 get_state(PART:"elm.text", st, 30, vl);
4115 if (!strcmp(st, "disabled_visible"))
4116 set_state(PART:"elm.text", "visible", 0.0);
4118 set_state(PART:"elm.text", "default", 0.0);
4119 set_int(button_state, BUTTON_STATE_ENABLED);
4122 program { name: "focused";
4123 //signal: "elm,action,focus";
4125 action: STATE_SET "focused" 0.0;
4126 target: "button_image";
4129 program { name: "unfocused";
4130 //signal: "elm,action,unfocus";
4132 action: STATE_SET "default" 0.0;
4133 target: "button_image";
4134 action: STATE_SET "visible" 0.0;
4140 ///////////////////////////////////////////////////////////////////////////////////////
4141 group { name: "elm/button/base/naviframe/back_btn/default";
4142 alias: "elm/button/base/naviframe/prev_btn/default";
4143 alias: "elm/button/base/naviframe/end_btn/default";
4145 image: "00_icon_Back.png" COMP;
4148 part { name: "button_image";
4151 description { state: "default" 0.0;
4152 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4153 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4156 description { state: "landscape" 0.0;
4157 min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4158 max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4162 part { name: "bottom_padding";
4166 description { state: "default" 0.0;
4167 min: BUTTON_NAVIFRAME_BACK_BUTTON_BOTTOM_PADDING_INC;
4170 rel1 { relative: 0.0 1.0; to: "button_image"; }
4171 rel2.to: "button_image";
4175 part { name: "back_button";
4178 clip_to: "back_button.clipper";
4179 description { state: "default" 0.0;
4180 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4181 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4183 rel1.to: "button_image";
4184 rel2.to: "button_image";
4185 image.normal: "00_icon_Back.png";
4187 description { state: "title_button" 0.0;
4188 inherit: "default" 0.0;
4190 rel1 { relative: 0.0 1.0; to: "bottom_padding"; }
4191 rel2.to: "bottom_padding";
4194 part { name: "back_button.clipper";
4196 description { state: "default" 0.0;
4197 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4199 description { state: "clicked" 0.0;
4200 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4202 description { state: "disabled" 0.0;
4203 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4206 part { name: "over2";
4208 ignore_flags: ON_HOLD;
4209 description { state: "default" 0.0;
4213 part { name: "over3";
4216 description { state: "default" 0.0;
4220 part { name: "disabler";
4222 description { state: "default" 0.0;
4226 description { state: "disabled" 0.0;
4227 inherit: "default" 0.0;
4233 program { name: "button_click";
4234 signal: "mouse,down,1";
4236 action: SIGNAL_EMIT "elm,action,press" "";
4237 after: "button_click_anim";
4239 program { name: "button_click_anim";
4241 set_state(PART:"back_button.clipper", "clicked", 0.0);
4244 program { name: "button_double_click";
4245 signal: "mouse,down,1,double";
4247 after: "button_click_anim";
4249 program { name: "button_unclick";
4250 signal: "mouse,up,1";
4252 action: SIGNAL_EMIT "elm,action,unpress" "";
4253 after: "button_unclick_anim";
4255 program { name: "button_unclick_anim";
4257 set_state(PART:"back_button.clipper", "default", 0.0);
4260 program { name: "touch_snd";
4261 signal: "mouse,clicked,1";
4263 action: PLAY_SAMPLE "touch_sound" 1.0;
4264 after: button_unclick3;
4266 program { name: "button_unclick3";
4267 action: SIGNAL_EMIT "elm,action,click" "";
4269 program { name: "disable";
4270 signal: "elm,state,disabled";
4273 set_state(PART:"back_button.clipper", "disabled", 0.0);
4276 program { name: "enable";
4277 signal: "elm,state,enabled";
4280 set_state(PART:"back_button.clipper", "default", 0.0);
4283 program { name: "change_to_landscape";
4284 signal: "elm,state,landscape";
4286 action: STATE_SET "landscape" 0.0;
4287 target: "button_image";
4289 program { name: "change_to_portrait";
4290 signal: "elm,state,portrait";
4292 action: STATE_SET "default" 0.0;
4293 target: "button_image";
4295 program { name: "landscape_mode";
4297 signal: "elm,state,orient,90";
4298 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4300 program { name: "landscape_mode2";
4302 signal: "elm,state,orient,270";
4303 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4305 program { name: "portrait_mode";
4307 signal: "elm,state,orient,0";
4308 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4310 program { name: "portrait_mode2";
4312 signal: "elm,state,orient,180";
4313 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4318 //////////////////////////////////////////////////////////////
4319 group { name: "elm/button/base/naviframe/toolbar/default";
4320 alias: "elm/button/base/naviframe/title/default";
4322 image: "00_toolbar_button.png" COMP;
4323 image: "00_toolbar_button_press.png" COMP;
4324 image: "00_toolbar_button_dim.png" COMP;
4325 image: "00_badge_bg.png" COMP;
4328 style { name: "btn_naviframe_toolbar";
4329 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";
4336 public button_state = BUTTON_STATE_ENABLED;
4339 part { name: "button_image";
4341 description { state: "default" 0.0;
4342 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4343 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4345 rel1.to: "padding_text_left_top";
4346 rel2.to: "padding_text_right_bottom";
4348 normal: "00_toolbar_button.png";
4349 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4353 description { state: "clicked" 0.0;
4354 inherit: "default" 0.0;
4355 image.normal: "00_toolbar_button_press.png";
4357 description { state: "disabled" 0.0;
4358 inherit: "default" 0.0;
4359 image.normal: "00_toolbar_button_dim.png";
4361 description { state: "focused" 0.0;
4362 inherit: "default" 0.0;
4363 image.normal: "00_toolbar_button_press.png";
4366 part { name: "padding_left_top";
4370 description { state: "default" 0.0;
4373 rel2.relative: 0.0 0.0;
4374 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4378 part { name: "padding_right_bottom";
4382 description { state: "default" 0.0;
4384 rel1.relative: 1.0 1.0;
4385 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4390 part { name: "padding_text_left_top";
4394 description { state: "default" 0.0;
4396 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4398 rel1.to: "elm.text";
4406 part { name: "padding_text_right_bottom";
4410 description { state: "default" 0.0;
4411 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4418 rel2.to: "elm.text";
4422 part { name: "elm.text";
4426 effect: FAR_SHADOW BOTTOM;
4428 description { state: "default" 0.0;
4431 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4434 to: "padding_left_top";
4438 to: "padding_right_bottom";
4440 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4441 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4445 style: "btn_naviframe_toolbar";
4448 description { state: "visible" 0.0;
4449 inherit: "default" 0.0;
4452 description { state: "clicked" 0.0;
4453 inherit: "default" 0.0;
4455 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4457 description { state: "disabled" 0.0;
4458 inherit: "default" 0.0;
4460 description { state: "disabled_visible" 0.0;
4461 inherit: "default" 0.0;
4462 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4463 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4466 description { state: "focused" 0.0;
4467 inherit: "default" 0.0;
4469 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4472 part { name: "disclip";
4474 description { state: "default" 0.0;
4475 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4477 description { state: "disabled" 0.0;
4478 inherit: "default" 0.0;
4479 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4482 part { name: "over2";
4485 ignore_flags: ON_HOLD;
4486 description { state: "default" 0.0;
4487 rel1.to: "button_image";
4488 rel2.to: "button_image";
4492 part { name: "over3";
4495 description { state: "default" 0.0;
4496 rel1.to: "button_image";
4497 rel2.to: "button_image";
4501 part { name: "disabler";
4503 description { state: "default" 0.0;
4504 rel1.to: "button_image";
4505 rel2.to: "button_image";
4509 description { state: "disabled" 0.0;
4510 inherit: "default" 0.0;
4516 program { name: "button_click";
4517 signal: "mouse,down,1";
4519 action: SIGNAL_EMIT "elm,action,press" "";
4520 after: "button_click_anim";
4522 program { name: "button_click_anim";
4523 action: STATE_SET "clicked" 0.0;
4524 target: "button_image";
4527 program { name: "button_double_click";
4528 signal: "mouse,down,1,double";
4530 after: "button_click_anim";
4532 program { name: "button_unpress";
4533 action: SIGNAL_EMIT "elm,action,unpress" "";
4535 program { name: "button_mouseout_clicked";
4536 signal: "mouse,up,1";
4541 get_state(PART:"elm.text", st, 30, vl);
4542 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4544 emit("elm,action,default,text,set", "");
4545 set_state(PART:"elm.text", "visible", 0.0);
4547 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4548 set_state(PART:"button_image", "default", 0.0);
4550 after: button_unpress;
4552 program { name: "touch_snd";
4553 signal: "mouse,clicked,1";
4555 action: PLAY_SAMPLE "touch_sound" 1.0;
4556 after: button_unclick3;
4558 program { name: "button_unclick3";
4559 action: SIGNAL_EMIT "elm,action,click" "";
4561 program { name: "text_show";
4562 signal: "elm,state,text,visible";
4565 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4566 set_state(PART:"elm.text", "visible", 0.0);
4568 set_state(PART:"elm.text", "disabled_visible", 0.0);
4571 program { name: "text_hide";
4572 signal: "elm,state,text,hidden";
4574 action: STATE_SET "default" 0.0;
4577 program { name: "disable";
4578 signal: "elm,state,disabled";
4580 action: STATE_SET "disabled" 0.0;
4581 target: "button_image";
4584 after: "disable_text";
4586 program { name: "disable_text";
4590 get_state(PART:"elm.text", st, 30, vl);
4591 if (!strcmp(st, "visible"))
4592 set_state(PART:"elm.text", "disabled_visible", 0.0);
4594 set_state(PART:"elm.text", "disabled", 0.0);
4595 set_int(button_state, BUTTON_STATE_DISABLED);
4598 program { name: "enable";
4599 signal: "elm,state,enabled";
4601 action: STATE_SET "default" 0.0;
4602 target: "button_image";
4605 after: "enable_text";
4607 program { name: "enable_text";
4611 get_state(PART:"elm.text", st, 30, vl);
4612 if (!strcmp(st, "disabled_visible"))
4613 set_state(PART:"elm.text", "visible", 0.0);
4615 set_state(PART:"elm.text", "default", 0.0);
4616 set_int(button_state, BUTTON_STATE_ENABLED);
4619 program { name: "focused";
4620 //signal: "elm,action,focus";
4622 action: STATE_SET "focused" 0.0;
4623 target: "button_image";
4626 program { name: "unfocused";
4627 //signal: "elm,action,unfocus";
4629 action: STATE_SET "default" 0.0;
4630 target: "button_image";
4631 action: STATE_SET "visible" 0.0;
4637 //////////////////////////////////////////////////////////////
4638 group { name: "elm/button/base/naviframe/toolbar/left";
4639 inherit: "elm/button/base/naviframe/toolbar/default";
4641 part { name: "button_image";
4643 description { state: "default" 0.0;
4644 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4645 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4647 rel1.to: "padding_text_left_top";
4648 rel2.to: "padding_text_right_bottom";
4651 normal: "00_toolbar_button.png";
4652 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4656 description { state: "clicked" 0.0;
4657 inherit: "default" 0.0;
4658 image.normal: "00_toolbar_button_press.png";
4660 description { state: "disabled" 0.0;
4661 inherit: "default" 0.0;
4662 image.normal: "00_toolbar_button_dim.png";
4664 description { state: "focused" 0.0;
4665 inherit: "default" 0.0;
4666 image.normal: "00_toolbar_button_press.png";
4669 part { name: "elm.text";
4673 effect: FAR_SHADOW BOTTOM;
4675 description { state: "default" 0.0;
4678 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4681 to: "padding_left_top";
4685 to: "padding_right_bottom";
4688 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4689 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4693 style: "btn_naviframe_toolbar";
4696 description { state: "visible" 0.0;
4697 inherit: "default" 0.0;
4700 description { state: "clicked" 0.0;
4701 inherit: "default" 0.0;
4703 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4705 description { state: "disabled" 0.0;
4706 inherit: "default" 0.0;
4708 description { state: "disabled_visible" 0.0;
4709 inherit: "default" 0.0;
4710 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4711 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4714 description { state: "focused" 0.0;
4715 inherit: "default" 0.0;
4717 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4723 //////////////////////////////////////////////////////////////
4724 group { name: "elm/button/base/naviframe/toolbar/right";
4725 inherit: "elm/button/base/naviframe/toolbar/default";
4727 part { name: "button_image";
4729 description { state: "default" 0.0;
4730 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4731 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4733 rel1.to: "padding_text_left_top";
4734 rel2.to: "padding_text_right_bottom";
4737 normal: "00_toolbar_button.png";
4738 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4742 description { state: "clicked" 0.0;
4743 inherit: "default" 0.0;
4744 image.normal: "00_toolbar_button_press.png";
4746 description { state: "disabled" 0.0;
4747 inherit: "default" 0.0;
4748 image.normal: "00_toolbar_button_dim.png";
4750 description { state: "focused" 0.0;
4751 inherit: "default" 0.0;
4752 image.normal: "00_toolbar_button_press.png";
4755 part { name: "elm.text";
4759 effect: FAR_SHADOW BOTTOM;
4761 description { state: "default" 0.0;
4764 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4767 to: "padding_left_top";
4771 to: "padding_right_bottom";
4774 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4775 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4779 style: "btn_naviframe_toolbar";
4782 description { state: "visible" 0.0;
4783 inherit: "default" 0.0;
4786 description { state: "clicked" 0.0;
4787 inherit: "default" 0.0;
4789 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4791 description { state: "disabled" 0.0;
4792 inherit: "default" 0.0;
4794 description { state: "disabled_visible" 0.0;
4795 inherit: "default" 0.0;
4796 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4797 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4800 description { state: "focused" 0.0;
4801 inherit: "default" 0.0;
4803 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4809 ////////////////////////////////////////////////////////////////////
4810 group { name: "elm/button/base/toolbar/segmentedcontrol";
4812 image: "00_toolbar_button.png" COMP;
4813 image: "00_toolbar_button_press.png" COMP;
4814 image: "00_toolbar_button_dim.png" COMP;
4815 image: "00_button_icon_arrow.png" COMP;
4816 image: "00_button_icon_arrow_press.png" COMP;
4819 style { name: "btn_toolbar_segmentedcontrol";
4820 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";
4827 public button_state = BUTTON_STATE_ENABLED;
4830 part { name: "button_image";
4832 description { state: "default" 0.0;
4833 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
4834 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
4836 rel1.to: "padding_text_left_top";
4837 rel2.to: "padding_text_right_bottom";
4839 normal: "00_toolbar_button.png";
4840 border: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_BORDER_INC;
4844 description { state: "clicked" 0.0;
4845 inherit: "default" 0.0;
4846 image.normal: "00_toolbar_button_press.png";
4848 description { state: "disabled" 0.0;
4849 inherit: "default" 0.0;
4850 image.normal: "00_toolbar_button_dim.png";
4852 description { state: "focused" 0.0;
4853 inherit: "default" 0.0;
4854 image.normal: "00_toolbar_button_press.png";
4857 part { name: "padding_left_top";
4861 description { state: "default" 0.0;
4864 rel2.relative: 0.0 0.0;
4865 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4869 part { name: "padding_right_bottom";
4873 description { state: "default" 0.0;
4875 rel1.relative: 1.0 1.0;
4876 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
4881 part { name: "padding_text_left_top";
4885 description { state: "default" 0.0;
4887 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4889 rel1.to: "elm.text";
4897 part { name: "padding_text_right_bottom";
4901 description { state: "default" 0.0;
4902 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
4918 part { name: "elm.text";
4922 effect: FAR_SHADOW BOTTOM;
4924 description { state: "default" 0.0;
4927 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXTBLOCK_MIN_INC;
4930 to: "padding_left_top";
4934 to: "padding_right_bottom";
4936 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4937 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4941 style: "btn_toolbar_segmentedcontrol";
4944 description { state: "visible" 0.0;
4945 inherit: "default" 0.0;
4948 description { state: "clicked" 0.0;
4949 inherit: "default" 0.0;
4951 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4953 description { state: "disabled" 0.0;
4954 inherit: "default" 0.0;
4956 description { state: "disabled_visible" 0.0;
4957 inherit: "default" 0.0;
4958 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4959 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4962 description { state: "focused" 0.0;
4963 inherit: "default" 0.0;
4965 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4968 part { name: "icon_padding";
4971 description { state: "default" 0.0;
4980 rel2.to: "elm.text";
4983 part { name: "icon";
4985 clip_to: "icon_clipper";
4986 description { state: "default" 0.0;
4987 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
4988 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
4993 to_x: "icon_padding";
4999 to_x: "icon_padding";
5002 image.normal: "00_button_icon_arrow.png";
5004 description { state: "clicked" 0.0;
5005 inherit: "default" 0.0;
5006 image.normal: "00_button_icon_arrow_press.png";
5009 part { name: "icon_clipper";
5011 description { state: "default" 0.0;
5012 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_NORMAL_COLOR_INC;
5014 description { state: "clicked" 0.0;
5015 inherit: "default" 0.0;
5016 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_PRESSED_COLOR_INC;
5019 part { name: "disclip";
5021 description { state: "default" 0.0;
5022 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5024 description { state: "disabled" 0.0;
5025 inherit: "default" 0.0;
5026 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5029 part { name: "over2";
5032 ignore_flags: ON_HOLD;
5033 description { state: "default" 0.0;
5034 rel1.to: "button_image";
5035 rel2.to: "button_image";
5039 part { name: "over3";
5042 description { state: "default" 0.0;
5043 rel1.to: "button_image";
5044 rel2.to: "button_image";
5048 part { name: "disabler";
5050 description { state: "default" 0.0;
5051 rel1.to: "button_image";
5052 rel2.to: "button_image";
5056 description { state: "disabled" 0.0;
5057 inherit: "default" 0.0;
5063 program { name: "button_click";
5064 signal: "mouse,down,1";
5066 action: SIGNAL_EMIT "elm,action,press" "";
5067 after: "button_click_anim";
5069 program { name: "button_click_anim";
5070 action: STATE_SET "clicked" 0.0;
5071 target: "button_image";
5074 target: "icon_clipper";
5076 program { name: "button_double_click";
5077 signal: "mouse,down,1,double";
5079 after: "button_click_anim";
5081 program { name: "button_unpress";
5082 action: SIGNAL_EMIT "elm,action,unpress" "";
5084 program { name: "button_mouseout_clicked";
5085 signal: "mouse,up,1";
5090 get_state(PART:"elm.text", st, 30, vl);
5091 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5093 emit("elm,action,default,text,set", "");
5094 set_state(PART:"elm.text", "visible", 0.0);
5096 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5097 set_state(PART:"button_image", "default", 0.0);
5098 set_state(PART:"icon", "default", 0.0);
5099 set_state(PART:"icon_clipper", "default", 0.0);
5101 after: button_unpress;
5103 program { name: "touch_snd";
5104 signal: "mouse,clicked,1";
5106 action: PLAY_SAMPLE "touch_sound" 1.0;
5107 after: button_unclick3;
5109 program { name: "button_unclick3";
5110 action: SIGNAL_EMIT "elm,action,click" "";
5112 program { name: "text_show";
5113 signal: "elm,state,text,visible";
5116 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5117 set_state(PART:"elm.text", "visible", 0.0);
5119 set_state(PART:"elm.text", "disabled_visible", 0.0);
5122 program { name: "text_hide";
5123 signal: "elm,state,text,hidden";
5125 action: STATE_SET "default" 0.0;
5128 program { name: "disable";
5129 signal: "elm,state,disabled";
5131 action: STATE_SET "disabled" 0.0;
5132 target: "button_image";
5135 after: "disable_text";
5137 program { name: "disable_text";
5141 get_state(PART:"elm.text", st, 30, vl);
5142 if (!strcmp(st, "visible"))
5143 set_state(PART:"elm.text", "disabled_visible", 0.0);
5145 set_state(PART:"elm.text", "disabled", 0.0);
5146 set_int(button_state, BUTTON_STATE_DISABLED);
5149 program { name: "enable";
5150 signal: "elm,state,enabled";
5152 action: STATE_SET "default" 0.0;
5153 target: "button_image";
5156 after: "enable_text";
5158 program { name: "enable_text";
5162 get_state(PART:"elm.text", st, 30, vl);
5163 if (!strcmp(st, "disabled_visible"))
5164 set_state(PART:"elm.text", "visible", 0.0);
5166 set_state(PART:"elm.text", "default", 0.0);
5167 set_int(button_state, BUTTON_STATE_ENABLED);
5170 program { name: "focused";
5171 //signal: "elm,action,focus";
5173 action: STATE_SET "focused" 0.0;
5174 target: "button_image";
5177 program { name: "unfocused";
5178 //signal: "elm,action,unfocus";
5180 action: STATE_SET "default" 0.0;
5181 target: "button_image";
5182 action: STATE_SET "visible" 0.0;
5188 ////////////////////////////////////////////////////////////////////
5189 group { name: "elm/button/base/naviframe/title_icon";
5191 part { name: "button_image";
5194 description { state: "default" 0.0;
5196 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5197 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5199 description { state: "landscape" 0.0;
5201 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5202 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5205 part { name: "top_padding";
5208 description { state: "default" 0.0;
5210 min: BUTTON_NAVIFRAME_TITLE_ICON_TOP_PADDING_INC;
5213 rel1 { relative: 0.0 0.0; to: "button_image"; }
5214 rel2 { relative: 1.0 0.0; to: "button_image"; }
5216 description { state: "landscape" 0.0;
5217 inherit: "default" 0.0;
5218 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_TOP_PADDING_INC;
5221 part { name: "elm.swallow.content";
5224 clip_to: "elm.icon.clipper";
5225 description { state: "default" 0.0;
5227 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5230 rel1 { relative: 0.0 1.0; to: "top_padding"; }
5231 rel2 { relative: 1.0 1.0; to: "button_image"; }
5233 description { state: "visible" 0.0;
5234 inherit: "default" 0.0;
5238 part { name: "elm.swallow.icon.proxy";
5241 clip_to: "elm.icon.proxy.clipper";
5242 description { state: "default" 0.0;
5243 source: "elm.swallow.content";
5244 rel1.to: "elm.swallow.content";
5246 rel2.to: "elm.swallow.content";
5250 part { name: "elm.icon.proxy.clipper";
5252 description { state: "default" 0.0;
5253 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5255 description { state: "clicked" 0.0;
5256 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5258 description { state: "disabled" 0.0;
5259 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5262 part { name: "elm.icon.clipper";
5264 description { state: "default" 0.0;
5265 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5267 description { state: "clicked" 0.0;
5268 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5270 description { state: "disabled" 0.0;
5271 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5274 part { name: "over2";
5276 ignore_flags: ON_HOLD;
5277 description { state: "default" 0.0;
5281 part { name: "over3";
5284 description { state: "default" 0.0;
5288 part { name: "disabler";
5290 description { state: "default" 0.0;
5294 description { state: "disabled" 0.0;
5295 inherit: "default" 0.0;
5301 program { name: "button_click";
5302 signal: "mouse,down,1";
5304 action: SIGNAL_EMIT "elm,action,press" "";
5305 after: "button_click_anim";
5307 program { name: "button_click_anim";
5309 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5310 set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0);
5313 program { name: "button_double_click";
5314 signal: "mouse,down,1,double";
5316 after: "button_click_anim";
5318 program { name: "button_unpress";
5319 action: SIGNAL_EMIT "elm,action,unpress" "";
5321 program { name: "button_mouseout_clicked";
5322 signal: "mouse,up,1";
5324 action: STATE_SET "default" 0.0;
5325 target: "elm.icon.clipper";
5326 target: "elm.icon.proxy.clipper";
5327 after: button_unpress;
5329 program { name: "touch_snd";
5330 signal: "mouse,clicked,1";
5332 action: PLAY_SAMPLE "touch_sound" 1.0;
5333 after: button_unclick3;
5335 program { name: "button_unclick3";
5336 action: SIGNAL_EMIT "elm,action,click" "";
5338 program { name: "icon_show";
5339 signal: "elm,state,icon,visible";
5341 action: STATE_SET "visible" 0.0;
5342 target: "elm.swallow.content";
5344 program { name: "icon_hide";
5345 signal: "elm,state,icon,hidden";
5347 action: STATE_SET "default" 0.0;
5348 target: "elm.swallow.content";
5350 program { name: "disable";
5351 signal: "elm,state,disabled";
5354 set_state(PART:"disabler", "disabled", 0.0);
5355 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5356 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
5359 program { name: "enable";
5360 signal: "elm,state,enabled";
5363 set_state(PART:"disabler", "default", 0.0);
5364 set_state(PART:"elm.icon.clipper", "default", 0.0);
5365 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
5368 program { name: "change_to_landscape";
5369 signal: "elm,state,landscape";
5371 action: STATE_SET "landscape" 0.0;
5372 target: "button_image";
5373 target: "top_padding";
5375 program { name: "change_to_portrait";
5376 signal: "elm,state,portrait";
5378 action: STATE_SET "default" 0.0;
5379 target: "button_image";
5380 target: "top_padding";
5382 /* program { name: "landscape_mode";
5384 signal: "elm,state,orient,90";
5385 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5387 program { name: "landscape_mode2";
5389 signal: "elm,state,orient,270";
5390 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5392 program { name: "portrait_mode";
5394 signal: "elm,state,orient,0";
5395 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5397 program { name: "portrait_mode2";
5399 signal: "elm,state,orient,180";
5400 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5405 /////////////////////////////////////////////////////////////////////////////////////////
5406 group { name: "elm/button/base/naviframe/more/default";
5408 image: "00_icon_more.png" COMP;
5411 part { name: "button_image";
5414 description { state: "default" 0.0;
5415 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5416 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5419 description { state: "landscape" 0.0;
5420 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5421 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5425 part { name: "bottom_padding";
5429 description { state: "default" 0.0;
5430 min: BUTTON_NAVIFRAME_MORE_BOTTOM_PADDING_INC;
5433 rel1 { relative: 0.0 1.0; to: "button_image"; }
5434 rel2.to: "button_image";
5438 part { name: "more_image";
5441 clip_to: "more_image.clipper";
5442 description { state: "default" 0.0;
5443 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5444 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5446 rel1.to: "button_image";
5447 rel2.to: "button_image";
5448 image.normal: "00_icon_more.png";
5450 description { state: "title_button" 0.0;
5451 inherit: "default" 0.0;
5453 rel1 { relative: 0.0 1.0; to: "bottom_padding"; }
5454 rel2.to: "bottom_padding";
5457 part { name: "more_image.clipper";
5459 description { state: "default" 0.0;
5460 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5462 description { state: "clicked" 0.0;
5463 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5465 description { state: "disabled" 0.0;
5466 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5469 part { name: "elm.text.badge.bg";
5473 state: "default" 0.0;
5476 to: "left.padding.text.badge";
5480 to: "right.padding.text.badge";
5485 normal: "00_badge_bg.png";
5490 description { state: "visible" 0.0;
5491 inherit: "default" 0.0;
5495 part { name: "left.padding.text.badge";
5499 state: "default" 0.0;
5504 to: "elm.text.badge";
5508 to: "elm.text.badge";
5514 part { name: "right.padding.text.badge";
5518 state: "default" 0.0;
5533 part { name: "elm.text.badge";
5538 state: "default" 0.0;
5546 to: "right.padding.text.badge";
5550 color: 10 100 208 255;
5552 font: "Tizen:style=Bold";
5558 description { state: "visible" 0.0;
5559 inherit: "default" 0.0;
5563 part { name: "over2";
5565 ignore_flags: ON_HOLD;
5566 description { state: "default" 0.0;
5570 part { name: "over3";
5573 description { state: "default" 0.0;
5577 part { name: "disabler";
5579 description { state: "default" 0.0;
5583 description { state: "disabled" 0.0;
5584 inherit: "default" 0.0;
5590 program { name: "button_click";
5591 signal: "mouse,down,1";
5593 action: SIGNAL_EMIT "elm,action,press" "";
5594 after: "button_click_anim";
5596 program { name: "button_click_anim";
5598 set_state(PART:"more_image.clipper", "clicked", 0.0);
5601 program { name: "button_double_click";
5602 signal: "mouse,down,1,double";
5604 after: "button_click_anim";
5606 program { name: "button_unclick";
5607 signal: "mouse,up,1";
5609 action: SIGNAL_EMIT "elm,action,unpress" "";
5610 after: "button_unclick_anim";
5612 program { name: "button_unclick_anim";
5614 set_state(PART:"more_image.clipper", "default", 0.0);
5617 program { name: "touch_snd";
5618 signal: "mouse,clicked,1";
5620 action: PLAY_SAMPLE "touch_sound" 1.0;
5621 after: button_unclick3;
5623 program { name: "button_unclick3";
5624 action: SIGNAL_EMIT "elm,action,click" "";
5626 program { name: "badge_text_show";
5627 signal: "elm,state,elm.text.badge,visible";
5629 action: STATE_SET "visible" 0.0;
5630 target: "elm.text.badge";
5631 target: "elm.text.badge.bg";
5633 program { name: "badge_text_hide";
5634 signal: "elm,state,elm.text.badge,hidden";
5636 action: STATE_SET "default" 0.0;
5637 target: "elm.text.badge";
5638 target: "elm.text.badge.bg";
5640 program { name: "disable";
5641 signal: "elm,state,disabled";
5644 set_state(PART:"disabler", "disabled", 0.0);
5645 set_state(PART:"more_image.clipper", "disabled", 0.0);
5648 program { name: "enable";
5649 signal: "elm,state,enabled";
5652 set_state(PART:"disabler", "default", 0.0);
5653 set_state(PART:"more_image.clipper", "default", 0.0);
5656 program { name: "change_to_landscape";
5657 signal: "elm,state,landscape";
5659 action: STATE_SET "landscape" 0.0;
5660 target: "button_image";
5662 program { name: "change_to_portrait";
5663 signal: "elm,state,portrait";
5665 action: STATE_SET "default" 0.0;
5666 target: "button_image";
5668 program { name: "landscape_mode";
5670 signal: "elm,state,orient,90";
5671 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5673 program { name: "landscape_mode2";
5675 signal: "elm,state,orient,270";
5676 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5678 program { name: "portrait_mode";
5680 signal: "elm,state,orient,0";
5681 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5683 program { name: "portrait_mode2";
5685 signal: "elm,state,orient,180";
5686 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5691 ///////////////////////////////////////////////////////////////////////////////////////
5692 group { name: "elm/button/base/tickernoti";
5694 image: "00_notification_button_bg.png" COMP;
5695 image: "00_notification_button_bg_press.png" COMP;
5696 image: "00_notification_button_bg_dim.png" COMP;
5699 public button_state = BUTTON_STATE_ENABLED;
5702 part { name: "button_image";
5704 description { state: "default" 0.0;
5705 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5706 max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5708 normal: "00_notification_button_bg.png";
5709 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
5713 description { state: "clicked" 0.0;
5714 inherit: "default" 0.0;
5715 image.normal: "00_notification_button_bg_press.png";
5717 description { state: "disabled" 0.0;
5718 inherit: "default" 0.0;
5719 image.normal: "00_notification_button_bg_dim.png";
5721 description { state: "focused" 0.0;
5722 inherit: "default" 0.0;
5723 image.normal: "00_notification_button_bg_press.png";
5726 part { name: "padding_left_top";
5730 description { state: "default" 0.0;
5733 rel2.relative: 0.0 0.0;
5734 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5742 description { state: "default" 0.0;
5743 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5746 description { state: "visible" 0.0;
5747 inherit: "default" 0.0;
5749 description { state: "icononly" 0.0;
5750 inherit: "default" 0.0;
5753 part { name: "padding_right_bottom";
5757 description { state: "default" 0.0;
5759 rel1.relative: 1.0 1.0;
5760 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5765 part { name: "icon_rect";
5769 description { state: "default" 0.0;
5775 to: "padding_left_top";
5779 to_x: "padding_left_top";
5780 to_y: "padding_right_bottom";
5784 description { state: "visible" 0.0;
5785 inherit: "default" 0.0;
5786 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5787 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5789 description { state: "icononly" 0.0;
5790 inherit: "default" 0.0;
5793 part { name: "padding_after_icon";
5797 description { state: "default" 0.0; //when only icon or no icon is there
5806 rel2.to: "icon_rect";
5808 description { state: "visible" 0.0;
5809 inherit: "default" 0.0;
5810 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5812 description { state: "icononly" 0.0;
5813 inherit: "default" 0.0;
5816 part { name: "padding_before_text";
5820 description { state: "default" 0.0; //when only icon or no icon is there
5824 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5828 to_y: "padding_left_top";
5833 to_y: "padding_right_bottom";
5837 part { name: "elm.swallow.content";
5841 description { state: "default" 0.0;
5847 to: "padding_left_top";
5851 to_x: "padding_left_top";
5852 to_y: "padding_right_bottom";
5855 description { state: "visible" 0.0;
5857 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5858 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5862 to_x: "padding_before_text";
5863 to_y: "padding_left_top";
5867 to_x: "padding_before_text";
5868 to_y: "padding_right_bottom";
5871 description { state: "icononly" 0.0;
5872 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5873 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5876 part { name: "elm.text";
5879 effect: FAR_SHADOW BOTTOM;
5882 description { state: "default" 0.0;
5886 to_x: "padding_after_icon";
5887 to_y: "padding_left_top";
5891 to: "padding_right_bottom";
5893 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
5894 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5896 font: "Tizen:style=Regular";
5897 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
5900 text_class: "tizen";
5903 description { state: "visible" 0.0;
5904 inherit: "default" 0.0;
5907 description { state: "clicked" 0.0;
5908 inherit: "default" 0.0;
5910 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5912 description { state: "disabled" 0.0;
5913 inherit: "default" 0.0;
5915 description { state: "disabled_visible" 0.0;
5916 inherit: "default" 0.0;
5917 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
5918 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5921 description { state: "focused" 0.0;
5922 inherit: "default" 0.0;
5924 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5927 part { name: "over2";
5930 ignore_flags: ON_HOLD;
5931 description { state: "default" 0.0;
5935 part { name: "over3";
5938 description { state: "default" 0.0;
5942 part { name: "clipper";
5944 description { state: "default" 0.0;
5945 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5947 description { state: "disabled" 0.0;
5948 inherit: "default" 0.0;
5949 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5952 part { name: "disabler";
5954 description { state: "default" 0.0;
5958 description { state: "disabled" 0.0;
5959 inherit: "default" 0.0;
5965 program { name: "button_click";
5966 signal: "mouse,down,1";
5968 action: SIGNAL_EMIT "elm,action,press" "";
5969 after: "button_click_anim";
5971 program { name: "button_click_anim";
5972 action: STATE_SET "clicked" 0.0;
5973 target: "button_image";
5974 after: "text_clicked";
5976 program { name: "text_clicked";
5980 get_state(PART:"elm.text", st, 30, vl);
5981 if (!strcmp(st, "visible"))
5982 set_state(PART:"elm.text", "clicked", 0.0);
5985 program { name: "button_double_click";
5986 signal: "mouse,down,1,double";
5988 after: "button_click_anim";
5990 program { name: "button_unpress";
5991 action: SIGNAL_EMIT "elm,action,unpress" "";
5993 program { name: "button_mouseout_clicked";
5994 signal: "mouse,up,1";
5999 get_state(PART:"elm.swallow.content", st, 30, vl);
6000 if (strcmp(st, "icononly"))
6002 emit("elm,action,default,text,set", "");
6003 set_state(PART:"elm.text", "visible", 0.0);
6005 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6006 set_state(PART:"button_image", "default", 0.0);
6008 after: button_unpress;
6010 program { name: "touch_snd";
6011 signal: "mouse,clicked,1";
6013 action: PLAY_SAMPLE "touch_sound" 1.0;
6014 after: button_unclick3;
6016 program { name: "button_unclick3";
6017 action: SIGNAL_EMIT "elm,action,click" "";
6019 program { name: "text_show";
6020 signal: "elm,state,text,visible";
6025 get_state(PART:"elm.swallow.content", st, 30, vl);
6026 if (!strcmp(st, "icononly"))
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);
6033 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6034 set_state(PART:"elm.text", "visible", 0.0);
6036 set_state(PART:"elm.text", "disabled_visible", 0.0);
6039 program { name: "text_hide";
6040 signal: "elm,state,text,hidden";
6045 get_state(PART:"elm.swallow.content", st, 30, vl);
6046 if (!strcmp(st, "visible"))
6048 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6049 set_state(PART:"icon_rect", "icononly", 0.0);
6050 set_state(PART:"padding_after_icon", "icononly", 0.0);
6051 set_state(PART:"bg", "icononly", 0.0);
6053 set_state(PART:"elm.text", "default", 0.0);
6056 program { name: "icon_show";
6057 signal: "elm,state,icon,visible";
6062 get_state(PART:"elm.text", st, 30, vl);
6063 if (!strcmp(st, "visible"))
6065 set_state(PART:"elm.swallow.content", "visible", 0.0);
6066 set_state(PART:"icon_rect", "visible", 0.0);
6067 set_state(PART:"padding_after_icon", "visible", 0.0);
6068 set_state(PART:"bg", "visible", 0.0);
6072 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6073 set_state(PART:"icon_rect", "icononly", 0.0);
6074 set_state(PART:"padding_after_icon", "icononly", 0.0);
6075 set_state(PART:"bg", "icononly", 0.0);
6079 program { name: "icon_hide";
6080 signal: "elm,state,icon,hidden";
6082 action: STATE_SET "default" 0.0;
6083 target: "elm.swallow.content";
6084 target: "padding_after_icon";
6085 target: "icon_rect";
6088 program { name: "disable";
6089 signal: "elm,state,disabled";
6091 action: STATE_SET "disabled" 0.0;
6092 target: "button_image";
6095 after: "disable_text";
6097 program { name: "disable_text";
6101 get_state(PART:"elm.text", st, 30, vl);
6102 if (!strcmp(st, "visible"))
6103 set_state(PART:"elm.text", "disabled_visible", 0.0);
6105 set_state(PART:"elm.text", "disabled", 0.0);
6106 set_int(button_state, BUTTON_STATE_DISABLED);
6109 program { name: "enable";
6110 signal: "elm,state,enabled";
6112 action: STATE_SET "default" 0.0;
6113 target: "button_image";
6116 after: "enable_text";
6118 program { name: "enable_text";
6122 get_state(PART:"elm.text", st, 30, vl);
6123 if (!strcmp(st, "disabled_visible"))
6124 set_state(PART:"elm.text", "visible", 0.0);
6126 set_state(PART:"elm.text", "default", 0.0);
6127 set_int(button_state, BUTTON_STATE_ENABLED);
6130 program { name: "focused";
6131 //signal: "elm,action,focus";
6133 action: STATE_SET "focused" 0.0;
6134 target: "button_image";
6137 program { name: "unfocused";
6138 //signal: "elm,action,unfocus";
6140 action: STATE_SET "default" 0.0;
6141 target: "button_image";
6142 after: "unfocus_text";
6144 program { name: "unfocus_text";
6145 action: STATE_SET "visible" 0.0;
6151 ///////////////////////////////////////////////////////////////////////////////////////
6152 group { name: "elm/button/base/expandable_number";
6153 alias: "elm/button/base/text_only/expandable_number";
6155 image: "00_button_01.png" COMP;
6156 image: "00_button_01_press.png" COMP;
6157 image: "00_button_01_dim.png" COMP;
6158 image: "00_arrow_expand.png" COMP;
6161 public button_state = BUTTON_STATE_ENABLED;
6164 part { name: "button_image";
6166 description { state: "default" 0.0;
6167 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6168 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6170 normal: "00_button_01.png";
6171 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6175 description { state: "clicked" 0.0;
6176 inherit: "default" 0.0;
6177 image.normal: "00_button_01_press.png";
6179 description { state: "disabled" 0.0;
6180 inherit: "default" 0.0;
6181 image.normal: "00_button_01_dim.png";
6183 description { state: "focused" 0.0;
6184 inherit: "default" 0.0;
6185 image.normal: "00_button_01_press.png";
6188 part { name: "padding_left_top";
6192 description { state: "default" 0.0;
6195 rel2.relative: 0.0 0.0;
6196 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6200 part { name: "padding_right_bottom";
6204 description { state: "default" 0.0;
6207 rel1.relative: 1.0 1.0;
6208 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6212 part { name: "icon_rect";
6216 description { state: "default" 0.0;
6218 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6219 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6223 to_x: "padding_right_bottom";
6224 to_y: "padding_left_top";
6228 to: "padding_right_bottom";
6233 part { name: "arrow_expand";
6235 clip_to: "icon_clipper";
6237 description { state: "default" 0.0;
6239 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6240 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6242 rel1.to: "icon_rect";
6243 rel2.to: "icon_rect";
6244 image.normal:"00_arrow_expand.png";
6247 part { name: "elm.text";
6250 effect: SHADOW BOTTOM;
6252 description { state: "default" 0.0;
6253 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6254 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6258 to: "padding_left_top";
6262 to_x:"padding_left_top";
6263 to_y:"padding_right_bottom";
6266 color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6267 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6269 font: "Tizen:style=Regular";
6270 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6274 text_class: "tizen";
6277 description { state: "visible" 0.0;
6278 inherit: "default" 0.0;
6280 description { state: "clicked" 0.0;
6281 inherit: "default" 0.0;
6282 color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
6284 description { state: "disabled" 0.0;
6285 inherit: "default" 0.0;
6287 description { state: "disabled_visible" 0.0;
6288 inherit: "default" 0.0;
6289 color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6290 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
6292 description { state: "focused" 0.0;
6293 inherit: "default" 0.0;
6294 color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6297 part { name: "icon_clipper";
6300 description { state: "default" 0.0;
6301 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6303 description { state: "clicked" 0.0;
6304 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6306 description { state: "disabled" 0.0;
6307 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6310 part { name: "over2";
6313 ignore_flags: ON_HOLD;
6314 description { state: "default" 0.0;
6318 part { name: "over3";
6321 description { state: "default" 0.0;
6325 part { name: "disabler";
6327 description { state: "default" 0.0;
6331 description { state: "disabled" 0.0;
6332 inherit: "default" 0.0;
6338 program { name: "button_click";
6339 signal: "mouse,down,1";
6341 action: SIGNAL_EMIT "elm,action,press" "";
6342 after: "button_click_anim";
6344 program { name: "button_click_anim";
6345 action: STATE_SET "clicked" 0.0;
6346 target: "button_image";
6347 target: "icon_clipper";
6348 after: "text_clicked";
6350 program { name: "text_clicked";
6354 get_state(PART:"elm.text", st, 30, vl);
6355 if (!strcmp(st, "visible"))
6356 set_state(PART:"elm.text", "clicked", 0.0);
6359 program { name: "button_double_click";
6360 signal: "mouse,down,1,double";
6362 after: "button_click_anim";
6364 program { name: "button_unpress";
6365 action: SIGNAL_EMIT "elm,action,unpress" "";
6367 program { name: "button_mouseout_clicked";
6368 signal: "mouse,up,1";
6371 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6373 set_state(PART:"button_image", "default", 0.0);
6374 set_state(PART:"elm.text", "visible", 0.0);
6375 set_state(PART:"icon_clipper", "default", 0.0);
6378 after: button_unpress;
6380 program { name: "touch_snd";
6381 signal: "mouse,clicked,1";
6383 action: PLAY_SAMPLE "touch_sound" 1.0;
6384 after: button_unclick3;
6386 program { name: "button_unclick3";
6387 action: SIGNAL_EMIT "elm,action,click" "";
6389 program { name: "text_show";
6390 signal: "elm,state,text,visible";
6393 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6394 set_state(PART:"elm.text", "visible", 0.0);
6396 set_state(PART:"elm.text", "disabled_visible", 0.0);
6399 program { name: "text_hide";
6400 signal: "elm,state,text,hidden";
6403 set_state(PART:"elm.text", "default", 0.0);
6406 program { name: "disable";
6407 signal: "elm,state,disabled";
6409 action: STATE_SET "disabled" 0.0;
6410 target: "button_image";
6412 target: "icon_clipper";
6413 after: "disable_text";
6415 program { name: "disable_text";
6419 get_state(PART:"elm.text", st, 30, vl);
6420 if (!strcmp(st, "visible"))
6421 set_state(PART:"elm.text", "disabled_visible", 0.0);
6423 set_state(PART:"elm.text", "disabled", 0.0);
6424 set_int(button_state, BUTTON_STATE_DISABLED);
6427 program { name: "enable";
6428 signal: "elm,state,enabled";
6430 action: STATE_SET "default" 0.0;
6431 target: "button_image";
6433 target: "icon_clipper";
6434 after: "enable_text";
6436 program { name: "enable_text";
6440 get_state(PART:"elm.text", st, 30, vl);
6441 if (!strcmp(st, "disabled_visible"))
6442 set_state(PART:"elm.text", "visible", 0.0);
6444 set_state(PART:"elm.text", "default", 0.0);
6445 set_int(button_state, BUTTON_STATE_ENABLED);
6448 program { name: "focused";
6449 //signal: "elm,action,focus";
6451 action: STATE_SET "focused" 0.0;
6452 target: "button_image";
6455 program { name: "unfocused";
6456 //signal: "elm,action,unfocus";
6458 action: STATE_SET "default" 0.0;
6459 target: "button_image";
6460 after: "unfocus_text";
6462 program { name: "unfocus_text";
6463 action: STATE_SET "visible" 0.0;
6469 ////////////////////////////////////////////////////////////////////////
6470 group { name: "elm/button/base/bubble_sent";
6471 inherit: "elm/button/base/style1";
6473 image: "00_messagebubble_button_sent.png" COMP;
6474 image: "00_messagebubble_button_sent_press.png" COMP;
6475 image: "00_messagebubble_button_sent_dim.png" COMP;
6478 part { name: "button_image";
6480 description { state: "default" 0.0;
6482 normal: "00_messagebubble_button_sent.png";
6483 border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
6487 description { state: "clicked" 0.0;
6488 inherit: "default" 0.0;
6489 image.normal: "00_messagebubble_button_sent_press.png";
6491 description { state: "disabled" 0.0;
6492 inherit: "default" 0.0;
6493 image.normal: "00_messagebubble_button_sent_dim.png";
6495 description { state: "focused" 0.0;
6496 inherit: "default" 0.0;
6497 image.normal: "00_messagebubble_button_sent_press.png";
6500 part { name: "elm.text";
6503 effect: FAR_SHADOW BOTTOM;
6506 description { state: "default" 0.0;
6510 to_x: "padding_after_icon";
6511 to_y: "padding_left_top";
6515 to: "padding_right_bottom";
6517 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6518 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6520 font: "Tizen:style=Regular";
6521 size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
6524 text_class: "tizen";
6527 description { state: "visible" 0.0;
6528 inherit: "default" 0.0;
6531 description { state: "clicked" 0.0;
6532 inherit: "default" 0.0;
6534 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6536 description { state: "disabled" 0.0;
6537 inherit: "default" 0.0;
6539 description { state: "disabled_visible" 0.0;
6540 inherit: "default" 0.0;
6541 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6544 description { state: "focused" 0.0;
6545 inherit: "default" 0.0;
6547 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6553 ////////////////////////////////////////////////////////////////////////
6554 group { name: "elm/button/base/bubble_sent/multiline";
6555 inherit: "elm/button/base/bubble_sent";
6557 style { name: "bubble_sent_multiline";
6558 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";
6565 part { name: "elm.text";
6568 effect: FAR_SHADOW BOTTOM;
6571 description { state: "default" 0.0;
6576 to_x: "padding_after_icon";
6577 to_y: "padding_left_top";
6581 to: "padding_right_bottom";
6583 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6584 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6586 style: "bubble_sent_multiline";
6589 description { state: "visible" 0.0;
6590 inherit: "default" 0.0;
6593 description { state: "clicked" 0.0;
6594 inherit: "default" 0.0;
6596 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6598 description { state: "disabled" 0.0;
6599 inherit: "default" 0.0;
6601 description { state: "disabled_visible" 0.0;
6602 inherit: "default" 0.0;
6603 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6606 description { state: "focused" 0.0;
6607 inherit: "default" 0.0;
6609 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6615 ///////////////////////////////////////////////////////////////////////
6616 group { name: "elm/button/base/bubble_receive";
6617 inherit: "elm/button/base/style1";
6619 image: "00_messagebubble_button_receive.png" COMP;
6620 image: "00_messagebubble_button_receive_press.png" COMP;
6621 image: "00_messagebubble_button_receive_dim.png" COMP;
6624 part { name: "button_image";
6626 description { state: "default" 0.0;
6628 normal: "00_messagebubble_button_receive.png";
6629 border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
6633 description { state: "clicked" 0.0;
6634 inherit: "default" 0.0;
6635 image.normal: "00_messagebubble_button_receive_press.png";
6637 description { state: "disabled" 0.0;
6638 inherit: "default" 0.0;
6639 image.normal: "00_messagebubble_button_receive_dim.png";
6641 description { state: "focused" 0.0;
6642 inherit: "default" 0.0;
6643 image.normal: "00_messagebubble_button_receive_press.png";
6646 part { name: "elm.text";
6649 effect: SHADOW BOTTOM;
6652 description { state: "default" 0.0;
6656 to_x: "padding_after_icon";
6657 to_y: "padding_left_top";
6661 to: "padding_right_bottom";
6663 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6664 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6666 font: "Tizen:style=Regular";
6667 size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
6670 text_class: "tizen";
6673 description { state: "visible" 0.0;
6674 inherit: "default" 0.0;
6677 description { state: "clicked" 0.0;
6678 inherit: "default" 0.0;
6680 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6682 description { state: "disabled" 0.0;
6683 inherit: "default" 0.0;
6685 description { state: "disabled_visible" 0.0;
6686 inherit: "default" 0.0;
6687 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6690 description { state: "focused" 0.0;
6691 inherit: "default" 0.0;
6693 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6699 ///////////////////////////////////////////////////////////////////////
6700 group { name: "elm/button/base/bubble_receive/multiline";
6701 inherit: "elm/button/base/bubble_receive";
6703 style { name: "bubble_receive_multiline";
6704 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";
6711 part { name: "elm.text";
6714 effect: SHADOW BOTTOM;
6717 description { state: "default" 0.0;
6722 to_x: "padding_after_icon";
6723 to_y: "padding_left_top";
6727 to: "padding_right_bottom";
6729 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6730 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6732 style: "btn_style1_multiline";
6735 description { state: "visible" 0.0;
6736 inherit: "default" 0.0;
6739 description { state: "clicked" 0.0;
6740 inherit: "default" 0.0;
6742 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6744 description { state: "disabled" 0.0;
6745 inherit: "default" 0.0;
6747 description { state: "disabled_visible" 0.0;
6748 inherit: "default" 0.0;
6749 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6752 description { state: "focused" 0.0;
6753 inherit: "default" 0.0;
6755 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6761 ///////////////////////////////////////////////////////////////////////
6762 group { name: "elm/button/base/bubble_circle/receive";
6764 image: "00_messagebubble_circle_receive.png" COMP;
6765 image: "00_messagebubble_circle_receive_press.png" COMP;
6766 image: "00_messagebubble_circle_receive_dim.png" COMP;
6767 image: "00_button_right.png" COMP;
6768 image: "00_button_right_press.png" COMP;
6771 part { name: "button_image";
6773 description { state: "default" 0.0;
6774 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6775 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6776 image.normal: "00_messagebubble_circle_receive.png";
6779 state: "clicked" 0.0;
6780 inherit: "default" 0.0;
6781 image.normal: "00_messagebubble_circle_receive_press.png";
6784 state: "disabled" 0.0;
6785 inherit: "default" 0.0;
6786 image.normal: "00_messagebubble_circle_receive_dim.png";
6789 part { name: "image";
6791 clip_to: "icon_clipper";
6792 description { state: "default" 0.0;
6793 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6794 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6795 image.normal: "00_button_right.png";
6798 state: "clicked" 0.0;
6799 inherit: "default" 0.0;
6800 image.normal: "00_button_right_press.png";
6803 state: "disabled" 0.0;
6804 inherit: "default" 0.0;
6807 part { name: "icon_clipper";
6810 description { state: "default" 0.0;
6811 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
6813 description { state: "clicked" 0.0;
6814 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
6816 description { state: "disabled" 0.0;
6817 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
6820 part { name: "over1";
6822 ignore_flags: ON_HOLD;
6823 description { state: "default" 0.0;
6827 part { name: "over2";
6830 description { state: "default" 0.0;
6834 part { name: "disabler";
6836 description { state: "default" 0.0;
6840 description { state: "disabled" 0.0;
6841 inherit: "default" 0.0;
6847 program { name: "button_click";
6848 signal: "mouse,down,1";
6850 action: SIGNAL_EMIT "elm,action,press" "";
6851 after: "button_click_anim";
6853 program { name: "button_click_anim";
6854 action: STATE_SET "clicked" 0.0;
6855 target: "button_image";
6857 target: "icon_clipper";
6859 program { name: "button_double_click";
6860 signal: "mouse,down,1,double";
6862 after: "button_click_anim";
6864 program { name: "button_unclick";
6865 signal: "mouse,up,1";
6867 action: SIGNAL_EMIT "elm,action,unpress" "";
6868 after: "button_unclick_anim";
6870 program { name: "button_unclick_anim";
6871 action: STATE_SET "default" 0.0;
6872 target: "button_image";
6874 target: "icon_clipper";
6876 program { name: "touch_snd";
6877 signal: "mouse,clicked,1";
6879 action: PLAY_SAMPLE "touch_sound" 1.0;
6880 after: button_unclick3;
6882 program { name: "button_unclick3";
6883 action: SIGNAL_EMIT "elm,action,click" "";
6885 program { name: "disable";
6886 signal: "elm,state,disabled";
6888 action: STATE_SET "disabled" 0.0;
6890 target: "button_image";
6891 target: "icon_clipper";
6894 program { name: "enable";
6895 signal: "elm,state,enabled";
6897 action: STATE_SET "default" 0.0;
6899 target: "button_image";
6900 target: "icon_clipper";
6905 ///////////////////////////////////////////////////////////////////////
6906 group { name: "elm/button/base/bubble_circle/sent";
6908 image: "00_messagebubble_circle_sent.png" COMP;
6909 image: "00_messagebubble_circle_sent_press.png" COMP;
6910 image: "00_messagebubble_circle_sent_dim.png" COMP;
6911 image: "00_button_right.png" COMP;
6912 image: "00_button_right_press.png" COMP;
6915 part { name: "button_image";
6917 description { state: "default" 0.0;
6918 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6919 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6920 image.normal: "00_messagebubble_circle_sent.png";
6923 state: "clicked" 0.0;
6924 inherit: "default" 0.0;
6925 image.normal: "00_messagebubble_circle_sent_press.png";
6928 state: "disabled" 0.0;
6929 inherit: "default" 0.0;
6930 image.normal: "00_messagebubble_circle_sent_dim.png";
6933 part { name: "image";
6935 clip_to: "icon_clipper";
6936 description { state: "default" 0.0;
6937 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6938 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6939 image.normal: "00_button_right.png";
6942 state: "clicked" 0.0;
6943 inherit: "default" 0.0;
6944 image.normal: "00_button_right_press.png";
6947 state: "disabled" 0.0;
6948 inherit: "default" 0.0;
6951 part { name: "icon_clipper";
6954 description { state: "default" 0.0;
6955 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
6957 description { state: "clicked" 0.0;
6958 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
6960 description { state: "disabled" 0.0;
6961 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
6964 part { name: "over1";
6966 ignore_flags: ON_HOLD;
6967 description { state: "default" 0.0;
6971 part { name: "over2";
6974 description { state: "default" 0.0;
6978 part { name: "disabler";
6980 description { state: "default" 0.0;
6984 description { state: "disabled" 0.0;
6985 inherit: "default" 0.0;
6991 program { name: "button_click";
6992 signal: "mouse,down,1";
6994 action: SIGNAL_EMIT "elm,action,press" "";
6995 after: "button_click_anim";
6997 program { name: "button_click_anim";
6998 action: STATE_SET "clicked" 0.0;
6999 target: "button_image";
7001 target: "icon_clipper";
7003 program { name: "button_double_click";
7004 signal: "mouse,down,1,double";
7006 after: "button_click_anim";
7008 program { name: "button_unclick";
7009 signal: "mouse,up,1";
7011 action: SIGNAL_EMIT "elm,action,unpress" "";
7012 after: "button_unclick_anim";
7014 program { name: "button_unclick_anim";
7015 action: STATE_SET "default" 0.0;
7016 target: "button_image";
7018 target: "icon_clipper";
7020 program { name: "touch_snd";
7021 signal: "mouse,clicked,1";
7023 action: PLAY_SAMPLE "touch_sound" 1.0;
7024 after: button_unclick3;
7026 program { name: "button_unclick3";
7027 action: SIGNAL_EMIT "elm,action,click" "";
7029 program { name: "disable";
7030 signal: "elm,state,disabled";
7032 action: STATE_SET "disabled" 0.0;
7034 target: "button_image";
7035 target: "icon_clipper";
7037 program { name: "enable";
7038 signal: "elm,state,enabled";
7040 action: STATE_SET "default" 0.0;
7042 target: "button_image";
7043 target: "icon_clipper";
7048 //////////////////////////////////////////////////////////////////////////////////////
7049 group { name: "elm/button/base/editfield_clear";
7051 image: "00_EditField_clear" COMP;
7054 part { name: "button_image";
7057 description { state: "default" 0.0;
7060 description { state: "clicked" 0.0;
7061 inherit: "default" 0.0;
7063 description { state: "disabled" 0.0;
7064 inherit: "default" 0.0;
7066 description { state: "focused" 0.0;
7067 inherit: "default" 0.0;
7070 part { name: "clear_button";
7073 clip_to: "clear_button.clipper";
7074 description { state: "default" 0.0;
7075 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7076 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7079 image.normal: "00_EditField_clear.png";
7082 part { name: "clear_button.clipper";
7084 description { state: "default" 0.0;
7085 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7087 description { state: "clicked" 0.0;
7088 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7090 description { state: "disabled" 0.0;
7091 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7094 part { name: "over2";
7096 ignore_flags: ON_HOLD;
7097 description { state: "default" 0.0;
7101 part { name: "over3";
7104 description { state: "default" 0.0;
7108 part { name: "disabler";
7110 description { state: "default" 0.0;
7114 description { state: "disabled" 0.0;
7115 inherit: "default" 0.0;
7121 program { name: "button_click";
7122 signal: "mouse,down,1";
7124 action: SIGNAL_EMIT "elm,action,press" "";
7125 after: "button_click_anim";
7127 program { name: "button_click_anim";
7128 action: STATE_SET "clicked" 0.0;
7129 target: "button_image";
7130 target: "clear_button.clipper";
7132 program { name: "button_double_click";
7133 signal: "mouse,down,1,double";
7135 after: "button_click_anim";
7137 program { name: "button_unclick";
7138 signal: "mouse,up,1";
7140 action: SIGNAL_EMIT "elm,action,unpress" "";
7141 after: "button_unclick_anim";
7143 program { name: "button_unclick_anim";
7144 action: STATE_SET "default" 0.0;
7145 target: "button_image";
7146 target: "clear_button.clipper";
7148 program { name: "touch_snd";
7149 signal: "mouse,clicked,1";
7151 action: PLAY_SAMPLE "touch_sound" 1.0;
7152 after: button_unclick3;
7154 program { name: "button_unclick3";
7155 action: SIGNAL_EMIT "elm,action,click" "";
7157 program { name: "disable";
7158 signal: "elm,state,disabled";
7160 action: STATE_SET "disabled" 0.0;
7161 target: "button_image";
7163 target: "clear_button.clipper";
7165 program { name: "enable";
7166 signal: "elm,state,enabled";
7168 action: STATE_SET "default" 0.0;
7169 target: "button_image";
7171 target: "clear_button.clipper";
7176 group { name: "elm/button/base/search_clear";
7177 inherit: "elm/button/base/editfield_clear";
7179 part { name: "clear_button";
7182 clip_to: "clear_button.clipper";
7183 description { state: "default" 0.0;
7184 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7185 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7188 image.normal: "00_EditField_clear.png";
7195 ///////////////////////////////////////////////////////////////////////////////////////
7197 group { name: "elm/button/base/contacts/delete";
7199 image: "00_button_edit_Delete.png" COMP;
7200 image: "00_button_edit_Delete_press.png" COMP;
7201 image: "00_button_edit_dim.png" COMP;
7202 image: "00_button_edit_focus.png" COMP;
7205 public button_state = BUTTON_STATE_ENABLED;
7208 part { name: "button_image";
7210 description { state: "default" 0.0;
7211 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
7213 normal: "00_button_edit_Delete.png";
7214 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
7218 description { state: "clicked" 0.0;
7219 inherit: "default" 0.0;
7220 image.normal: "00_button_edit_Delete_press.png";
7222 description { state: "disabled" 0.0;
7223 inherit: "default" 0.0;
7224 image.normal: "00_button_edit_dim.png";
7226 description { state: "focused" 0.0;
7227 inherit: "default" 0.0;
7228 image.normal: "00_button_edit_focus.png";
7231 part { name: "padding_left_top";
7235 description { state: "default" 0.0;
7237 rel2.relative: 0.0 0.0;
7238 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
7243 part { name: "padding_right_bottom";
7247 description { state: "default" 0.0;
7249 rel1.relative: 1.0 1.0;
7250 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
7255 part { name: "padding_icon_text";
7259 description { state: "default" 0.0; //when only icon or no icon is there
7263 to: "elm.swallow.content";
7265 rel2.to: "elm.swallow.content";
7270 description { state: "icononly" 0.0;
7271 inherit: "default" 0.0;
7273 description { state: "visible" 0.0; //when icon is visible
7274 inherit: "default" 0.0;
7275 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
7278 part { name: "elm.swallow.content";
7282 description { state: "default" 0.0;
7287 to: "padding_left_top";
7291 to_x: "padding_left_top";
7292 to_y: "padding_right_bottom";
7296 description { state: "visible" 0.0;
7301 to: "padding_left_top";
7305 to_x: "padding_left_top";
7306 to_y: "padding_right_bottom";
7309 aspect_preference: VERTICAL;
7311 description { state: "icononly" 0.0;
7312 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
7315 to: "padding_left_top";
7319 to: "padding_right_bottom";
7322 aspect_preference: VERTICAL;
7325 part { name: "elm.text";
7330 description { state: "default" 0.0;
7333 to_x: "padding_icon_text";
7334 to_y: "padding_left_top";
7338 to: "padding_right_bottom";
7340 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
7342 font: "Tizen:style=Regular";
7343 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
7347 text_class: "tizen";
7350 description { state: "visible" 0.0;
7351 inherit: "default" 0.0;
7353 description { state: "clicked" 0.0;
7354 inherit: "default" 0.0;
7355 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
7357 description { state: "disabled" 0.0;
7358 inherit: "default" 0.0;
7360 description { state: "disabled_visible" 0.0;
7361 inherit: "default" 0.0;
7362 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
7364 description { state: "focused" 0.0;
7365 inherit: "default" 0.0;
7367 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
7370 part { name: "over2";
7373 ignore_flags: ON_HOLD;
7374 description { state: "default" 0.0;
7378 part { name: "over3";
7381 description { state: "default" 0.0;
7385 part { name: "clipper";
7387 description { state: "default" 0.0;
7388 color: 255 255 255 255;
7391 part { name: "disabler";
7393 description { state: "default" 0.0;
7397 description { state: "disabled" 0.0;
7398 inherit: "default" 0.0;
7404 program { name: "button_click";
7405 signal: "mouse,down,1";
7407 action: SIGNAL_EMIT "elm,action,press" "";
7408 after: "button_click_anim";
7410 program { name: "button_click_anim";
7411 action: STATE_SET "clicked" 0.0;
7412 target: "button_image";
7413 after: "text_clicked";
7415 program { name: "text_clicked";
7419 get_state(PART:"elm.text", st, 30, vl);
7420 if (!strcmp(st, "visible"))
7421 set_state(PART:"elm.text", "clicked", 0.0);
7424 program { name: "button_unpress";
7425 action: SIGNAL_EMIT "elm,action,unpress" "";
7427 program { name: "button_mouseout_clicked";
7428 signal: "mouse,up,1";
7433 get_state(PART:"elm.swallow.content", st, 30, vl);
7434 if (strcmp(st, "icononly"))
7436 emit("elm,action,default,text,set", "");
7437 set_state(PART:"elm.text", "visible", 0.0);
7439 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7440 set_state(PART:"button_image", "default", 0.0);
7442 after: button_unpress;
7444 program { name: "touch_snd";
7445 signal: "mouse,clicked,1";
7447 action: PLAY_SAMPLE "touch_sound" 1.0;
7448 after: button_unclick3;
7450 program { name: "button_unclick3";
7451 action: SIGNAL_EMIT "elm,action,click" "";
7453 program { name: "text_show";
7454 signal: "elm,state,text,visible";
7459 get_state(PART:"elm.swallow.content", st, 30, vl);
7460 if (!strcmp(st, "icononly"))
7462 set_state(PART:"elm.swallow.content", "visible", 0.0);
7463 set_state(PART:"padding_icon_text", "visible", 0.0);
7465 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7466 set_state(PART:"elm.text", "visible", 0.0);
7468 set_state(PART:"elm.text", "disabled_visible", 0.0);
7471 program { name: "text_hide";
7472 signal: "elm,state,text,hidden";
7477 get_state(PART:"elm.swallow.content", st, 30, vl);
7478 if (!strcmp(st, "visible"))
7480 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7481 set_state(PART:"padding_icon_text", "icononly", 0.0);
7483 set_state(PART:"elm.text", "default", 0.0);
7486 program { name: "icon_show";
7487 signal: "elm,state,icon,visible";
7492 get_state(PART:"elm.text", st, 30, vl);
7493 if (!strcmp(st, "visible"))
7495 set_state(PART:"elm.swallow.content", "visible", 0.0);
7496 set_state(PART:"padding_icon_text", "visible", 0.0);
7500 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7501 set_state(PART:"padding_icon_text", "icononly", 0.0);
7505 program { name: "icon_hide";
7506 signal: "elm,state,icon,hidden";
7508 action: STATE_SET "default" 0.0;
7509 target: "elm.swallow.content";
7510 target: "padding_icon_text";
7512 program { name: "disable";
7513 signal: "elm,state,disabled";
7515 action: STATE_SET "disabled" 0.0;
7516 target: "button_image";
7518 after: "disable_text";
7520 program { name: "disable_text";
7524 get_state(PART:"elm.text", st, 30, vl);
7525 if (!strcmp(st, "visible"))
7526 set_state(PART:"elm.text", "disabled_visible", 0.0);
7528 set_state(PART:"elm.text", "disabled", 0.0);
7529 set_int(button_state, BUTTON_STATE_DISABLED);
7532 program { name: "enable";
7533 signal: "elm,state,enabled";
7535 action: STATE_SET "default" 0.0;
7536 target: "button_image";
7538 after: "enable_text";
7540 program { name: "enable_text";
7544 get_state(PART:"elm.text", st, 30, vl);
7545 if (!strcmp(st, "disabled_visible"))
7546 set_state(PART:"elm.text", "visible", 0.0);
7548 set_state(PART:"elm.text", "default", 0.0);
7549 set_int(button_state, BUTTON_STATE_ENABLED);
7552 program { name: "focused";
7553 //signal: "elm,action,focus";
7555 action: STATE_SET "focused" 0.0;
7556 target: "button_image";
7559 program { name: "unfocused";
7560 //signal: "elm,action,unfocus";
7562 action: STATE_SET "default" 0.0;
7563 target: "button_image";
7564 after: "unfocus_text";
7566 program { name: "unfocus_text";
7567 action: STATE_SET "visible" 0.0;
7573 /////////////////////////////////////////////////////////////////////
7574 #define BUTTON_CONTACT_STYLES(style_name, image_normal, image_press) \
7575 group { name: "elm/button/base/contact/"style_name; \
7577 image: "00_circle_button.png" COMP; \
7578 image: "00_circle_button_press.png" COMP; \
7579 image: image_normal COMP; \
7580 image: image_press COMP; \
7583 part { name: "button_image"; \
7585 description { state: "default" 0.0; \
7586 min: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7587 max: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7588 image.normal: "00_circle_button.png"; \
7591 state: "clicked" 0.0; \
7592 inherit: "default" 0.0; \
7593 image.normal: "00_circle_button_press.png"; \
7596 state: "disabled" 0.0; \
7597 inherit: "default" 0.0; \
7598 image.normal: "00_circle_button.png"; \
7601 part { name: "button_center_part"; \
7603 clip_to: "disclip"; \
7604 description { state: "default" 0.0; \
7605 min: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7606 max: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7607 image.normal: image_normal; \
7610 state: "clicked" 0.0; \
7611 inherit: "default" 0.0; \
7612 image.normal: image_press; \
7615 state: "disabled" 0.0; \
7616 inherit: "default" 0.0; \
7619 part { name: "over1"; \
7621 ignore_flags: ON_HOLD; \
7622 description { state: "default" 0.0; \
7626 part { name: "over2"; \
7628 description { state: "default" 0.0; \
7632 part { name: "disclip"; \
7635 description { state: "default" 0.0; \
7636 color: BUTTON_DISCLIP_NORMAL_COLOR_INC; \
7638 description { state: "disabled" 0.0; \
7639 inherit: "default" 0.0; \
7640 color: BUTTON_DISCLIP_DISABLED_COLOR_INC; \
7643 part { name: "disabler"; \
7645 description { state: "default" 0.0; \
7649 description { state: "disabled" 0.0; \
7650 inherit: "default" 0.0; \
7656 program { name: "button_click"; \
7657 signal: "mouse,down,1"; \
7659 action: SIGNAL_EMIT "elm,action,press" ""; \
7660 after: "button_click_anim"; \
7662 program { name: "button_click_anim"; \
7663 action: STATE_SET "clicked" 0.0; \
7664 target: "button_image"; \
7665 target: "button_center_part"; \
7667 program { name: "button_unclick"; \
7668 signal: "mouse,up,1"; \
7670 action: SIGNAL_EMIT "elm,action,unpress" ""; \
7671 after: "button_unclick_anim"; \
7673 program { name: "button_unclick_anim"; \
7674 action: STATE_SET "default" 0.0; \
7675 target: "button_image"; \
7676 target: "button_center_part"; \
7678 program { name: "touch_snd"; \
7679 signal: "mouse,clicked,1"; \
7681 action: PLAY_SAMPLE "touch_sound" 1.0; \
7682 after: button_unclick3; \
7684 program { name: "button_unclick3"; \
7685 action: SIGNAL_EMIT "elm,action,click" ""; \
7687 program { name: "disable"; \
7688 signal: "elm,state,disabled"; \
7690 action: STATE_SET "disabled" 0.0; \
7691 target: "disabler"; \
7692 target: "disclip"; \
7693 target: "button_image"; \
7694 target: "button_center_part"; \
7696 program { name: "enable"; \
7697 signal: "elm,state,enabled"; \
7699 action: STATE_SET "default" 0.0; \
7700 target: "disabler"; \
7701 target: "disclip"; \
7702 target: "button_image"; \
7703 target: "button_center_part"; \
7708 ///////////////////////////////////////////////////////////////////////////////////////
7709 BUTTON_CONTACT_STYLES("expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png")
7711 BUTTON_CONTACT_STYLES("expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png")
7713 BUTTON_CONTACT_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png")
7715 ///////////////////////////////////////////////////////////////////////////////////////
7718 #undef BUTTON_STATE_ENABLED
7719 #undef BUTTON_STATE_DISABLED