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; \
3143 program { name: "button_click"; \
3144 signal: "mouse,down,1"; \
3146 action: SIGNAL_EMIT "elm,action,press" ""; \
3147 after: "button_click_anim"; \
3149 program { name: "button_click_anim"; \
3150 action: STATE_SET "clicked" 0.0; \
3151 target: "button_image"; \
3152 target: "jump_image"; \
3154 program { name: "button_double_click"; \
3155 signal: "mouse,down,1,double"; \
3157 after: "button_click_anim"; \
3159 program { name: "button_unclick"; \
3160 signal: "mouse,up,1"; \
3162 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3163 after: "button_unclick_anim"; \
3165 program { name: "button_unclick_anim"; \
3166 action: STATE_SET "default" 0.0; \
3167 target: "button_image"; \
3168 target: "jump_image"; \
3170 program { name: "touch_snd"; \
3171 signal: "mouse,clicked,1"; \
3173 action: PLAY_SAMPLE "touch_sound" 1.0; \
3174 after: button_unclick3; \
3176 program { name: "button_unclick3"; \
3177 action: SIGNAL_EMIT "elm,action,click" ""; \
3179 program { name: "disable"; \
3180 signal: "elm,state,disabled"; \
3182 action: STATE_SET "disabled" 0.0; \
3183 target: "button_image"; \
3184 target: "jump_image"; \
3186 program { name: "enable"; \
3187 signal: "elm,state,enabled"; \
3189 action: STATE_SET "default" 0.0; \
3190 target: "button_image"; \
3191 target: "jump_image"; \
3196 ////////////////////////////////////////////////////////////////////////
3197 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3198 ////////////////////////////////////////////////////////////////////////
3199 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3201 ////////////////////////////////////////////////////////////////////////
3202 group { name: "elm/button/base/default";
3204 image: "00_button_01.png" COMP;
3205 image: "00_button_01_press.png" COMP;
3206 image: "00_button_01_dim.png" COMP;
3209 public button_state = BUTTON_STATE_ENABLED;
3212 part { name: "button_image";
3214 description { state: "default" 0.0;
3215 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3217 normal: "00_button_01.png";
3218 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3222 description { state: "clicked" 0.0;
3223 inherit: "default" 0.0;
3224 image.normal: "00_button_01_press.png";
3226 description { state: "disabled" 0.0;
3227 inherit: "default" 0.0;
3228 image.normal: "00_button_01_dim.png";
3230 description { state: "focused" 0.0;
3231 inherit: "default" 0.0;
3232 image.normal: "00_button_01_press.png";
3235 part { name: "padding_left_top";
3239 description { state: "default" 0.0;
3241 rel2.relative: 0.0 0.0;
3242 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3247 part { name: "padding_right_bottom";
3251 description { state: "default" 0.0;
3253 rel1.relative: 1.0 1.0;
3254 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3259 part { name: "padding_icon_text";
3263 description { state: "default" 0.0; //when only icon or no icon is there
3269 to: "elm.swallow.content";
3271 rel2.to: "elm.swallow.content";
3274 description { state: "icononly" 0.0;
3275 inherit: "default" 0.0;
3277 description { state: "visible" 0.0; //when icon is visible
3278 inherit: "default" 0.0;
3279 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3282 part { name: "elm.swallow.content";
3286 description { state: "default" 0.0;
3292 to: "padding_left_top";
3296 to_x: "padding_left_top";
3297 to_y: "padding_right_bottom";
3300 description { state: "visible" 0.0;
3301 inherit: "default" 0.0;
3304 aspect_preference: VERTICAL;
3306 description { state: "icononly" 0.0;
3307 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3310 to_x: "padding_left_top";
3314 to_x: "padding_right_bottom";
3317 aspect_preference: VERTICAL;
3320 part { name: "elm.text";
3325 effect: SHADOW BOTTOM;
3326 description { state: "default" 0.0;
3331 to_x: "padding_icon_text";
3332 to_y: "padding_left_top";
3336 to: "padding_right_bottom";
3338 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3339 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
3341 font: "Tizen:style=Regular";
3342 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3344 text_class: "tizen";
3347 description { state: "visible" 0.0;
3348 inherit: "default" 0.0;
3350 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3352 description { state: "clicked" 0.0;
3353 inherit: "default" 0.0;
3355 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3356 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3358 description { state: "disabled" 0.0;
3359 inherit: "default" 0.0;
3361 description { state: "disabled_visible" 0.0;
3362 inherit: "default" 0.0;
3363 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3364 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
3366 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3368 description { state: "focused" 0.0;
3369 inherit: "default" 0.0;
3372 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3375 part { name: "over2";
3378 ignore_flags: ON_HOLD;
3379 description { state: "default" 0.0;
3383 part { name: "over3";
3386 description { state: "default" 0.0;
3390 part { name: "disclip";
3392 description { state: "default" 0.0;
3393 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3395 description { state: "disabled" 0.0;
3396 inherit: "default" 0.0;
3397 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3400 part { name: "disabler";
3402 description { state: "default" 0.0;
3406 description { state: "disabled" 0.0;
3407 inherit: "default" 0.0;
3413 program { name: "button_click";
3414 signal: "mouse,down,1";
3416 action: SIGNAL_EMIT "elm,action,press" "";
3417 after: "button_click_anim";
3419 program { name: "button_click_anim";
3420 action: STATE_SET "clicked" 0.0;
3421 target: "button_image";
3422 after: "text_clicked";
3424 program { name: "text_clicked";
3428 get_state(PART:"elm.text", st, 30, vl);
3429 if (!strcmp(st, "visible"))
3430 set_state(PART:"elm.text", "clicked", 0.0);
3433 program { name: "button_double_click";
3434 signal: "mouse,down,1,double";
3436 after: "button_click_anim";
3438 program { name: "button_unpress";
3439 action: SIGNAL_EMIT "elm,action,unpress" "";
3441 program { name: "button_mouseout_clicked";
3442 signal: "mouse,up,1";
3447 get_state(PART:"elm.swallow.content", st, 30, vl);
3448 if (strcmp(st, "icononly"))
3450 emit("elm,action,default,text,set", "");
3451 set_state(PART:"elm.text", "visible", 0.0);
3453 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3454 set_state(PART:"button_image", "default", 0.0);
3456 after: button_unpress;
3458 program { name: "touch_snd";
3459 signal: "mouse,clicked,1";
3461 action: PLAY_SAMPLE "touch_sound" 1.0;
3462 after: button_unclick3;
3464 program { name: "button_unclick3";
3465 action: SIGNAL_EMIT "elm,action,click" "";
3467 program { name: "text_show";
3468 signal: "elm,state,text,visible";
3473 get_state(PART:"elm.swallow.content", st, 30, vl);
3474 if (!strcmp(st, "icononly"))
3476 set_state(PART:"elm.swallow.content", "visible", 0.0);
3477 set_state(PART:"padding_icon_text", "visible", 0.0);
3479 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3480 set_state(PART:"elm.text", "visible", 0.0);
3482 set_state(PART:"elm.text", "disabled_visible", 0.0);
3485 program { name: "text_hide";
3486 signal: "elm,state,text,hidden";
3491 get_state(PART:"elm.swallow.content", st, 30, vl);
3492 if (!strcmp(st, "visible"))
3494 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3495 set_state(PART:"padding_icon_text", "icononly", 0.0);
3497 set_state(PART:"elm.text", "default", 0.0);
3500 program { name: "icon_show";
3501 signal: "elm,state,icon,visible";
3506 get_state(PART:"elm.text", st, 30, vl);
3507 if (!strcmp(st, "visible"))
3509 set_state(PART:"elm.swallow.content", "visible", 0.0);
3510 set_state(PART:"padding_icon_text", "visible", 0.0);
3514 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3515 set_state(PART:"padding_icon_text", "icononly", 0.0);
3519 program { name: "icon_hide";
3520 signal: "elm,state,icon,hidden";
3522 action: STATE_SET "default" 0.0;
3523 target: "elm.swallow.content";
3524 target: "padding_icon_text";
3526 program { name: "disable";
3527 signal: "elm,state,disabled";
3529 action: STATE_SET "disabled" 0.0;
3530 target: "button_image";
3533 after: "disable_text";
3535 program { name: "disable_text";
3539 get_state(PART:"elm.text", st, 30, vl);
3540 if (!strcmp(st, "visible"))
3541 set_state(PART:"elm.text", "disabled_visible", 0.0);
3543 set_state(PART:"elm.text", "disabled", 0.0);
3544 set_int(button_state, BUTTON_STATE_DISABLED);
3547 program { name: "enable";
3548 signal: "elm,state,enabled";
3550 action: STATE_SET "default" 0.0;
3551 target: "button_image";
3554 after: "enable_text";
3556 program { name: "enable_text";
3560 get_state(PART:"elm.text", st, 30, vl);
3561 if (!strcmp(st, "disabled_visible"))
3562 set_state(PART:"elm.text", "visible", 0.0);
3564 set_state(PART:"elm.text", "default", 0.0);
3565 set_int(button_state, BUTTON_STATE_ENABLED);
3568 program { name: "focused";
3569 //signal: "elm,action,focus";
3571 action: STATE_SET "focused" 0.0;
3572 target: "button_image";
3575 program { name: "unfocused";
3576 //signal: "elm,action,unfocus";
3578 action: STATE_SET "default" 0.0;
3579 target: "button_image";
3580 after: "unfocus_text";
3582 program { name: "unfocus_text";
3583 action: STATE_SET "visible" 0.0;
3589 ///////////////////////////////////////////////////////////////////////////////////////
3590 group { name: "elm/button/base/multiline";
3591 alias: "elm/button/base/text_only/multiline";
3592 inherit: "elm/button/base/default";
3594 style { name: "btn_multiline_style";
3595 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";
3602 part { name: "button_image";
3604 description { state: "default" 0.0;
3605 min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3607 normal: "00_button_01.png";
3608 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3612 description { state: "clicked" 0.0;
3613 inherit: "default" 0.0;
3614 image.normal: "00_button_01_press.png";
3616 description { state: "disabled" 0.0;
3617 inherit: "default" 0.0;
3618 image.normal: "00_button_01_dim.png";
3620 description { state: "focused" 0.0;
3621 inherit: "default" 0.0;
3622 image.normal: "00_button_01_press.png";
3625 part { name: "padding_left_top";
3629 description { state: "default" 0.0;
3631 rel2.relative: 0.0 0.0;
3632 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3637 part { name: "padding_right_bottom";
3641 description { state: "default" 0.0;
3643 rel1.relative: 1.0 1.0;
3644 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3649 part { name: "elm.text";
3654 description { state: "default" 0.0;
3658 to_x: "padding_icon_text";
3659 to_y: "padding_left_top";
3663 to: "padding_right_bottom";
3665 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3667 style: "btn_multiline_style";
3670 description { state: "visible" 0.0;
3671 inherit: "default" 0.0;
3675 description { state: "clicked" 0.0;
3676 inherit: "default" 0.0;
3679 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3681 description { state: "disabled" 0.0;
3682 inherit: "default" 0.0;
3684 description { state: "disabled_visible" 0.0;
3685 inherit: "default" 0.0;
3686 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3690 description { state: "focused" 0.0;
3691 inherit: "default" 0.0;
3694 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3700 ///////////////////////////////////////////////////////////////////////////////////////
3701 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
3702 group { name: "elm/button/base/"style_name; \
3704 image: image_normal COMP; \
3705 image: image_press COMP; \
3706 image: image_dim COMP; \
3707 image: "00_button_01.png" COMP; \
3708 image: "00_button_01_press.png" COMP; \
3711 part { name: "button_image"; \
3713 description { state: "default" 0.0; \
3714 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3715 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3717 normal: "00_button_01.png"; \
3718 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3723 state: "clicked" 0.0; \
3724 inherit: "default" 0.0; \
3725 image.normal: "00_button_01_press.png"; \
3728 state: "disabled" 0.0; \
3729 inherit: "default" 0.0; \
3730 image.normal: "00_button_01_dim.png"; \
3733 state: "focused" 0.0; \
3734 inherit: "default" 0.0; \
3735 image.normal: "00_button_01_press.png"; \
3738 part { name: "button_center_part"; \
3740 clip_to: "icon_clipper"; \
3741 description { state: "default" 0.0; \
3742 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3743 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3744 image.normal: image_normal; \
3747 state: "clicked" 0.0; \
3748 inherit: "default" 0.0; \
3749 image.normal: image_press; \
3752 state: "disabled" 0.0; \
3753 inherit: "default" 0.0; \
3756 part { name: "icon_clipper"; \
3759 description { state: "default" 0.0; \
3760 color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
3762 description { state: "clicked" 0.0; \
3763 color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
3765 description { state: "disabled" 0.0; \
3766 color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
3769 part { name: "over1"; \
3771 ignore_flags: ON_HOLD; \
3772 description { state: "default" 0.0; \
3776 part { name: "over2"; \
3779 description { state: "default" 0.0; \
3783 part { name: "disabler"; \
3785 description { state: "default" 0.0; \
3789 description { state: "disabled" 0.0; \
3790 inherit: "default" 0.0; \
3796 program { name: "button_click"; \
3797 signal: "mouse,down,1"; \
3799 action: SIGNAL_EMIT "elm,action,press" ""; \
3800 after: "button_click_anim"; \
3802 program { name: "button_click_anim"; \
3803 action: STATE_SET "clicked" 0.0; \
3804 target: "button_image"; \
3805 target: "button_center_part"; \
3806 target: ""icon_clipper""; \
3808 program { name: "button_double_click"; \
3809 signal: "mouse,down,1,double"; \
3811 after: "button_click_anim"; \
3813 program { name: "button_unclick"; \
3814 signal: "mouse,up,1"; \
3816 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3817 after: "button_unclick_anim"; \
3819 program { name: "button_unclick_anim"; \
3820 action: STATE_SET "default" 0.0; \
3821 target: "button_image"; \
3822 target: "button_center_part"; \
3823 target: ""icon_clipper""; \
3825 program { name: "touch_snd"; \
3826 signal: "mouse,clicked,1"; \
3828 action: PLAY_SAMPLE "touch_sound" 1.0; \
3829 after: button_unclick3; \
3831 program { name: "button_unclick3"; \
3832 action: SIGNAL_EMIT "elm,action,click" ""; \
3834 program { name: "disable"; \
3835 signal: "elm,state,disabled"; \
3837 action: STATE_SET "disabled" 0.0; \
3838 target: "disabler"; \
3839 target: "button_image"; \
3840 target: "button_center_part"; \
3841 target: ""icon_clipper""; \
3843 program { name: "enable"; \
3844 signal: "elm,state,enabled"; \
3846 action: STATE_SET "default" 0.0; \
3847 target: "disabler"; \
3848 target: "button_image"; \
3849 target: "button_center_part"; \
3850 target: ""icon_clipper""; \
3854 ///////////////////////////////////////////////////////////////////////////////////////
3855 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
3856 ///////////////////////////////////////////////////////////////////////////////////////
3857 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
3858 ///////////////////////////////////////////////////////////////////////////////////////
3860 group { name: "elm/button/base/contact";
3861 alias: "elm/button/base/text_only/contact";
3863 image: "00_contacts_button.png" COMP;
3864 image: "00_contacts_button_press.png" COMP;
3867 public button_state = BUTTON_STATE_ENABLED;
3870 part { name: "button_image";
3872 description { state: "default" 0.0;
3874 to_x: "padding.left";
3878 to_x: "padding.right";
3881 min: BUTTON_CONTACT_BG_MIN_INC;
3883 normal: "00_contacts_button.png";
3884 border: BUTTON_CONTACT_BG_BORDER_INC;
3888 description { state: "clicked" 0.0;
3889 inherit: "default" 0.0;
3890 image.normal: "00_contacts_button_press.png";
3892 description { state: "disabled" 0.0;
3893 inherit: "default" 0.0;
3895 description { state: "focused" 0.0;
3896 inherit: "default" 0.0;
3897 image.normal: "00_contacts_button_press.png";
3900 part { name: "padding.left";
3903 description { state: "default" 0.0;
3905 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
3915 part { name: "padding.right";
3918 description { state: "default" 0.0;
3920 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
3930 part { name: "elm.text";
3934 description { state: "default" 0.0;
3937 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
3939 font: "Tizen:style=Regular";
3940 size: BUTTON_CONTACT_FONT_SIZE_INC;
3942 text_class: "tizen";
3945 description { state: "visible" 0.0;
3946 inherit: "default" 0.0;
3950 description { state: "clicked" 0.0;
3951 inherit: "default" 0.0;
3954 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
3956 description { state: "disabled" 0.0;
3957 inherit: "default" 0.0;
3959 description { state: "disabled_visible" 0.0;
3960 inherit: "default" 0.0;
3961 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
3965 description { state: "focused" 0.0;
3966 inherit: "default" 0.0;
3969 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
3972 part { name: "over1";
3975 description { state: "default" 0.0;
3976 rel2.relative: 1.0 0.5;
3980 part { name: "over2";
3983 ignore_flags: ON_HOLD;
3984 description { state: "default" 0.0;
3985 rel1.to: "button_image";
3986 rel2.to: "button_image";
3990 part { name: "over3";
3993 description { state: "default" 0.0;
3994 rel1.to: "button_image";
3995 rel2.to: "button_image";
3999 part { name: "disabler";
4001 description { state: "default" 0.0;
4002 rel1.to: "button_image";
4003 rel2.to: "button_image";
4007 description { state: "disabled" 0.0;
4008 inherit: "default" 0.0;
4014 program { name: "button_click";
4015 signal: "mouse,down,1";
4017 action: SIGNAL_EMIT "elm,action,press" "";
4018 after: "button_click_anim";
4020 program { name: "button_click_anim";
4021 action: STATE_SET "clicked" 0.0;
4022 target: "button_image";
4025 program { name: "button_double_click";
4026 signal: "mouse,down,1,double";
4028 after: "button_click_anim";
4030 program { name: "button_unpress";
4031 action: SIGNAL_EMIT "elm,action,unpress" "";
4033 program { name: "button_mouseout_clicked";
4034 signal: "mouse,up,1";
4039 get_state(PART:"elm.text", st, 30, vl);
4040 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4042 emit("elm,action,default,text,set", "");
4043 set_state(PART:"elm.text", "visible", 0.0);
4045 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4046 set_state(PART:"button_image", "default", 0.0);
4048 after: button_unpress;
4050 program { name: "touch_snd";
4051 signal: "mouse,clicked,1";
4053 action: PLAY_SAMPLE "touch_sound" 1.0;
4054 after: button_unclick3;
4056 program { name: "button_unclick3";
4057 action: SIGNAL_EMIT "elm,action,click" "";
4059 program { name: "text_show";
4060 signal: "elm,state,text,visible";
4063 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4064 set_state(PART:"elm.text", "visible", 0.0);
4066 set_state(PART:"elm.text", "disabled_visible", 0.0);
4069 program { name: "text_hide";
4070 signal: "elm,state,text,hidden";
4072 action: STATE_SET "default" 0.0;
4075 program { name: "disable";
4076 signal: "elm,state,disabled";
4078 action: STATE_SET "disabled" 0.0;
4079 target: "button_image";
4081 after: "disable_text";
4083 program { name: "disable_text";
4087 get_state(PART:"elm.text", st, 30, vl);
4088 if (!strcmp(st, "visible"))
4089 set_state(PART:"elm.text", "disabled_visible", 0.0);
4091 set_state(PART:"elm.text", "disabled", 0.0);
4092 set_int(button_state, BUTTON_STATE_DISABLED);
4095 program { name: "enable";
4096 signal: "elm,state,enabled";
4098 action: STATE_SET "default" 0.0;
4099 target: "button_image";
4101 after: "enable_text";
4103 program { name: "enable_text";
4107 get_state(PART:"elm.text", st, 30, vl);
4108 if (!strcmp(st, "disabled_visible"))
4109 set_state(PART:"elm.text", "visible", 0.0);
4111 set_state(PART:"elm.text", "default", 0.0);
4112 set_int(button_state, BUTTON_STATE_ENABLED);
4115 program { name: "focused";
4116 //signal: "elm,action,focus";
4118 action: STATE_SET "focused" 0.0;
4119 target: "button_image";
4122 program { name: "unfocused";
4123 //signal: "elm,action,unfocus";
4125 action: STATE_SET "default" 0.0;
4126 target: "button_image";
4127 action: STATE_SET "visible" 0.0;
4133 ///////////////////////////////////////////////////////////////////////////////////////
4134 group { name: "elm/button/base/naviframe/back_btn/default";
4135 alias: "elm/button/base/naviframe/prev_btn/default";
4136 alias: "elm/button/base/naviframe/end_btn/default";
4138 image: "00_icon_Back.png" COMP;
4141 part { name: "button_image";
4144 description { state: "default" 0.0;
4145 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4146 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4149 description { state: "landscape" 0.0;
4150 min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4151 max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4155 part { name: "bottom_padding";
4159 description { state: "default" 0.0;
4160 min: BUTTON_NAVIFRAME_BACK_BUTTON_BOTTOM_PADDING_INC;
4163 rel1 { relative: 0.0 1.0; to: "button_image"; }
4164 rel2.to: "button_image";
4168 part { name: "back_button";
4171 clip_to: "back_button.clipper";
4172 description { state: "default" 0.0;
4173 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4174 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4176 rel1.to: "button_image";
4177 rel2.to: "button_image";
4178 image.normal: "00_icon_Back.png";
4180 description { state: "title_button" 0.0;
4181 inherit: "default" 0.0;
4183 rel1 { relative: 0.0 1.0; to: "bottom_padding"; }
4184 rel2.to: "bottom_padding";
4187 part { name: "back_button.clipper";
4189 description { state: "default" 0.0;
4190 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4192 description { state: "clicked" 0.0;
4193 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4195 description { state: "disabled" 0.0;
4196 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4199 part { name: "over2";
4201 ignore_flags: ON_HOLD;
4202 description { state: "default" 0.0;
4206 part { name: "over3";
4209 description { state: "default" 0.0;
4213 part { name: "disabler";
4215 description { state: "default" 0.0;
4219 description { state: "disabled" 0.0;
4220 inherit: "default" 0.0;
4226 program { name: "button_click";
4227 signal: "mouse,down,1";
4229 action: SIGNAL_EMIT "elm,action,press" "";
4230 after: "button_click_anim";
4232 program { name: "button_click_anim";
4234 set_state(PART:"back_button.clipper", "clicked", 0.0);
4237 program { name: "button_double_click";
4238 signal: "mouse,down,1,double";
4240 after: "button_click_anim";
4242 program { name: "button_unclick";
4243 signal: "mouse,up,1";
4245 action: SIGNAL_EMIT "elm,action,unpress" "";
4246 after: "button_unclick_anim";
4248 program { name: "button_unclick_anim";
4250 set_state(PART:"back_button.clipper", "default", 0.0);
4253 program { name: "touch_snd";
4254 signal: "mouse,clicked,1";
4256 action: PLAY_SAMPLE "touch_sound" 1.0;
4257 after: button_unclick3;
4259 program { name: "button_unclick3";
4260 action: SIGNAL_EMIT "elm,action,click" "";
4262 program { name: "disable";
4263 signal: "elm,state,disabled";
4266 set_state(PART:"back_button.clipper", "disabled", 0.0);
4269 program { name: "enable";
4270 signal: "elm,state,enabled";
4273 set_state(PART:"back_button.clipper", "default", 0.0);
4276 program { name: "change_to_landscape";
4277 signal: "elm,state,landscape";
4279 action: STATE_SET "landscape" 0.0;
4280 target: "button_image";
4282 program { name: "change_to_portrait";
4283 signal: "elm,state,portrait";
4285 action: STATE_SET "default" 0.0;
4286 target: "button_image";
4288 program { name: "landscape_mode";
4290 signal: "elm,state,orient,90";
4291 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4293 program { name: "landscape_mode2";
4295 signal: "elm,state,orient,270";
4296 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4298 program { name: "portrait_mode";
4300 signal: "elm,state,orient,0";
4301 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4303 program { name: "portrait_mode2";
4305 signal: "elm,state,orient,180";
4306 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4311 //////////////////////////////////////////////////////////////
4312 group { name: "elm/button/base/naviframe/toolbar/default";
4313 alias: "elm/button/base/naviframe/title/default";
4315 image: "00_toolbar_button.png" COMP;
4316 image: "00_toolbar_button_press.png" COMP;
4317 image: "00_toolbar_button_dim.png" COMP;
4318 image: "00_badge_bg.png" COMP;
4321 style { name: "btn_naviframe_toolbar";
4322 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";
4329 public button_state = BUTTON_STATE_ENABLED;
4332 part { name: "button_image";
4334 description { state: "default" 0.0;
4335 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4336 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4338 rel1.to: "padding_text_left_top";
4339 rel2.to: "padding_text_right_bottom";
4341 normal: "00_toolbar_button.png";
4342 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4346 description { state: "clicked" 0.0;
4347 inherit: "default" 0.0;
4348 image.normal: "00_toolbar_button_press.png";
4350 description { state: "disabled" 0.0;
4351 inherit: "default" 0.0;
4352 image.normal: "00_toolbar_button_dim.png";
4354 description { state: "focused" 0.0;
4355 inherit: "default" 0.0;
4356 image.normal: "00_toolbar_button_press.png";
4359 part { name: "padding_left_top";
4363 description { state: "default" 0.0;
4366 rel2.relative: 0.0 0.0;
4367 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4371 part { name: "padding_right_bottom";
4375 description { state: "default" 0.0;
4377 rel1.relative: 1.0 1.0;
4378 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4383 part { name: "padding_text_left_top";
4387 description { state: "default" 0.0;
4389 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4391 rel1.to: "elm.text";
4399 part { name: "padding_text_right_bottom";
4403 description { state: "default" 0.0;
4404 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4411 rel2.to: "elm.text";
4415 part { name: "elm.text";
4419 effect: FAR_SHADOW BOTTOM;
4421 description { state: "default" 0.0;
4424 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4427 to: "padding_left_top";
4431 to: "padding_right_bottom";
4433 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4434 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4438 style: "btn_naviframe_toolbar";
4441 description { state: "visible" 0.0;
4442 inherit: "default" 0.0;
4445 description { state: "clicked" 0.0;
4446 inherit: "default" 0.0;
4448 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4450 description { state: "disabled" 0.0;
4451 inherit: "default" 0.0;
4453 description { state: "disabled_visible" 0.0;
4454 inherit: "default" 0.0;
4455 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4456 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4459 description { state: "focused" 0.0;
4460 inherit: "default" 0.0;
4462 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4465 part { name: "disclip";
4467 description { state: "default" 0.0;
4468 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4470 description { state: "disabled" 0.0;
4471 inherit: "default" 0.0;
4472 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4475 part { name: "over2";
4478 ignore_flags: ON_HOLD;
4479 description { state: "default" 0.0;
4480 rel1.to: "button_image";
4481 rel2.to: "button_image";
4485 part { name: "over3";
4488 description { state: "default" 0.0;
4489 rel1.to: "button_image";
4490 rel2.to: "button_image";
4494 part { name: "disabler";
4496 description { state: "default" 0.0;
4497 rel1.to: "button_image";
4498 rel2.to: "button_image";
4502 description { state: "disabled" 0.0;
4503 inherit: "default" 0.0;
4509 program { name: "button_click";
4510 signal: "mouse,down,1";
4512 action: SIGNAL_EMIT "elm,action,press" "";
4513 after: "button_click_anim";
4515 program { name: "button_click_anim";
4516 action: STATE_SET "clicked" 0.0;
4517 target: "button_image";
4520 program { name: "button_double_click";
4521 signal: "mouse,down,1,double";
4523 after: "button_click_anim";
4525 program { name: "button_unpress";
4526 action: SIGNAL_EMIT "elm,action,unpress" "";
4528 program { name: "button_mouseout_clicked";
4529 signal: "mouse,up,1";
4534 get_state(PART:"elm.text", st, 30, vl);
4535 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4537 emit("elm,action,default,text,set", "");
4538 set_state(PART:"elm.text", "visible", 0.0);
4540 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4541 set_state(PART:"button_image", "default", 0.0);
4543 after: button_unpress;
4545 program { name: "touch_snd";
4546 signal: "mouse,clicked,1";
4548 action: PLAY_SAMPLE "touch_sound" 1.0;
4549 after: button_unclick3;
4551 program { name: "button_unclick3";
4552 action: SIGNAL_EMIT "elm,action,click" "";
4554 program { name: "text_show";
4555 signal: "elm,state,text,visible";
4558 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4559 set_state(PART:"elm.text", "visible", 0.0);
4561 set_state(PART:"elm.text", "disabled_visible", 0.0);
4564 program { name: "text_hide";
4565 signal: "elm,state,text,hidden";
4567 action: STATE_SET "default" 0.0;
4570 program { name: "disable";
4571 signal: "elm,state,disabled";
4573 action: STATE_SET "disabled" 0.0;
4574 target: "button_image";
4577 after: "disable_text";
4579 program { name: "disable_text";
4583 get_state(PART:"elm.text", st, 30, vl);
4584 if (!strcmp(st, "visible"))
4585 set_state(PART:"elm.text", "disabled_visible", 0.0);
4587 set_state(PART:"elm.text", "disabled", 0.0);
4588 set_int(button_state, BUTTON_STATE_DISABLED);
4591 program { name: "enable";
4592 signal: "elm,state,enabled";
4594 action: STATE_SET "default" 0.0;
4595 target: "button_image";
4598 after: "enable_text";
4600 program { name: "enable_text";
4604 get_state(PART:"elm.text", st, 30, vl);
4605 if (!strcmp(st, "disabled_visible"))
4606 set_state(PART:"elm.text", "visible", 0.0);
4608 set_state(PART:"elm.text", "default", 0.0);
4609 set_int(button_state, BUTTON_STATE_ENABLED);
4612 program { name: "focused";
4613 //signal: "elm,action,focus";
4615 action: STATE_SET "focused" 0.0;
4616 target: "button_image";
4619 program { name: "unfocused";
4620 //signal: "elm,action,unfocus";
4622 action: STATE_SET "default" 0.0;
4623 target: "button_image";
4624 action: STATE_SET "visible" 0.0;
4630 //////////////////////////////////////////////////////////////
4631 group { name: "elm/button/base/naviframe/toolbar/left";
4632 inherit: "elm/button/base/naviframe/toolbar/default";
4634 part { name: "button_image";
4636 description { state: "default" 0.0;
4637 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4638 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4640 rel1.to: "padding_text_left_top";
4641 rel2.to: "padding_text_right_bottom";
4644 normal: "00_toolbar_button.png";
4645 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4649 description { state: "clicked" 0.0;
4650 inherit: "default" 0.0;
4651 image.normal: "00_toolbar_button_press.png";
4653 description { state: "disabled" 0.0;
4654 inherit: "default" 0.0;
4655 image.normal: "00_toolbar_button_dim.png";
4657 description { state: "focused" 0.0;
4658 inherit: "default" 0.0;
4659 image.normal: "00_toolbar_button_press.png";
4662 part { name: "elm.text";
4666 effect: FAR_SHADOW BOTTOM;
4668 description { state: "default" 0.0;
4671 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4674 to: "padding_left_top";
4678 to: "padding_right_bottom";
4681 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4682 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4686 style: "btn_naviframe_toolbar";
4689 description { state: "visible" 0.0;
4690 inherit: "default" 0.0;
4693 description { state: "clicked" 0.0;
4694 inherit: "default" 0.0;
4696 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4698 description { state: "disabled" 0.0;
4699 inherit: "default" 0.0;
4701 description { state: "disabled_visible" 0.0;
4702 inherit: "default" 0.0;
4703 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4704 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4707 description { state: "focused" 0.0;
4708 inherit: "default" 0.0;
4710 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4716 //////////////////////////////////////////////////////////////
4717 group { name: "elm/button/base/naviframe/toolbar/right";
4718 inherit: "elm/button/base/naviframe/toolbar/default";
4720 part { name: "button_image";
4722 description { state: "default" 0.0;
4723 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4724 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4726 rel1.to: "padding_text_left_top";
4727 rel2.to: "padding_text_right_bottom";
4730 normal: "00_toolbar_button.png";
4731 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4735 description { state: "clicked" 0.0;
4736 inherit: "default" 0.0;
4737 image.normal: "00_toolbar_button_press.png";
4739 description { state: "disabled" 0.0;
4740 inherit: "default" 0.0;
4741 image.normal: "00_toolbar_button_dim.png";
4743 description { state: "focused" 0.0;
4744 inherit: "default" 0.0;
4745 image.normal: "00_toolbar_button_press.png";
4748 part { name: "elm.text";
4752 effect: FAR_SHADOW BOTTOM;
4754 description { state: "default" 0.0;
4757 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4760 to: "padding_left_top";
4764 to: "padding_right_bottom";
4767 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4768 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4772 style: "btn_naviframe_toolbar";
4775 description { state: "visible" 0.0;
4776 inherit: "default" 0.0;
4779 description { state: "clicked" 0.0;
4780 inherit: "default" 0.0;
4782 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4784 description { state: "disabled" 0.0;
4785 inherit: "default" 0.0;
4787 description { state: "disabled_visible" 0.0;
4788 inherit: "default" 0.0;
4789 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4790 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4793 description { state: "focused" 0.0;
4794 inherit: "default" 0.0;
4796 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4802 ////////////////////////////////////////////////////////////////////
4803 group { name: "elm/button/base/toolbar/segmentedcontrol";
4805 image: "00_toolbar_button.png" COMP;
4806 image: "00_toolbar_button_press.png" COMP;
4807 image: "00_toolbar_button_dim.png" COMP;
4808 image: "00_button_icon_arrow.png" COMP;
4809 image: "00_button_icon_arrow_press.png" COMP;
4812 style { name: "btn_toolbar_segmentedcontrol";
4813 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";
4820 public button_state = BUTTON_STATE_ENABLED;
4823 part { name: "button_image";
4825 description { state: "default" 0.0;
4826 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
4827 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
4829 rel1.to: "padding_text_left_top";
4830 rel2.to: "padding_text_right_bottom";
4832 normal: "00_toolbar_button.png";
4833 border: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_BORDER_INC;
4837 description { state: "clicked" 0.0;
4838 inherit: "default" 0.0;
4839 image.normal: "00_toolbar_button_press.png";
4841 description { state: "disabled" 0.0;
4842 inherit: "default" 0.0;
4843 image.normal: "00_toolbar_button_dim.png";
4845 description { state: "focused" 0.0;
4846 inherit: "default" 0.0;
4847 image.normal: "00_toolbar_button_press.png";
4850 part { name: "padding_left_top";
4854 description { state: "default" 0.0;
4857 rel2.relative: 0.0 0.0;
4858 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4862 part { name: "padding_right_bottom";
4866 description { state: "default" 0.0;
4868 rel1.relative: 1.0 1.0;
4869 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
4874 part { name: "padding_text_left_top";
4878 description { state: "default" 0.0;
4880 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4882 rel1.to: "elm.text";
4890 part { name: "padding_text_right_bottom";
4894 description { state: "default" 0.0;
4895 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
4911 part { name: "elm.text";
4915 effect: FAR_SHADOW BOTTOM;
4917 description { state: "default" 0.0;
4920 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXTBLOCK_MIN_INC;
4923 to: "padding_left_top";
4927 to: "padding_right_bottom";
4929 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4930 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4934 style: "btn_toolbar_segmentedcontrol";
4937 description { state: "visible" 0.0;
4938 inherit: "default" 0.0;
4941 description { state: "clicked" 0.0;
4942 inherit: "default" 0.0;
4944 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4946 description { state: "disabled" 0.0;
4947 inherit: "default" 0.0;
4949 description { state: "disabled_visible" 0.0;
4950 inherit: "default" 0.0;
4951 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4952 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4955 description { state: "focused" 0.0;
4956 inherit: "default" 0.0;
4958 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4961 part { name: "icon_padding";
4964 description { state: "default" 0.0;
4973 rel2.to: "elm.text";
4976 part { name: "icon";
4978 clip_to: "icon_clipper";
4979 description { state: "default" 0.0;
4980 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
4981 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
4986 to_x: "icon_padding";
4992 to_x: "icon_padding";
4995 image.normal: "00_button_icon_arrow.png";
4997 description { state: "clicked" 0.0;
4998 inherit: "default" 0.0;
4999 image.normal: "00_button_icon_arrow_press.png";
5002 part { name: "icon_clipper";
5004 description { state: "default" 0.0;
5005 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_NORMAL_COLOR_INC;
5007 description { state: "clicked" 0.0;
5008 inherit: "default" 0.0;
5009 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_PRESSED_COLOR_INC;
5012 part { name: "disclip";
5014 description { state: "default" 0.0;
5015 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5017 description { state: "disabled" 0.0;
5018 inherit: "default" 0.0;
5019 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5022 part { name: "over2";
5025 ignore_flags: ON_HOLD;
5026 description { state: "default" 0.0;
5027 rel1.to: "button_image";
5028 rel2.to: "button_image";
5032 part { name: "over3";
5035 description { state: "default" 0.0;
5036 rel1.to: "button_image";
5037 rel2.to: "button_image";
5041 part { name: "disabler";
5043 description { state: "default" 0.0;
5044 rel1.to: "button_image";
5045 rel2.to: "button_image";
5049 description { state: "disabled" 0.0;
5050 inherit: "default" 0.0;
5056 program { name: "button_click";
5057 signal: "mouse,down,1";
5059 action: SIGNAL_EMIT "elm,action,press" "";
5060 after: "button_click_anim";
5062 program { name: "button_click_anim";
5063 action: STATE_SET "clicked" 0.0;
5064 target: "button_image";
5067 target: "icon_clipper";
5069 program { name: "button_double_click";
5070 signal: "mouse,down,1,double";
5072 after: "button_click_anim";
5074 program { name: "button_unpress";
5075 action: SIGNAL_EMIT "elm,action,unpress" "";
5077 program { name: "button_mouseout_clicked";
5078 signal: "mouse,up,1";
5083 get_state(PART:"elm.text", st, 30, vl);
5084 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5086 emit("elm,action,default,text,set", "");
5087 set_state(PART:"elm.text", "visible", 0.0);
5089 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5090 set_state(PART:"button_image", "default", 0.0);
5091 set_state(PART:"icon", "default", 0.0);
5092 set_state(PART:"icon_clipper", "default", 0.0);
5094 after: button_unpress;
5096 program { name: "touch_snd";
5097 signal: "mouse,clicked,1";
5099 action: PLAY_SAMPLE "touch_sound" 1.0;
5100 after: button_unclick3;
5102 program { name: "button_unclick3";
5103 action: SIGNAL_EMIT "elm,action,click" "";
5105 program { name: "text_show";
5106 signal: "elm,state,text,visible";
5109 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5110 set_state(PART:"elm.text", "visible", 0.0);
5112 set_state(PART:"elm.text", "disabled_visible", 0.0);
5115 program { name: "text_hide";
5116 signal: "elm,state,text,hidden";
5118 action: STATE_SET "default" 0.0;
5121 program { name: "disable";
5122 signal: "elm,state,disabled";
5124 action: STATE_SET "disabled" 0.0;
5125 target: "button_image";
5128 after: "disable_text";
5130 program { name: "disable_text";
5134 get_state(PART:"elm.text", st, 30, vl);
5135 if (!strcmp(st, "visible"))
5136 set_state(PART:"elm.text", "disabled_visible", 0.0);
5138 set_state(PART:"elm.text", "disabled", 0.0);
5139 set_int(button_state, BUTTON_STATE_DISABLED);
5142 program { name: "enable";
5143 signal: "elm,state,enabled";
5145 action: STATE_SET "default" 0.0;
5146 target: "button_image";
5149 after: "enable_text";
5151 program { name: "enable_text";
5155 get_state(PART:"elm.text", st, 30, vl);
5156 if (!strcmp(st, "disabled_visible"))
5157 set_state(PART:"elm.text", "visible", 0.0);
5159 set_state(PART:"elm.text", "default", 0.0);
5160 set_int(button_state, BUTTON_STATE_ENABLED);
5163 program { name: "focused";
5164 //signal: "elm,action,focus";
5166 action: STATE_SET "focused" 0.0;
5167 target: "button_image";
5170 program { name: "unfocused";
5171 //signal: "elm,action,unfocus";
5173 action: STATE_SET "default" 0.0;
5174 target: "button_image";
5175 action: STATE_SET "visible" 0.0;
5181 ////////////////////////////////////////////////////////////////////
5182 group { name: "elm/button/base/naviframe/title_icon";
5184 part { name: "button_image";
5187 description { state: "default" 0.0;
5189 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5190 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5192 description { state: "landscape" 0.0;
5194 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5195 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5198 part { name: "top_padding";
5201 description { state: "default" 0.0;
5203 min: BUTTON_NAVIFRAME_TITLE_ICON_TOP_PADDING_INC;
5206 rel1 { relative: 0.0 0.0; to: "button_image"; }
5207 rel2 { relative: 1.0 0.0; to: "button_image"; }
5209 description { state: "landscape" 0.0;
5210 inherit: "default" 0.0;
5211 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_TOP_PADDING_INC;
5214 part { name: "elm.swallow.content";
5217 clip_to: "elm.icon.clipper";
5218 description { state: "default" 0.0;
5220 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5223 rel1 { relative: 0.0 1.0; to: "top_padding"; }
5224 rel2 { relative: 1.0 1.0; to: "button_image"; }
5226 description { state: "visible" 0.0;
5227 inherit: "default" 0.0;
5231 part { name: "elm.swallow.icon.proxy";
5234 clip_to: "elm.icon.proxy.clipper";
5235 description { state: "default" 0.0;
5236 source: "elm.swallow.content";
5237 rel1.to: "elm.swallow.content";
5239 rel2.to: "elm.swallow.content";
5243 part { name: "elm.icon.proxy.clipper";
5245 description { state: "default" 0.0;
5246 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5248 description { state: "clicked" 0.0;
5249 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5251 description { state: "disabled" 0.0;
5252 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5255 part { name: "elm.icon.clipper";
5257 description { state: "default" 0.0;
5258 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5260 description { state: "clicked" 0.0;
5261 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5263 description { state: "disabled" 0.0;
5264 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5267 part { name: "over2";
5269 ignore_flags: ON_HOLD;
5270 description { state: "default" 0.0;
5274 part { name: "over3";
5277 description { state: "default" 0.0;
5281 part { name: "disabler";
5283 description { state: "default" 0.0;
5287 description { state: "disabled" 0.0;
5288 inherit: "default" 0.0;
5294 program { name: "button_click";
5295 signal: "mouse,down,1";
5297 action: SIGNAL_EMIT "elm,action,press" "";
5298 after: "button_click_anim";
5300 program { name: "button_click_anim";
5302 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5303 set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0);
5306 program { name: "button_double_click";
5307 signal: "mouse,down,1,double";
5309 after: "button_click_anim";
5311 program { name: "button_unpress";
5312 action: SIGNAL_EMIT "elm,action,unpress" "";
5314 program { name: "button_mouseout_clicked";
5315 signal: "mouse,up,1";
5317 action: STATE_SET "default" 0.0;
5318 target: "elm.icon.clipper";
5319 target: "elm.icon.proxy.clipper";
5320 after: button_unpress;
5322 program { name: "touch_snd";
5323 signal: "mouse,clicked,1";
5325 action: PLAY_SAMPLE "touch_sound" 1.0;
5326 after: button_unclick3;
5328 program { name: "button_unclick3";
5329 action: SIGNAL_EMIT "elm,action,click" "";
5331 program { name: "icon_show";
5332 signal: "elm,state,icon,visible";
5334 action: STATE_SET "visible" 0.0;
5335 target: "elm.swallow.content";
5337 program { name: "icon_hide";
5338 signal: "elm,state,icon,hidden";
5340 action: STATE_SET "default" 0.0;
5341 target: "elm.swallow.content";
5343 program { name: "disable";
5344 signal: "elm,state,disabled";
5347 set_state(PART:"disabler", "disabled", 0.0);
5348 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5349 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
5352 program { name: "enable";
5353 signal: "elm,state,enabled";
5356 set_state(PART:"disabler", "default", 0.0);
5357 set_state(PART:"elm.icon.clipper", "default", 0.0);
5358 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
5361 program { name: "change_to_landscape";
5362 signal: "elm,state,landscape";
5364 action: STATE_SET "landscape" 0.0;
5365 target: "button_image";
5366 target: "top_padding";
5368 program { name: "change_to_portrait";
5369 signal: "elm,state,portrait";
5371 action: STATE_SET "default" 0.0;
5372 target: "button_image";
5373 target: "top_padding";
5375 /* program { name: "landscape_mode";
5377 signal: "elm,state,orient,90";
5378 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5380 program { name: "landscape_mode2";
5382 signal: "elm,state,orient,270";
5383 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5385 program { name: "portrait_mode";
5387 signal: "elm,state,orient,0";
5388 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5390 program { name: "portrait_mode2";
5392 signal: "elm,state,orient,180";
5393 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5398 /////////////////////////////////////////////////////////////////////////////////////////
5399 group { name: "elm/button/base/naviframe/more/default";
5401 image: "00_icon_more.png" COMP;
5404 part { name: "button_image";
5407 description { state: "default" 0.0;
5408 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5409 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5412 description { state: "landscape" 0.0;
5413 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5414 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5418 part { name: "bottom_padding";
5422 description { state: "default" 0.0;
5423 min: BUTTON_NAVIFRAME_MORE_BOTTOM_PADDING_INC;
5426 rel1 { relative: 0.0 1.0; to: "button_image"; }
5427 rel2.to: "button_image";
5431 part { name: "more_image";
5434 clip_to: "more_image.clipper";
5435 description { state: "default" 0.0;
5436 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5437 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5439 rel1.to: "button_image";
5440 rel2.to: "button_image";
5441 image.normal: "00_icon_more.png";
5443 description { state: "title_button" 0.0;
5444 inherit: "default" 0.0;
5446 rel1 { relative: 0.0 1.0; to: "bottom_padding"; }
5447 rel2.to: "bottom_padding";
5450 part { name: "more_image.clipper";
5452 description { state: "default" 0.0;
5453 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5455 description { state: "clicked" 0.0;
5456 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5458 description { state: "disabled" 0.0;
5459 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5462 part { name: "elm.text.badge.bg";
5466 state: "default" 0.0;
5469 to: "left.padding.text.badge";
5473 to: "right.padding.text.badge";
5478 normal: "00_badge_bg.png";
5483 description { state: "visible" 0.0;
5484 inherit: "default" 0.0;
5488 part { name: "left.padding.text.badge";
5492 state: "default" 0.0;
5497 to: "elm.text.badge";
5501 to: "elm.text.badge";
5507 part { name: "right.padding.text.badge";
5511 state: "default" 0.0;
5526 part { name: "elm.text.badge";
5531 state: "default" 0.0;
5539 to: "right.padding.text.badge";
5543 color: 10 100 208 255;
5545 font: "Tizen:style=Bold";
5551 description { state: "visible" 0.0;
5552 inherit: "default" 0.0;
5556 part { name: "over2";
5558 ignore_flags: ON_HOLD;
5559 description { state: "default" 0.0;
5563 part { name: "over3";
5566 description { state: "default" 0.0;
5570 part { name: "disabler";
5572 description { state: "default" 0.0;
5576 description { state: "disabled" 0.0;
5577 inherit: "default" 0.0;
5583 program { name: "button_click";
5584 signal: "mouse,down,1";
5586 action: SIGNAL_EMIT "elm,action,press" "";
5587 after: "button_click_anim";
5589 program { name: "button_click_anim";
5591 set_state(PART:"more_image.clipper", "clicked", 0.0);
5594 program { name: "button_double_click";
5595 signal: "mouse,down,1,double";
5597 after: "button_click_anim";
5599 program { name: "button_unclick";
5600 signal: "mouse,up,1";
5602 action: SIGNAL_EMIT "elm,action,unpress" "";
5603 after: "button_unclick_anim";
5605 program { name: "button_unclick_anim";
5607 set_state(PART:"more_image.clipper", "default", 0.0);
5610 program { name: "touch_snd";
5611 signal: "mouse,clicked,1";
5613 action: PLAY_SAMPLE "touch_sound" 1.0;
5614 after: button_unclick3;
5616 program { name: "button_unclick3";
5617 action: SIGNAL_EMIT "elm,action,click" "";
5619 program { name: "badge_text_show";
5620 signal: "elm,state,elm.text.badge,visible";
5622 action: STATE_SET "visible" 0.0;
5623 target: "elm.text.badge";
5624 target: "elm.text.badge.bg";
5626 program { name: "badge_text_hide";
5627 signal: "elm,state,elm.text.badge,hidden";
5629 action: STATE_SET "default" 0.0;
5630 target: "elm.text.badge";
5631 target: "elm.text.badge.bg";
5633 program { name: "disable";
5634 signal: "elm,state,disabled";
5637 set_state(PART:"disabler", "disabled", 0.0);
5638 set_state(PART:"more_image.clipper", "disabled", 0.0);
5641 program { name: "enable";
5642 signal: "elm,state,enabled";
5645 set_state(PART:"disabler", "default", 0.0);
5646 set_state(PART:"more_image.clipper", "default", 0.0);
5649 program { name: "change_to_landscape";
5650 signal: "elm,state,landscape";
5652 action: STATE_SET "landscape" 0.0;
5653 target: "button_image";
5655 program { name: "change_to_portrait";
5656 signal: "elm,state,portrait";
5658 action: STATE_SET "default" 0.0;
5659 target: "button_image";
5661 program { name: "landscape_mode";
5663 signal: "elm,state,orient,90";
5664 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5666 program { name: "landscape_mode2";
5668 signal: "elm,state,orient,270";
5669 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5671 program { name: "portrait_mode";
5673 signal: "elm,state,orient,0";
5674 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5676 program { name: "portrait_mode2";
5678 signal: "elm,state,orient,180";
5679 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5684 ///////////////////////////////////////////////////////////////////////////////////////
5685 group { name: "elm/button/base/tickernoti";
5687 image: "00_notification_button_bg.png" COMP;
5688 image: "00_notification_button_bg_press.png" COMP;
5689 image: "00_notification_button_bg_dim.png" COMP;
5692 public button_state = BUTTON_STATE_ENABLED;
5695 part { name: "button_image";
5697 description { state: "default" 0.0;
5698 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5699 max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5701 normal: "00_notification_button_bg.png";
5702 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
5706 description { state: "clicked" 0.0;
5707 inherit: "default" 0.0;
5708 image.normal: "00_notification_button_bg_press.png";
5710 description { state: "disabled" 0.0;
5711 inherit: "default" 0.0;
5712 image.normal: "00_notification_button_bg_dim.png";
5714 description { state: "focused" 0.0;
5715 inherit: "default" 0.0;
5716 image.normal: "00_notification_button_bg_press.png";
5719 part { name: "padding_left_top";
5723 description { state: "default" 0.0;
5726 rel2.relative: 0.0 0.0;
5727 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5735 description { state: "default" 0.0;
5736 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5739 description { state: "visible" 0.0;
5740 inherit: "default" 0.0;
5742 description { state: "icononly" 0.0;
5743 inherit: "default" 0.0;
5746 part { name: "padding_right_bottom";
5750 description { state: "default" 0.0;
5752 rel1.relative: 1.0 1.0;
5753 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5758 part { name: "icon_rect";
5762 description { state: "default" 0.0;
5768 to: "padding_left_top";
5772 to_x: "padding_left_top";
5773 to_y: "padding_right_bottom";
5777 description { state: "visible" 0.0;
5778 inherit: "default" 0.0;
5779 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5780 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5782 description { state: "icononly" 0.0;
5783 inherit: "default" 0.0;
5786 part { name: "padding_after_icon";
5790 description { state: "default" 0.0; //when only icon or no icon is there
5799 rel2.to: "icon_rect";
5801 description { state: "visible" 0.0;
5802 inherit: "default" 0.0;
5803 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5805 description { state: "icononly" 0.0;
5806 inherit: "default" 0.0;
5809 part { name: "padding_before_text";
5813 description { state: "default" 0.0; //when only icon or no icon is there
5817 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5821 to_y: "padding_left_top";
5826 to_y: "padding_right_bottom";
5830 part { name: "elm.swallow.content";
5834 description { state: "default" 0.0;
5840 to: "padding_left_top";
5844 to_x: "padding_left_top";
5845 to_y: "padding_right_bottom";
5848 description { state: "visible" 0.0;
5850 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5851 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5855 to_x: "padding_before_text";
5856 to_y: "padding_left_top";
5860 to_x: "padding_before_text";
5861 to_y: "padding_right_bottom";
5864 description { state: "icononly" 0.0;
5865 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5866 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5869 part { name: "elm.text";
5872 effect: FAR_SHADOW BOTTOM;
5875 description { state: "default" 0.0;
5879 to_x: "padding_after_icon";
5880 to_y: "padding_left_top";
5884 to: "padding_right_bottom";
5886 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
5887 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5889 font: "Tizen:style=Regular";
5890 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
5893 text_class: "tizen";
5896 description { state: "visible" 0.0;
5897 inherit: "default" 0.0;
5900 description { state: "clicked" 0.0;
5901 inherit: "default" 0.0;
5903 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5905 description { state: "disabled" 0.0;
5906 inherit: "default" 0.0;
5908 description { state: "disabled_visible" 0.0;
5909 inherit: "default" 0.0;
5910 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
5911 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5914 description { state: "focused" 0.0;
5915 inherit: "default" 0.0;
5917 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5920 part { name: "over2";
5923 ignore_flags: ON_HOLD;
5924 description { state: "default" 0.0;
5928 part { name: "over3";
5931 description { state: "default" 0.0;
5935 part { name: "clipper";
5937 description { state: "default" 0.0;
5938 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5940 description { state: "disabled" 0.0;
5941 inherit: "default" 0.0;
5942 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5945 part { name: "disabler";
5947 description { state: "default" 0.0;
5951 description { state: "disabled" 0.0;
5952 inherit: "default" 0.0;
5958 program { name: "button_click";
5959 signal: "mouse,down,1";
5961 action: SIGNAL_EMIT "elm,action,press" "";
5962 after: "button_click_anim";
5964 program { name: "button_click_anim";
5965 action: STATE_SET "clicked" 0.0;
5966 target: "button_image";
5967 after: "text_clicked";
5969 program { name: "text_clicked";
5973 get_state(PART:"elm.text", st, 30, vl);
5974 if (!strcmp(st, "visible"))
5975 set_state(PART:"elm.text", "clicked", 0.0);
5978 program { name: "button_double_click";
5979 signal: "mouse,down,1,double";
5981 after: "button_click_anim";
5983 program { name: "button_unpress";
5984 action: SIGNAL_EMIT "elm,action,unpress" "";
5986 program { name: "button_mouseout_clicked";
5987 signal: "mouse,up,1";
5992 get_state(PART:"elm.swallow.content", st, 30, vl);
5993 if (strcmp(st, "icononly"))
5995 emit("elm,action,default,text,set", "");
5996 set_state(PART:"elm.text", "visible", 0.0);
5998 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5999 set_state(PART:"button_image", "default", 0.0);
6001 after: button_unpress;
6003 program { name: "touch_snd";
6004 signal: "mouse,clicked,1";
6006 action: PLAY_SAMPLE "touch_sound" 1.0;
6007 after: button_unclick3;
6009 program { name: "button_unclick3";
6010 action: SIGNAL_EMIT "elm,action,click" "";
6012 program { name: "text_show";
6013 signal: "elm,state,text,visible";
6018 get_state(PART:"elm.swallow.content", st, 30, vl);
6019 if (!strcmp(st, "icononly"))
6021 set_state(PART:"elm.swallow.content", "visible", 0.0);
6022 set_state(PART:"icon_rect", "visible", 0.0);
6023 set_state(PART:"padding_after_icon", "visible", 0.0);
6024 set_state(PART:"bg", "visible", 0.0);
6026 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6027 set_state(PART:"elm.text", "visible", 0.0);
6029 set_state(PART:"elm.text", "disabled_visible", 0.0);
6032 program { name: "text_hide";
6033 signal: "elm,state,text,hidden";
6038 get_state(PART:"elm.swallow.content", st, 30, vl);
6039 if (!strcmp(st, "visible"))
6041 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6042 set_state(PART:"icon_rect", "icononly", 0.0);
6043 set_state(PART:"padding_after_icon", "icononly", 0.0);
6044 set_state(PART:"bg", "icononly", 0.0);
6046 set_state(PART:"elm.text", "default", 0.0);
6049 program { name: "icon_show";
6050 signal: "elm,state,icon,visible";
6055 get_state(PART:"elm.text", st, 30, vl);
6056 if (!strcmp(st, "visible"))
6058 set_state(PART:"elm.swallow.content", "visible", 0.0);
6059 set_state(PART:"icon_rect", "visible", 0.0);
6060 set_state(PART:"padding_after_icon", "visible", 0.0);
6061 set_state(PART:"bg", "visible", 0.0);
6065 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6066 set_state(PART:"icon_rect", "icononly", 0.0);
6067 set_state(PART:"padding_after_icon", "icononly", 0.0);
6068 set_state(PART:"bg", "icononly", 0.0);
6072 program { name: "icon_hide";
6073 signal: "elm,state,icon,hidden";
6075 action: STATE_SET "default" 0.0;
6076 target: "elm.swallow.content";
6077 target: "padding_after_icon";
6078 target: "icon_rect";
6081 program { name: "disable";
6082 signal: "elm,state,disabled";
6084 action: STATE_SET "disabled" 0.0;
6085 target: "button_image";
6088 after: "disable_text";
6090 program { name: "disable_text";
6094 get_state(PART:"elm.text", st, 30, vl);
6095 if (!strcmp(st, "visible"))
6096 set_state(PART:"elm.text", "disabled_visible", 0.0);
6098 set_state(PART:"elm.text", "disabled", 0.0);
6099 set_int(button_state, BUTTON_STATE_DISABLED);
6102 program { name: "enable";
6103 signal: "elm,state,enabled";
6105 action: STATE_SET "default" 0.0;
6106 target: "button_image";
6109 after: "enable_text";
6111 program { name: "enable_text";
6115 get_state(PART:"elm.text", st, 30, vl);
6116 if (!strcmp(st, "disabled_visible"))
6117 set_state(PART:"elm.text", "visible", 0.0);
6119 set_state(PART:"elm.text", "default", 0.0);
6120 set_int(button_state, BUTTON_STATE_ENABLED);
6123 program { name: "focused";
6124 //signal: "elm,action,focus";
6126 action: STATE_SET "focused" 0.0;
6127 target: "button_image";
6130 program { name: "unfocused";
6131 //signal: "elm,action,unfocus";
6133 action: STATE_SET "default" 0.0;
6134 target: "button_image";
6135 after: "unfocus_text";
6137 program { name: "unfocus_text";
6138 action: STATE_SET "visible" 0.0;
6144 ///////////////////////////////////////////////////////////////////////////////////////
6145 group { name: "elm/button/base/expandable_number";
6146 alias: "elm/button/base/text_only/expandable_number";
6148 image: "00_button_01.png" COMP;
6149 image: "00_button_01_press.png" COMP;
6150 image: "00_button_01_dim.png" COMP;
6151 image: "00_arrow_expand.png" COMP;
6154 public button_state = BUTTON_STATE_ENABLED;
6157 part { name: "button_image";
6159 description { state: "default" 0.0;
6160 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6161 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6163 normal: "00_button_01.png";
6164 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6168 description { state: "clicked" 0.0;
6169 inherit: "default" 0.0;
6170 image.normal: "00_button_01_press.png";
6172 description { state: "disabled" 0.0;
6173 inherit: "default" 0.0;
6174 image.normal: "00_button_01_dim.png";
6176 description { state: "focused" 0.0;
6177 inherit: "default" 0.0;
6178 image.normal: "00_button_01_press.png";
6181 part { name: "padding_left_top";
6185 description { state: "default" 0.0;
6188 rel2.relative: 0.0 0.0;
6189 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6193 part { name: "padding_right_bottom";
6197 description { state: "default" 0.0;
6200 rel1.relative: 1.0 1.0;
6201 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6205 part { name: "icon_rect";
6209 description { state: "default" 0.0;
6211 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6212 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6216 to_x: "padding_right_bottom";
6217 to_y: "padding_left_top";
6221 to: "padding_right_bottom";
6226 part { name: "arrow_expand";
6228 clip_to: "icon_clipper";
6230 description { state: "default" 0.0;
6232 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6233 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6235 rel1.to: "icon_rect";
6236 rel2.to: "icon_rect";
6237 image.normal:"00_arrow_expand.png";
6240 part { name: "elm.text";
6243 effect: SHADOW BOTTOM;
6245 description { state: "default" 0.0;
6246 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6247 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6251 to: "padding_left_top";
6255 to_x:"padding_left_top";
6256 to_y:"padding_right_bottom";
6259 color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6260 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6262 font: "Tizen:style=Regular";
6263 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6267 text_class: "tizen";
6270 description { state: "visible" 0.0;
6271 inherit: "default" 0.0;
6273 description { state: "clicked" 0.0;
6274 inherit: "default" 0.0;
6275 color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
6277 description { state: "disabled" 0.0;
6278 inherit: "default" 0.0;
6280 description { state: "disabled_visible" 0.0;
6281 inherit: "default" 0.0;
6282 color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6283 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
6285 description { state: "focused" 0.0;
6286 inherit: "default" 0.0;
6287 color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6290 part { name: "icon_clipper";
6293 description { state: "default" 0.0;
6294 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6296 description { state: "clicked" 0.0;
6297 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6299 description { state: "disabled" 0.0;
6300 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6303 part { name: "over2";
6306 ignore_flags: ON_HOLD;
6307 description { state: "default" 0.0;
6311 part { name: "over3";
6314 description { state: "default" 0.0;
6318 part { name: "disabler";
6320 description { state: "default" 0.0;
6324 description { state: "disabled" 0.0;
6325 inherit: "default" 0.0;
6331 program { name: "button_click";
6332 signal: "mouse,down,1";
6334 action: SIGNAL_EMIT "elm,action,press" "";
6335 after: "button_click_anim";
6337 program { name: "button_click_anim";
6338 action: STATE_SET "clicked" 0.0;
6339 target: "button_image";
6340 target: "icon_clipper";
6341 after: "text_clicked";
6343 program { name: "text_clicked";
6347 get_state(PART:"elm.text", st, 30, vl);
6348 if (!strcmp(st, "visible"))
6349 set_state(PART:"elm.text", "clicked", 0.0);
6352 program { name: "button_double_click";
6353 signal: "mouse,down,1,double";
6355 after: "button_click_anim";
6357 program { name: "button_unpress";
6358 action: SIGNAL_EMIT "elm,action,unpress" "";
6360 program { name: "button_mouseout_clicked";
6361 signal: "mouse,up,1";
6364 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6366 set_state(PART:"button_image", "default", 0.0);
6367 set_state(PART:"elm.text", "visible", 0.0);
6368 set_state(PART:"icon_clipper", "default", 0.0);
6371 after: button_unpress;
6373 program { name: "touch_snd";
6374 signal: "mouse,clicked,1";
6376 action: PLAY_SAMPLE "touch_sound" 1.0;
6377 after: button_unclick3;
6379 program { name: "button_unclick3";
6380 action: SIGNAL_EMIT "elm,action,click" "";
6382 program { name: "text_show";
6383 signal: "elm,state,text,visible";
6386 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6387 set_state(PART:"elm.text", "visible", 0.0);
6389 set_state(PART:"elm.text", "disabled_visible", 0.0);
6392 program { name: "text_hide";
6393 signal: "elm,state,text,hidden";
6396 set_state(PART:"elm.text", "default", 0.0);
6399 program { name: "disable";
6400 signal: "elm,state,disabled";
6402 action: STATE_SET "disabled" 0.0;
6403 target: "button_image";
6405 target: "icon_clipper";
6406 after: "disable_text";
6408 program { name: "disable_text";
6412 get_state(PART:"elm.text", st, 30, vl);
6413 if (!strcmp(st, "visible"))
6414 set_state(PART:"elm.text", "disabled_visible", 0.0);
6416 set_state(PART:"elm.text", "disabled", 0.0);
6417 set_int(button_state, BUTTON_STATE_DISABLED);
6420 program { name: "enable";
6421 signal: "elm,state,enabled";
6423 action: STATE_SET "default" 0.0;
6424 target: "button_image";
6426 target: "icon_clipper";
6427 after: "enable_text";
6429 program { name: "enable_text";
6433 get_state(PART:"elm.text", st, 30, vl);
6434 if (!strcmp(st, "disabled_visible"))
6435 set_state(PART:"elm.text", "visible", 0.0);
6437 set_state(PART:"elm.text", "default", 0.0);
6438 set_int(button_state, BUTTON_STATE_ENABLED);
6441 program { name: "focused";
6442 //signal: "elm,action,focus";
6444 action: STATE_SET "focused" 0.0;
6445 target: "button_image";
6448 program { name: "unfocused";
6449 //signal: "elm,action,unfocus";
6451 action: STATE_SET "default" 0.0;
6452 target: "button_image";
6453 after: "unfocus_text";
6455 program { name: "unfocus_text";
6456 action: STATE_SET "visible" 0.0;
6462 ////////////////////////////////////////////////////////////////////////
6463 group { name: "elm/button/base/bubble_sent";
6464 inherit: "elm/button/base/style1";
6466 image: "00_messagebubble_button_sent.png" COMP;
6467 image: "00_messagebubble_button_sent_press.png" COMP;
6468 image: "00_messagebubble_button_sent_dim.png" COMP;
6471 part { name: "button_image";
6473 description { state: "default" 0.0;
6475 normal: "00_messagebubble_button_sent.png";
6476 border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
6480 description { state: "clicked" 0.0;
6481 inherit: "default" 0.0;
6482 image.normal: "00_messagebubble_button_sent_press.png";
6484 description { state: "disabled" 0.0;
6485 inherit: "default" 0.0;
6486 image.normal: "00_messagebubble_button_sent_dim.png";
6488 description { state: "focused" 0.0;
6489 inherit: "default" 0.0;
6490 image.normal: "00_messagebubble_button_sent_press.png";
6493 part { name: "elm.text";
6496 effect: FAR_SHADOW BOTTOM;
6499 description { state: "default" 0.0;
6503 to_x: "padding_after_icon";
6504 to_y: "padding_left_top";
6508 to: "padding_right_bottom";
6510 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6511 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6513 font: "Tizen:style=Regular";
6514 size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
6517 text_class: "tizen";
6520 description { state: "visible" 0.0;
6521 inherit: "default" 0.0;
6524 description { state: "clicked" 0.0;
6525 inherit: "default" 0.0;
6527 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6529 description { state: "disabled" 0.0;
6530 inherit: "default" 0.0;
6532 description { state: "disabled_visible" 0.0;
6533 inherit: "default" 0.0;
6534 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6537 description { state: "focused" 0.0;
6538 inherit: "default" 0.0;
6540 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6546 ////////////////////////////////////////////////////////////////////////
6547 group { name: "elm/button/base/bubble_sent/multiline";
6548 inherit: "elm/button/base/bubble_sent";
6550 style { name: "bubble_sent_multiline";
6551 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";
6558 part { name: "elm.text";
6561 effect: FAR_SHADOW BOTTOM;
6564 description { state: "default" 0.0;
6569 to_x: "padding_after_icon";
6570 to_y: "padding_left_top";
6574 to: "padding_right_bottom";
6576 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6577 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6579 style: "bubble_sent_multiline";
6582 description { state: "visible" 0.0;
6583 inherit: "default" 0.0;
6586 description { state: "clicked" 0.0;
6587 inherit: "default" 0.0;
6589 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6591 description { state: "disabled" 0.0;
6592 inherit: "default" 0.0;
6594 description { state: "disabled_visible" 0.0;
6595 inherit: "default" 0.0;
6596 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6599 description { state: "focused" 0.0;
6600 inherit: "default" 0.0;
6602 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6608 ///////////////////////////////////////////////////////////////////////
6609 group { name: "elm/button/base/bubble_receive";
6610 inherit: "elm/button/base/style1";
6612 image: "00_messagebubble_button_receive.png" COMP;
6613 image: "00_messagebubble_button_receive_press.png" COMP;
6614 image: "00_messagebubble_button_receive_dim.png" COMP;
6617 part { name: "button_image";
6619 description { state: "default" 0.0;
6621 normal: "00_messagebubble_button_receive.png";
6622 border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
6626 description { state: "clicked" 0.0;
6627 inherit: "default" 0.0;
6628 image.normal: "00_messagebubble_button_receive_press.png";
6630 description { state: "disabled" 0.0;
6631 inherit: "default" 0.0;
6632 image.normal: "00_messagebubble_button_receive_dim.png";
6634 description { state: "focused" 0.0;
6635 inherit: "default" 0.0;
6636 image.normal: "00_messagebubble_button_receive_press.png";
6639 part { name: "elm.text";
6642 effect: SHADOW BOTTOM;
6645 description { state: "default" 0.0;
6649 to_x: "padding_after_icon";
6650 to_y: "padding_left_top";
6654 to: "padding_right_bottom";
6656 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6657 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6659 font: "Tizen:style=Regular";
6660 size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
6663 text_class: "tizen";
6666 description { state: "visible" 0.0;
6667 inherit: "default" 0.0;
6670 description { state: "clicked" 0.0;
6671 inherit: "default" 0.0;
6673 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6675 description { state: "disabled" 0.0;
6676 inherit: "default" 0.0;
6678 description { state: "disabled_visible" 0.0;
6679 inherit: "default" 0.0;
6680 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6683 description { state: "focused" 0.0;
6684 inherit: "default" 0.0;
6686 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6692 ///////////////////////////////////////////////////////////////////////
6693 group { name: "elm/button/base/bubble_receive/multiline";
6694 inherit: "elm/button/base/bubble_receive";
6696 style { name: "bubble_receive_multiline";
6697 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";
6704 part { name: "elm.text";
6707 effect: SHADOW BOTTOM;
6710 description { state: "default" 0.0;
6715 to_x: "padding_after_icon";
6716 to_y: "padding_left_top";
6720 to: "padding_right_bottom";
6722 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6723 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6725 style: "btn_style1_multiline";
6728 description { state: "visible" 0.0;
6729 inherit: "default" 0.0;
6732 description { state: "clicked" 0.0;
6733 inherit: "default" 0.0;
6735 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6737 description { state: "disabled" 0.0;
6738 inherit: "default" 0.0;
6740 description { state: "disabled_visible" 0.0;
6741 inherit: "default" 0.0;
6742 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6745 description { state: "focused" 0.0;
6746 inherit: "default" 0.0;
6748 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6754 ///////////////////////////////////////////////////////////////////////
6755 group { name: "elm/button/base/bubble_circle/receive";
6757 image: "00_messagebubble_circle_receive.png" COMP;
6758 image: "00_messagebubble_circle_receive_press.png" COMP;
6759 image: "00_messagebubble_circle_receive_dim.png" COMP;
6760 image: "00_button_right.png" COMP;
6761 image: "00_button_right_press.png" COMP;
6764 part { name: "button_image";
6766 description { state: "default" 0.0;
6767 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6768 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6769 image.normal: "00_messagebubble_circle_receive.png";
6772 state: "clicked" 0.0;
6773 inherit: "default" 0.0;
6774 image.normal: "00_messagebubble_circle_receive_press.png";
6777 state: "disabled" 0.0;
6778 inherit: "default" 0.0;
6779 image.normal: "00_messagebubble_circle_receive_dim.png";
6782 part { name: "image";
6784 clip_to: "icon_clipper";
6785 description { state: "default" 0.0;
6786 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6787 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6788 image.normal: "00_button_right.png";
6791 state: "clicked" 0.0;
6792 inherit: "default" 0.0;
6793 image.normal: "00_button_right_press.png";
6796 state: "disabled" 0.0;
6797 inherit: "default" 0.0;
6800 part { name: "icon_clipper";
6803 description { state: "default" 0.0;
6804 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
6806 description { state: "clicked" 0.0;
6807 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
6809 description { state: "disabled" 0.0;
6810 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
6813 part { name: "over1";
6815 ignore_flags: ON_HOLD;
6816 description { state: "default" 0.0;
6820 part { name: "over2";
6823 description { state: "default" 0.0;
6827 part { name: "disabler";
6829 description { state: "default" 0.0;
6833 description { state: "disabled" 0.0;
6834 inherit: "default" 0.0;
6840 program { name: "button_click";
6841 signal: "mouse,down,1";
6843 action: SIGNAL_EMIT "elm,action,press" "";
6844 after: "button_click_anim";
6846 program { name: "button_click_anim";
6847 action: STATE_SET "clicked" 0.0;
6848 target: "button_image";
6850 target: "icon_clipper";
6852 program { name: "button_double_click";
6853 signal: "mouse,down,1,double";
6855 after: "button_click_anim";
6857 program { name: "button_unclick";
6858 signal: "mouse,up,1";
6860 action: SIGNAL_EMIT "elm,action,unpress" "";
6861 after: "button_unclick_anim";
6863 program { name: "button_unclick_anim";
6864 action: STATE_SET "default" 0.0;
6865 target: "button_image";
6867 target: "icon_clipper";
6869 program { name: "touch_snd";
6870 signal: "mouse,clicked,1";
6872 action: PLAY_SAMPLE "touch_sound" 1.0;
6873 after: button_unclick3;
6875 program { name: "button_unclick3";
6876 action: SIGNAL_EMIT "elm,action,click" "";
6878 program { name: "disable";
6879 signal: "elm,state,disabled";
6881 action: STATE_SET "disabled" 0.0;
6883 target: "button_image";
6884 target: "icon_clipper";
6887 program { name: "enable";
6888 signal: "elm,state,enabled";
6890 action: STATE_SET "default" 0.0;
6892 target: "button_image";
6893 target: "icon_clipper";
6898 ///////////////////////////////////////////////////////////////////////
6899 group { name: "elm/button/base/bubble_circle/sent";
6901 image: "00_messagebubble_circle_sent.png" COMP;
6902 image: "00_messagebubble_circle_sent_press.png" COMP;
6903 image: "00_messagebubble_circle_sent_dim.png" COMP;
6904 image: "00_button_right.png" COMP;
6905 image: "00_button_right_press.png" COMP;
6908 part { name: "button_image";
6910 description { state: "default" 0.0;
6911 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6912 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6913 image.normal: "00_messagebubble_circle_sent.png";
6916 state: "clicked" 0.0;
6917 inherit: "default" 0.0;
6918 image.normal: "00_messagebubble_circle_sent_press.png";
6921 state: "disabled" 0.0;
6922 inherit: "default" 0.0;
6923 image.normal: "00_messagebubble_circle_sent_dim.png";
6926 part { name: "image";
6928 clip_to: "icon_clipper";
6929 description { state: "default" 0.0;
6930 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6931 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6932 image.normal: "00_button_right.png";
6935 state: "clicked" 0.0;
6936 inherit: "default" 0.0;
6937 image.normal: "00_button_right_press.png";
6940 state: "disabled" 0.0;
6941 inherit: "default" 0.0;
6944 part { name: "icon_clipper";
6947 description { state: "default" 0.0;
6948 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
6950 description { state: "clicked" 0.0;
6951 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
6953 description { state: "disabled" 0.0;
6954 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
6957 part { name: "over1";
6959 ignore_flags: ON_HOLD;
6960 description { state: "default" 0.0;
6964 part { name: "over2";
6967 description { state: "default" 0.0;
6971 part { name: "disabler";
6973 description { state: "default" 0.0;
6977 description { state: "disabled" 0.0;
6978 inherit: "default" 0.0;
6984 program { name: "button_click";
6985 signal: "mouse,down,1";
6987 action: SIGNAL_EMIT "elm,action,press" "";
6988 after: "button_click_anim";
6990 program { name: "button_click_anim";
6991 action: STATE_SET "clicked" 0.0;
6992 target: "button_image";
6994 target: "icon_clipper";
6996 program { name: "button_double_click";
6997 signal: "mouse,down,1,double";
6999 after: "button_click_anim";
7001 program { name: "button_unclick";
7002 signal: "mouse,up,1";
7004 action: SIGNAL_EMIT "elm,action,unpress" "";
7005 after: "button_unclick_anim";
7007 program { name: "button_unclick_anim";
7008 action: STATE_SET "default" 0.0;
7009 target: "button_image";
7011 target: "icon_clipper";
7013 program { name: "touch_snd";
7014 signal: "mouse,clicked,1";
7016 action: PLAY_SAMPLE "touch_sound" 1.0;
7017 after: button_unclick3;
7019 program { name: "button_unclick3";
7020 action: SIGNAL_EMIT "elm,action,click" "";
7022 program { name: "disable";
7023 signal: "elm,state,disabled";
7025 action: STATE_SET "disabled" 0.0;
7027 target: "button_image";
7028 target: "icon_clipper";
7030 program { name: "enable";
7031 signal: "elm,state,enabled";
7033 action: STATE_SET "default" 0.0;
7035 target: "button_image";
7036 target: "icon_clipper";
7041 //////////////////////////////////////////////////////////////////////////////////////
7042 group { name: "elm/button/base/editfield_clear";
7044 image: "00_EditField_clear" COMP;
7047 part { name: "button_image";
7050 description { state: "default" 0.0;
7053 description { state: "clicked" 0.0;
7054 inherit: "default" 0.0;
7056 description { state: "disabled" 0.0;
7057 inherit: "default" 0.0;
7059 description { state: "focused" 0.0;
7060 inherit: "default" 0.0;
7063 part { name: "clear_button";
7066 clip_to: "clear_button.clipper";
7067 description { state: "default" 0.0;
7068 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7069 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7072 image.normal: "00_EditField_clear.png";
7075 part { name: "clear_button.clipper";
7077 description { state: "default" 0.0;
7078 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7080 description { state: "clicked" 0.0;
7081 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7083 description { state: "disabled" 0.0;
7084 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7087 part { name: "over2";
7089 ignore_flags: ON_HOLD;
7090 description { state: "default" 0.0;
7094 part { name: "over3";
7097 description { state: "default" 0.0;
7101 part { name: "disabler";
7103 description { state: "default" 0.0;
7107 description { state: "disabled" 0.0;
7108 inherit: "default" 0.0;
7114 program { name: "button_click";
7115 signal: "mouse,down,1";
7117 action: SIGNAL_EMIT "elm,action,press" "";
7118 after: "button_click_anim";
7120 program { name: "button_click_anim";
7121 action: STATE_SET "clicked" 0.0;
7122 target: "button_image";
7123 target: "clear_button.clipper";
7125 program { name: "button_double_click";
7126 signal: "mouse,down,1,double";
7128 after: "button_click_anim";
7130 program { name: "button_unclick";
7131 signal: "mouse,up,1";
7133 action: SIGNAL_EMIT "elm,action,unpress" "";
7134 after: "button_unclick_anim";
7136 program { name: "button_unclick_anim";
7137 action: STATE_SET "default" 0.0;
7138 target: "button_image";
7139 target: "clear_button.clipper";
7141 program { name: "touch_snd";
7142 signal: "mouse,clicked,1";
7144 action: PLAY_SAMPLE "touch_sound" 1.0;
7145 after: button_unclick3;
7147 program { name: "button_unclick3";
7148 action: SIGNAL_EMIT "elm,action,click" "";
7150 program { name: "disable";
7151 signal: "elm,state,disabled";
7153 action: STATE_SET "disabled" 0.0;
7154 target: "button_image";
7156 target: "clear_button.clipper";
7158 program { name: "enable";
7159 signal: "elm,state,enabled";
7161 action: STATE_SET "default" 0.0;
7162 target: "button_image";
7164 target: "clear_button.clipper";
7169 group { name: "elm/button/base/search_clear";
7170 inherit: "elm/button/base/editfield_clear";
7172 part { name: "clear_button";
7175 clip_to: "clear_button.clipper";
7176 description { state: "default" 0.0;
7177 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7178 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7181 image.normal: "00_EditField_clear.png";
7188 ///////////////////////////////////////////////////////////////////////////////////////
7190 group { name: "elm/button/base/contacts/delete";
7192 image: "00_button_edit_Delete.png" COMP;
7193 image: "00_button_edit_Delete_press.png" COMP;
7194 image: "00_button_edit_dim.png" COMP;
7195 image: "00_button_edit_focus.png" COMP;
7198 public button_state = BUTTON_STATE_ENABLED;
7201 part { name: "button_image";
7203 description { state: "default" 0.0;
7204 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
7206 normal: "00_button_edit_Delete.png";
7207 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
7211 description { state: "clicked" 0.0;
7212 inherit: "default" 0.0;
7213 image.normal: "00_button_edit_Delete_press.png";
7215 description { state: "disabled" 0.0;
7216 inherit: "default" 0.0;
7217 image.normal: "00_button_edit_dim.png";
7219 description { state: "focused" 0.0;
7220 inherit: "default" 0.0;
7221 image.normal: "00_button_edit_focus.png";
7224 part { name: "padding_left_top";
7228 description { state: "default" 0.0;
7230 rel2.relative: 0.0 0.0;
7231 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
7236 part { name: "padding_right_bottom";
7240 description { state: "default" 0.0;
7242 rel1.relative: 1.0 1.0;
7243 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
7248 part { name: "padding_icon_text";
7252 description { state: "default" 0.0; //when only icon or no icon is there
7256 to: "elm.swallow.content";
7258 rel2.to: "elm.swallow.content";
7263 description { state: "icononly" 0.0;
7264 inherit: "default" 0.0;
7266 description { state: "visible" 0.0; //when icon is visible
7267 inherit: "default" 0.0;
7268 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
7271 part { name: "elm.swallow.content";
7275 description { state: "default" 0.0;
7280 to: "padding_left_top";
7284 to_x: "padding_left_top";
7285 to_y: "padding_right_bottom";
7289 description { state: "visible" 0.0;
7294 to: "padding_left_top";
7298 to_x: "padding_left_top";
7299 to_y: "padding_right_bottom";
7302 aspect_preference: VERTICAL;
7304 description { state: "icononly" 0.0;
7305 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
7308 to: "padding_left_top";
7312 to: "padding_right_bottom";
7315 aspect_preference: VERTICAL;
7318 part { name: "elm.text";
7323 description { state: "default" 0.0;
7326 to_x: "padding_icon_text";
7327 to_y: "padding_left_top";
7331 to: "padding_right_bottom";
7333 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
7335 font: "Tizen:style=Regular";
7336 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
7340 text_class: "tizen";
7343 description { state: "visible" 0.0;
7344 inherit: "default" 0.0;
7346 description { state: "clicked" 0.0;
7347 inherit: "default" 0.0;
7348 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
7350 description { state: "disabled" 0.0;
7351 inherit: "default" 0.0;
7353 description { state: "disabled_visible" 0.0;
7354 inherit: "default" 0.0;
7355 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
7357 description { state: "focused" 0.0;
7358 inherit: "default" 0.0;
7360 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
7363 part { name: "over2";
7366 ignore_flags: ON_HOLD;
7367 description { state: "default" 0.0;
7371 part { name: "over3";
7374 description { state: "default" 0.0;
7378 part { name: "clipper";
7380 description { state: "default" 0.0;
7381 color: 255 255 255 255;
7384 part { name: "disabler";
7386 description { state: "default" 0.0;
7390 description { state: "disabled" 0.0;
7391 inherit: "default" 0.0;
7397 program { name: "button_click";
7398 signal: "mouse,down,1";
7400 action: SIGNAL_EMIT "elm,action,press" "";
7401 after: "button_click_anim";
7403 program { name: "button_click_anim";
7404 action: STATE_SET "clicked" 0.0;
7405 target: "button_image";
7406 after: "text_clicked";
7408 program { name: "text_clicked";
7412 get_state(PART:"elm.text", st, 30, vl);
7413 if (!strcmp(st, "visible"))
7414 set_state(PART:"elm.text", "clicked", 0.0);
7417 program { name: "button_unpress";
7418 action: SIGNAL_EMIT "elm,action,unpress" "";
7420 program { name: "button_mouseout_clicked";
7421 signal: "mouse,up,1";
7426 get_state(PART:"elm.swallow.content", st, 30, vl);
7427 if (strcmp(st, "icononly"))
7429 emit("elm,action,default,text,set", "");
7430 set_state(PART:"elm.text", "visible", 0.0);
7432 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7433 set_state(PART:"button_image", "default", 0.0);
7435 after: button_unpress;
7437 program { name: "touch_snd";
7438 signal: "mouse,clicked,1";
7440 action: PLAY_SAMPLE "touch_sound" 1.0;
7441 after: button_unclick3;
7443 program { name: "button_unclick3";
7444 action: SIGNAL_EMIT "elm,action,click" "";
7446 program { name: "text_show";
7447 signal: "elm,state,text,visible";
7452 get_state(PART:"elm.swallow.content", st, 30, vl);
7453 if (!strcmp(st, "icononly"))
7455 set_state(PART:"elm.swallow.content", "visible", 0.0);
7456 set_state(PART:"padding_icon_text", "visible", 0.0);
7458 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7459 set_state(PART:"elm.text", "visible", 0.0);
7461 set_state(PART:"elm.text", "disabled_visible", 0.0);
7464 program { name: "text_hide";
7465 signal: "elm,state,text,hidden";
7470 get_state(PART:"elm.swallow.content", st, 30, vl);
7471 if (!strcmp(st, "visible"))
7473 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7474 set_state(PART:"padding_icon_text", "icononly", 0.0);
7476 set_state(PART:"elm.text", "default", 0.0);
7479 program { name: "icon_show";
7480 signal: "elm,state,icon,visible";
7485 get_state(PART:"elm.text", st, 30, vl);
7486 if (!strcmp(st, "visible"))
7488 set_state(PART:"elm.swallow.content", "visible", 0.0);
7489 set_state(PART:"padding_icon_text", "visible", 0.0);
7493 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7494 set_state(PART:"padding_icon_text", "icononly", 0.0);
7498 program { name: "icon_hide";
7499 signal: "elm,state,icon,hidden";
7501 action: STATE_SET "default" 0.0;
7502 target: "elm.swallow.content";
7503 target: "padding_icon_text";
7505 program { name: "disable";
7506 signal: "elm,state,disabled";
7508 action: STATE_SET "disabled" 0.0;
7509 target: "button_image";
7511 after: "disable_text";
7513 program { name: "disable_text";
7517 get_state(PART:"elm.text", st, 30, vl);
7518 if (!strcmp(st, "visible"))
7519 set_state(PART:"elm.text", "disabled_visible", 0.0);
7521 set_state(PART:"elm.text", "disabled", 0.0);
7522 set_int(button_state, BUTTON_STATE_DISABLED);
7525 program { name: "enable";
7526 signal: "elm,state,enabled";
7528 action: STATE_SET "default" 0.0;
7529 target: "button_image";
7531 after: "enable_text";
7533 program { name: "enable_text";
7537 get_state(PART:"elm.text", st, 30, vl);
7538 if (!strcmp(st, "disabled_visible"))
7539 set_state(PART:"elm.text", "visible", 0.0);
7541 set_state(PART:"elm.text", "default", 0.0);
7542 set_int(button_state, BUTTON_STATE_ENABLED);
7545 program { name: "focused";
7546 //signal: "elm,action,focus";
7548 action: STATE_SET "focused" 0.0;
7549 target: "button_image";
7552 program { name: "unfocused";
7553 //signal: "elm,action,unfocus";
7555 action: STATE_SET "default" 0.0;
7556 target: "button_image";
7557 after: "unfocus_text";
7559 program { name: "unfocus_text";
7560 action: STATE_SET "visible" 0.0;
7566 /////////////////////////////////////////////////////////////////////
7567 #define BUTTON_CONTACT_STYLES(style_name, image_normal, image_press) \
7568 group { name: "elm/button/base/contact/"style_name; \
7570 image: "00_circle_button.png" COMP; \
7571 image: "00_circle_button_press.png" COMP; \
7572 image: image_normal COMP; \
7573 image: image_press COMP; \
7576 part { name: "button_image"; \
7578 description { state: "default" 0.0; \
7579 min: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7580 max: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7581 image.normal: "00_circle_button.png"; \
7584 state: "clicked" 0.0; \
7585 inherit: "default" 0.0; \
7586 image.normal: "00_circle_button_press.png"; \
7589 state: "disabled" 0.0; \
7590 inherit: "default" 0.0; \
7591 image.normal: "00_circle_button.png"; \
7594 part { name: "button_center_part"; \
7596 clip_to: "disclip"; \
7597 description { state: "default" 0.0; \
7598 min: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7599 max: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7600 image.normal: image_normal; \
7603 state: "clicked" 0.0; \
7604 inherit: "default" 0.0; \
7605 image.normal: image_press; \
7608 state: "disabled" 0.0; \
7609 inherit: "default" 0.0; \
7612 part { name: "over1"; \
7614 ignore_flags: ON_HOLD; \
7615 description { state: "default" 0.0; \
7619 part { name: "over2"; \
7621 description { state: "default" 0.0; \
7625 part { name: "disclip"; \
7628 description { state: "default" 0.0; \
7629 color: BUTTON_DISCLIP_NORMAL_COLOR_INC; \
7631 description { state: "disabled" 0.0; \
7632 inherit: "default" 0.0; \
7633 color: BUTTON_DISCLIP_DISABLED_COLOR_INC; \
7636 part { name: "disabler"; \
7638 description { state: "default" 0.0; \
7642 description { state: "disabled" 0.0; \
7643 inherit: "default" 0.0; \
7649 program { name: "button_click"; \
7650 signal: "mouse,down,1"; \
7652 action: SIGNAL_EMIT "elm,action,press" ""; \
7653 after: "button_click_anim"; \
7655 program { name: "button_click_anim"; \
7656 action: STATE_SET "clicked" 0.0; \
7657 target: "button_image"; \
7658 target: "button_center_part"; \
7660 program { name: "button_unclick"; \
7661 signal: "mouse,up,1"; \
7663 action: SIGNAL_EMIT "elm,action,unpress" ""; \
7664 after: "button_unclick_anim"; \
7666 program { name: "button_unclick_anim"; \
7667 action: STATE_SET "default" 0.0; \
7668 target: "button_image"; \
7669 target: "button_center_part"; \
7671 program { name: "touch_snd"; \
7672 signal: "mouse,clicked,1"; \
7674 action: PLAY_SAMPLE "touch_sound" 1.0; \
7675 after: button_unclick3; \
7677 program { name: "button_unclick3"; \
7678 action: SIGNAL_EMIT "elm,action,click" ""; \
7680 program { name: "disable"; \
7681 signal: "elm,state,disabled"; \
7683 action: STATE_SET "disabled" 0.0; \
7684 target: "disabler"; \
7685 target: "disclip"; \
7686 target: "button_image"; \
7687 target: "button_center_part"; \
7689 program { name: "enable"; \
7690 signal: "elm,state,enabled"; \
7692 action: STATE_SET "default" 0.0; \
7693 target: "disabler"; \
7694 target: "disclip"; \
7695 target: "button_image"; \
7696 target: "button_center_part"; \
7701 ///////////////////////////////////////////////////////////////////////////////////////
7702 BUTTON_CONTACT_STYLES("expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png")
7704 BUTTON_CONTACT_STYLES("expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png")
7706 BUTTON_CONTACT_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png")
7708 ///////////////////////////////////////////////////////////////////////////////////////
7711 #undef BUTTON_STATE_ENABLED
7712 #undef BUTTON_STATE_DISABLED