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
22 #define BUTTON_LANDSCAPE_DISABLED 0
23 #define BUTTON_LANDSCAPE_ENABLED 1
25 ///////////////////////////////////////////////////////////////////////////////////////
26 group { name: "elm/button/base/style1";
27 alias: "elm/button/base/text_only/style1";
28 alias: "elm/button/base/center";
29 alias: "elm/button/base/icon_and_text/center";
30 alias: "elm/button/base/nocontents/search_button";
31 alias: "elm/button/base/style1/multiline";
32 alias: "elm/button/base/sweep";
33 alias: "elm/button/base/text_only/sweep";
34 alias: "elm/button/base/hidden";
35 alias: "elm/button/base/sweep/multiline";
36 alias: "elm/button/base/style2";
37 alias: "elm/button/base/text_only/style2";
38 alias: "elm/button/base/style2/multiline";
40 item: "focus_highlight" "on";
43 image: "00_button_01.png" COMP;
44 image: "00_button_01_press.png" COMP;
45 image: "00_button_01_dim.png" COMP;
46 image: "00_button_01_focus.png" COMP;
49 style { name: "btn_base_style1";
50 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
55 style { name: "btn_base_style1_pressed";
56 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
61 style { name: "btn_base_style1_dim";
62 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
67 style { name: "btn_base_style1_focus";
68 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
75 public button_state = BUTTON_STATE_ENABLED;
78 part { name: "button_image";
80 description { state: "default" 0.0;
82 normal: "00_button_01.png";
83 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
87 description { state: "clicked" 0.0;
88 inherit: "default" 0.0;
89 image.normal: "00_button_01_press.png";
91 description { state: "disabled" 0.0;
92 inherit: "default" 0.0;
93 image.normal: "00_button_01_dim.png";
95 description { state: "focused" 0.0;
96 inherit: "default" 0.0;
97 image.normal: "00_button_01_press.png";
100 part { name: "focus_image";
104 description { state: "default" 0.0;
106 rel1.to : "button_image";
107 rel2.to : "button_image";
109 normal: "00_button_01_focus.png";
110 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
114 description { state: "focused" 0.0;
115 inherit: "default" 0.0;
119 part { name: "padding_left_top";
123 description { state: "default" 0.0;
125 rel2.relative: 0.0 0.0;
126 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
135 description { state: "default" 0.0;
136 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
139 description { state: "visible" 0.0;
140 inherit: "default" 0.0;
141 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
143 description { state: "icononly" 0.0;
144 inherit: "default" 0.0;
145 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
148 part { name: "padding_right_bottom";
152 description { state: "default" 0.0;
154 rel1.relative: 1.0 1.0;
155 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
160 part { name: "icon_rect";
164 description { state: "default" 0.0;
170 to: "padding_left_top";
174 to_x: "padding_left_top";
175 to_y: "padding_right_bottom";
179 description { state: "visible" 0.0;
180 inherit: "default" 0.0;
181 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
182 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
184 description { state: "icononly" 0.0;
185 inherit: "default" 0.0;
188 part { name: "padding_after_icon";
192 description { state: "default" 0.0; //when only icon or no icon is there
198 rel2.to: "icon_rect";
203 description { state: "visible" 0.0;
204 inherit: "default" 0.0;
205 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
207 description { state: "icononly" 0.0;
208 inherit: "default" 0.0;
211 part { name: "padding_before_text";
215 description { state: "default" 0.0; //when only icon or no icon is there
220 to_y: "padding_left_top";
225 to_y: "padding_right_bottom";
228 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
232 part { name: "elm.swallow.content";
236 description { state: "default" 0.0;
241 to: "padding_left_top";
245 to_x: "padding_left_top";
246 to_y: "padding_right_bottom";
250 description { state: "visible" 0.0;
252 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
253 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
257 to_x: "padding_before_text";
258 to_y: "padding_left_top";
262 to_x: "padding_before_text";
263 to_y: "padding_right_bottom";
266 description { state: "icononly" 0.0;
267 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
268 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
271 part { name: "elm.text";
276 description { state: "default" 0.0;
280 to_x: "padding_after_icon";
281 to_y: "padding_left_top";
285 to: "padding_right_bottom";
288 style: "btn_base_style1";
291 description { state: "visible" 0.0;
292 inherit: "default" 0.0;
295 description { state: "clicked" 0.0;
296 inherit: "default" 0.0;
299 style: "btn_base_style1_pressed";
302 description { state: "disabled" 0.0;
303 inherit: "default" 0.0;
305 description { state: "disabled_visible" 0.0;
306 inherit: "default" 0.0;
309 style: "btn_base_style1_dim";
312 description { state: "focused" 0.0;
313 inherit: "default" 0.0;
316 style: "btn_base_style1_focus";
320 part { name: "over2";
323 ignore_flags: ON_HOLD;
324 description { state: "default" 0.0;
328 part { name: "over3";
331 description { state: "default" 0.0;
335 part { name: "clipper";
337 description { state: "default" 0.0;
338 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
340 description { state: "disabled" 0.0;
341 inherit: "default" 0.0;
342 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
345 part { name: "disabler";
347 description { state: "default" 0.0;
351 description { state: "disabled" 0.0;
352 inherit: "default" 0.0;
358 program { name: "button_click";
359 signal: "mouse,down,1";
361 action: SIGNAL_EMIT "elm,action,press" "";
362 after: "button_click_anim";
364 program { name: "button_click_anim";
365 action: STATE_SET "clicked" 0.0;
366 target: "button_image";
367 after: "text_clicked";
369 program { name: "text_clicked";
373 get_state(PART:"elm.text", st, 30, vl);
374 if (!strcmp(st, "visible"))
375 set_state(PART:"elm.text", "clicked", 0.0);
378 program { name: "button_double_click";
379 signal: "mouse,down,1,double";
381 after: "button_click_anim";
383 program { name: "button_unpress";
384 action: SIGNAL_EMIT "elm,action,unpress" "";
386 program { name: "button_mouseout_clicked";
387 signal: "mouse,up,1";
392 get_state(PART:"elm.swallow.content", st, 30, vl);
393 if (strcmp(st, "icononly"))
395 emit("elm,action,default,text,set", "");
396 set_state(PART:"elm.text", "visible", 0.0);
398 if (get_int(button_state) != BUTTON_STATE_DISABLED)
399 set_state(PART:"button_image", "default", 0.0);
401 after: button_unpress;
403 program { name: "touch_snd";
404 signal: "mouse,clicked,1";
406 action: PLAY_SAMPLE "touch_sound" 1.0;
407 after: button_unclick3;
409 program { name: "button_unclick3";
410 action: SIGNAL_EMIT "elm,action,click" "";
412 program { name: "text_show";
413 signal: "elm,state,text,visible";
418 get_state(PART:"elm.swallow.content", st, 30, vl);
419 if (!strcmp(st, "icononly"))
421 set_state(PART:"elm.swallow.content", "visible", 0.0);
422 set_state(PART:"icon_rect", "visible", 0.0);
423 set_state(PART:"padding_after_icon", "visible", 0.0);
424 set_state(PART:"bg", "visible", 0.0);
426 if (get_int(button_state) != BUTTON_STATE_DISABLED)
427 set_state(PART:"elm.text", "visible", 0.0);
429 set_state(PART:"elm.text", "disabled_visible", 0.0);
432 program { name: "text_hide";
433 signal: "elm,state,text,hidden";
438 get_state(PART:"elm.swallow.content", st, 30, vl);
439 if (!strcmp(st, "visible"))
441 set_state(PART:"elm.swallow.content", "icononly", 0.0);
442 set_state(PART:"icon_rect", "icononly", 0.0);
443 set_state(PART:"padding_after_icon", "icononly", 0.0);
444 set_state(PART:"bg", "icononly", 0.0);
446 set_state(PART:"elm.text", "default", 0.0);
449 program { name: "icon_show";
450 signal: "elm,state,icon,visible";
455 get_state(PART:"elm.text", st, 30, vl);
456 if (!strcmp(st, "visible"))
458 set_state(PART:"elm.swallow.content", "visible", 0.0);
459 set_state(PART:"icon_rect", "visible", 0.0);
460 set_state(PART:"padding_after_icon", "visible", 0.0);
461 set_state(PART:"bg", "visible", 0.0);
465 set_state(PART:"elm.swallow.content", "icononly", 0.0);
466 set_state(PART:"icon_rect", "icononly", 0.0);
467 set_state(PART:"padding_after_icon", "icononly", 0.0);
468 set_state(PART:"bg", "icononly", 0.0);
472 program { name: "icon_hide";
473 signal: "elm,state,icon,hidden";
475 action: STATE_SET "default" 0.0;
476 target: "elm.swallow.content";
477 target: "padding_after_icon";
481 program { name: "disable";
482 signal: "elm,state,disabled";
484 action: STATE_SET "disabled" 0.0;
485 target: "button_image";
488 after: "disable_text";
490 program { name: "disable_text";
494 get_state(PART:"elm.text", st, 30, vl);
495 if (!strcmp(st, "visible"))
496 set_state(PART:"elm.text", "disabled_visible", 0.0);
498 set_state(PART:"elm.text", "disabled", 0.0);
499 set_int(button_state, BUTTON_STATE_DISABLED);
502 program { name: "enable";
503 signal: "elm,state,enabled";
505 action: STATE_SET "default" 0.0;
506 target: "button_image";
509 after: "enable_text";
511 program { name: "enable_text";
515 get_state(PART:"elm.text", st, 30, vl);
516 if (!strcmp(st, "disabled_visible"))
517 set_state(PART:"elm.text", "visible", 0.0);
519 set_state(PART:"elm.text", "default", 0.0);
520 set_int(button_state, BUTTON_STATE_ENABLED);
523 program { name: "action_focus";
524 signal: "elm,action,focus_highlight,show";
526 action: STATE_SET "focused" 0.0;
527 target: "focus_image";
529 program { name: "action_unfocus";
530 signal: "elm,action,focus_highlight,hide";
532 action: STATE_SET "default" 0.0;
533 target: "focus_image";
538 //////////////////////////////////////////////////////////////
539 group { name: "elm/button/base/style1/auto_expand";
540 inherit: "elm/button/base/style1";
542 part { name: "elm.text";
547 description { state: "default" 0.0;
551 to_x: "padding_after_icon";
552 to_y: "padding_left_top";
556 to: "padding_right_bottom";
559 style: "btn_base_style1";
564 description { state: "visible" 0.0;
565 inherit: "default" 0.0;
568 description { state: "clicked" 0.0;
569 inherit: "default" 0.0;
572 style: "btn_base_style1_pressed";
575 description { state: "disabled" 0.0;
576 inherit: "default" 0.0;
578 description { state: "disabled_visible" 0.0;
579 inherit: "default" 0.0;
582 style: "btn_base_style1_dim";
585 description { state: "focused" 0.0;
586 inherit: "default" 0.0;
589 style: "btn_base_style1_focus";
596 //////////////////////////////////////////////////////////////////////////////////////
597 group { name: "elm/button/base/datetime/ampm/default";
598 alias: "elm/button/base/datetime_ampm/default";
599 inherit: "elm/button/base/style1/auto_expand";
601 part { name: "button_image";
603 description { state: "default" 0.0;
605 normal: "00_button_01.png";
606 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
609 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
610 max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
612 description { state: "clicked" 0.0;
613 inherit: "default" 0.0;
614 image.normal: "00_button_01_press.png";
616 description { state: "disabled" 0.0;
617 inherit: "default" 0.0;
618 image.normal: "00_button_01_dim.png";
620 description { state: "focused" 0.0;
621 inherit: "default" 0.0;
622 image.normal: "00_button_01_press.png";
629 description { state: "default" 0.0;
633 description { state: "visible" 0.0;
634 inherit: "default" 0.0;
635 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
637 description { state: "icononly" 0.0;
638 inherit: "default" 0.0;
641 part { name: "elm.text";
646 description { state: "default" 0.0;
650 style: "btn_base_style1";
651 size: BUTTON_DATETIME_AMPM_TEXT_FONT_SIZE_INC;
655 description { state: "visible" 0.0;
656 inherit: "default" 0.0;
659 description { state: "clicked" 0.0;
660 inherit: "default" 0.0;
663 style: "btn_base_style1_pressed";
666 description { state: "disabled" 0.0;
667 inherit: "default" 0.0;
669 description { state: "disabled_visible" 0.0;
670 inherit: "default" 0.0;
673 style: "btn_base_style1_dim";
676 description { state: "focused" 0.0;
677 inherit: "default" 0.0;
680 style: "btn_base_style1_focus";
687 ///////////////////////////////////////////////////////////////////////////////////////
688 group { name: "elm/button/base/style1/delete";
689 alias: "elm/button/base/sweep/delete";
690 alias: "elm/button/base/sweep/delete/multiline";
691 inherit: "elm/button/base/style1";
693 image: "00_button_01_delete.png" COMP;
694 image: "00_button_01_delete_dim.png" COMP;
695 image: "00_button_01_delete_press.png" COMP;
698 part { name: "button_image";
700 description { state: "default" 0.0;
702 normal: "00_button_01_delete.png";
703 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
707 description { state: "clicked" 0.0;
708 inherit: "default" 0.0;
709 image.normal: "00_button_01_delete_press.png";
711 description { state: "disabled" 0.0;
712 inherit: "default" 0.0;
713 image.normal: "00_button_01_delete_dim.png";
715 description { state: "focused" 0.0;
716 inherit: "default" 0.0;
717 image.normal: "00_button_01_delete_press.png";
720 part { name: "elm.text";
725 description { state: "default" 0.0;
729 to_x: "padding_after_icon";
730 to_y: "padding_left_top";
734 to: "padding_right_bottom";
737 style: "btn_base_style1";
740 description { state: "visible" 0.0;
741 inherit: "default" 0.0;
744 description { state: "clicked" 0.0;
745 inherit: "default" 0.0;
748 style: "btn_base_style1_pressed";
751 description { state: "disabled" 0.0;
752 inherit: "default" 0.0;
754 description { state: "disabled_visible" 0.0;
755 inherit: "default" 0.0;
758 style: "btn_base_style1_dim";
761 description { state: "focused" 0.0;
762 inherit: "default" 0.0;
765 style: "btn_base_style1_focus";
772 ///////////////////////////////////////////////////////////////////////////////////////
773 group { name: "elm/button/base/search_button/text";
774 alias: "elm/button/base/searchbar/default";
775 inherit: "elm/button/base/style1";
777 style { name: "btn_base_search";
778 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
783 style { name: "btn_base_search_pressed";
784 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
789 style { name: "btn_base_search_dim";
790 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
795 style { name: "btn_base_search_focus";
796 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
807 description { state: "default" 0.0;
808 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
811 description { state: "visible" 0.0;
812 inherit: "default" 0.0;
813 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
815 description { state: "icononly" 0.0;
816 inherit: "default" 0.0;
817 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
820 part { name: "elm.text";
825 description { state: "default" 0.0;
829 to_x: "padding_after_icon";
830 to_y: "padding_left_top";
834 to: "padding_right_bottom";
837 style: "btn_base_search";
842 description { state: "visible" 0.0;
843 inherit: "default" 0.0;
846 description { state: "clicked" 0.0;
847 inherit: "default" 0.0;
850 style: "btn_base_search_pressed";
853 description { state: "disabled" 0.0;
854 inherit: "default" 0.0;
856 description { state: "disabled_visible" 0.0;
857 inherit: "default" 0.0;
860 style: "btn_base_search_dim";
863 description { state: "focused" 0.0;
864 inherit: "default" 0.0;
867 style: "btn_base_search_focus";
874 ///////////////////////////////////////////////////////////////////////////////////////
875 group { name: "elm/button/base/search_button/send";
876 inherit: "elm/button/base/style1";
878 image: "00_button_01_send.png" COMP;
879 image: "00_button_01_send_dim.png" COMP;
880 image: "00_button_01_send_press.png" COMP;
883 part { name: "button_image";
885 description { state: "default" 0.0;
887 normal: "00_button_01_send.png";
888 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
892 description { state: "clicked" 0.0;
893 inherit: "default" 0.0;
894 image.normal: "00_button_01_send_press.png";
896 description { state: "disabled" 0.0;
897 inherit: "default" 0.0;
898 image.normal: "00_button_01_send_dim.png";
900 description { state: "focused" 0.0;
901 inherit: "default" 0.0;
902 image.normal: "00_button_01_send_press.png";
909 description { state: "default" 0.0;
910 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
913 description { state: "visible" 0.0;
914 inherit: "default" 0.0;
915 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
917 description { state: "icononly" 0.0;
918 inherit: "default" 0.0;
919 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
922 part { name: "elm.text";
927 description { state: "default" 0.0;
931 to_x: "padding_after_icon";
932 to_y: "padding_left_top";
936 to: "padding_right_bottom";
939 style: "btn_base_search";
944 description { state: "visible" 0.0;
945 inherit: "default" 0.0;
948 description { state: "clicked" 0.0;
949 inherit: "default" 0.0;
952 style: "btn_base_search_pressed";
955 description { state: "disabled" 0.0;
956 inherit: "default" 0.0;
958 description { state: "disabled_visible" 0.0;
959 inherit: "default" 0.0;
962 style: "btn_base_search_dim";
965 description { state: "focused" 0.0;
966 inherit: "default" 0.0;
969 style: "btn_base_search_focus";
976 ///////////////////////////////////////////////////////////////////////////////////////
977 group { name: "elm/button/base/search_button/cancel";
978 inherit: "elm/button/base/style1";
980 image: "00_button_01_delete.png" COMP;
981 image: "00_button_01_delete_dim.png" COMP;
982 image: "00_button_01_delete_press.png" COMP;
985 part { name: "button_image";
987 description { state: "default" 0.0;
989 normal: "00_button_01_delete.png";
990 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
994 description { state: "clicked" 0.0;
995 inherit: "default" 0.0;
996 image.normal: "00_button_01_delete_press.png";
998 description { state: "disabled" 0.0;
999 inherit: "default" 0.0;
1000 image.normal: "00_button_01_delete_dim.png";
1002 description { state: "focused" 0.0;
1003 inherit: "default" 0.0;
1004 image.normal: "00_button_01_delete_press.png";
1011 description { state: "default" 0.0;
1012 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
1015 description { state: "visible" 0.0;
1016 inherit: "default" 0.0;
1017 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
1019 description { state: "icononly" 0.0;
1020 inherit: "default" 0.0;
1021 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
1024 part { name: "elm.text";
1029 description { state: "default" 0.0;
1033 to_x: "padding_after_icon";
1034 to_y: "padding_left_top";
1038 to: "padding_right_bottom";
1041 style: "btn_base_search";
1046 description { state: "visible" 0.0;
1047 inherit: "default" 0.0;
1050 description { state: "clicked" 0.0;
1051 inherit: "default" 0.0;
1054 style: "btn_base_search_pressed";
1057 description { state: "disabled" 0.0;
1058 inherit: "default" 0.0;
1060 description { state: "disabled_visible" 0.0;
1061 inherit: "default" 0.0;
1064 style: "btn_base_search_dim";
1067 description { state: "focused" 0.0;
1068 inherit: "default" 0.0;
1071 style: "btn_base_search_focus";
1078 ///////////////////////////////////////////////////////////////////////////////////////
1079 /* group { name: "elm/button/base/style2";
1080 alias: "elm/button/base/text_only/style2";
1081 alias: "elm/button/base/style2/multiline";
1083 item: "focus_highlight" "on";
1086 image: "00_button_01.png" COMP;
1087 image: "00_button_01_press.png" COMP;
1088 image: "00_button_01_dim.png" COMP;
1089 image: "00_button_01_focus.png" COMP;
1092 public button_state = BUTTON_STATE_ENABLED;
1095 part { name: "button_image";
1097 description { state: "default" 0.0;
1099 normal: "00_button_01.png";
1100 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1104 description { state: "clicked" 0.0;
1105 inherit: "default" 0.0;
1106 image.normal: "00_button_01_press.png";
1108 description { state: "disabled" 0.0;
1109 inherit: "default" 0.0;
1110 image.normal: "00_button_01_dim.png";
1112 description { state: "focused" 0.0;
1113 inherit: "default" 0.0;
1114 image.normal: "00_button_01_press.png";
1117 part { name: "focus_image";
1121 description { state: "default" 0.0;
1123 rel1.to : "button_image";
1124 rel2.to : "button_image";
1126 normal: "00_button_01_focus.png";
1127 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1131 description { state: "focused" 0.0;
1132 inherit: "default" 0.0;
1136 part { name: "padding_left_top";
1140 description { state: "default" 0.0;
1142 rel2.relative: 0.0 0.0;
1143 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1152 description { state: "default" 0.0;
1153 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1156 description { state: "visible" 0.0;
1157 inherit: "default" 0.0;
1158 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1160 description { state: "icononly" 0.0;
1161 inherit: "default" 0.0;
1162 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1165 part { name: "padding_right_bottom";
1169 description { state: "default" 0.0;
1171 rel1.relative: 1.0 1.0;
1172 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1177 part { name: "icon_rect";
1181 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;
1197 inherit: "default" 0.0;
1198 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1199 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1201 description { state: "icononly" 0.0;
1202 inherit: "default" 0.0;
1205 part { name: "padding_after_icon";
1209 description { state: "default" 0.0; //when only icon or no icon is there
1217 rel2.to: "icon_rect";
1220 description { state: "visible" 0.0;
1221 inherit: "default" 0.0;
1222 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1224 description { state: "icononly" 0.0;
1225 inherit: "default" 0.0;
1228 part { name: "padding_before_text";
1232 description { state: "default" 0.0; //when only icon or no icon is there
1237 to_y: "padding_left_top";
1242 to_y: "padding_right_bottom";
1245 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1249 part { name: "elm.swallow.content";
1253 description { state: "default" 0.0;
1258 to: "padding_left_top";
1262 to_x: "padding_left_top";
1263 to_y: "padding_right_bottom";
1267 description { state: "visible" 0.0;
1269 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1270 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1274 to_x: "padding_before_text";
1275 to_y: "padding_left_top";
1279 to_x: "padding_before_text";
1280 to_y: "padding_right_bottom";
1283 description { state: "icononly" 0.0;
1284 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1285 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1288 part { name: "elm.text";
1293 effect: SHADOW BOTTOM;
1294 description { state: "default" 0.0;
1298 to_x: "padding_after_icon";
1299 to_y: "padding_left_top";
1303 to: "padding_right_bottom";
1305 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1306 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1308 font: "Tizen:style=Regular";
1309 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1312 text_class: "tizen";
1315 description { state: "visible" 0.0;
1316 inherit: "default" 0.0;
1319 description { state: "clicked" 0.0;
1320 inherit: "default" 0.0;
1322 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1324 description { state: "disabled" 0.0;
1325 inherit: "default" 0.0;
1327 description { state: "disabled_visible" 0.0;
1328 inherit: "default" 0.0;
1329 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1332 description { state: "focused" 0.0;
1333 inherit: "default" 0.0;
1335 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1338 part { name: "over2";
1341 ignore_flags: ON_HOLD;
1342 description { state: "default" 0.0;
1346 part { name: "over3";
1349 description { state: "default" 0.0;
1353 part { name: "clipper";
1355 description { state: "default" 0.0;
1356 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1358 description { state: "disabled" 0.0;
1359 inherit: "default" 0.0;
1360 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1363 part { name: "disabler";
1365 description { state: "default" 0.0;
1369 description { state: "disabled" 0.0;
1370 inherit: "default" 0.0;
1376 program { name: "button_click";
1377 signal: "mouse,down,1";
1379 action: SIGNAL_EMIT "elm,action,press" "";
1380 after: "button_click_anim";
1382 program { name: "button_click_anim";
1383 action: STATE_SET "clicked" 0.0;
1384 target: "button_image";
1385 after: "text_clicked";
1387 program { name: "text_clicked";
1391 get_state(PART:"elm.text", st, 30, vl);
1392 if (!strcmp(st, "visible"))
1393 set_state(PART:"elm.text", "clicked", 0.0);
1396 program { name: "button_double_click";
1397 signal: "mouse,down,1,double";
1399 after: "button_click_anim";
1401 program { name: "button_unpress";
1402 action: SIGNAL_EMIT "elm,action,unpress" "";
1404 program { name: "button_mouseout_clicked";
1405 signal: "mouse,up,1";
1410 get_state(PART:"elm.swallow.content", st, 30, vl);
1411 if (strcmp(st, "icononly"))
1413 emit("elm,action,default,text,set", "");
1414 set_state(PART:"elm.text", "visible", 0.0);
1416 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1417 set_state(PART:"button_image", "default", 0.0);
1419 after: button_unpress;
1421 program { name: "touch_snd";
1422 signal: "mouse,clicked,1";
1424 action: PLAY_SAMPLE "touch_sound" 1.0;
1425 after: button_unclick3;
1427 program { name: "button_unclick3";
1428 action: SIGNAL_EMIT "elm,action,click" "";
1430 program { name: "text_show";
1431 signal: "elm,state,text,visible";
1436 get_state(PART:"elm.swallow.content", st, 30, vl);
1437 if (!strcmp(st, "icononly"))
1439 set_state(PART:"elm.swallow.content", "visible", 0.0);
1440 set_state(PART:"icon_rect", "visible", 0.0);
1441 set_state(PART:"padding_after_icon", "visible", 0.0);
1442 set_state(PART:"bg", "visible", 0.0);
1444 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1445 set_state(PART:"elm.text", "visible", 0.0);
1447 set_state(PART:"elm.text", "disabled_visible", 0.0);
1450 program { name: "text_hide";
1451 signal: "elm,state,text,hidden";
1456 get_state(PART:"elm.swallow.content", st, 30, vl);
1457 if (!strcmp(st, "visible"))
1459 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1460 set_state(PART:"icon_rect", "icononly", 0.0);
1461 set_state(PART:"padding_after_icon", "icononly", 0.0);
1462 set_state(PART:"bg", "icononly", 0.0);
1464 set_state(PART:"elm.text", "default", 0.0);
1467 program { name: "icon_show";
1468 signal: "elm,state,icon,visible";
1473 get_state(PART:"elm.text", st, 30, vl);
1474 if (!strcmp(st, "visible"))
1476 set_state(PART:"elm.swallow.content", "visible", 0.0);
1477 set_state(PART:"icon_rect", "visible", 0.0);
1478 set_state(PART:"padding_after_icon", "visible", 0.0);
1479 set_state(PART:"bg", "visible", 0.0);
1483 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1484 set_state(PART:"icon_rect", "icononly", 0.0);
1485 set_state(PART:"padding_after_icon", "icononly", 0.0);
1486 set_state(PART:"bg", "icononly", 0.0);
1490 program { name: "icon_hide";
1491 signal: "elm,state,icon,hidden";
1493 action: STATE_SET "default" 0.0;
1494 target: "elm.swallow.content";
1495 target: "padding_after_icon";
1496 target: "icon_rect";
1499 program { name: "disable";
1500 signal: "elm,state,disabled";
1502 action: STATE_SET "disabled" 0.0;
1503 target: "button_image";
1506 after: "disable_text";
1508 program { name: "disable_text";
1512 get_state(PART:"elm.text", st, 30, vl);
1513 if (!strcmp(st, "visible"))
1514 set_state(PART:"elm.text", "disabled_visible", 0.0);
1516 set_state(PART:"elm.text", "disabled", 0.0);
1517 set_int(button_state, BUTTON_STATE_DISABLED);
1520 program { name: "enable";
1521 signal: "elm,state,enabled";
1523 action: STATE_SET "default" 0.0;
1524 target: "button_image";
1527 after: "enable_text";
1529 program { name: "enable_text";
1533 get_state(PART:"elm.text", st, 30, vl);
1534 if (!strcmp(st, "disabled_visible"))
1535 set_state(PART:"elm.text", "visible", 0.0);
1537 set_state(PART:"elm.text", "default", 0.0);
1538 set_int(button_state, BUTTON_STATE_ENABLED);
1541 program { name: "action_focus";
1542 signal: "elm,action,focus_highlight,show";
1544 action: STATE_SET "focused" 0.0;
1545 target: "focus_image";
1547 program { name: "action_unfocus";
1548 signal: "elm,action,focus_highlight,hide";
1550 action: STATE_SET "default" 0.0;
1551 target: "focus_image";
1556 ///////////////////////////////////////////////////////////////////////////////////////
1557 group { name: "elm/button/base/sweep";
1558 alias: "elm/button/base/text_only/sweep";
1559 alias: "elm/button/base/hidden";
1560 alias: "elm/button/base/sweep/multiline";
1562 item: "focus_highlight" "on";
1565 image: "00_button_01.png" COMP;
1566 image: "00_button_01_press.png" COMP;
1567 image: "00_button_01_dim.png" COMP;
1568 image: "00_button_01_focus.png" COMP;
1571 public button_state = BUTTON_STATE_ENABLED;
1574 style { name: "btn_sweep_multiline";
1575 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";
1582 part { name: "button_image";
1584 description { state: "default" 0.0;
1585 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1587 normal: "00_button_01.png";
1588 border: BUTTON_SWEEP_BG_BORDER_INC;
1592 description { state: "clicked" 0.0;
1593 inherit: "default" 0.0;
1594 image.normal: "00_button_01_press.png";
1596 description { state: "disabled" 0.0;
1597 inherit: "default" 0.0;
1598 image.normal: "00_button_01_dim.png";
1600 description { state: "focused" 0.0;
1601 inherit: "default" 0.0;
1602 image.normal: "00_button_01_press.png";
1605 part { name: "focus_image";
1609 description { state: "default" 0.0;
1611 rel1.to : "button_image";
1612 rel2.to : "button_image";
1614 normal: "00_button_01_focus.png";
1615 border: BUTTON_SWEEP_BG_BORDER_INC;
1619 description { state: "focused" 0.0;
1620 inherit: "default" 0.0;
1624 part { name: "padding_left_top";
1628 description { state: "default" 0.0;
1630 rel2.relative: 0.0 0.0;
1631 min: BUTTON_SWEEP_PADDING_MIN_INC;
1636 part { name: "padding_right_bottom";
1640 description { state: "default" 0.0;
1642 rel1.relative: 1.0 1.0;
1643 min: BUTTON_SWEEP_PADDING_MIN_INC;
1648 part { name: "icon_rect";
1652 description { state: "default" 0.0;
1653 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1657 to_x: "elm.swallow.content";
1658 to_y: "padding_left_top";
1662 to_x: "elm.swallow.content";
1663 to_y: "padding_right_bottom";
1669 part { name: "padding_icon_text";
1673 description { state: "default" 0.0; //when only icon or no icon is there
1681 rel2.to: "icon_rect";
1684 description { state: "visible" 0.0; //when icon is visible
1685 inherit: "default" 0.0;
1686 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1688 description { state: "icononly" 0.0;
1689 inherit: "default" 0.0;
1692 part { name: "elm.swallow.content";
1696 description { state: "default" 0.0;
1701 to: "padding_left_top";
1705 to_x: "padding_left_top";
1706 to_y: "padding_right_bottom";
1710 description { state: "visible" 0.0;
1711 inherit: "default" 0.0;
1712 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1713 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1716 aspect_preference: VERTICAL;
1718 description { state: "icononly" 0.0;
1719 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1720 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1723 part { name: "elm.text";
1726 effect: SHADOW BOTTOM;
1729 description { state: "default" 0.0;
1734 to_x: "padding_icon_text";
1735 to_y: "padding_left_top";
1739 to: "padding_right_bottom";
1741 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1742 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1744 style: "btn_sweep_multiline";
1748 description { state: "visible" 0.0;
1749 inherit: "default" 0.0;
1751 min: BUTTON_SWEEP_TEXT_MIN_INC;
1753 description { state: "clicked" 0.0;
1754 inherit: "default" 0.0;
1757 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1759 description { state: "disabled" 0.0;
1760 inherit: "default" 0.0;
1762 description { state: "disabled_visible" 0.0;
1763 inherit: "default" 0.0;
1764 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1766 min: BUTTON_SWEEP_TEXT_MIN_INC;
1768 description { state: "focused" 0.0;
1769 inherit: "default" 0.0;
1772 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1775 part { name: "over2";
1778 ignore_flags: ON_HOLD;
1779 description { state: "default" 0.0;
1783 part { name: "over3";
1786 description { state: "default" 0.0;
1790 part { name: "clipper";
1792 description { state: "default" 0.0;
1793 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1795 description { state: "disabled" 0.0;
1796 inherit: "default" 0.0;
1797 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1800 part { name: "disabler";
1802 description { state: "default" 0.0;
1806 description { state: "disabled" 0.0;
1807 inherit: "default" 0.0;
1813 program { name: "button_click";
1814 signal: "mouse,down,1";
1816 action: SIGNAL_EMIT "elm,action,press" "";
1817 after: "button_click_anim";
1819 program { name: "button_click_anim";
1820 action: STATE_SET "clicked" 0.0;
1821 target: "button_image";
1822 after: "text_clicked";
1824 program { name: "text_clicked";
1828 get_state(PART:"elm.text", st, 30, vl);
1829 if (!strcmp(st, "visible"))
1830 set_state(PART:"elm.text", "clicked", 0.0);
1833 program { name: "button_double_click";
1834 signal: "mouse,down,1,double";
1836 after: "button_click_anim";
1838 program { name: "button_unpress";
1839 action: SIGNAL_EMIT "elm,action,unpress" "";
1841 program { name: "button_mouseout_clicked";
1842 signal: "mouse,up,1";
1847 get_state(PART:"elm.swallow.content", st, 30, vl);
1848 if (strcmp(st, "icononly"))
1850 emit("elm,action,default,text,set", "");
1851 set_state(PART:"elm.text", "visible", 0.0);
1853 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1854 set_state(PART:"button_image", "default", 0.0);
1856 after: button_unpress;
1858 program { name: "touch_snd";
1859 signal: "mouse,clicked,1";
1861 action: PLAY_SAMPLE "touch_sound" 1.0;
1862 after: button_unclick3;
1864 program { name: "button_unclick3";
1865 action: SIGNAL_EMIT "elm,action,click" "";
1867 program { name: "text_show";
1868 signal: "elm,state,text,visible";
1873 get_state(PART:"elm.swallow.content", st, 30, vl);
1874 if (!strcmp(st, "icononly"))
1876 set_state(PART:"elm.swallow.content", "visible", 0.0);
1877 set_state(PART:"padding_icon_text", "visible", 0.0);
1879 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1880 set_state(PART:"elm.text", "visible", 0.0);
1882 set_state(PART:"elm.text", "disabled_visible", 0.0);
1885 program { name: "text_hide";
1886 signal: "elm,state,text,hidden";
1891 get_state(PART:"elm.swallow.content", st, 30, vl);
1892 if (!strcmp(st, "visible"))
1894 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1895 set_state(PART:"padding_icon_text", "icononly", 0.0);
1897 set_state(PART:"elm.text", "default", 0.0);
1900 program { name: "icon_show";
1901 signal: "elm,state,icon,visible";
1906 get_state(PART:"elm.text", st, 30, vl);
1907 if (!strcmp(st, "visible"))
1909 set_state(PART:"elm.swallow.content", "visible", 0.0);
1910 set_state(PART:"padding_icon_text", "visible", 0.0);
1914 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1915 set_state(PART:"padding_icon_text", "icononly", 0.0);
1919 program { name: "icon_hide";
1920 signal: "elm,state,icon,hidden";
1922 action: STATE_SET "default" 0.0;
1923 target: "elm.swallow.content";
1924 target: "padding_icon_text";
1926 program { name: "disable";
1927 signal: "elm,state,disabled";
1929 action: STATE_SET "disabled" 0.0;
1930 target: "button_image";
1933 after: "disable_text";
1935 program { name: "disable_text";
1939 get_state(PART:"elm.text", st, 30, vl);
1940 if (!strcmp(st, "visible"))
1941 set_state(PART:"elm.text", "disabled_visible", 0.0);
1943 set_state(PART:"elm.text", "disabled", 0.0);
1944 set_int(button_state, BUTTON_STATE_DISABLED);
1947 program { name: "enable";
1948 signal: "elm,state,enabled";
1950 action: STATE_SET "default" 0.0;
1951 target: "button_image";
1954 after: "enable_text";
1956 program { name: "enable_text";
1960 get_state(PART:"elm.text", st, 30, vl);
1961 if (!strcmp(st, "disabled_visible"))
1962 set_state(PART:"elm.text", "visible", 0.0);
1964 set_state(PART:"elm.text", "default", 0.0);
1965 set_int(button_state, BUTTON_STATE_ENABLED);
1968 program { name: "action_focus";
1969 signal: "elm,action,focus_highlight,show";
1971 action: STATE_SET "focused" 0.0;
1972 target: "focus_image";
1974 program { name: "action_unfocus";
1975 signal: "elm,action,focus_highlight,hide";
1977 action: STATE_SET "default" 0.0;
1978 target: "focus_image";
1983 ///////////////////////////////////////////////////////////////////////////////////////
1984 group { name: "elm/button/base/sweep/delete";
1985 inherit: "elm/button/base/sweep";
1986 alias: "elm/button/base/sweep/delete/multiline";
1988 image: "00_button_01_delete_press.png" COMP;
1989 image: "00_button_01_delete.png" COMP;
1990 image: "00_button_01_delete_dim.png" COMP;
1993 style { name: "btn_sweep_delete_multiline";
1994 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";
2001 part { name: "button_image";
2003 description { state: "default" 0.0;
2004 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
2006 normal: "00_button_01_delete.png";
2007 border: BUTTON_SWEEP_BG_BORDER_INC;
2011 description { state: "clicked" 0.0;
2012 inherit: "default" 0.0;
2013 image.normal: "00_button_01_delete_press.png";
2015 description { state: "disabled" 0.0;
2016 inherit: "default" 0.0;
2017 image.normal: "00_button_01_delete_dim.png";
2019 description { state: "focused" 0.0;
2020 inherit: "default" 0.0;
2021 image.normal: "00_button_01_delete_press.png";
2024 part { name: "elm.text";
2027 effect: SHADOW BOTTOM;
2030 description { state: "default" 0.0;
2035 to_x: "padding_icon_text";
2036 to_y: "padding_left_top";
2040 to: "padding_right_bottom";
2042 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
2043 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2045 style: "btn_sweep_multiline";
2049 description { state: "visible" 0.0;
2050 inherit: "default" 0.0;
2052 min: BUTTON_SWEEP_TEXT_MIN_INC;
2054 description { state: "clicked" 0.0;
2055 inherit: "default" 0.0;
2058 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
2060 description { state: "disabled" 0.0;
2061 inherit: "default" 0.0;
2063 description { state: "disabled_visible" 0.0;
2064 inherit: "default" 0.0;
2065 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
2067 min: BUTTON_SWEEP_TEXT_MIN_INC;
2069 description { state: "focused" 0.0;
2070 inherit: "default" 0.0;
2073 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
2079 ///////////////////////////////////////////////////////////////////////////////////////
2080 group { name: "elm/button/base/popup_button/default";
2081 alias: "elm/button/base/popup_button/menustyle";
2082 alias: "elm/button/base/popup_button/liststyle";
2083 alias: "elm/button/base/popup_button/volumebarstyle";
2084 alias: "elm/button/base/popup_button/customstyle";
2085 alias: "elm/button/base/popup_button/verticalbuttonstyle";
2086 alias: "elm/button/base/popup_button/default/multiline";
2088 item: "focus_highlight" "on";
2091 image: "00_popup_button.png" COMP;
2092 image: "00_popup_button_dim.png" COMP;
2093 image: "00_popup_button_press.png" COMP;
2094 image: "00_popup_button_focus.png" COMP;
2097 style { name: "btn_base_popup_button";
2098 base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_POPUP_BUTTON_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
2103 style { name: "btn_base_popup_button_pressed";
2104 base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_POPUP_BUTTON_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
2109 style { name: "btn_base_popup_button_dim";
2110 base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
2115 style { name: "btn_base_popup_button_focus";
2116 base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
2123 public button_state = BUTTON_STATE_ENABLED;
2126 part { name: "button_image";
2128 description { state: "default" 0.0;
2129 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2131 normal: "00_popup_button.png";
2132 border: BUTTON_POPUP_BG_BORDER_INC;
2136 description { state: "clicked" 0.0;
2137 inherit: "default" 0.0;
2138 image.normal: "00_popup_button_press.png";
2140 description { state: "disabled" 0.0;
2141 inherit: "default" 0.0;
2142 image.normal: "00_popup_button_dim.png";
2144 description { state: "focused" 0.0;
2145 inherit: "default" 0.0;
2146 image.normal: "00_popup_button_focus.png";
2149 part { name: "focus_image";
2153 description { state: "default" 0.0;
2155 rel1.to : "button_image";
2156 rel2.to : "button_image";
2158 normal: "00_popup_button_focus.png";
2159 border: BUTTON_POPUP_BG_BORDER_INC;
2163 description { state: "focused" 0.0;
2164 inherit: "default" 0.0;
2168 part { name: "padding_left_top";
2172 description { state: "default" 0.0;
2174 rel2.relative: 0.0 0.0;
2175 min: BUTTON_POPUP_PADDING_MIN_INC;
2180 part { name: "padding_right_bottom";
2183 description { state: "default" 0.0;
2185 rel1.relative: 1.0 1.0;
2186 min: BUTTON_POPUP_PADDING_MIN_INC;
2191 part { name: "padding_icon_text";
2194 description { state: "default" 0.0; //when only icon or no icon is there
2198 to: "elm.swallow.content";
2200 rel2.to: "elm.swallow.content";
2205 description { state: "icononly" 0.0;
2206 inherit: "default" 0.0;
2208 description { state: "visible" 0.0; //when icon is visible
2209 inherit: "default" 0.0;
2210 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2213 part { name: "elm.swallow.content";
2217 description { state: "default" 0.0;
2222 to: "padding_left_top";
2226 to_x: "padding_left_top";
2227 to_y: "padding_right_bottom";
2231 description { state: "visible" 0.0;
2232 inherit: "default" 0.0;
2236 aspect_preference: VERTICAL;
2238 description { state: "icononly" 0.0;
2239 inherit: "default" 0.0;
2240 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2245 part { name: "elm.text";
2250 description { state: "default" 0.0;
2254 to_x: "padding_icon_text";
2255 to_y: "padding_left_top";
2259 to: "padding_right_bottom";
2262 style: "btn_base_popup_button";
2266 description { state: "visible" 0.0;
2267 inherit: "default" 0.0;
2269 min: BUTTON_POPUP_TEXT_MIN_INC;
2271 description { state: "clicked" 0.0;
2272 inherit: "default" 0.0;
2275 style: "btn_base_popup_button_pressed";
2279 description { state: "disabled" 0.0;
2280 inherit: "default" 0.0;
2282 description { state: "disabled_visible" 0.0;
2283 inherit: "default" 0.0;
2286 style: "btn_base_popup_button_dim";
2288 min: BUTTON_POPUP_TEXT_MIN_INC;
2290 description { state: "focused" 0.0;
2291 inherit: "default" 0.0;
2294 style: "btn_base_popup_button_dim";
2299 part { name: "over2";
2302 ignore_flags: ON_HOLD;
2303 description { state: "default" 0.0;
2307 part { name: "over3";
2310 description { state: "default" 0.0;
2314 part { name: "clipper";
2316 description { state: "default" 0.0;
2317 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
2319 description { state: "disabled" 0.0;
2320 inherit: "default" 0.0;
2321 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
2324 part { name: "disabler";
2326 description { state: "default" 0.0;
2330 description { state: "disabled" 0.0;
2331 inherit: "default" 0.0;
2337 program { name: "button_click";
2338 signal: "mouse,down,1";
2340 action: SIGNAL_EMIT "elm,action,press" "";
2341 after: "button_click_anim";
2343 program { name: "button_click_anim";
2344 action: STATE_SET "clicked" 0.0;
2345 target: "button_image";
2346 after: "text_clicked";
2348 program { name: "text_clicked";
2352 get_state(PART:"elm.text", st, 30, vl);
2353 if (!strcmp(st, "visible"))
2354 set_state(PART:"elm.text", "clicked", 0.0);
2357 program { name: "button_double_click";
2358 signal: "mouse,down,1,double";
2360 after: "button_click_anim";
2362 program { name: "button_unpress";
2363 action: SIGNAL_EMIT "elm,action,unpress" "";
2365 program { name: "button_mouseout_clicked";
2366 signal: "mouse,up,1";
2371 get_state(PART:"elm.swallow.content", st, 30, vl);
2372 if (strcmp(st, "icononly"))
2374 emit("elm,action,default,text,set", "");
2375 set_state(PART:"elm.text", "visible", 0.0);
2377 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2378 set_state(PART:"button_image", "default", 0.0);
2380 after: button_unpress;
2382 program { name: "touch_snd";
2383 signal: "mouse,clicked,1";
2385 action: PLAY_SAMPLE "touch_sound" 1.0;
2386 after: button_unclick3;
2388 program { name: "button_unclick3";
2389 action: SIGNAL_EMIT "elm,action,click" "";
2391 program { name: "text_show";
2392 signal: "elm,state,text,visible";
2397 get_state(PART:"elm.swallow.content", st, 30, vl);
2398 if (!strcmp(st, "icononly"))
2400 set_state(PART:"elm.swallow.content", "visible", 0.0);
2401 set_state(PART:"padding_icon_text", "visible", 0.0);
2403 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2404 set_state(PART:"elm.text", "visible", 0.0);
2406 set_state(PART:"elm.text", "disabled_visible", 0.0);
2409 program { name: "text_hide";
2410 signal: "elm,state,text,hidden";
2415 get_state(PART:"elm.swallow.content", st, 30, vl);
2416 if (!strcmp(st, "visible"))
2418 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2419 set_state(PART:"padding_icon_text", "icononly", 0.0);
2421 set_state(PART:"elm.text", "default", 0.0);
2424 program { name: "icon_show";
2425 signal: "elm,state,icon,visible";
2430 get_state(PART:"elm.text", st, 30, vl);
2431 if (!strcmp(st, "visible"))
2433 set_state(PART:"elm.swallow.content", "visible", 0.0);
2434 set_state(PART:"padding_icon_text", "visible", 0.0);
2438 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2439 set_state(PART:"padding_icon_text", "icononly", 0.0);
2443 program { name: "icon_hide";
2444 signal: "elm,state,icon,hidden";
2446 action: STATE_SET "default" 0.0;
2447 target: "elm.swallow.content";
2448 target: "padding_icon_text";
2450 program { name: "disable";
2451 signal: "elm,state,disabled";
2453 action: STATE_SET "disabled" 0.0;
2454 target: "button_image";
2457 after: "disable_text";
2459 program { name: "disable_text";
2463 get_state(PART:"elm.text", st, 30, vl);
2464 if (!strcmp(st, "visible"))
2465 set_state(PART:"elm.text", "disabled_visible", 0.0);
2467 set_state(PART:"elm.text", "disabled", 0.0);
2468 set_int(button_state, BUTTON_STATE_DISABLED);
2471 program { name: "enable";
2472 signal: "elm,state,enabled";
2474 action: STATE_SET "default" 0.0;
2475 target: "button_image";
2478 after: "enable_text";
2480 program { name: "enable_text";
2484 get_state(PART:"elm.text", st, 30, vl);
2485 if (!strcmp(st, "disabled_visible"))
2486 set_state(PART:"elm.text", "visible", 0.0);
2488 set_state(PART:"elm.text", "default", 0.0);
2489 set_int(button_state, BUTTON_STATE_ENABLED);
2492 program { name: "action_focus";
2493 signal: "elm,action,focus_highlight,show";
2495 action: STATE_SET "focused" 0.0;
2496 target: "focus_image";
2498 program { name: "action_unfocus";
2499 signal: "elm,action,focus_highlight,hide";
2501 action: STATE_SET "default" 0.0;
2502 target: "focus_image";
2507 ///////////////////////////////////////////////////////////////////////////////////////
2508 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2509 group { name: "elm/button/base/"style_name; \
2511 item: "focus_highlight" "on"; \
2514 image: "00_circle_button.png" COMP; \
2515 image: "00_circle_button_press.png" COMP; \
2516 image: "00_circle_button_dim.png" COMP; \
2517 image: image_normal COMP; \
2518 image: image_press COMP; \
2519 image: 00_circle_button_focus.png COMP; \
2522 part { name: "button_image"; \
2524 description { state: "default" 0.0; \
2525 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2526 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2527 image.normal: "00_circle_button.png"; \
2530 state: "clicked" 0.0; \
2531 inherit: "default" 0.0; \
2532 image.normal: "00_circle_button_press.png"; \
2535 state: "disabled" 0.0; \
2536 inherit: "default" 0.0; \
2537 image.normal: "00_circle_button_dim.png"; \
2540 part { name: "left_top_padding"; \
2543 description { state: "default" 0.0; \
2544 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2545 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2548 rel1.to: "button_image"; \
2549 rel2.to: "button_image"; \
2552 part { name: "right_bottom_padding"; \
2555 description { state: "default" 0.0; \
2556 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2557 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2561 relative: 1.0 1.0; \
2562 to: "button_image"; \
2564 rel2.to: "button_image"; \
2567 part { name: "button_center_part"; \
2569 clip_to: "icon_clipper"; \
2570 description { state: "default" 0.0; \
2571 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2572 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2573 image.normal: image_normal; \
2575 relative: 1.0 1.0; \
2576 to: "left_top_padding"; \
2579 relative: 0.0 0.0; \
2580 to: "right_bottom_padding"; \
2583 description { state: "clicked" 0.0; \
2584 inherit: "default"; \
2585 image.normal: image_press; \
2587 description { state: "disabled" 0.0; \
2588 inherit: "default"; \
2591 part { name: "icon_clipper"; \
2594 description { state: "default" 0.0; \
2595 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2597 description { state: "clicked" 0.0; \
2598 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2600 description { state: "disabled" 0.0; \
2601 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2604 part { name: "focus_image"; \
2608 description { state: "default" 0.0; \
2609 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2610 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2612 rel1.to : "button_image"; \
2613 rel2.to : "button_image"; \
2615 normal: "00_circle_button_focus.png"; \
2619 description { state: "focused" 0.0; \
2620 inherit: "default" 0.0; \
2624 part { name: "over1"; \
2626 ignore_flags: ON_HOLD; \
2627 description { state: "default" 0.0; \
2629 min: min_width min_height; \
2632 part { name: "over2"; \
2635 description { state: "default" 0.0; \
2639 part { name: "disabler"; \
2641 description { state: "default" 0.0; \
2645 description { state: "disabled" 0.0; \
2646 inherit: "default" 0.0; \
2652 program { name: "button_click"; \
2653 signal: "mouse,down,1"; \
2655 action: SIGNAL_EMIT "elm,action,press" ""; \
2656 after: "button_click_anim"; \
2658 program { name: "button_click_anim"; \
2659 action: STATE_SET "clicked" 0.0; \
2660 target: "button_image"; \
2661 target: "button_center_part"; \
2662 target: "icon_clipper"; \
2664 program { name: "button_double_click"; \
2665 signal: "mouse,down,1,double"; \
2667 after: "button_click_anim"; \
2669 program { name: "button_unclick"; \
2670 signal: "mouse,up,1"; \
2672 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2673 after: "button_unclick_anim"; \
2675 program { name: "button_unclick_anim"; \
2676 action: STATE_SET "default" 0.0; \
2677 target: "button_image"; \
2678 target: "button_center_part"; \
2679 target: "icon_clipper"; \
2681 program { name: "touch_snd"; \
2682 signal: "mouse,clicked,1"; \
2684 action: PLAY_SAMPLE "touch_sound" 1.0; \
2685 after: button_unclick3; \
2687 program { name: "button_unclick3"; \
2688 action: SIGNAL_EMIT "elm,action,click" ""; \
2690 program { name: "disable"; \
2691 signal: "elm,state,disabled"; \
2693 action: STATE_SET "disabled" 0.0; \
2694 target: "disabler"; \
2695 target: "button_image"; \
2696 target: "button_center_part"; \
2697 target: "icon_clipper"; \
2699 program { name: "enable"; \
2700 signal: "elm,state,enabled"; \
2702 action: STATE_SET "default" 0.0; \
2703 target: "disabler"; \
2704 target: "button_image"; \
2705 target: "button_center_part"; \
2706 target: "icon_clipper"; \
2708 program { name: "action_focus"; \
2709 signal: "elm,action,focus_highlight,show"; \
2711 action: STATE_SET "focused" 0.0; \
2712 target: "focus_image"; \
2714 program { name: "action_unfocus"; \
2715 signal: "elm,action,focus_highlight,hide"; \
2717 action: STATE_SET "default" 0.0; \
2718 target: "focus_image"; \
2723 ///////////////////////////////////////////////////////////////////////////////////////
2724 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)
2726 ///////////////////////////////////////////////////////////////////////////////////////
2727 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)
2729 ///////////////////////////////////////////////////////////////////////////////////////
2730 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)
2732 ///////////////////////////////////////////////////////////////////////////////////////
2733 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)
2735 ///////////////////////////////////////////////////////////////////////////////////////
2736 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)
2738 ///////////////////////////////////////////////////////////////////////////////////////
2739 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)
2741 ///////////////////////////////////////////////////////////////////////////////////////
2742 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)
2744 ///////////////////////////////////////////////////////////////////////////////////////
2745 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)
2747 ///////////////////////////////////////////////////////////////////////////////////////
2748 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)
2750 ///////////////////////////////////////////////////////////////////////////////////////
2751 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)
2753 ///////////////////////////////////////////////////////////////////////////////////////
2754 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)
2756 ///////////////////////////////////////////////////////////////////////////////////////
2757 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)
2759 ///////////////////////////////////////////////////////////////////////////////////////
2760 BUTTON_CIRCLE_STYLES("plus", "00_button_add.png", "00_button_add_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2762 ///////////////////////////////////////////////////////////////////////////////////////
2763 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_add.png", "00_button_add_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2765 ///////////////////////////////////////////////////////////////////////////////////////
2766 BUTTON_CIRCLE_STYLES("minus", "00_button_delete.png", "00_button_delete_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2768 ///////////////////////////////////////////////////////////////////////////////////////
2769 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_delete.png", "00_button_delete_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2771 ///////////////////////////////////////////////////////////////////////////////////////
2772 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)
2774 ///////////////////////////////////////////////////////////////////////////////////////
2775 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)
2777 ///////////////////////////////////////////////////////////////////////////////////////
2778 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)
2780 ///////////////////////////////////////////////////////////////////////////////////////
2781 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)
2782 ///////////////////////////////////////////////////////////////////////////////////////
2784 ///////////////////////////////////////////////////////////////////////////////////////
2785 BUTTON_CIRCLE_STYLES("contact", "00_button_contact.png", "00_button_contact_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2786 ///////////////////////////////////////////////////////////////////////////////////////
2788 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2789 group { name: "elm/button/base/"style_name; \
2790 inherit: "elm/button/base/info"; \
2792 image: "00_circle_button_delete.png" COMP; \
2793 image: "00_circle_button_delete_press.png" COMP; \
2794 image: "00_circle_button_delete_dim.png" COMP; \
2795 image: "00_button_warning.png" COMP; \
2796 image: "00_button_warning_press.png" COMP; \
2799 part { name: "button_image"; \
2801 description { state: "default" 0.0; \
2802 image.normal: "00_circle_button_delete.png"; \
2805 state: "clicked" 0.0; \
2806 inherit: "default" 0.0; \
2807 image.normal: "00_circle_button_delete_press.png"; \
2810 state: "disabled" 0.0; \
2811 inherit: "default" 0.0; \
2812 image.normal: "00_circle_button_delete_dim.png"; \
2815 part { name: "button_center_part"; \
2817 clip_to: "icon_clipper"; \
2818 description { state: "default" 0.0; \
2819 image.normal: "00_button_warning.png"; \
2821 description { state: "clicked" 0.0; \
2822 inherit: "default"; \
2823 image.normal: "00_button_warning_press.png"; \
2825 description { state: "disabled" 0.0; \
2826 inherit: "default"; \
2829 part { name: "icon_clipper"; \
2832 description { state: "default" 0.0; \
2833 color: BUTTON_CIRCLE_STYLE_WARNING_NORMAL_COLOR_INC; \
2835 description { state: "clicked" 0.0; \
2836 color: BUTTON_CIRCLE_STYLE_WARNING_PRESSED_COLOR_INC; \
2838 description { state: "disabled" 0.0; \
2839 color: BUTTON_CIRCLE_STYLE_WARNING_DISABLED_COLOR_INC; \
2842 part { name: "over1"; \
2844 ignore_flags: ON_HOLD; \
2845 description { state: "default" 0.0; \
2847 min: min_width min_height; \
2853 ///////////////////////////////////////////////////////////////////////////////////////
2854 BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2856 ///////////////////////////////////////////////////////////////////////////////////////
2857 BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2859 ///////////////////////////////////////////////////////////////////////////////////////
2860 group { name: "elm/button/base/circle/empty";
2862 item: "focus_highlight" "on";
2865 image: "00_circle_button.png" COMP;
2866 image: "00_circle_button_press.png" COMP;
2867 image: "00_circle_button_dim.png" COMP;
2868 image: 00_circle_button_focus.png COMP;
2871 part { name: "button_image";
2873 description { state: "default" 0.0;
2874 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2875 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2877 image.normal: "00_circle_button.png";
2879 description { state: "clicked" 0.0;
2880 inherit: "default" 0.0;
2881 image.normal: "00_circle_button_press.png";
2883 description { state: "disabled" 0.0;
2884 inherit: "default" 0.0;
2885 image.normal: "00_circle_button_dim.png";
2888 part { name: "left_top_padding";
2891 description { state: "default" 0.0;
2892 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2893 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2896 rel1.to: "button_image";
2897 rel2.to: "button_image";
2900 part { name: "right_bottom_padding";
2903 description { state: "default" 0.0;
2904 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2905 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2912 rel2.to: "button_image";
2915 part { name: "elm.swallow.content";
2917 clip_to: "icon_clipper";
2919 description { state: "default" 0.0;
2923 to: "left_top_padding";
2927 to: "right_bottom_padding";
2931 description { state: "visible" 0.0;
2932 inherit: "default" 0.0;
2934 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2935 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2938 part { name: "icon_clipper";
2941 description { state: "default" 0.0;
2942 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2944 description { state: "clicked" 0.0;
2945 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2947 description { state: "disabled" 0.0;
2948 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2951 part { name: "focus_image";
2955 description { state: "default" 0.0;
2956 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2957 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2959 rel1.to : "button_image";
2960 rel2.to : "button_image";
2962 normal: "00_circle_button_focus.png";
2966 description { state: "focused" 0.0;
2967 inherit: "default" 0.0;
2971 part { name: "over1";
2973 ignore_flags: ON_HOLD;
2974 description { state: "default" 0.0;
2978 part { name: "over2";
2981 description { state: "default" 0.0;
2985 part { name: "disabler";
2987 description { state: "default" 0.0;
2991 description { state: "disabled" 0.0;
2992 inherit: "default" 0.0;
2998 program { name: "button_click";
2999 signal: "mouse,down,1";
3001 action: SIGNAL_EMIT "elm,action,press" "";
3002 after: "button_click_anim";
3004 program { name: "button_click_anim";
3005 action: STATE_SET "clicked" 0.0;
3006 target: "button_image";
3007 target: "icon_clipper";
3009 program { name: "button_double_click";
3010 signal: "mouse,down,1,double";
3012 after: "button_click_anim";
3014 program { name: "touch_snd";
3015 signal: "mouse,clicked,1";
3017 action: PLAY_SAMPLE "touch_sound" 1.0;
3018 after: button_unclick2;
3020 program { name: "button_unclick2";
3021 action: SIGNAL_EMIT "elm,action,click" "";
3023 program { name: "button_unclick";
3024 signal: "mouse,up,1";
3026 action: SIGNAL_EMIT "elm,action,unpress" "";
3027 after: "button_unclick_anim";
3029 program { name: "button_unclick_anim";
3030 action: STATE_SET "default" 0.0;
3031 target: "button_image";
3032 target: "icon_clipper";
3034 program { name: "disable";
3035 signal: "elm,state,disabled";
3037 action: STATE_SET "disabled" 0.0;
3039 target: "button_image";
3040 target: "icon_clipper";
3042 program { name: "enable";
3043 signal: "elm,state,enabled";
3045 action: STATE_SET "default" 0.0;
3047 target: "button_image";
3048 target: "icon_clipper";
3050 program { name: "icon_show";
3051 signal: "elm,state,icon,visible";
3053 action: STATE_SET "visible" 0.0;
3054 target: "elm.swallow.content";
3056 program { name: "icon_hide";
3057 signal: "elm,state,icon,hidden";
3059 action: STATE_SET "default" 0.0;
3060 target: "elm.swallow.content";
3062 program { name: "action_focus";
3063 signal: "elm,action,focus_highlight,show";
3065 action: STATE_SET "focused" 0.0;
3066 target: "focus_image";
3068 program { name: "action_unfocus";
3069 signal: "elm,action,focus_highlight,hide";
3071 action: STATE_SET "default" 0.0;
3072 target: "focus_image";
3077 ///////////////////////////////////////////////////////////////////////////////////////
3078 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
3079 group { name: "elm/button/base/contacts/"style_name; \
3080 alias: "elm/button/base/"style_name; \
3082 item: "focus_highlight" "on"; \
3085 image: "00_circle_button.png" COMP; \
3086 image: "00_circle_button_press.png" COMP; \
3087 image: "00_circle_button_dim.png" COMP; \
3088 image: image_normal COMP; \
3089 image: image_press COMP; \
3090 image: 00_circle_button_focus.png COMP;\
3093 part { name: "button_image"; \
3095 description { state: "default" 0.0; \
3096 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3097 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3098 image.normal: "00_circle_button.png"; \
3100 description { state: "clicked" 0.0; \
3101 inherit: "default" 0.0; \
3102 image.normal: "00_circle_button_press.png"; \
3104 description { state: "disabled" 0.0; \
3105 inherit: "default" 0.0; \
3106 image.normal: "00_circle_button_dim.png"; \
3109 part { name: "button_center_part"; \
3112 clip_to: "icon_clipper"; \
3113 description { state: "default" 0.0; \
3114 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3115 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3116 image.normal: image_normal; \
3119 state: "clicked" 0.0; \
3120 inherit: "default" 0.0; \
3121 image.normal: image_press; \
3123 description { state: "disabled" 0.0; \
3124 inherit: "default" 0.0; \
3127 part { name: "focus_image"; \
3131 description { state: "default" 0.0; \
3132 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3133 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3135 rel1.to : "button_image"; \
3136 rel2.to : "button_image"; \
3138 normal: "00_circle_button_focus.png"; \
3142 description { state: "focused" 0.0; \
3143 inherit: "default" 0.0; \
3147 part { name: "icon_clipper"; \
3150 description { state: "default" 0.0; \
3151 color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
3153 description { state: "clicked" 0.0; \
3154 color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
3156 description { state: "disabled" 0.0; \
3157 color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
3160 part { name: "over1"; \
3163 ignore_flags: ON_HOLD; \
3164 description { state: "default" 0.0; \
3166 min: min_width min_height; \
3169 part { name: "over2"; \
3172 description { state: "default" 0.0; \
3176 part { name: "disabler"; \
3178 description { state: "default" 0.0; \
3182 description { state: "disabled" 0.0; \
3183 inherit: "default" 0.0; \
3189 program { name: "button_click"; \
3190 signal: "mouse,down,1"; \
3192 action: SIGNAL_EMIT "elm,action,press" ""; \
3193 after: "button_click_anim"; \
3195 program { name: "button_click_anim"; \
3196 action: STATE_SET "clicked" 0.0; \
3197 target: "button_image"; \
3198 target: "button_center_part"; \
3199 target: "icon_clipper"; \
3201 program { name: "button_double_click"; \
3202 signal: "mouse,down,1,double"; \
3204 after: "button_click_anim"; \
3206 program { name: "button_unclick"; \
3207 signal: "mouse,up,1"; \
3209 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3210 after: "button_unclick_anim"; \
3212 program { name: "button_unclick_anim"; \
3213 action: STATE_SET "default" 0.0; \
3214 target: "button_image"; \
3215 target: "button_center_part"; \
3216 target: "icon_clipper"; \
3218 program { name: "touch_snd"; \
3219 signal: "mouse,clicked,1"; \
3221 action: PLAY_SAMPLE "touch_sound" 1.0; \
3222 after: button_unclick3; \
3224 program { name: "button_unclick3"; \
3225 action: SIGNAL_EMIT "elm,action,click" ""; \
3227 program { name: "disable"; \
3228 signal: "elm,state,disabled"; \
3230 action: STATE_SET "disabled" 0.0; \
3231 target: "disabler"; \
3232 target: "button_image"; \
3233 target: "button_center_part"; \
3234 target: "icon_clipper"; \
3236 program { name: "enable"; \
3237 signal: "elm,state,enabled"; \
3239 action: STATE_SET "default" 0.0; \
3240 target: "disabler"; \
3241 target: "button_image"; \
3242 target: "button_center_part"; \
3243 target: "icon_clipper"; \
3245 program { name: "action_focus"; \
3246 signal: "elm,action,focus_highlight,show"; \
3248 action: STATE_SET "focused" 0.0; \
3249 target: "focus_image"; \
3251 program { name: "action_unfocus"; \
3252 signal: "elm,action,focus_highlight,hide"; \
3254 action: STATE_SET "default" 0.0; \
3255 target: "focus_image"; \
3259 ///////////////////////////////////////////////////////////////////////////////////////
3260 BUTTON_EDIT_STYLES("icon_plus", "00_button_add.png", "00_button_add_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3262 ///////////////////////////////////////////////////////////////////////////////////////
3263 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_add.png", "00_button_add_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3265 ///////////////////////////////////////////////////////////////////////////////////////
3266 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)
3268 ///////////////////////////////////////////////////////////////////////////////////////
3269 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)
3271 ///////////////////////////////////////////////////////////////////////////////////////
3272 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)
3274 ///////////////////////////////////////////////////////////////////////////////////////
3275 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)
3277 ///////////////////////////////////////////////////////////////////////////////////////
3279 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
3280 group { name: "elm/button/base/contacts/"style_name; \
3281 alias: "elm/button/base/"style_name; \
3282 inherit: "elm/button/base/contacts/icon_plus"; \
3284 image: "00_circle_button_delete.png" COMP; \
3285 image: "00_circle_button_delete_press.png" COMP; \
3286 image: "00_circle_button_delete_dim.png" COMP; \
3287 image: "00_button_delete.png" COMP; \
3288 image: "00_button_delete_press.png" COMP; \
3291 part { name: "button_image"; \
3293 description { state: "default" 0.0; \
3294 image.normal: "00_circle_button_delete.png"; \
3296 description { state: "clicked" 0.0; \
3297 inherit: "default" 0.0; \
3298 image.normal: "00_circle_button_delete_press.png"; \
3300 description { state: "disabled" 0.0; \
3301 inherit: "default" 0.0; \
3302 image.normal: "00_circle_button_delete_dim.png"; \
3305 part { name: "button_center_part"; \
3308 clip_to: "icon_clipper"; \
3309 description { state: "default" 0.0; \
3310 image.normal: "00_button_delete.png"; \
3313 state: "clicked" 0.0; \
3314 inherit: "default" 0.0; \
3315 image.normal: "00_button_delete_press.png"; \
3317 description { state: "disabled" 0.0; \
3318 inherit: "default" 0.0; \
3321 part { name: "icon_clipper"; \
3324 description { state: "default" 0.0; \
3325 color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
3327 description { state: "clicked" 0.0; \
3328 color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
3330 description { state: "disabled" 0.0; \
3331 color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
3334 part { name: "over1"; \
3337 ignore_flags: ON_HOLD; \
3338 description { state: "default" 0.0; \
3340 min: min_width min_height; \
3346 ///////////////////////////////////////////////////////////////////////////////////////
3347 BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3349 ///////////////////////////////////////////////////////////////////////////////////////
3350 BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3352 ///////////////////////////////////////////////////////////////////////////////////////
3353 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
3354 group { name: "elm/button/base/"style_name; \
3356 item: "focus_highlight" "on"; \
3359 image: "00_button_01.png" COMP; \
3360 image: "00_button_01_press.png" COMP; \
3361 image: "00_button_01_dim.png" COMP; \
3362 image: image_normal COMP; \
3363 image: "00_button_01_focus.png" COMP; \
3366 part { name: "button_image";\
3369 description { state: "default" 0.0; \
3370 min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
3372 normal: "00_button_01.png"; \
3373 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3377 description { state: "clicked" 0.0; \
3378 inherit: "default" 0.0; \
3379 image.normal: "00_button_01_press.png"; \
3381 description { state: "disabled" 0.0; \
3382 inherit: "default" 0.0; \
3383 image.normal: "00_button_01_dim.png"; \
3386 part { name: "focus_image"; \
3390 description { state: "default" 0.0; \
3392 rel1.to : "button_image"; \
3393 rel2.to : "button_image"; \
3395 normal: "00_button_01_focus.png"; \
3396 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3400 description { state: "focused" 0.0; \
3401 inherit: "default" 0.0; \
3405 part { name: "padding_left_top"; \
3408 description { state: "default" 0.0; \
3410 rel2.relative: 0.0 0.0; \
3411 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3415 part { name: "padding_right_bottom"; \
3418 description { state: "default" 0.0; \
3420 rel1.relative: 1.0 1.0; \
3421 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3425 part { name: "jump_image"; \
3428 description { state: "default" 0.0; \
3429 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3430 max: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3432 relative: 1.0 0.0; \
3433 to_x: "padding_left_top"; \
3436 relative: 0.0 1.0; \
3437 to_x: "padding_right_bottom"; \
3439 image.normal: image_normal; \
3441 aspect_preference: VERTICAL; \
3442 color: BUTTON_JUMP_ICON_NORMAL_COLOR_INC; \
3444 description { state: "clicked" 0.0; \
3445 inherit: "default" 0.0; \
3446 color: BUTTON_JUMP_ICON_PRESSED_COLOR_INC; \
3448 description { state: "disabled" 0.0; \
3449 inherit: "default" 0.0; \
3450 color: BUTTON_JUMP_ICON_DIM_COLOR_INC; \
3453 part { name: "over1"; \
3456 ignore_flags: ON_HOLD; \
3457 description { state: "default" 0.0; \
3459 rel1.relative: 0.0 0.0; \
3460 rel2.relative: 1.0 1.0; \
3463 part { name: "over2"; \
3466 description { state: "default" 0.0; \
3472 program { name: "button_click"; \
3473 signal: "mouse,down,1"; \
3475 action: SIGNAL_EMIT "elm,action,press" ""; \
3476 after: "button_click_anim"; \
3478 program { name: "button_click_anim"; \
3479 action: STATE_SET "clicked" 0.0; \
3480 target: "button_image"; \
3481 target: "jump_image"; \
3483 program { name: "button_double_click"; \
3484 signal: "mouse,down,1,double"; \
3486 after: "button_click_anim"; \
3488 program { name: "button_unclick"; \
3489 signal: "mouse,up,1"; \
3491 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3492 after: "button_unclick_anim"; \
3494 program { name: "button_unclick_anim"; \
3495 action: STATE_SET "default" 0.0; \
3496 target: "button_image"; \
3497 target: "jump_image"; \
3499 program { name: "touch_snd"; \
3500 signal: "mouse,clicked,1"; \
3502 action: PLAY_SAMPLE "touch_sound" 1.0; \
3503 after: button_unclick3; \
3505 program { name: "button_unclick3"; \
3506 action: SIGNAL_EMIT "elm,action,click" ""; \
3508 program { name: "disable"; \
3509 signal: "elm,state,disabled"; \
3511 action: STATE_SET "disabled" 0.0; \
3512 target: "button_image"; \
3513 target: "jump_image"; \
3515 program { name: "enable"; \
3516 signal: "elm,state,enabled"; \
3518 action: STATE_SET "default" 0.0; \
3519 target: "button_image"; \
3520 target: "jump_image"; \
3522 program { name: "action_focus"; \
3523 signal: "elm,action,focus_highlight,show"; \
3525 action: STATE_SET "focused" 0.0; \
3526 target: "focus_image"; \
3528 program { name: "action_unfocus"; \
3529 signal: "elm,action,focus_highlight,hide"; \
3531 action: STATE_SET "default" 0.0; \
3532 target: "focus_image"; \
3537 ////////////////////////////////////////////////////////////////////////
3538 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3539 ////////////////////////////////////////////////////////////////////////
3540 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3542 ////////////////////////////////////////////////////////////////////////
3543 group { name: "elm/button/base/default";
3545 item: "focus_highlight" "on";
3548 image: "00_button_01.png" COMP;
3549 image: "00_button_01_press.png" COMP;
3550 image: "00_button_01_dim.png" COMP;
3551 image: "00_button_01_focus.png" COMP;
3554 style { name: "btn_base_default";
3555 base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3560 style { name: "btn_base_default_pressed";
3561 base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3566 style { name: "btn_base_default_dim";
3567 base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3572 style { name: "btn_base_default_focus";
3573 base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3580 public button_state = BUTTON_STATE_ENABLED;
3583 part { name: "button_image";
3585 description { state: "default" 0.0;
3586 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3588 normal: "00_button_01.png";
3589 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3593 description { state: "clicked" 0.0;
3594 inherit: "default" 0.0;
3595 image.normal: "00_button_01_press.png";
3597 description { state: "disabled" 0.0;
3598 inherit: "default" 0.0;
3599 image.normal: "00_button_01_dim.png";
3601 description { state: "focused" 0.0;
3602 inherit: "default" 0.0;
3603 image.normal: "00_button_01_press.png";
3606 part { name: "focus_image";
3610 description { state: "default" 0.0;
3612 rel1.to : "button_image";
3613 rel2.to : "button_image";
3615 normal: "00_button_01_focus.png";
3616 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3620 description { state: "focused" 0.0;
3621 inherit: "default" 0.0;
3625 part { name: "padding_left_top";
3629 description { state: "default" 0.0;
3631 rel2.relative: 0.0 0.0;
3632 min: BUTTON_DEFAULT_STYLE_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_PADDING_MIN_INC;
3649 part { name: "padding_icon_text";
3653 description { state: "default" 0.0; //when only icon or no icon is there
3659 to: "elm.swallow.content";
3661 rel2.to: "elm.swallow.content";
3664 description { state: "icononly" 0.0;
3665 inherit: "default" 0.0;
3667 description { state: "visible" 0.0; //when icon is visible
3668 inherit: "default" 0.0;
3669 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3672 part { name: "elm.swallow.content";
3676 description { state: "default" 0.0;
3682 to: "padding_left_top";
3686 to_x: "padding_left_top";
3687 to_y: "padding_right_bottom";
3690 description { state: "visible" 0.0;
3691 inherit: "default" 0.0;
3694 aspect_preference: VERTICAL;
3696 description { state: "icononly" 0.0;
3697 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3700 to_x: "padding_left_top";
3704 to_x: "padding_right_bottom";
3707 aspect_preference: VERTICAL;
3710 part { name: "elm.text";
3715 description { state: "default" 0.0;
3720 to_x: "padding_icon_text";
3721 to_y: "padding_left_top";
3725 to: "padding_right_bottom";
3728 style: "btn_base_default";
3731 description { state: "visible" 0.0;
3732 inherit: "default" 0.0;
3734 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3736 description { state: "clicked" 0.0;
3737 inherit: "default" 0.0;
3739 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3741 style: "btn_base_default_pressed";
3744 description { state: "disabled" 0.0;
3745 inherit: "default" 0.0;
3747 description { state: "disabled_visible" 0.0;
3748 inherit: "default" 0.0;
3751 style: "btn_base_default_dim";
3753 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3755 description { state: "focused" 0.0;
3756 inherit: "default" 0.0;
3759 style: "btn_base_default_focus";
3764 part { name: "over2";
3767 ignore_flags: ON_HOLD;
3768 description { state: "default" 0.0;
3772 part { name: "over3";
3775 description { state: "default" 0.0;
3779 part { name: "disclip";
3781 description { state: "default" 0.0;
3782 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3784 description { state: "disabled" 0.0;
3785 inherit: "default" 0.0;
3786 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3789 part { name: "disabler";
3791 description { state: "default" 0.0;
3795 description { state: "disabled" 0.0;
3796 inherit: "default" 0.0;
3802 program { name: "button_click";
3803 signal: "mouse,down,1";
3805 action: SIGNAL_EMIT "elm,action,press" "";
3806 after: "button_click_anim";
3808 program { name: "button_click_anim";
3809 action: STATE_SET "clicked" 0.0;
3810 target: "button_image";
3811 after: "text_clicked";
3813 program { name: "text_clicked";
3817 get_state(PART:"elm.text", st, 30, vl);
3818 if (!strcmp(st, "visible"))
3819 set_state(PART:"elm.text", "clicked", 0.0);
3822 program { name: "button_double_click";
3823 signal: "mouse,down,1,double";
3825 after: "button_click_anim";
3827 program { name: "button_unpress";
3828 action: SIGNAL_EMIT "elm,action,unpress" "";
3830 program { name: "button_mouseout_clicked";
3831 signal: "mouse,up,1";
3836 get_state(PART:"elm.swallow.content", st, 30, vl);
3837 if (strcmp(st, "icononly"))
3839 emit("elm,action,default,text,set", "");
3840 set_state(PART:"elm.text", "visible", 0.0);
3842 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3843 set_state(PART:"button_image", "default", 0.0);
3845 after: button_unpress;
3847 program { name: "touch_snd";
3848 signal: "mouse,clicked,1";
3850 action: PLAY_SAMPLE "touch_sound" 1.0;
3851 after: button_unclick3;
3853 program { name: "button_unclick3";
3854 action: SIGNAL_EMIT "elm,action,click" "";
3856 program { name: "text_show";
3857 signal: "elm,state,text,visible";
3862 get_state(PART:"elm.swallow.content", st, 30, vl);
3863 if (!strcmp(st, "icononly"))
3865 set_state(PART:"elm.swallow.content", "visible", 0.0);
3866 set_state(PART:"padding_icon_text", "visible", 0.0);
3868 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3869 set_state(PART:"elm.text", "visible", 0.0);
3871 set_state(PART:"elm.text", "disabled_visible", 0.0);
3874 program { name: "text_hide";
3875 signal: "elm,state,text,hidden";
3880 get_state(PART:"elm.swallow.content", st, 30, vl);
3881 if (!strcmp(st, "visible"))
3883 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3884 set_state(PART:"padding_icon_text", "icononly", 0.0);
3886 set_state(PART:"elm.text", "default", 0.0);
3889 program { name: "icon_show";
3890 signal: "elm,state,icon,visible";
3895 get_state(PART:"elm.text", st, 30, vl);
3896 if (!strcmp(st, "visible"))
3898 set_state(PART:"elm.swallow.content", "visible", 0.0);
3899 set_state(PART:"padding_icon_text", "visible", 0.0);
3903 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3904 set_state(PART:"padding_icon_text", "icononly", 0.0);
3908 program { name: "icon_hide";
3909 signal: "elm,state,icon,hidden";
3911 action: STATE_SET "default" 0.0;
3912 target: "elm.swallow.content";
3913 target: "padding_icon_text";
3915 program { name: "disable";
3916 signal: "elm,state,disabled";
3918 action: STATE_SET "disabled" 0.0;
3919 target: "button_image";
3922 after: "disable_text";
3924 program { name: "disable_text";
3928 get_state(PART:"elm.text", st, 30, vl);
3929 if (!strcmp(st, "visible"))
3930 set_state(PART:"elm.text", "disabled_visible", 0.0);
3932 set_state(PART:"elm.text", "disabled", 0.0);
3933 set_int(button_state, BUTTON_STATE_DISABLED);
3936 program { name: "enable";
3937 signal: "elm,state,enabled";
3939 action: STATE_SET "default" 0.0;
3940 target: "button_image";
3943 after: "enable_text";
3945 program { name: "enable_text";
3949 get_state(PART:"elm.text", st, 30, vl);
3950 if (!strcmp(st, "disabled_visible"))
3951 set_state(PART:"elm.text", "visible", 0.0);
3953 set_state(PART:"elm.text", "default", 0.0);
3954 set_int(button_state, BUTTON_STATE_ENABLED);
3957 program { name: "action_focus";
3958 signal: "elm,action,focus_highlight,show";
3960 action: STATE_SET "focused" 0.0;
3961 target: "focus_image";
3963 program { name: "action_unfocus";
3964 signal: "elm,action,focus_highlight,hide";
3966 action: STATE_SET "default" 0.0;
3967 target: "focus_image";
3972 ///////////////////////////////////////////////////////////////////////////////////////
3973 group { name: "elm/button/base/multiline";
3974 alias: "elm/button/base/text_only/multiline";
3975 inherit: "elm/button/base/default";
3977 style { name: "btn_multiline_style";
3978 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";
3985 part { name: "button_image";
3987 description { state: "default" 0.0;
3988 min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3990 normal: "00_button_01.png";
3991 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3995 description { state: "clicked" 0.0;
3996 inherit: "default" 0.0;
3997 image.normal: "00_button_01_press.png";
3999 description { state: "disabled" 0.0;
4000 inherit: "default" 0.0;
4001 image.normal: "00_button_01_dim.png";
4003 description { state: "focused" 0.0;
4004 inherit: "default" 0.0;
4005 image.normal: "00_button_01_press.png";
4008 part { name: "padding_left_top";
4012 description { state: "default" 0.0;
4014 rel2.relative: 0.0 0.0;
4015 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
4020 part { name: "padding_right_bottom";
4024 description { state: "default" 0.0;
4026 rel1.relative: 1.0 1.0;
4027 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
4032 part { name: "elm.text";
4037 description { state: "default" 0.0;
4041 to_x: "padding_icon_text";
4042 to_y: "padding_left_top";
4046 to: "padding_right_bottom";
4048 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
4050 style: "btn_multiline_style";
4053 description { state: "visible" 0.0;
4054 inherit: "default" 0.0;
4058 description { state: "clicked" 0.0;
4059 inherit: "default" 0.0;
4062 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
4064 description { state: "disabled" 0.0;
4065 inherit: "default" 0.0;
4067 description { state: "disabled_visible" 0.0;
4068 inherit: "default" 0.0;
4069 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4073 description { state: "focused" 0.0;
4074 inherit: "default" 0.0;
4077 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4083 ///////////////////////////////////////////////////////////////////////////////////////
4084 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
4085 group { name: "elm/button/base/"style_name; \
4087 item: "focus_highlight" "on"; \
4090 image: image_normal COMP; \
4091 image: image_press COMP; \
4092 image: image_dim COMP; \
4093 image: "00_button_01.png" COMP; \
4094 image: "00_button_01_press.png" COMP; \
4095 image: "00_button_01_focus.png" COMP; \
4098 part { name: "button_image"; \
4100 description { state: "default" 0.0; \
4101 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4102 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4104 normal: "00_button_01.png"; \
4105 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
4110 state: "clicked" 0.0; \
4111 inherit: "default" 0.0; \
4112 image.normal: "00_button_01_press.png"; \
4115 state: "disabled" 0.0; \
4116 inherit: "default" 0.0; \
4117 image.normal: "00_button_01_dim.png"; \
4120 state: "focused" 0.0; \
4121 inherit: "default" 0.0; \
4122 image.normal: "00_button_01_press.png"; \
4125 part { name: "focus_image"; \
4129 description { state: "default" 0.0; \
4130 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4131 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4133 rel1.to : "button_image"; \
4134 rel2.to : "button_image"; \
4136 normal: "00_button_01_focus.png"; \
4137 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
4141 description { state: "focused" 0.0; \
4142 inherit: "default" 0.0; \
4146 part { name: "button_center_part"; \
4148 clip_to: "icon_clipper"; \
4149 description { state: "default" 0.0; \
4150 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
4151 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
4152 image.normal: image_normal; \
4155 state: "clicked" 0.0; \
4156 inherit: "default" 0.0; \
4157 image.normal: image_press; \
4160 state: "disabled" 0.0; \
4161 inherit: "default" 0.0; \
4164 part { name: "icon_clipper"; \
4167 description { state: "default" 0.0; \
4168 color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
4170 description { state: "clicked" 0.0; \
4171 color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
4173 description { state: "disabled" 0.0; \
4174 color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
4177 part { name: "over1"; \
4179 ignore_flags: ON_HOLD; \
4180 description { state: "default" 0.0; \
4184 part { name: "over2"; \
4187 description { state: "default" 0.0; \
4191 part { name: "disabler"; \
4193 description { state: "default" 0.0; \
4197 description { state: "disabled" 0.0; \
4198 inherit: "default" 0.0; \
4204 program { name: "button_click"; \
4205 signal: "mouse,down,1"; \
4207 action: SIGNAL_EMIT "elm,action,press" ""; \
4208 after: "button_click_anim"; \
4210 program { name: "button_click_anim"; \
4211 action: STATE_SET "clicked" 0.0; \
4212 target: "button_image"; \
4213 target: "button_center_part"; \
4214 target: ""icon_clipper""; \
4216 program { name: "button_double_click"; \
4217 signal: "mouse,down,1,double"; \
4219 after: "button_click_anim"; \
4221 program { name: "button_unclick"; \
4222 signal: "mouse,up,1"; \
4224 action: SIGNAL_EMIT "elm,action,unpress" ""; \
4225 after: "button_unclick_anim"; \
4227 program { name: "button_unclick_anim"; \
4228 action: STATE_SET "default" 0.0; \
4229 target: "button_image"; \
4230 target: "button_center_part"; \
4231 target: ""icon_clipper""; \
4233 program { name: "touch_snd"; \
4234 signal: "mouse,clicked,1"; \
4236 action: PLAY_SAMPLE "touch_sound" 1.0; \
4237 after: button_unclick3; \
4239 program { name: "button_unclick3"; \
4240 action: SIGNAL_EMIT "elm,action,click" ""; \
4242 program { name: "disable"; \
4243 signal: "elm,state,disabled"; \
4245 action: STATE_SET "disabled" 0.0; \
4246 target: "disabler"; \
4247 target: "button_image"; \
4248 target: "button_center_part"; \
4249 target: ""icon_clipper""; \
4251 program { name: "enable"; \
4252 signal: "elm,state,enabled"; \
4254 action: STATE_SET "default" 0.0; \
4255 target: "disabler"; \
4256 target: "button_image"; \
4257 target: "button_center_part"; \
4258 target: ""icon_clipper""; \
4260 program { name: "action_focus"; \
4261 signal: "elm,action,focus_highlight,show"; \
4263 action: STATE_SET "focused" 0.0; \
4264 target: "focus_image"; \
4266 program { name: "action_unfocus"; \
4267 signal: "elm,action,focus_highlight,hide"; \
4269 action: STATE_SET "default" 0.0; \
4270 target: "focus_image"; \
4274 ///////////////////////////////////////////////////////////////////////////////////////
4275 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
4276 ///////////////////////////////////////////////////////////////////////////////////////
4277 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
4278 ///////////////////////////////////////////////////////////////////////////////////////
4280 group { name: "elm/button/base/multibuttonentry";
4281 alias: "elm/button/base/text_only/multibuttonentry";
4283 item: "focus_highlight" "on";
4286 image: "00_contacts_button.png" COMP;
4287 image: "00_contacts_button_press.png" COMP;
4288 image: "00_contacts_button_focus.png" COMP;
4289 image: "00_contacts_button_dim.png" COMP;
4292 style { name: "btn_base_multibuttonentry";
4293 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4298 style { name: "btn_base_multibuttonentry_pressed";
4299 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4304 style { name: "btn_base_multibuttonentry_dim";
4305 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4310 style { name: "btn_base_multibuttonentry_focus";
4311 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4318 public button_state = BUTTON_STATE_ENABLED;
4321 part { name: "button_image";
4323 description { state: "default" 0.0;
4325 to_x: "padding.left";
4329 to_x: "padding.right";
4332 min: BUTTON_CONTACT_BG_MIN_INC;
4334 normal: "00_contacts_button.png";
4335 border: BUTTON_CONTACT_BG_BORDER_INC;
4339 description { state: "clicked" 0.0;
4340 inherit: "default" 0.0;
4341 image.normal: "00_contacts_button_press.png";
4343 description { state: "disabled" 0.0;
4344 inherit: "default" 0.0;
4345 image.normal: "00_contacts_button_dim.png";
4347 description { state: "focused" 0.0;
4348 inherit: "default" 0.0;
4349 image.normal: "00_contacts_button_press.png";
4352 part { name: "focus_image";
4356 description { state: "default" 0.0;
4358 rel1.to : "button_image";
4359 rel2.to : "button_image";
4361 normal: "00_contacts_button_focus.png";
4362 border: BUTTON_CONTACT_BG_BORDER_INC;
4366 description { state: "focused" 0.0;
4367 inherit: "default" 0.0;
4371 part { name: "padding.left";
4374 description { state: "default" 0.0;
4376 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
4386 part { name: "padding.right";
4389 description { state: "default" 0.0;
4391 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
4401 part { name: "elm.text";
4405 description { state: "default" 0.0;
4409 style: "btn_base_multibuttonentry";
4413 description { state: "visible" 0.0;
4414 inherit: "default" 0.0;
4418 description { state: "clicked" 0.0;
4419 inherit: "default" 0.0;
4423 style: "btn_base_multibuttonentry_pressed";
4426 description { state: "disabled" 0.0;
4427 inherit: "default" 0.0;
4429 description { state: "disabled_visible" 0.0;
4430 inherit: "default" 0.0;
4433 style: "btn_base_multibuttonentry_dim";
4437 description { state: "focused" 0.0;
4438 inherit: "default" 0.0;
4441 style: "btn_base_multibuttonentry_focus";
4446 part { name: "over1";
4449 description { state: "default" 0.0;
4450 rel2.relative: 1.0 0.5;
4454 part { name: "over2";
4457 ignore_flags: ON_HOLD;
4458 description { state: "default" 0.0;
4459 rel1.to: "button_image";
4460 rel2.to: "button_image";
4464 part { name: "over3";
4467 description { state: "default" 0.0;
4468 rel1.to: "button_image";
4469 rel2.to: "button_image";
4473 part { name: "disabler";
4475 description { state: "default" 0.0;
4476 rel1.to: "button_image";
4477 rel2.to: "button_image";
4481 description { state: "disabled" 0.0;
4482 inherit: "default" 0.0;
4488 program { name: "button_click";
4489 signal: "mouse,down,1";
4491 action: SIGNAL_EMIT "elm,action,press" "";
4492 after: "button_click_anim";
4494 program { name: "button_click_anim";
4495 action: STATE_SET "clicked" 0.0;
4496 target: "button_image";
4499 program { name: "button_double_click";
4500 signal: "mouse,down,1,double";
4502 after: "button_click_anim";
4504 program { name: "button_unpress";
4505 action: SIGNAL_EMIT "elm,action,unpress" "";
4507 program { name: "button_mouseout_clicked";
4508 signal: "mouse,up,1";
4513 get_state(PART:"elm.text", st, 30, vl);
4514 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4516 emit("elm,action,default,text,set", "");
4517 set_state(PART:"elm.text", "visible", 0.0);
4519 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4520 set_state(PART:"button_image", "default", 0.0);
4522 after: button_unpress;
4524 program { name: "touch_snd";
4525 signal: "mouse,clicked,1";
4527 action: PLAY_SAMPLE "touch_sound" 1.0;
4528 after: button_unclick3;
4530 program { name: "button_unclick3";
4531 action: SIGNAL_EMIT "elm,action,click" "";
4533 program { name: "text_show";
4534 signal: "elm,state,text,visible";
4537 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4538 set_state(PART:"elm.text", "visible", 0.0);
4540 set_state(PART:"elm.text", "disabled_visible", 0.0);
4543 program { name: "text_hide";
4544 signal: "elm,state,text,hidden";
4546 action: STATE_SET "default" 0.0;
4549 program { name: "disable";
4550 signal: "elm,state,disabled";
4552 action: STATE_SET "disabled" 0.0;
4553 target: "button_image";
4555 after: "disable_text";
4557 program { name: "disable_text";
4561 get_state(PART:"elm.text", st, 30, vl);
4562 if (!strcmp(st, "visible"))
4563 set_state(PART:"elm.text", "disabled_visible", 0.0);
4565 set_state(PART:"elm.text", "disabled", 0.0);
4566 set_int(button_state, BUTTON_STATE_DISABLED);
4569 program { name: "enable";
4570 signal: "elm,state,enabled";
4572 action: STATE_SET "default" 0.0;
4573 target: "button_image";
4575 after: "enable_text";
4577 program { name: "enable_text";
4581 get_state(PART:"elm.text", st, 30, vl);
4582 if (!strcmp(st, "disabled_visible"))
4583 set_state(PART:"elm.text", "visible", 0.0);
4585 set_state(PART:"elm.text", "default", 0.0);
4586 set_int(button_state, BUTTON_STATE_ENABLED);
4589 program { name: "action_focus";
4590 signal: "elm,action,focus_highlight,show";
4592 action: STATE_SET "focused" 0.0;
4593 target: "focus_image";
4595 program { name: "action_unfocus";
4596 signal: "elm,action,focus_highlight,hide";
4598 action: STATE_SET "default" 0.0;
4599 target: "focus_image";
4604 ///////////////////////////////////////////////////////////////////////////////////////
4605 group { name: "elm/button/base/naviframe/back_btn/default";
4606 alias: "elm/button/base/naviframe/prev_btn/default";
4607 alias: "elm/button/base/naviframe/end_btn/default";
4609 item: "focus_highlight" "on";
4612 image: "00_icon_back.png" COMP;
4613 image: "00_icon_SIP_close.png" COMP;
4614 image: "00_icon_focus.png" COMP;
4617 part { name: "button_image";
4620 description { state: "default" 0.0;
4621 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4622 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4625 description { state: "landscape" 0.0;
4626 min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4627 max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4631 part { name: "focus_image";
4635 description { state: "default" 0.0;
4637 rel1.to : "button_image";
4638 rel2.to : "button_image";
4640 normal: "00_icon_focus.png";
4644 description { state: "focused" 0.0;
4645 inherit: "default" 0.0;
4649 part { name: "back_button";
4652 clip_to: "back_button.clipper";
4653 description { state: "default" 0.0;
4654 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4655 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4657 rel1.to: "button_image";
4658 rel2.to: "button_image";
4659 image.normal: "00_icon_back.png";
4661 description { state: "compress" 0.0;
4662 inherit: "default" 0.0;
4663 image.normal: "00_icon_SIP_close.png";
4666 part { name: "back_button.clipper";
4668 description { state: "default" 0.0;
4669 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4671 description { state: "clicked" 0.0;
4672 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4674 description { state: "disabled" 0.0;
4675 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4678 part { name: "over2";
4680 ignore_flags: ON_HOLD;
4681 description { state: "default" 0.0;
4685 part { name: "over3";
4688 description { state: "default" 0.0;
4692 part { name: "disabler";
4694 description { state: "default" 0.0;
4698 description { state: "disabled" 0.0;
4699 inherit: "default" 0.0;
4705 program { name: "button_click";
4706 signal: "mouse,down,1";
4708 action: SIGNAL_EMIT "elm,action,press" "";
4709 after: "button_click_anim";
4711 program { name: "button_click_anim";
4713 set_state(PART:"back_button.clipper", "clicked", 0.0);
4716 program { name: "button_double_click";
4717 signal: "mouse,down,1,double";
4719 after: "button_click_anim";
4721 program { name: "button_unclick";
4722 signal: "mouse,up,1";
4724 action: SIGNAL_EMIT "elm,action,unpress" "";
4725 after: "button_unclick_anim";
4727 program { name: "button_unclick_anim";
4729 set_state(PART:"back_button.clipper", "default", 0.0);
4732 program { name: "touch_snd";
4733 signal: "mouse,clicked,1";
4735 action: PLAY_SAMPLE "touch_sound" 1.0;
4736 after: button_unclick3;
4738 program { name: "button_unclick3";
4739 action: SIGNAL_EMIT "elm,action,click" "";
4741 program { name: "disable";
4742 signal: "elm,state,disabled";
4745 set_state(PART:"back_button.clipper", "disabled", 0.0);
4748 program { name: "enable";
4749 signal: "elm,state,enabled";
4752 set_state(PART:"back_button.clipper", "default", 0.0);
4755 program { name: "change_to_landscape";
4756 signal: "elm,state,landscape";
4758 action: STATE_SET "landscape" 0.0;
4759 target: "button_image";
4761 program { name: "change_to_portrait";
4762 signal: "elm,state,portrait";
4764 action: STATE_SET "default" 0.0;
4765 target: "button_image";
4767 program { name: "landscape_mode";
4769 signal: "elm,state,orient,90";
4770 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4772 program { name: "landscape_mode2";
4774 signal: "elm,state,orient,270";
4775 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4777 program { name: "portrait_mode";
4779 signal: "elm,state,orient,0";
4780 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4782 program { name: "portrait_mode2";
4784 signal: "elm,state,orient,180";
4785 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4787 program { name: "display_compress_mode";
4788 signal: "elm,state,display,compress";
4790 action: STATE_SET "compress" 0.0;
4791 target: "back_button";
4793 program { name: "display_default_mode";
4794 signal: "elm,state,display,default";
4796 action: STATE_SET "default" 0.0;
4797 target: "back_button";
4799 program { name: "action_focus";
4800 signal: "elm,action,focus_highlight,show";
4802 action: STATE_SET "focused" 0.0;
4803 target: "focus_image";
4805 program { name: "action_unfocus";
4806 signal: "elm,action,focus_highlight,hide";
4808 action: STATE_SET "default" 0.0;
4809 target: "focus_image";
4814 ////////////////////////////////////////////////////////////////////
4815 group { name: "elm/button/base/naviframe/title_icon";
4817 item: "focus_highlight" "on";
4820 image: "00_icon_focus.png" COMP;
4823 part { name: "button_image";
4826 description { state: "default" 0.0;
4828 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
4829 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
4831 description { state: "landscape" 0.0;
4833 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
4834 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
4837 part { name: "focus_image";
4841 description { state: "default" 0.0;
4843 rel1.to : "button_image";
4844 rel2.to : "button_image";
4846 normal: "00_icon_focus.png";
4850 description { state: "focused" 0.0;
4851 inherit: "default" 0.0;
4855 part { name: "elm.swallow.content";
4858 clip_to: "elm.icon.clipper";
4859 description { state: "default" 0.0;
4861 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
4863 rel1 { to: "button_image"; }
4864 rel2 { to: "button_image"; }
4866 description { state: "visible" 0.0;
4867 inherit: "default" 0.0;
4871 part { name: "elm.icon.clipper";
4873 description { state: "default" 0.0;
4874 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4876 description { state: "clicked" 0.0;
4877 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4879 description { state: "disabled" 0.0;
4880 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4883 part { name: "over2";
4885 ignore_flags: ON_HOLD;
4886 description { state: "default" 0.0;
4890 part { name: "over3";
4893 description { state: "default" 0.0;
4897 part { name: "disabler";
4899 description { state: "default" 0.0;
4903 description { state: "disabled" 0.0;
4904 inherit: "default" 0.0;
4910 program { name: "button_click";
4911 signal: "mouse,down,1";
4913 action: SIGNAL_EMIT "elm,action,press" "";
4914 after: "button_click_anim";
4916 program { name: "button_click_anim";
4918 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
4921 program { name: "button_double_click";
4922 signal: "mouse,down,1,double";
4924 after: "button_click_anim";
4926 program { name: "button_unpress";
4927 action: SIGNAL_EMIT "elm,action,unpress" "";
4929 program { name: "button_mouseout_clicked";
4930 signal: "mouse,up,1";
4932 action: STATE_SET "default" 0.0;
4933 target: "elm.icon.clipper";
4934 after: button_unpress;
4936 program { name: "touch_snd";
4937 signal: "mouse,clicked,1";
4939 action: PLAY_SAMPLE "touch_sound" 1.0;
4940 after: button_unclick3;
4942 program { name: "button_unclick3";
4943 action: SIGNAL_EMIT "elm,action,click" "";
4945 program { name: "icon_show";
4946 signal: "elm,state,icon,visible";
4948 action: STATE_SET "visible" 0.0;
4949 target: "elm.swallow.content";
4951 program { name: "icon_hide";
4952 signal: "elm,state,icon,hidden";
4954 action: STATE_SET "default" 0.0;
4955 target: "elm.swallow.content";
4957 program { name: "disable";
4958 signal: "elm,state,disabled";
4961 set_state(PART:"disabler", "disabled", 0.0);
4962 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
4965 program { name: "enable";
4966 signal: "elm,state,enabled";
4969 set_state(PART:"disabler", "default", 0.0);
4970 set_state(PART:"elm.icon.clipper", "default", 0.0);
4973 program { name: "change_to_landscape";
4974 signal: "elm,state,landscape";
4976 action: STATE_SET "landscape" 0.0;
4977 target: "button_image";
4979 program { name: "change_to_portrait";
4980 signal: "elm,state,portrait";
4982 action: STATE_SET "default" 0.0;
4983 target: "button_image";
4985 program { name: "landscape_mode";
4987 signal: "elm,state,orient,90";
4988 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4990 program { name: "landscape_mode2";
4992 signal: "elm,state,orient,270";
4993 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4995 program { name: "portrait_mode";
4997 signal: "elm,state,orient,0";
4998 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5000 program { name: "portrait_mode2";
5002 signal: "elm,state,orient,180";
5003 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5005 program { name: "action_focus";
5006 signal: "elm,action,focus_highlight,show";
5008 action: STATE_SET "focused" 0.0;
5009 target: "focus_image";
5011 program { name: "action_unfocus";
5012 signal: "elm,action,focus_highlight,hide";
5014 action: STATE_SET "default" 0.0;
5015 target: "focus_image";
5020 ////////////////////////////////////////////////////////////////////
5021 group { name: "elm/button/base/naviframe/title_text";
5023 image: "00_title_press.png" COMP;
5026 style { name: "btn_naviframe_title_text";
5027 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5034 part { name: "button_bg";
5037 description { state: "default" 0.0;
5038 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_INC;
5039 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MAX_INC;
5041 description { state: "landscape" 0.0;
5042 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_INC;
5043 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MAX_INC;
5046 part { name: "button_image";
5049 description { state: "default" 0.0;
5051 rel1 { to: "button_bg"; }
5052 rel2 { to: "button_bg"; }
5054 description { state: "clicked" 0.0;
5055 inherit: "default" 0.0;
5058 normal: "00_title_press.png";
5059 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
5064 part { name: "left_padding";
5067 description { state: "default" 0.0;
5069 min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
5070 max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
5073 rel1 { relative: 0.0 0.0; to: "button_bg"; }
5074 rel2 { relative: 0.0 1.0; to: "button_bg"; }
5077 part { name: "right_padding";
5080 description { state: "default" 0.0;
5082 min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
5083 max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
5086 rel1 { relative: 1.0 0.0; to: "button_bg"; }
5087 rel2 { relative: 1.0 1.0; to: "button_bg"; }
5090 part { name: "elm.text";
5094 clip_to: "button_bg";
5095 description { state: "default" 0.0;
5096 min: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MIN_INC;
5097 max: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MAX_INC;
5098 rel1 { relative: 1.0 0.0; to: "left_padding"; }
5099 rel2 { relative: 0.0 1.0; to: "right_padding"; }
5101 style: "btn_naviframe_title_text";
5102 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
5106 description { state: "landscape" 0.0;
5107 inherit: "default" 0.0;
5108 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MIN_INC;
5109 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MAX_INC;
5112 part { name: "over2";
5114 ignore_flags: ON_HOLD;
5115 description { state: "default" 0.0;
5119 part { name: "over3";
5122 description { state: "default" 0.0;
5126 part { name: "disabler";
5128 description { state: "default" 0.0;
5132 description { state: "disabled" 0.0;
5133 inherit: "default" 0.0;
5139 program { name: "button_click";
5140 signal: "mouse,down,1";
5142 action: SIGNAL_EMIT "elm,action,press" "";
5143 after: "button_click_anim";
5145 program { name: "button_click_anim";
5147 set_state(PART:"button_image", "clicked", 0.0);
5150 program { name: "button_double_click";
5151 signal: "mouse,down,1,double";
5153 after: "button_click_anim";
5155 program { name: "button_unclick";
5156 signal: "mouse,up,1";
5158 action: SIGNAL_EMIT "elm,action,unpress" "";
5159 after: "button_unclick_anim";
5161 program { name: "button_unclick_anim";
5163 set_state(PART:"button_image", "default", 0.0);
5166 program { name: "touch_snd";
5167 signal: "mouse,clicked,1";
5169 action: PLAY_SAMPLE "touch_sound" 1.0;
5170 after: "button_unclick3";
5172 program { name: "button_unclick3";
5173 action: SIGNAL_EMIT "elm,action,click" "";
5175 program { name: "change_to_landscape";
5176 signal: "elm,state,landscape";
5179 set_state(PART:"button_bg", "landscape", 0.0);
5180 set_state(PART:"elm.text", "landscape", 0.0);
5183 program { name: "change_to_portrait";
5184 signal: "elm,state,portrait";
5187 set_state(PART:"button_bg", "default", 0.0);
5188 set_state(PART:"elm.text", "default", 0.0);
5191 program { name: "landscape_mode";
5193 signal: "elm,state,orient,90";
5194 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5196 program { name: "landscape_mode2";
5198 signal: "elm,state,orient,270";
5199 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5201 program { name: "portrait_mode";
5203 signal: "elm,state,orient,0";
5204 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5206 program { name: "portrait_mode2";
5208 signal: "elm,state,orient,180";
5209 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5214 /////////////////////////////////////////////////////////////////////////////////////////
5215 group { name: "elm/button/base/naviframe/more/default";
5217 item: "focus_highlight" "on";
5220 image: "00_icon_more.png" COMP;
5221 image: "00_icon_focus.png" COMP;
5224 part { name: "button_image";
5227 description { state: "default" 0.0;
5228 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5229 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5232 description { state: "landscape" 0.0;
5233 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5234 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5238 part { name: "focus_image";
5242 description { state: "default" 0.0;
5244 rel1.to : "button_image";
5245 rel2.to : "button_image";
5247 normal: "00_icon_focus.png";
5251 description { state: "focused" 0.0;
5252 inherit: "default" 0.0;
5256 part { name: "more_image";
5259 clip_to: "more_image.clipper";
5260 description { state: "default" 0.0;
5261 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5262 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5264 rel1.to: "button_image";
5265 rel2.to: "button_image";
5266 image.normal: "00_icon_more.png";
5269 part { name: "more_image.clipper";
5271 description { state: "default" 0.0;
5272 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5274 description { state: "clicked" 0.0;
5275 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5277 description { state: "disabled" 0.0;
5278 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5281 part { name: "over2";
5283 ignore_flags: ON_HOLD;
5284 description { state: "default" 0.0;
5288 part { name: "over3";
5291 description { state: "default" 0.0;
5295 part { name: "disabler";
5297 description { state: "default" 0.0;
5301 description { state: "disabled" 0.0;
5302 inherit: "default" 0.0;
5308 program { name: "button_click";
5309 signal: "mouse,down,1";
5311 action: SIGNAL_EMIT "elm,action,press" "";
5312 after: "button_click_anim";
5314 program { name: "button_click_anim";
5316 set_state(PART:"more_image.clipper", "clicked", 0.0);
5319 program { name: "button_double_click";
5320 signal: "mouse,down,1,double";
5322 after: "button_click_anim";
5324 program { name: "button_unclick";
5325 signal: "mouse,up,1";
5327 action: SIGNAL_EMIT "elm,action,unpress" "";
5328 after: "button_unclick_anim";
5330 program { name: "button_unclick_anim";
5332 set_state(PART:"more_image.clipper", "default", 0.0);
5335 program { name: "touch_snd";
5336 signal: "mouse,clicked,1";
5338 action: PLAY_SAMPLE "touch_sound" 1.0;
5339 after: button_unclick3;
5341 program { name: "button_unclick3";
5342 action: SIGNAL_EMIT "elm,action,click" "";
5344 program { name: "disable";
5345 signal: "elm,state,disabled";
5348 set_state(PART:"disabler", "disabled", 0.0);
5349 set_state(PART:"more_image.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:"more_image.clipper", "default", 0.0);
5360 program { name: "change_to_landscape";
5361 signal: "elm,state,landscape";
5363 action: STATE_SET "landscape" 0.0;
5364 target: "button_image";
5366 program { name: "change_to_portrait";
5367 signal: "elm,state,portrait";
5369 action: STATE_SET "default" 0.0;
5370 target: "button_image";
5372 program { name: "landscape_mode";
5374 signal: "elm,state,orient,90";
5375 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5377 program { name: "landscape_mode2";
5379 signal: "elm,state,orient,270";
5380 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5382 program { name: "portrait_mode";
5384 signal: "elm,state,orient,0";
5385 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5387 program { name: "portrait_mode2";
5389 signal: "elm,state,orient,180";
5390 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5392 program { name: "action_focus";
5393 signal: "elm,action,focus_highlight,show";
5395 action: STATE_SET "focused" 0.0;
5396 target: "focus_image";
5398 program { name: "action_unfocus";
5399 signal: "elm,action,focus_highlight,hide";
5401 action: STATE_SET "default" 0.0;
5402 target: "focus_image";
5407 ///////////////////////////////////////////////////////////////////////////////////////
5408 group { name: "elm/button/base/tickernoti";
5410 image: "00_notification_button.png" COMP;
5411 image: "00_notification_button_press.png" COMP;
5412 image: "00_notification_button_dim.png" COMP;
5415 public button_state = BUTTON_STATE_ENABLED;
5418 part { name: "button_image";
5420 description { state: "default" 0.0;
5421 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5422 max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5424 normal: "00_notification_button.png";
5425 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
5429 description { state: "clicked" 0.0;
5430 inherit: "default" 0.0;
5431 image.normal: "00_notification_button_press.png";
5433 description { state: "disabled" 0.0;
5434 inherit: "default" 0.0;
5435 image.normal: "00_notification_button_dim.png";
5437 description { state: "focused" 0.0;
5438 inherit: "default" 0.0;
5439 image.normal: "00_notification_button_press.png";
5442 part { name: "padding_left_top";
5446 description { state: "default" 0.0;
5449 rel2.relative: 0.0 0.0;
5450 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5458 description { state: "default" 0.0;
5459 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5462 description { state: "visible" 0.0;
5463 inherit: "default" 0.0;
5465 description { state: "icononly" 0.0;
5466 inherit: "default" 0.0;
5469 part { name: "padding_right_bottom";
5473 description { state: "default" 0.0;
5475 rel1.relative: 1.0 1.0;
5476 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5481 part { name: "icon_rect";
5485 description { state: "default" 0.0;
5491 to: "padding_left_top";
5495 to_x: "padding_left_top";
5496 to_y: "padding_right_bottom";
5500 description { state: "visible" 0.0;
5501 inherit: "default" 0.0;
5502 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5503 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5505 description { state: "icononly" 0.0;
5506 inherit: "default" 0.0;
5509 part { name: "padding_after_icon";
5513 description { state: "default" 0.0; //when only icon or no icon is there
5522 rel2.to: "icon_rect";
5524 description { state: "visible" 0.0;
5525 inherit: "default" 0.0;
5526 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5528 description { state: "icononly" 0.0;
5529 inherit: "default" 0.0;
5532 part { name: "padding_before_text";
5536 description { state: "default" 0.0; //when only icon or no icon is there
5540 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5544 to_y: "padding_left_top";
5549 to_y: "padding_right_bottom";
5553 part { name: "elm.swallow.content";
5557 description { state: "default" 0.0;
5563 to: "padding_left_top";
5567 to_x: "padding_left_top";
5568 to_y: "padding_right_bottom";
5571 description { state: "visible" 0.0;
5573 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5574 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5578 to_x: "padding_before_text";
5579 to_y: "padding_left_top";
5583 to_x: "padding_before_text";
5584 to_y: "padding_right_bottom";
5587 description { state: "icononly" 0.0;
5588 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5589 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5592 part { name: "elm.text";
5595 effect: FAR_SHADOW BOTTOM;
5598 description { state: "default" 0.0;
5602 to_x: "padding_after_icon";
5603 to_y: "padding_left_top";
5607 to: "padding_right_bottom";
5609 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
5610 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5612 font: "Tizen:style=Regular";
5613 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
5614 text_class: "tizen";
5617 description { state: "visible" 0.0;
5618 inherit: "default" 0.0;
5621 description { state: "clicked" 0.0;
5622 inherit: "default" 0.0;
5624 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5626 description { state: "disabled" 0.0;
5627 inherit: "default" 0.0;
5629 description { state: "disabled_visible" 0.0;
5630 inherit: "default" 0.0;
5631 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
5632 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5635 description { state: "focused" 0.0;
5636 inherit: "default" 0.0;
5638 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5641 part { name: "over2";
5644 ignore_flags: ON_HOLD;
5645 description { state: "default" 0.0;
5649 part { name: "over3";
5652 description { state: "default" 0.0;
5656 part { name: "clipper";
5658 description { state: "default" 0.0;
5659 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5661 description { state: "disabled" 0.0;
5662 inherit: "default" 0.0;
5663 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5666 part { name: "disabler";
5668 description { state: "default" 0.0;
5672 description { state: "disabled" 0.0;
5673 inherit: "default" 0.0;
5679 program { name: "button_click";
5680 signal: "mouse,down,1";
5682 action: SIGNAL_EMIT "elm,action,press" "";
5683 after: "button_click_anim";
5685 program { name: "button_click_anim";
5686 action: STATE_SET "clicked" 0.0;
5687 target: "button_image";
5688 after: "text_clicked";
5690 program { name: "text_clicked";
5694 get_state(PART:"elm.text", st, 30, vl);
5695 if (!strcmp(st, "visible"))
5696 set_state(PART:"elm.text", "clicked", 0.0);
5699 program { name: "button_double_click";
5700 signal: "mouse,down,1,double";
5702 after: "button_click_anim";
5704 program { name: "button_unpress";
5705 action: SIGNAL_EMIT "elm,action,unpress" "";
5707 program { name: "button_mouseout_clicked";
5708 signal: "mouse,up,1";
5713 get_state(PART:"elm.swallow.content", st, 30, vl);
5714 if (strcmp(st, "icononly"))
5716 emit("elm,action,default,text,set", "");
5717 set_state(PART:"elm.text", "visible", 0.0);
5719 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5720 set_state(PART:"button_image", "default", 0.0);
5722 after: button_unpress;
5724 program { name: "touch_snd";
5725 signal: "mouse,clicked,1";
5727 action: PLAY_SAMPLE "touch_sound" 1.0;
5728 after: button_unclick3;
5730 program { name: "button_unclick3";
5731 action: SIGNAL_EMIT "elm,action,click" "";
5733 program { name: "text_show";
5734 signal: "elm,state,text,visible";
5739 get_state(PART:"elm.swallow.content", st, 30, vl);
5740 if (!strcmp(st, "icononly"))
5742 set_state(PART:"elm.swallow.content", "visible", 0.0);
5743 set_state(PART:"icon_rect", "visible", 0.0);
5744 set_state(PART:"padding_after_icon", "visible", 0.0);
5745 set_state(PART:"bg", "visible", 0.0);
5747 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5748 set_state(PART:"elm.text", "visible", 0.0);
5750 set_state(PART:"elm.text", "disabled_visible", 0.0);
5753 program { name: "text_hide";
5754 signal: "elm,state,text,hidden";
5759 get_state(PART:"elm.swallow.content", st, 30, vl);
5760 if (!strcmp(st, "visible"))
5762 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5763 set_state(PART:"icon_rect", "icononly", 0.0);
5764 set_state(PART:"padding_after_icon", "icononly", 0.0);
5765 set_state(PART:"bg", "icononly", 0.0);
5767 set_state(PART:"elm.text", "default", 0.0);
5770 program { name: "icon_show";
5771 signal: "elm,state,icon,visible";
5776 get_state(PART:"elm.text", st, 30, vl);
5777 if (!strcmp(st, "visible"))
5779 set_state(PART:"elm.swallow.content", "visible", 0.0);
5780 set_state(PART:"icon_rect", "visible", 0.0);
5781 set_state(PART:"padding_after_icon", "visible", 0.0);
5782 set_state(PART:"bg", "visible", 0.0);
5786 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5787 set_state(PART:"icon_rect", "icononly", 0.0);
5788 set_state(PART:"padding_after_icon", "icononly", 0.0);
5789 set_state(PART:"bg", "icononly", 0.0);
5793 program { name: "icon_hide";
5794 signal: "elm,state,icon,hidden";
5796 action: STATE_SET "default" 0.0;
5797 target: "elm.swallow.content";
5798 target: "padding_after_icon";
5799 target: "icon_rect";
5802 program { name: "disable";
5803 signal: "elm,state,disabled";
5805 action: STATE_SET "disabled" 0.0;
5806 target: "button_image";
5809 after: "disable_text";
5811 program { name: "disable_text";
5815 get_state(PART:"elm.text", st, 30, vl);
5816 if (!strcmp(st, "visible"))
5817 set_state(PART:"elm.text", "disabled_visible", 0.0);
5819 set_state(PART:"elm.text", "disabled", 0.0);
5820 set_int(button_state, BUTTON_STATE_DISABLED);
5823 program { name: "enable";
5824 signal: "elm,state,enabled";
5826 action: STATE_SET "default" 0.0;
5827 target: "button_image";
5830 after: "enable_text";
5832 program { name: "enable_text";
5836 get_state(PART:"elm.text", st, 30, vl);
5837 if (!strcmp(st, "disabled_visible"))
5838 set_state(PART:"elm.text", "visible", 0.0);
5840 set_state(PART:"elm.text", "default", 0.0);
5841 set_int(button_state, BUTTON_STATE_ENABLED);
5844 program { name: "focused";
5845 //signal: "elm,action,focus";
5847 action: STATE_SET "focused" 0.0;
5848 target: "button_image";
5851 program { name: "unfocused";
5852 //signal: "elm,action,unfocus";
5854 action: STATE_SET "default" 0.0;
5855 target: "button_image";
5856 after: "unfocus_text";
5858 program { name: "unfocus_text";
5859 action: STATE_SET "visible" 0.0;
5865 ///////////////////////////////////////////////////////////////////////////////////////
5866 group { name: "elm/button/base/expandable_number";
5867 alias: "elm/button/base/text_only/expandable_number";
5869 item: "focus_highlight" "on";
5872 image: "00_button_01.png" COMP;
5873 image: "00_button_01_press.png" COMP;
5874 image: "00_button_01_dim.png" COMP;
5875 image: "00_arrow_expand.png" COMP;
5876 image: "00_button_01_focus.png" COMP;
5879 style { name: "btn_base_exapandable_number";
5880 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5885 style { name: "btn_base_exapandable_number_pressed";
5886 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5891 style { name: "btn_base_exapandable_number_dim";
5892 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_DISABLE_VISIBLE_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5897 style { name: "btn_base_exapandable_number_focus";
5898 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5905 public button_state = BUTTON_STATE_ENABLED;
5908 part { name: "button_image";
5910 description { state: "default" 0.0;
5911 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5912 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5914 normal: "00_button_01.png";
5915 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
5919 description { state: "clicked" 0.0;
5920 inherit: "default" 0.0;
5921 image.normal: "00_button_01_press.png";
5923 description { state: "disabled" 0.0;
5924 inherit: "default" 0.0;
5925 image.normal: "00_button_01_dim.png";
5927 description { state: "focused" 0.0;
5928 inherit: "default" 0.0;
5929 image.normal: "00_button_01_press.png";
5932 part { name: "focus_image";
5936 description { state: "default" 0.0;
5937 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5938 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5940 rel1.to : "button_image";
5941 rel2.to : "button_image";
5943 normal: "00_button_01_focus.png";
5944 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
5948 description { state: "focused" 0.0;
5949 inherit: "default" 0.0;
5953 part { name: "padding_left_top";
5957 description { state: "default" 0.0;
5960 rel2.relative: 0.0 0.0;
5961 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
5965 part { name: "padding_right_bottom";
5969 description { state: "default" 0.0;
5972 rel1.relative: 1.0 1.0;
5973 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
5977 part { name: "icon_rect";
5981 description { state: "default" 0.0;
5983 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5984 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5988 to_x: "padding_right_bottom";
5989 to_y: "padding_left_top";
5993 to: "padding_right_bottom";
5998 part { name: "arrow_expand";
6000 clip_to: "icon_clipper";
6002 description { state: "default" 0.0;
6004 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6005 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6007 rel1.to: "icon_rect";
6008 rel2.to: "icon_rect";
6009 image.normal:"00_arrow_expand.png";
6012 part { name: "elm.text";
6016 description { state: "default" 0.0;
6017 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6018 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6022 to: "padding_left_top";
6026 to_x:"padding_left_top";
6027 to_y:"padding_right_bottom";
6031 style: "btn_base_exapandable_number";
6037 description { state: "visible" 0.0;
6038 inherit: "default" 0.0;
6040 description { state: "clicked" 0.0;
6041 inherit: "default" 0.0;
6043 style: "btn_base_exapandable_number_pressed";
6049 description { state: "disabled" 0.0;
6050 inherit: "default" 0.0;
6052 description { state: "disabled_visible" 0.0;
6053 inherit: "default" 0.0;
6055 style: "btn_base_exapandable_number_dim";
6058 description { state: "focused" 0.0;
6059 inherit: "default" 0.0;
6061 style: "btn_base_exapandable_number_focus";
6065 part { name: "icon_clipper";
6068 description { state: "default" 0.0;
6069 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6071 description { state: "clicked" 0.0;
6072 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6074 description { state: "disabled" 0.0;
6075 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6078 part { name: "over2";
6081 ignore_flags: ON_HOLD;
6082 description { state: "default" 0.0;
6086 part { name: "over3";
6089 description { state: "default" 0.0;
6093 part { name: "disabler";
6095 description { state: "default" 0.0;
6099 description { state: "disabled" 0.0;
6100 inherit: "default" 0.0;
6106 program { name: "button_click";
6107 signal: "mouse,down,1";
6109 action: SIGNAL_EMIT "elm,action,press" "";
6110 after: "button_click_anim";
6112 program { name: "button_click_anim";
6113 action: STATE_SET "clicked" 0.0;
6114 target: "button_image";
6115 target: "icon_clipper";
6116 after: "text_clicked";
6118 program { name: "text_clicked";
6122 get_state(PART:"elm.text", st, 30, vl);
6123 if (!strcmp(st, "visible"))
6124 set_state(PART:"elm.text", "clicked", 0.0);
6127 program { name: "button_double_click";
6128 signal: "mouse,down,1,double";
6130 after: "button_click_anim";
6132 program { name: "button_unpress";
6133 action: SIGNAL_EMIT "elm,action,unpress" "";
6135 program { name: "button_mouseout_clicked";
6136 signal: "mouse,up,1";
6139 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6141 set_state(PART:"button_image", "default", 0.0);
6142 set_state(PART:"elm.text", "visible", 0.0);
6143 set_state(PART:"icon_clipper", "default", 0.0);
6146 after: button_unpress;
6148 program { name: "touch_snd";
6149 signal: "mouse,clicked,1";
6151 action: PLAY_SAMPLE "touch_sound" 1.0;
6152 after: button_unclick3;
6154 program { name: "button_unclick3";
6155 action: SIGNAL_EMIT "elm,action,click" "";
6157 program { name: "text_show";
6158 signal: "elm,state,text,visible";
6161 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6162 set_state(PART:"elm.text", "visible", 0.0);
6164 set_state(PART:"elm.text", "disabled_visible", 0.0);
6167 program { name: "text_hide";
6168 signal: "elm,state,text,hidden";
6171 set_state(PART:"elm.text", "default", 0.0);
6174 program { name: "disable";
6175 signal: "elm,state,disabled";
6177 action: STATE_SET "disabled" 0.0;
6178 target: "button_image";
6180 target: "icon_clipper";
6181 after: "disable_text";
6183 program { name: "disable_text";
6187 get_state(PART:"elm.text", st, 30, vl);
6188 if (!strcmp(st, "visible"))
6189 set_state(PART:"elm.text", "disabled_visible", 0.0);
6191 set_state(PART:"elm.text", "disabled", 0.0);
6192 set_int(button_state, BUTTON_STATE_DISABLED);
6195 program { name: "enable";
6196 signal: "elm,state,enabled";
6198 action: STATE_SET "default" 0.0;
6199 target: "button_image";
6201 target: "icon_clipper";
6202 after: "enable_text";
6204 program { name: "enable_text";
6208 get_state(PART:"elm.text", st, 30, vl);
6209 if (!strcmp(st, "disabled_visible"))
6210 set_state(PART:"elm.text", "visible", 0.0);
6212 set_state(PART:"elm.text", "default", 0.0);
6213 set_int(button_state, BUTTON_STATE_ENABLED);
6216 program { name: "action_focus";
6217 signal: "elm,action,focus_highlight,show";
6219 action: STATE_SET "focused" 0.0;
6220 target: "focus_image";
6222 program { name: "action_unfocus";
6223 signal: "elm,action,focus_highlight,hide";
6225 action: STATE_SET "default" 0.0;
6226 target: "focus_image";
6231 ////////////////////////////////////////////////////////////////////////
6232 group { name: "elm/button/base/bubble_sent";
6233 inherit: "elm/button/base/style1";
6235 image: "00_messagebubble_button_sent.png" COMP;
6236 image: "00_messagebubble_button_sent_press.png" COMP;
6237 image: "00_messagebubble_button_sent_dim.png" COMP;
6240 part { name: "button_image";
6242 description { state: "default" 0.0;
6244 normal: "00_messagebubble_button_sent.png";
6245 border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
6249 description { state: "clicked" 0.0;
6250 inherit: "default" 0.0;
6251 image.normal: "00_messagebubble_button_sent_press.png";
6253 description { state: "disabled" 0.0;
6254 inherit: "default" 0.0;
6255 image.normal: "00_messagebubble_button_sent_dim.png";
6257 description { state: "focused" 0.0;
6258 inherit: "default" 0.0;
6259 image.normal: "00_messagebubble_button_sent_press.png";
6262 part { name: "elm.text";
6265 effect: FAR_SHADOW BOTTOM;
6268 description { state: "default" 0.0;
6272 to_x: "padding_after_icon";
6273 to_y: "padding_left_top";
6277 to: "padding_right_bottom";
6279 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6280 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6282 font: "Tizen:style=Regular";
6283 size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
6286 text_class: "tizen";
6289 description { state: "visible" 0.0;
6290 inherit: "default" 0.0;
6293 description { state: "clicked" 0.0;
6294 inherit: "default" 0.0;
6296 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6298 description { state: "disabled" 0.0;
6299 inherit: "default" 0.0;
6301 description { state: "disabled_visible" 0.0;
6302 inherit: "default" 0.0;
6303 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6306 description { state: "focused" 0.0;
6307 inherit: "default" 0.0;
6309 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6315 ////////////////////////////////////////////////////////////////////////
6316 group { name: "elm/button/base/bubble_sent/multiline";
6317 inherit: "elm/button/base/bubble_sent";
6319 style { name: "bubble_sent_multiline";
6320 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";
6327 part { name: "elm.text";
6330 effect: FAR_SHADOW BOTTOM;
6333 description { state: "default" 0.0;
6338 to_x: "padding_after_icon";
6339 to_y: "padding_left_top";
6343 to: "padding_right_bottom";
6345 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6346 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6348 style: "bubble_sent_multiline";
6351 description { state: "visible" 0.0;
6352 inherit: "default" 0.0;
6355 description { state: "clicked" 0.0;
6356 inherit: "default" 0.0;
6358 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6360 description { state: "disabled" 0.0;
6361 inherit: "default" 0.0;
6363 description { state: "disabled_visible" 0.0;
6364 inherit: "default" 0.0;
6365 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6368 description { state: "focused" 0.0;
6369 inherit: "default" 0.0;
6371 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6377 ///////////////////////////////////////////////////////////////////////
6378 group { name: "elm/button/base/bubble_receive";
6379 inherit: "elm/button/base/style1";
6381 image: "00_messagebubble_button_receive.png" COMP;
6382 image: "00_messagebubble_button_receive_press.png" COMP;
6383 image: "00_messagebubble_button_receive_dim.png" COMP;
6386 part { name: "button_image";
6388 description { state: "default" 0.0;
6390 normal: "00_messagebubble_button_receive.png";
6391 border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
6395 description { state: "clicked" 0.0;
6396 inherit: "default" 0.0;
6397 image.normal: "00_messagebubble_button_receive_press.png";
6399 description { state: "disabled" 0.0;
6400 inherit: "default" 0.0;
6401 image.normal: "00_messagebubble_button_receive_dim.png";
6403 description { state: "focused" 0.0;
6404 inherit: "default" 0.0;
6405 image.normal: "00_messagebubble_button_receive_press.png";
6408 part { name: "elm.text";
6411 effect: SHADOW BOTTOM;
6414 description { state: "default" 0.0;
6418 to_x: "padding_after_icon";
6419 to_y: "padding_left_top";
6423 to: "padding_right_bottom";
6425 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6426 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6428 font: "Tizen:style=Regular";
6429 size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
6432 text_class: "tizen";
6435 description { state: "visible" 0.0;
6436 inherit: "default" 0.0;
6439 description { state: "clicked" 0.0;
6440 inherit: "default" 0.0;
6442 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6444 description { state: "disabled" 0.0;
6445 inherit: "default" 0.0;
6447 description { state: "disabled_visible" 0.0;
6448 inherit: "default" 0.0;
6449 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6452 description { state: "focused" 0.0;
6453 inherit: "default" 0.0;
6455 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6461 ///////////////////////////////////////////////////////////////////////
6462 group { name: "elm/button/base/bubble_receive/multiline";
6463 inherit: "elm/button/base/bubble_receive";
6465 style { name: "bubble_receive_multiline";
6466 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";
6473 part { name: "elm.text";
6476 effect: SHADOW BOTTOM;
6479 description { state: "default" 0.0;
6484 to_x: "padding_after_icon";
6485 to_y: "padding_left_top";
6489 to: "padding_right_bottom";
6491 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6492 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6494 style: "btn_style1_multiline";
6497 description { state: "visible" 0.0;
6498 inherit: "default" 0.0;
6501 description { state: "clicked" 0.0;
6502 inherit: "default" 0.0;
6504 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6506 description { state: "disabled" 0.0;
6507 inherit: "default" 0.0;
6509 description { state: "disabled_visible" 0.0;
6510 inherit: "default" 0.0;
6511 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6514 description { state: "focused" 0.0;
6515 inherit: "default" 0.0;
6517 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6523 ///////////////////////////////////////////////////////////////////////
6524 group { name: "elm/button/base/bubble_circle/receive";
6526 image: "00_messagebubble_circle_receive.png" COMP;
6527 image: "00_messagebubble_circle_receive_press.png" COMP;
6528 image: "00_messagebubble_circle_receive_dim.png" COMP;
6529 image: "00_button_right.png" COMP;
6530 image: "00_button_right_press.png" COMP;
6533 part { name: "button_image";
6535 description { state: "default" 0.0;
6536 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6537 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6538 image.normal: "00_messagebubble_circle_receive.png";
6541 state: "clicked" 0.0;
6542 inherit: "default" 0.0;
6543 image.normal: "00_messagebubble_circle_receive_press.png";
6546 state: "disabled" 0.0;
6547 inherit: "default" 0.0;
6548 image.normal: "00_messagebubble_circle_receive_dim.png";
6551 part { name: "image";
6553 clip_to: "icon_clipper";
6554 description { state: "default" 0.0;
6555 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6556 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6557 image.normal: "00_button_right.png";
6560 state: "clicked" 0.0;
6561 inherit: "default" 0.0;
6562 image.normal: "00_button_right_press.png";
6565 state: "disabled" 0.0;
6566 inherit: "default" 0.0;
6569 part { name: "icon_clipper";
6572 description { state: "default" 0.0;
6573 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
6575 description { state: "clicked" 0.0;
6576 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
6578 description { state: "disabled" 0.0;
6579 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
6582 part { name: "over1";
6584 ignore_flags: ON_HOLD;
6585 description { state: "default" 0.0;
6589 part { name: "over2";
6592 description { state: "default" 0.0;
6596 part { name: "disabler";
6598 description { state: "default" 0.0;
6602 description { state: "disabled" 0.0;
6603 inherit: "default" 0.0;
6609 program { name: "button_click";
6610 signal: "mouse,down,1";
6612 action: SIGNAL_EMIT "elm,action,press" "";
6613 after: "button_click_anim";
6615 program { name: "button_click_anim";
6616 action: STATE_SET "clicked" 0.0;
6617 target: "button_image";
6619 target: "icon_clipper";
6621 program { name: "button_double_click";
6622 signal: "mouse,down,1,double";
6624 after: "button_click_anim";
6626 program { name: "button_unclick";
6627 signal: "mouse,up,1";
6629 action: SIGNAL_EMIT "elm,action,unpress" "";
6630 after: "button_unclick_anim";
6632 program { name: "button_unclick_anim";
6633 action: STATE_SET "default" 0.0;
6634 target: "button_image";
6636 target: "icon_clipper";
6638 program { name: "touch_snd";
6639 signal: "mouse,clicked,1";
6641 action: PLAY_SAMPLE "touch_sound" 1.0;
6642 after: button_unclick3;
6644 program { name: "button_unclick3";
6645 action: SIGNAL_EMIT "elm,action,click" "";
6647 program { name: "disable";
6648 signal: "elm,state,disabled";
6650 action: STATE_SET "disabled" 0.0;
6652 target: "button_image";
6653 target: "icon_clipper";
6656 program { name: "enable";
6657 signal: "elm,state,enabled";
6659 action: STATE_SET "default" 0.0;
6661 target: "button_image";
6662 target: "icon_clipper";
6667 ///////////////////////////////////////////////////////////////////////
6668 group { name: "elm/button/base/bubble_circle/sent";
6670 image: "00_messagebubble_circle_sent.png" COMP;
6671 image: "00_messagebubble_circle_sent_press.png" COMP;
6672 image: "00_messagebubble_circle_sent_dim.png" COMP;
6673 image: "00_button_right.png" COMP;
6674 image: "00_button_right_press.png" COMP;
6677 part { name: "button_image";
6679 description { state: "default" 0.0;
6680 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6681 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6682 image.normal: "00_messagebubble_circle_sent.png";
6685 state: "clicked" 0.0;
6686 inherit: "default" 0.0;
6687 image.normal: "00_messagebubble_circle_sent_press.png";
6690 state: "disabled" 0.0;
6691 inherit: "default" 0.0;
6692 image.normal: "00_messagebubble_circle_sent_dim.png";
6695 part { name: "image";
6697 clip_to: "icon_clipper";
6698 description { state: "default" 0.0;
6699 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6700 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6701 image.normal: "00_button_right.png";
6704 state: "clicked" 0.0;
6705 inherit: "default" 0.0;
6706 image.normal: "00_button_right_press.png";
6709 state: "disabled" 0.0;
6710 inherit: "default" 0.0;
6713 part { name: "icon_clipper";
6716 description { state: "default" 0.0;
6717 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
6719 description { state: "clicked" 0.0;
6720 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
6722 description { state: "disabled" 0.0;
6723 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
6726 part { name: "over1";
6728 ignore_flags: ON_HOLD;
6729 description { state: "default" 0.0;
6733 part { name: "over2";
6736 description { state: "default" 0.0;
6740 part { name: "disabler";
6742 description { state: "default" 0.0;
6746 description { state: "disabled" 0.0;
6747 inherit: "default" 0.0;
6753 program { name: "button_click";
6754 signal: "mouse,down,1";
6756 action: SIGNAL_EMIT "elm,action,press" "";
6757 after: "button_click_anim";
6759 program { name: "button_click_anim";
6760 action: STATE_SET "clicked" 0.0;
6761 target: "button_image";
6763 target: "icon_clipper";
6765 program { name: "button_double_click";
6766 signal: "mouse,down,1,double";
6768 after: "button_click_anim";
6770 program { name: "button_unclick";
6771 signal: "mouse,up,1";
6773 action: SIGNAL_EMIT "elm,action,unpress" "";
6774 after: "button_unclick_anim";
6776 program { name: "button_unclick_anim";
6777 action: STATE_SET "default" 0.0;
6778 target: "button_image";
6780 target: "icon_clipper";
6782 program { name: "touch_snd";
6783 signal: "mouse,clicked,1";
6785 action: PLAY_SAMPLE "touch_sound" 1.0;
6786 after: button_unclick3;
6788 program { name: "button_unclick3";
6789 action: SIGNAL_EMIT "elm,action,click" "";
6791 program { name: "disable";
6792 signal: "elm,state,disabled";
6794 action: STATE_SET "disabled" 0.0;
6796 target: "button_image";
6797 target: "icon_clipper";
6799 program { name: "enable";
6800 signal: "elm,state,enabled";
6802 action: STATE_SET "default" 0.0;
6804 target: "button_image";
6805 target: "icon_clipper";
6810 //////////////////////////////////////////////////////////////////////////////////////
6811 group { name: "elm/button/base/editfield_clear";
6813 image: "00_edit_field_clear.png" COMP;
6816 part { name: "button_image";
6819 description { state: "default" 0.0;
6822 description { state: "clicked" 0.0;
6823 inherit: "default" 0.0;
6825 description { state: "disabled" 0.0;
6826 inherit: "default" 0.0;
6828 description { state: "focused" 0.0;
6829 inherit: "default" 0.0;
6832 part { name: "clear_button";
6835 clip_to: "clear_button.clipper";
6836 description { state: "default" 0.0;
6837 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
6838 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
6841 image.normal: "00_edit_field_clear.png";
6844 part { name: "clear_button.clipper";
6846 description { state: "default" 0.0;
6847 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
6849 description { state: "clicked" 0.0;
6850 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
6852 description { state: "disabled" 0.0;
6853 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
6856 part { name: "over2";
6858 ignore_flags: ON_HOLD;
6859 description { state: "default" 0.0;
6863 part { name: "over3";
6866 description { state: "default" 0.0;
6870 part { name: "disabler";
6872 description { state: "default" 0.0;
6876 description { state: "disabled" 0.0;
6877 inherit: "default" 0.0;
6883 program { name: "button_click";
6884 signal: "mouse,down,1";
6886 action: SIGNAL_EMIT "elm,action,press" "";
6887 after: "button_click_anim";
6889 program { name: "button_click_anim";
6890 action: STATE_SET "clicked" 0.0;
6891 target: "button_image";
6892 target: "clear_button.clipper";
6894 program { name: "button_double_click";
6895 signal: "mouse,down,1,double";
6897 after: "button_click_anim";
6899 program { name: "button_unclick";
6900 signal: "mouse,up,1";
6902 action: SIGNAL_EMIT "elm,action,unpress" "";
6903 after: "button_unclick_anim";
6905 program { name: "button_unclick_anim";
6906 action: STATE_SET "default" 0.0;
6907 target: "button_image";
6908 target: "clear_button.clipper";
6910 program { name: "touch_snd";
6911 signal: "mouse,clicked,1";
6913 action: PLAY_SAMPLE "touch_sound" 1.0;
6914 after: button_unclick3;
6916 program { name: "button_unclick3";
6917 action: SIGNAL_EMIT "elm,action,click" "";
6919 program { name: "disable";
6920 signal: "elm,state,disabled";
6922 action: STATE_SET "disabled" 0.0;
6923 target: "button_image";
6925 target: "clear_button.clipper";
6927 program { name: "enable";
6928 signal: "elm,state,enabled";
6930 action: STATE_SET "default" 0.0;
6931 target: "button_image";
6933 target: "clear_button.clipper";
6938 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
6939 group { name: "elm/button/base/"style_name; \
6941 item: "focus_highlight" "on"; \
6944 image: image_normal COMP; \
6947 part { name: "elm.swallow.content"; \
6950 description { state: "default" 0.0; \
6953 part { name: "focus_image"; \
6957 description { state: "default" 0.0; \
6960 normal: image_normal; \
6965 description { state: "focused" 0.0; \
6966 inherit: "default" 0.0; \
6970 part { name: "over2"; \
6973 ignore_flags: ON_HOLD; \
6974 description { state: "default" 0.0; \
6978 part { name: "over3"; \
6981 description { state: "default" 0.0; \
6987 program { name: "button_click"; \
6988 signal: "mouse,down,1"; \
6990 action: SIGNAL_EMIT "elm,action,press" ""; \
6992 program { name: "button_unclick"; \
6993 signal: "mouse,up,1"; \
6995 action: SIGNAL_EMIT "elm,action,unpress" ""; \
6997 program { name: "button_click3"; \
6998 signal: "mouse,clicked,1"; \
7000 action: SIGNAL_EMIT "elm,action,click" ""; \
7002 program { name: "action_focus"; \
7003 signal: "elm,action,focus_highlight,show"; \
7005 action: STATE_SET "focused" 0.0; \
7006 target: "focus_image"; \
7008 program { name: "action_unfocus"; \
7009 signal: "elm,action,focus_highlight,hide"; \
7011 action: STATE_SET "default" 0.0; \
7012 target: "focus_image"; \
7017 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
7018 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
7019 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
7020 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
7022 group { name: "elm/button/base/search_clear";
7023 inherit: "elm/button/base/editfield_clear";
7025 image: "00_field_btn_clear.png" COMP;
7028 part { name: "clear_button";
7031 clip_to: "clear_button.clipper";
7032 description { state: "default" 0.0;
7033 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7034 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7037 image.normal: "00_field_btn_clear.png";
7040 part { name: "clear_button.clipper";
7042 description { state: "default" 0.0;
7043 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7045 description { state: "clicked" 0.0;
7046 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7048 description { state: "disabled" 0.0;
7049 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7055 #undef BUTTON_STATE_ENABLED
7056 #undef BUTTON_STATE_DISABLED
7057 #undef BUTTON_LANDSCAPE_DISABLED
7058 #undef BUTTON_LANDSCAPE_ENABLED