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
27 name: "touch_sound" AS_IS;
28 source: "S_Touch_30ms.wav";
32 ///////////////////////////////////////////////////////////////////////////////////////
33 group { name: "elm/button/base/style1";
34 alias: "elm/button/base/text_only/style1";
35 alias: "elm/button/base/center";
36 alias: "elm/button/base/icon_and_text/center";
37 alias: "elm/button/base/nocontents/search_button";
38 alias: "elm/button/base/style1/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 public button_state = BUTTON_STATE_ENABLED;
52 part { name: "button_image";
54 description { state: "default" 0.0;
56 normal: "00_button_01.png";
57 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
61 description { state: "clicked" 0.0;
62 inherit: "default" 0.0;
63 image.normal: "00_button_01_press.png";
65 description { state: "disabled" 0.0;
66 inherit: "default" 0.0;
67 image.normal: "00_button_01_dim.png";
69 description { state: "focused" 0.0;
70 inherit: "default" 0.0;
71 image.normal: "00_button_01_press.png";
74 part { name: "focus_image";
78 description { state: "default" 0.0;
80 rel1.to : "button_image";
81 rel2.to : "button_image";
83 normal: "00_button_01_focus.png";
84 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
88 description { state: "focused" 0.0;
89 inherit: "default" 0.0;
93 part { name: "padding_left_top";
97 description { state: "default" 0.0;
99 rel2.relative: 0.0 0.0;
100 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
109 description { state: "default" 0.0;
110 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
113 description { state: "visible" 0.0;
114 inherit: "default" 0.0;
115 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
117 description { state: "icononly" 0.0;
118 inherit: "default" 0.0;
119 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
122 part { name: "padding_right_bottom";
126 description { state: "default" 0.0;
128 rel1.relative: 1.0 1.0;
129 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
134 part { name: "icon_rect";
138 description { state: "default" 0.0;
144 to: "padding_left_top";
148 to_x: "padding_left_top";
149 to_y: "padding_right_bottom";
153 description { state: "visible" 0.0;
154 inherit: "default" 0.0;
155 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
156 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
158 description { state: "icononly" 0.0;
159 inherit: "default" 0.0;
162 part { name: "padding_after_icon";
166 description { state: "default" 0.0; //when only icon or no icon is there
172 rel2.to: "icon_rect";
177 description { state: "visible" 0.0;
178 inherit: "default" 0.0;
179 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
181 description { state: "icononly" 0.0;
182 inherit: "default" 0.0;
185 part { name: "padding_before_text";
189 description { state: "default" 0.0; //when only icon or no icon is there
194 to_y: "padding_left_top";
199 to_y: "padding_right_bottom";
202 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
206 part { name: "elm.swallow.content";
210 description { state: "default" 0.0;
215 to: "padding_left_top";
219 to_x: "padding_left_top";
220 to_y: "padding_right_bottom";
224 description { state: "visible" 0.0;
226 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
227 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
231 to_x: "padding_before_text";
232 to_y: "padding_left_top";
236 to_x: "padding_before_text";
237 to_y: "padding_right_bottom";
240 description { state: "icononly" 0.0;
241 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
242 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
245 part { name: "elm.text";
248 effect: SHADOW BOTTOM;
251 description { state: "default" 0.0;
255 to_x: "padding_after_icon";
256 to_y: "padding_left_top";
260 to: "padding_right_bottom";
262 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
263 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
265 font: "Tizen:style=Regular";
266 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
272 description { state: "visible" 0.0;
273 inherit: "default" 0.0;
276 description { state: "clicked" 0.0;
277 inherit: "default" 0.0;
279 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
280 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
282 description { state: "disabled" 0.0;
283 inherit: "default" 0.0;
285 description { state: "disabled_visible" 0.0;
286 inherit: "default" 0.0;
287 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
288 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
291 description { state: "focused" 0.0;
292 inherit: "default" 0.0;
294 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
297 part { name: "over2";
300 ignore_flags: ON_HOLD;
301 description { state: "default" 0.0;
305 part { name: "over3";
308 description { state: "default" 0.0;
312 part { name: "clipper";
314 description { state: "default" 0.0;
315 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
317 description { state: "disabled" 0.0;
318 inherit: "default" 0.0;
319 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
322 part { name: "disabler";
324 description { state: "default" 0.0;
328 description { state: "disabled" 0.0;
329 inherit: "default" 0.0;
335 program { name: "button_click";
336 signal: "mouse,down,1";
338 action: SIGNAL_EMIT "elm,action,press" "";
339 after: "button_click_anim";
341 program { name: "button_click_anim";
342 action: STATE_SET "clicked" 0.0;
343 target: "button_image";
344 after: "text_clicked";
346 program { name: "text_clicked";
350 get_state(PART:"elm.text", st, 30, vl);
351 if (!strcmp(st, "visible"))
352 set_state(PART:"elm.text", "clicked", 0.0);
355 program { name: "button_double_click";
356 signal: "mouse,down,1,double";
358 after: "button_click_anim";
360 program { name: "button_unpress";
361 action: SIGNAL_EMIT "elm,action,unpress" "";
363 program { name: "button_mouseout_clicked";
364 signal: "mouse,up,1";
369 get_state(PART:"elm.swallow.content", st, 30, vl);
370 if (strcmp(st, "icononly"))
372 emit("elm,action,default,text,set", "");
373 set_state(PART:"elm.text", "visible", 0.0);
375 if (get_int(button_state) != BUTTON_STATE_DISABLED)
376 set_state(PART:"button_image", "default", 0.0);
378 after: button_unpress;
380 program { name: "touch_snd";
381 signal: "mouse,clicked,1";
383 action: PLAY_SAMPLE "touch_sound" 1.0;
384 after: button_unclick3;
386 program { name: "button_unclick3";
387 action: SIGNAL_EMIT "elm,action,click" "";
389 program { name: "text_show";
390 signal: "elm,state,text,visible";
395 get_state(PART:"elm.swallow.content", st, 30, vl);
396 if (!strcmp(st, "icononly"))
398 set_state(PART:"elm.swallow.content", "visible", 0.0);
399 set_state(PART:"icon_rect", "visible", 0.0);
400 set_state(PART:"padding_after_icon", "visible", 0.0);
401 set_state(PART:"bg", "visible", 0.0);
403 if (get_int(button_state) != BUTTON_STATE_DISABLED)
404 set_state(PART:"elm.text", "visible", 0.0);
406 set_state(PART:"elm.text", "disabled_visible", 0.0);
409 program { name: "text_hide";
410 signal: "elm,state,text,hidden";
415 get_state(PART:"elm.swallow.content", st, 30, vl);
416 if (!strcmp(st, "visible"))
418 set_state(PART:"elm.swallow.content", "icononly", 0.0);
419 set_state(PART:"icon_rect", "icononly", 0.0);
420 set_state(PART:"padding_after_icon", "icononly", 0.0);
421 set_state(PART:"bg", "icononly", 0.0);
423 set_state(PART:"elm.text", "default", 0.0);
426 program { name: "icon_show";
427 signal: "elm,state,icon,visible";
432 get_state(PART:"elm.text", st, 30, vl);
433 if (!strcmp(st, "visible"))
435 set_state(PART:"elm.swallow.content", "visible", 0.0);
436 set_state(PART:"icon_rect", "visible", 0.0);
437 set_state(PART:"padding_after_icon", "visible", 0.0);
438 set_state(PART:"bg", "visible", 0.0);
442 set_state(PART:"elm.swallow.content", "icononly", 0.0);
443 set_state(PART:"icon_rect", "icononly", 0.0);
444 set_state(PART:"padding_after_icon", "icononly", 0.0);
445 set_state(PART:"bg", "icononly", 0.0);
449 program { name: "icon_hide";
450 signal: "elm,state,icon,hidden";
452 action: STATE_SET "default" 0.0;
453 target: "elm.swallow.content";
454 target: "padding_after_icon";
458 program { name: "disable";
459 signal: "elm,state,disabled";
461 action: STATE_SET "disabled" 0.0;
462 target: "button_image";
465 after: "disable_text";
467 program { name: "disable_text";
471 get_state(PART:"elm.text", st, 30, vl);
472 if (!strcmp(st, "visible"))
473 set_state(PART:"elm.text", "disabled_visible", 0.0);
475 set_state(PART:"elm.text", "disabled", 0.0);
476 set_int(button_state, BUTTON_STATE_DISABLED);
479 program { name: "enable";
480 signal: "elm,state,enabled";
482 action: STATE_SET "default" 0.0;
483 target: "button_image";
486 after: "enable_text";
488 program { name: "enable_text";
492 get_state(PART:"elm.text", st, 30, vl);
493 if (!strcmp(st, "disabled_visible"))
494 set_state(PART:"elm.text", "visible", 0.0);
496 set_state(PART:"elm.text", "default", 0.0);
497 set_int(button_state, BUTTON_STATE_ENABLED);
500 program { name: "action_focus";
501 signal: "elm,action,focus_highlight,show";
503 action: STATE_SET "focused" 0.0;
504 target: "focus_image";
506 program { name: "action_unfocus";
507 signal: "elm,action,focus_highlight,hide";
509 action: STATE_SET "default" 0.0;
510 target: "focus_image";
515 //////////////////////////////////////////////////////////////
516 group { name: "elm/button/base/style1/auto_expand";
517 inherit: "elm/button/base/style1";
519 part { name: "elm.text";
522 effect: SHADOW BOTTOM;
525 description { state: "default" 0.0;
529 to_x: "padding_after_icon";
530 to_y: "padding_left_top";
534 to: "padding_right_bottom";
536 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
537 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
539 font: "Tizen:style=Regular";
540 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
546 description { state: "visible" 0.0;
547 inherit: "default" 0.0;
550 description { state: "clicked" 0.0;
551 inherit: "default" 0.0;
553 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
554 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
556 description { state: "disabled" 0.0;
557 inherit: "default" 0.0;
559 description { state: "disabled_visible" 0.0;
560 inherit: "default" 0.0;
561 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
562 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
565 description { state: "focused" 0.0;
566 inherit: "default" 0.0;
568 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
574 //////////////////////////////////////////////////////////////////////////////////////
575 group { name: "elm/button/base/datetime/ampm/default";
576 alias: "elm/button/base/datetime_ampm/default";
577 inherit: "elm/button/base/style1/auto_expand";
579 part { name: "button_image";
581 description { state: "default" 0.0;
583 normal: "00_button_01.png";
584 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
587 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
588 max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
590 description { state: "clicked" 0.0;
591 inherit: "default" 0.0;
592 image.normal: "00_button_01_press.png";
594 description { state: "disabled" 0.0;
595 inherit: "default" 0.0;
596 image.normal: "00_button_01_dim.png";
598 description { state: "focused" 0.0;
599 inherit: "default" 0.0;
600 image.normal: "00_button_01_press.png";
607 description { state: "default" 0.0;
611 description { state: "visible" 0.0;
612 inherit: "default" 0.0;
613 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
615 description { state: "icononly" 0.0;
616 inherit: "default" 0.0;
619 part { name: "elm.text";
622 effect: SHADOW BOTTOM;
625 description { state: "default" 0.0;
628 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
629 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
630 text.size: BUTTON_DATETIME_AMPM_TEXT_FONT_SIZE_INC;
633 description { state: "visible" 0.0;
634 inherit: "default" 0.0;
637 description { state: "clicked" 0.0;
638 inherit: "default" 0.0;
640 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
641 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
643 description { state: "disabled" 0.0;
644 inherit: "default" 0.0;
646 description { state: "disabled_visible" 0.0;
647 inherit: "default" 0.0;
648 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
649 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
652 description { state: "focused" 0.0;
653 inherit: "default" 0.0;
655 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
661 ///////////////////////////////////////////////////////////////////////////////////////
662 group { name: "elm/button/base/style1/delete";
663 inherit: "elm/button/base/style1";
665 image: "00_button_01_delete.png" COMP;
666 image: "00_button_01_delete_dim.png" COMP;
667 image: "00_button_01_delete_press.png" COMP;
670 part { name: "button_image";
672 description { state: "default" 0.0;
674 normal: "00_button_01_delete.png";
675 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
679 description { state: "clicked" 0.0;
680 inherit: "default" 0.0;
681 image.normal: "00_button_01_delete_press.png";
683 description { state: "disabled" 0.0;
684 inherit: "default" 0.0;
685 image.normal: "00_button_01_delete_dim.png";
687 description { state: "focused" 0.0;
688 inherit: "default" 0.0;
689 image.normal: "00_button_01_delete_press.png";
692 part { name: "elm.text";
695 effect: SHADOW BOTTOM;
698 description { state: "default" 0.0;
702 to_x: "padding_after_icon";
703 to_y: "padding_left_top";
707 to: "padding_right_bottom";
709 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
710 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
712 font: "Tizen:style=Regular";
713 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
719 description { state: "visible" 0.0;
720 inherit: "default" 0.0;
723 description { state: "clicked" 0.0;
724 inherit: "default" 0.0;
726 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
727 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
729 description { state: "disabled" 0.0;
730 inherit: "default" 0.0;
732 description { state: "disabled_visible" 0.0;
733 inherit: "default" 0.0;
734 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
735 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
738 description { state: "focused" 0.0;
739 inherit: "default" 0.0;
741 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
747 ///////////////////////////////////////////////////////////////////////////////////////
748 group { name: "elm/button/base/search_button/text";
749 alias: "elm/button/base/searchbar/default";
750 inherit: "elm/button/base/style1";
752 image: "00_button_01.png" COMP;
753 image: "00_button_01_dim.png" COMP;
754 image: "00_button_01_press.png" COMP;
757 part { name: "button_image";
759 description { state: "default" 0.0;
761 normal: "00_button_01.png";
762 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
766 description { state: "clicked" 0.0;
767 inherit: "default" 0.0;
768 image.normal: "00_button_01_press.png";
770 description { state: "disabled" 0.0;
771 inherit: "default" 0.0;
772 image.normal: "00_button_01_dim.png";
774 description { state: "focused" 0.0;
775 inherit: "default" 0.0;
776 image.normal: "00_button_01_press.png";
783 description { state: "default" 0.0;
784 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
787 description { state: "visible" 0.0;
788 inherit: "default" 0.0;
789 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
791 description { state: "icononly" 0.0;
792 inherit: "default" 0.0;
793 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
796 part { name: "elm.text";
799 effect: SHADOW BOTTOM;
802 description { state: "default" 0.0;
806 to_x: "padding_after_icon";
807 to_y: "padding_left_top";
811 to: "padding_right_bottom";
813 color: BUTTON_SEARCH_BUTTON_TEXT_NORMAL_COLOR_INC;
815 font: "Tizen:style=Regular";
816 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
822 description { state: "visible" 0.0;
823 inherit: "default" 0.0;
826 description { state: "clicked" 0.0;
827 inherit: "default" 0.0;
829 color: BUTTON_SEARCH_BUTTON_TEXT_PRESSED_COLOR_INC;
830 color2: BUTTON_SEARCH_BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
832 description { state: "disabled" 0.0;
833 inherit: "default" 0.0;
835 description { state: "disabled_visible" 0.0;
836 inherit: "default" 0.0;
837 color: BUTTON_SEARCH_BUTTON_TEXT_DISABLED_COLOR_INC;
840 description { state: "focused" 0.0;
841 inherit: "default" 0.0;
843 color: BUTTON_SEARCH_BUTTON_TEXT_FOCUSED_COLOR_INC;
849 ///////////////////////////////////////////////////////////////////////////////////////
850 group { name: "elm/button/base/search_button/send";
851 inherit: "elm/button/base/style1";
853 image: "00_button_01_send.png" COMP;
854 image: "00_button_01_send_dim.png" COMP;
855 image: "00_button_01_send_press.png" COMP;
858 part { name: "button_image";
860 description { state: "default" 0.0;
862 normal: "00_button_01_send.png";
863 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
867 description { state: "clicked" 0.0;
868 inherit: "default" 0.0;
869 image.normal: "00_button_01_send_press.png";
871 description { state: "disabled" 0.0;
872 inherit: "default" 0.0;
873 image.normal: "00_button_01_send_dim.png";
875 description { state: "focused" 0.0;
876 inherit: "default" 0.0;
877 image.normal: "00_button_01_send_press.png";
884 description { state: "default" 0.0;
885 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
888 description { state: "visible" 0.0;
889 inherit: "default" 0.0;
890 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
892 description { state: "icononly" 0.0;
893 inherit: "default" 0.0;
894 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
897 part { name: "elm.text";
900 effect: SHADOW BOTTOM;
903 description { state: "default" 0.0;
907 to_x: "padding_after_icon";
908 to_y: "padding_left_top";
912 to: "padding_right_bottom";
914 color: BUTTON_SEARCH_BUTTON_SEND_NORMAL_COLOR_INC;
915 color2: BUTTON_SEARCH_BUTTON_SEND_SHADOW_NORMAL_COLOR_INC;
917 font: "Tizen:style=Regular";
918 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
924 description { state: "visible" 0.0;
925 inherit: "default" 0.0;
928 description { state: "clicked" 0.0;
929 inherit: "default" 0.0;
931 color: BUTTON_SEARCH_BUTTON_SEND_PRESSED_COLOR_INC;
933 description { state: "disabled" 0.0;
934 inherit: "default" 0.0;
936 description { state: "disabled_visible" 0.0;
937 inherit: "default" 0.0;
938 color: BUTTON_SEARCH_BUTTON_SEND_DISABLED_COLOR_INC;
941 description { state: "focused" 0.0;
942 inherit: "default" 0.0;
944 color: BUTTON_SEARCH_BUTTON_SEND_FOCUSED_COLOR_INC;
950 ///////////////////////////////////////////////////////////////////////////////////////
951 group { name: "elm/button/base/search_button/cancel";
952 inherit: "elm/button/base/style1";
954 image: "00_button_01_delete.png" COMP;
955 image: "00_button_01_delete_dim.png" COMP;
956 image: "00_button_01_delete_press.png" COMP;
959 part { name: "button_image";
961 description { state: "default" 0.0;
963 normal: "00_button_01_delete.png";
964 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
968 description { state: "clicked" 0.0;
969 inherit: "default" 0.0;
970 image.normal: "00_button_01_delete_press.png";
972 description { state: "disabled" 0.0;
973 inherit: "default" 0.0;
974 image.normal: "00_button_01_delete_dim.png";
976 description { state: "focused" 0.0;
977 inherit: "default" 0.0;
978 image.normal: "00_button_01_delete_press.png";
985 description { state: "default" 0.0;
986 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
989 description { state: "visible" 0.0;
990 inherit: "default" 0.0;
991 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
993 description { state: "icononly" 0.0;
994 inherit: "default" 0.0;
995 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
998 part { name: "elm.text";
1001 effect: SHADOW BOTTOM;
1004 description { state: "default" 0.0;
1008 to_x: "padding_after_icon";
1009 to_y: "padding_left_top";
1013 to: "padding_right_bottom";
1015 color: BUTTON_SEARCH_BUTTON_CANCEL_NORMAL_COLOR_INC;
1016 color2: BUTTON_SEARCH_BUTTON_CANCEL_SHADOW_NORMAL_COLOR_INC;
1018 font: "Tizen:style=Regular";
1019 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
1022 text_class: "tizen";
1025 description { state: "visible" 0.0;
1026 inherit: "default" 0.0;
1029 description { state: "clicked" 0.0;
1030 inherit: "default" 0.0;
1032 color: BUTTON_SEARCH_BUTTON_CANCEL_PRESSED_COLOR_INC;
1034 description { state: "disabled" 0.0;
1035 inherit: "default" 0.0;
1037 description { state: "disabled_visible" 0.0;
1038 inherit: "default" 0.0;
1039 color: BUTTON_SEARCH_BUTTON_CANCEL_DISABLED_COLOR_INC;
1042 description { state: "focused" 0.0;
1043 inherit: "default" 0.0;
1045 color: BUTTON_SEARCH_BUTTON_CANCEL_FOCUSED_COLOR_INC;
1051 ///////////////////////////////////////////////////////////////////////////////////////
1052 group { name: "elm/button/base/style2";
1053 alias: "elm/button/base/text_only/style2";
1054 alias: "elm/button/base/style2/multiline";
1056 item: "focus_highlight" "on";
1059 image: "00_button_01.png" COMP;
1060 image: "00_button_01_press.png" COMP;
1061 image: "00_button_01_dim.png" COMP;
1062 image: "00_button_01_focus.png" COMP;
1065 public button_state = BUTTON_STATE_ENABLED;
1068 part { name: "button_image";
1070 description { state: "default" 0.0;
1072 normal: "00_button_01.png";
1073 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1077 description { state: "clicked" 0.0;
1078 inherit: "default" 0.0;
1079 image.normal: "00_button_01_press.png";
1081 description { state: "disabled" 0.0;
1082 inherit: "default" 0.0;
1083 image.normal: "00_button_01_dim.png";
1085 description { state: "focused" 0.0;
1086 inherit: "default" 0.0;
1087 image.normal: "00_button_01_press.png";
1090 part { name: "focus_image";
1094 description { state: "default" 0.0;
1096 rel1.to : "button_image";
1097 rel2.to : "button_image";
1099 normal: "00_button_01_focus.png";
1100 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1104 description { state: "focused" 0.0;
1105 inherit: "default" 0.0;
1109 part { name: "padding_left_top";
1113 description { state: "default" 0.0;
1115 rel2.relative: 0.0 0.0;
1116 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1125 description { state: "default" 0.0;
1126 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1129 description { state: "visible" 0.0;
1130 inherit: "default" 0.0;
1131 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1133 description { state: "icononly" 0.0;
1134 inherit: "default" 0.0;
1135 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1138 part { name: "padding_right_bottom";
1142 description { state: "default" 0.0;
1144 rel1.relative: 1.0 1.0;
1145 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1150 part { name: "icon_rect";
1154 description { state: "default" 0.0;
1160 to: "padding_left_top";
1164 to_x: "padding_left_top";
1165 to_y: "padding_right_bottom";
1169 description { state: "visible" 0.0;
1170 inherit: "default" 0.0;
1171 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1172 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1174 description { state: "icononly" 0.0;
1175 inherit: "default" 0.0;
1178 part { name: "padding_after_icon";
1182 description { state: "default" 0.0; //when only icon or no icon is there
1190 rel2.to: "icon_rect";
1193 description { state: "visible" 0.0;
1194 inherit: "default" 0.0;
1195 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1197 description { state: "icononly" 0.0;
1198 inherit: "default" 0.0;
1201 part { name: "padding_before_text";
1205 description { state: "default" 0.0; //when only icon or no icon is there
1210 to_y: "padding_left_top";
1215 to_y: "padding_right_bottom";
1218 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1222 part { name: "elm.swallow.content";
1226 description { state: "default" 0.0;
1231 to: "padding_left_top";
1235 to_x: "padding_left_top";
1236 to_y: "padding_right_bottom";
1240 description { state: "visible" 0.0;
1242 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1243 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1247 to_x: "padding_before_text";
1248 to_y: "padding_left_top";
1252 to_x: "padding_before_text";
1253 to_y: "padding_right_bottom";
1256 description { state: "icononly" 0.0;
1257 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1258 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1261 part { name: "elm.text";
1266 effect: SHADOW BOTTOM;
1267 description { state: "default" 0.0;
1271 to_x: "padding_after_icon";
1272 to_y: "padding_left_top";
1276 to: "padding_right_bottom";
1278 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1279 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1281 font: "Tizen:style=Regular";
1282 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1285 text_class: "tizen";
1288 description { state: "visible" 0.0;
1289 inherit: "default" 0.0;
1292 description { state: "clicked" 0.0;
1293 inherit: "default" 0.0;
1295 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1296 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1298 description { state: "disabled" 0.0;
1299 inherit: "default" 0.0;
1301 description { state: "disabled_visible" 0.0;
1302 inherit: "default" 0.0;
1303 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1304 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1307 description { state: "focused" 0.0;
1308 inherit: "default" 0.0;
1310 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1313 part { name: "over2";
1316 ignore_flags: ON_HOLD;
1317 description { state: "default" 0.0;
1321 part { name: "over3";
1324 description { state: "default" 0.0;
1328 part { name: "clipper";
1330 description { state: "default" 0.0;
1331 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1333 description { state: "disabled" 0.0;
1334 inherit: "default" 0.0;
1335 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1338 part { name: "disabler";
1340 description { state: "default" 0.0;
1344 description { state: "disabled" 0.0;
1345 inherit: "default" 0.0;
1351 program { name: "button_click";
1352 signal: "mouse,down,1";
1354 action: SIGNAL_EMIT "elm,action,press" "";
1355 after: "button_click_anim";
1357 program { name: "button_click_anim";
1358 action: STATE_SET "clicked" 0.0;
1359 target: "button_image";
1360 after: "text_clicked";
1362 program { name: "text_clicked";
1366 get_state(PART:"elm.text", st, 30, vl);
1367 if (!strcmp(st, "visible"))
1368 set_state(PART:"elm.text", "clicked", 0.0);
1371 program { name: "button_double_click";
1372 signal: "mouse,down,1,double";
1374 after: "button_click_anim";
1376 program { name: "button_unpress";
1377 action: SIGNAL_EMIT "elm,action,unpress" "";
1379 program { name: "button_mouseout_clicked";
1380 signal: "mouse,up,1";
1385 get_state(PART:"elm.swallow.content", st, 30, vl);
1386 if (strcmp(st, "icononly"))
1388 emit("elm,action,default,text,set", "");
1389 set_state(PART:"elm.text", "visible", 0.0);
1391 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1392 set_state(PART:"button_image", "default", 0.0);
1394 after: button_unpress;
1396 program { name: "touch_snd";
1397 signal: "mouse,clicked,1";
1399 action: PLAY_SAMPLE "touch_sound" 1.0;
1400 after: button_unclick3;
1402 program { name: "button_unclick3";
1403 action: SIGNAL_EMIT "elm,action,click" "";
1405 program { name: "text_show";
1406 signal: "elm,state,text,visible";
1411 get_state(PART:"elm.swallow.content", st, 30, vl);
1412 if (!strcmp(st, "icononly"))
1414 set_state(PART:"elm.swallow.content", "visible", 0.0);
1415 set_state(PART:"icon_rect", "visible", 0.0);
1416 set_state(PART:"padding_after_icon", "visible", 0.0);
1417 set_state(PART:"bg", "visible", 0.0);
1419 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1420 set_state(PART:"elm.text", "visible", 0.0);
1422 set_state(PART:"elm.text", "disabled_visible", 0.0);
1425 program { name: "text_hide";
1426 signal: "elm,state,text,hidden";
1431 get_state(PART:"elm.swallow.content", st, 30, vl);
1432 if (!strcmp(st, "visible"))
1434 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1435 set_state(PART:"icon_rect", "icononly", 0.0);
1436 set_state(PART:"padding_after_icon", "icononly", 0.0);
1437 set_state(PART:"bg", "icononly", 0.0);
1439 set_state(PART:"elm.text", "default", 0.0);
1442 program { name: "icon_show";
1443 signal: "elm,state,icon,visible";
1448 get_state(PART:"elm.text", st, 30, vl);
1449 if (!strcmp(st, "visible"))
1451 set_state(PART:"elm.swallow.content", "visible", 0.0);
1452 set_state(PART:"icon_rect", "visible", 0.0);
1453 set_state(PART:"padding_after_icon", "visible", 0.0);
1454 set_state(PART:"bg", "visible", 0.0);
1458 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1459 set_state(PART:"icon_rect", "icononly", 0.0);
1460 set_state(PART:"padding_after_icon", "icononly", 0.0);
1461 set_state(PART:"bg", "icononly", 0.0);
1465 program { name: "icon_hide";
1466 signal: "elm,state,icon,hidden";
1468 action: STATE_SET "default" 0.0;
1469 target: "elm.swallow.content";
1470 target: "padding_after_icon";
1471 target: "icon_rect";
1474 program { name: "disable";
1475 signal: "elm,state,disabled";
1477 action: STATE_SET "disabled" 0.0;
1478 target: "button_image";
1481 after: "disable_text";
1483 program { name: "disable_text";
1487 get_state(PART:"elm.text", st, 30, vl);
1488 if (!strcmp(st, "visible"))
1489 set_state(PART:"elm.text", "disabled_visible", 0.0);
1491 set_state(PART:"elm.text", "disabled", 0.0);
1492 set_int(button_state, BUTTON_STATE_DISABLED);
1495 program { name: "enable";
1496 signal: "elm,state,enabled";
1498 action: STATE_SET "default" 0.0;
1499 target: "button_image";
1502 after: "enable_text";
1504 program { name: "enable_text";
1508 get_state(PART:"elm.text", st, 30, vl);
1509 if (!strcmp(st, "disabled_visible"))
1510 set_state(PART:"elm.text", "visible", 0.0);
1512 set_state(PART:"elm.text", "default", 0.0);
1513 set_int(button_state, BUTTON_STATE_ENABLED);
1516 program { name: "action_focus";
1517 signal: "elm,action,focus_highlight,show";
1519 action: STATE_SET "focused" 0.0;
1520 target: "focus_image";
1522 program { name: "action_unfocus";
1523 signal: "elm,action,focus_highlight,hide";
1525 action: STATE_SET "default" 0.0;
1526 target: "focus_image";
1531 ///////////////////////////////////////////////////////////////////////////////////////
1532 group { name: "elm/button/base/sweep";
1533 alias: "elm/button/base/text_only/sweep";
1534 alias: "elm/button/base/hidden";
1535 alias: "elm/button/base/sweep/multiline";
1537 item: "focus_highlight" "on";
1540 image: "00_button_01.png" COMP;
1541 image: "00_button_01_press.png" COMP;
1542 image: "00_button_01_dim.png" COMP;
1543 image: "00_button_01_focus.png" COMP;
1546 public button_state = BUTTON_STATE_ENABLED;
1549 style { name: "btn_sweep_multiline";
1550 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";
1557 part { name: "button_image";
1559 description { state: "default" 0.0;
1560 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1562 normal: "00_button_01.png";
1563 border: BUTTON_SWEEP_BG_BORDER_INC;
1567 description { state: "clicked" 0.0;
1568 inherit: "default" 0.0;
1569 image.normal: "00_button_01_press.png";
1571 description { state: "disabled" 0.0;
1572 inherit: "default" 0.0;
1573 image.normal: "00_button_01_dim.png";
1575 description { state: "focused" 0.0;
1576 inherit: "default" 0.0;
1577 image.normal: "00_button_01_press.png";
1580 part { name: "focus_image";
1584 description { state: "default" 0.0;
1586 rel1.to : "button_image";
1587 rel2.to : "button_image";
1589 normal: "00_button_01_focus.png";
1590 border: BUTTON_SWEEP_BG_BORDER_INC;
1594 description { state: "focused" 0.0;
1595 inherit: "default" 0.0;
1599 part { name: "padding_left_top";
1603 description { state: "default" 0.0;
1605 rel2.relative: 0.0 0.0;
1606 min: BUTTON_SWEEP_PADDING_MIN_INC;
1611 part { name: "padding_right_bottom";
1615 description { state: "default" 0.0;
1617 rel1.relative: 1.0 1.0;
1618 min: BUTTON_SWEEP_PADDING_MIN_INC;
1623 part { name: "icon_rect";
1627 description { state: "default" 0.0;
1628 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1632 to_x: "elm.swallow.content";
1633 to_y: "padding_left_top";
1637 to_x: "elm.swallow.content";
1638 to_y: "padding_right_bottom";
1644 part { name: "padding_icon_text";
1648 description { state: "default" 0.0; //when only icon or no icon is there
1656 rel2.to: "icon_rect";
1659 description { state: "visible" 0.0; //when icon is visible
1660 inherit: "default" 0.0;
1661 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1663 description { state: "icononly" 0.0;
1664 inherit: "default" 0.0;
1667 part { name: "elm.swallow.content";
1671 description { state: "default" 0.0;
1676 to: "padding_left_top";
1680 to_x: "padding_left_top";
1681 to_y: "padding_right_bottom";
1685 description { state: "visible" 0.0;
1686 inherit: "default" 0.0;
1687 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1688 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1691 aspect_preference: VERTICAL;
1693 description { state: "icononly" 0.0;
1694 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1695 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1698 part { name: "elm.text";
1701 effect: SHADOW BOTTOM;
1704 description { state: "default" 0.0;
1709 to_x: "padding_icon_text";
1710 to_y: "padding_left_top";
1714 to: "padding_right_bottom";
1716 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1717 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1719 style: "btn_sweep_multiline";
1723 description { state: "visible" 0.0;
1724 inherit: "default" 0.0;
1726 min: BUTTON_SWEEP_TEXT_MIN_INC;
1728 description { state: "clicked" 0.0;
1729 inherit: "default" 0.0;
1732 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1733 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1735 description { state: "disabled" 0.0;
1736 inherit: "default" 0.0;
1738 description { state: "disabled_visible" 0.0;
1739 inherit: "default" 0.0;
1740 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1741 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1743 min: BUTTON_SWEEP_TEXT_MIN_INC;
1745 description { state: "focused" 0.0;
1746 inherit: "default" 0.0;
1749 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1752 part { name: "over2";
1755 ignore_flags: ON_HOLD;
1756 description { state: "default" 0.0;
1760 part { name: "over3";
1763 description { state: "default" 0.0;
1767 part { name: "clipper";
1769 description { state: "default" 0.0;
1770 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1772 description { state: "disabled" 0.0;
1773 inherit: "default" 0.0;
1774 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1777 part { name: "disabler";
1779 description { state: "default" 0.0;
1783 description { state: "disabled" 0.0;
1784 inherit: "default" 0.0;
1790 program { name: "button_click";
1791 signal: "mouse,down,1";
1793 action: SIGNAL_EMIT "elm,action,press" "";
1794 after: "button_click_anim";
1796 program { name: "button_click_anim";
1797 action: STATE_SET "clicked" 0.0;
1798 target: "button_image";
1799 after: "text_clicked";
1801 program { name: "text_clicked";
1805 get_state(PART:"elm.text", st, 30, vl);
1806 if (!strcmp(st, "visible"))
1807 set_state(PART:"elm.text", "clicked", 0.0);
1810 program { name: "button_double_click";
1811 signal: "mouse,down,1,double";
1813 after: "button_click_anim";
1815 program { name: "button_unpress";
1816 action: SIGNAL_EMIT "elm,action,unpress" "";
1818 program { name: "button_mouseout_clicked";
1819 signal: "mouse,up,1";
1824 get_state(PART:"elm.swallow.content", st, 30, vl);
1825 if (strcmp(st, "icononly"))
1827 emit("elm,action,default,text,set", "");
1828 set_state(PART:"elm.text", "visible", 0.0);
1830 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1831 set_state(PART:"button_image", "default", 0.0);
1833 after: button_unpress;
1835 program { name: "touch_snd";
1836 signal: "mouse,clicked,1";
1838 action: PLAY_SAMPLE "touch_sound" 1.0;
1839 after: button_unclick3;
1841 program { name: "button_unclick3";
1842 action: SIGNAL_EMIT "elm,action,click" "";
1844 program { name: "text_show";
1845 signal: "elm,state,text,visible";
1850 get_state(PART:"elm.swallow.content", st, 30, vl);
1851 if (!strcmp(st, "icononly"))
1853 set_state(PART:"elm.swallow.content", "visible", 0.0);
1854 set_state(PART:"padding_icon_text", "visible", 0.0);
1856 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1857 set_state(PART:"elm.text", "visible", 0.0);
1859 set_state(PART:"elm.text", "disabled_visible", 0.0);
1862 program { name: "text_hide";
1863 signal: "elm,state,text,hidden";
1868 get_state(PART:"elm.swallow.content", st, 30, vl);
1869 if (!strcmp(st, "visible"))
1871 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1872 set_state(PART:"padding_icon_text", "icononly", 0.0);
1874 set_state(PART:"elm.text", "default", 0.0);
1877 program { name: "icon_show";
1878 signal: "elm,state,icon,visible";
1883 get_state(PART:"elm.text", st, 30, vl);
1884 if (!strcmp(st, "visible"))
1886 set_state(PART:"elm.swallow.content", "visible", 0.0);
1887 set_state(PART:"padding_icon_text", "visible", 0.0);
1891 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1892 set_state(PART:"padding_icon_text", "icononly", 0.0);
1896 program { name: "icon_hide";
1897 signal: "elm,state,icon,hidden";
1899 action: STATE_SET "default" 0.0;
1900 target: "elm.swallow.content";
1901 target: "padding_icon_text";
1903 program { name: "disable";
1904 signal: "elm,state,disabled";
1906 action: STATE_SET "disabled" 0.0;
1907 target: "button_image";
1910 after: "disable_text";
1912 program { name: "disable_text";
1916 get_state(PART:"elm.text", st, 30, vl);
1917 if (!strcmp(st, "visible"))
1918 set_state(PART:"elm.text", "disabled_visible", 0.0);
1920 set_state(PART:"elm.text", "disabled", 0.0);
1921 set_int(button_state, BUTTON_STATE_DISABLED);
1924 program { name: "enable";
1925 signal: "elm,state,enabled";
1927 action: STATE_SET "default" 0.0;
1928 target: "button_image";
1931 after: "enable_text";
1933 program { name: "enable_text";
1937 get_state(PART:"elm.text", st, 30, vl);
1938 if (!strcmp(st, "disabled_visible"))
1939 set_state(PART:"elm.text", "visible", 0.0);
1941 set_state(PART:"elm.text", "default", 0.0);
1942 set_int(button_state, BUTTON_STATE_ENABLED);
1945 program { name: "action_focus";
1946 signal: "elm,action,focus_highlight,show";
1948 action: STATE_SET "focused" 0.0;
1949 target: "focus_image";
1951 program { name: "action_unfocus";
1952 signal: "elm,action,focus_highlight,hide";
1954 action: STATE_SET "default" 0.0;
1955 target: "focus_image";
1960 ///////////////////////////////////////////////////////////////////////////////////////
1961 group { name: "elm/button/base/sweep/delete";
1962 inherit: "elm/button/base/sweep";
1963 alias: "elm/button/base/sweep/delete/multiline";
1965 image: "00_button_01_delete_press.png" COMP;
1966 image: "00_button_01_delete.png" COMP;
1967 image: "00_button_01_delete_dim.png" COMP;
1970 style { name: "btn_sweep_delete_multiline";
1971 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";
1978 part { name: "button_image";
1980 description { state: "default" 0.0;
1981 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1983 normal: "00_button_01_delete.png";
1984 border: BUTTON_SWEEP_BG_BORDER_INC;
1988 description { state: "clicked" 0.0;
1989 inherit: "default" 0.0;
1990 image.normal: "00_button_01_delete_press.png";
1992 description { state: "disabled" 0.0;
1993 inherit: "default" 0.0;
1994 image.normal: "00_button_01_delete_dim.png";
1996 description { state: "focused" 0.0;
1997 inherit: "default" 0.0;
1998 image.normal: "00_button_01_delete_press.png";
2001 part { name: "elm.text";
2004 effect: SHADOW BOTTOM;
2007 description { state: "default" 0.0;
2012 to_x: "padding_icon_text";
2013 to_y: "padding_left_top";
2017 to: "padding_right_bottom";
2019 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
2020 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2022 style: "btn_sweep_multiline";
2026 description { state: "visible" 0.0;
2027 inherit: "default" 0.0;
2029 min: BUTTON_SWEEP_TEXT_MIN_INC;
2031 description { state: "clicked" 0.0;
2032 inherit: "default" 0.0;
2035 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
2036 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
2038 description { state: "disabled" 0.0;
2039 inherit: "default" 0.0;
2041 description { state: "disabled_visible" 0.0;
2042 inherit: "default" 0.0;
2043 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
2044 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
2046 min: BUTTON_SWEEP_TEXT_MIN_INC;
2048 description { state: "focused" 0.0;
2049 inherit: "default" 0.0;
2052 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
2058 ///////////////////////////////////////////////////////////////////////////////////////
2059 group { name: "elm/button/base/popup_button/default";
2060 alias: "elm/button/base/popup_button/menustyle";
2061 alias: "elm/button/base/popup_button/liststyle";
2062 alias: "elm/button/base/popup_button/volumebarstyle";
2063 alias: "elm/button/base/popup_button/customstyle";
2064 alias: "elm/button/base/popup_button/verticalbuttonstyle";
2065 alias: "elm/button/base/popup_button/default/multiline";
2067 item: "focus_highlight" "on";
2070 image: "00_button_01.png" COMP;
2071 image: "00_button_01_dim.png" COMP;
2072 image: "00_button_01_press.png" COMP;
2073 image: "00_button_01_focus.png" COMP;
2076 public button_state = BUTTON_STATE_ENABLED;
2079 part { name: "button_image";
2081 description { state: "default" 0.0;
2082 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2084 normal: "00_button_01.png";
2085 border: BUTTON_POPUP_BG_BORDER_INC;
2089 description { state: "clicked" 0.0;
2090 inherit: "default" 0.0;
2091 image.normal: "00_button_01_press.png";
2093 description { state: "disabled" 0.0;
2094 inherit: "default" 0.0;
2095 image.normal: "00_button_01_dim.png";
2097 description { state: "focused" 0.0;
2098 inherit: "default" 0.0;
2099 image.normal: "00_button_01_press.png";
2102 part { name: "focus_image";
2106 description { state: "default" 0.0;
2108 rel1.to : "button_image";
2109 rel2.to : "button_image";
2111 normal: "00_button_01_focus.png";
2112 border: BUTTON_POPUP_BG_BORDER_INC;
2116 description { state: "focused" 0.0;
2117 inherit: "default" 0.0;
2121 part { name: "padding_left_top";
2125 description { state: "default" 0.0;
2127 rel2.relative: 0.0 0.0;
2128 min: BUTTON_POPUP_PADDING_MIN_INC;
2133 part { name: "padding_right_bottom";
2136 description { state: "default" 0.0;
2138 rel1.relative: 1.0 1.0;
2139 min: BUTTON_POPUP_PADDING_MIN_INC;
2144 part { name: "padding_icon_text";
2147 description { state: "default" 0.0; //when only icon or no icon is there
2151 to: "elm.swallow.content";
2153 rel2.to: "elm.swallow.content";
2158 description { state: "icononly" 0.0;
2159 inherit: "default" 0.0;
2161 description { state: "visible" 0.0; //when icon is visible
2162 inherit: "default" 0.0;
2163 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2166 part { name: "elm.swallow.content";
2170 description { state: "default" 0.0;
2175 to: "padding_left_top";
2179 to_x: "padding_left_top";
2180 to_y: "padding_right_bottom";
2184 description { state: "visible" 0.0;
2185 inherit: "default" 0.0;
2189 aspect_preference: VERTICAL;
2191 description { state: "icononly" 0.0;
2192 inherit: "default" 0.0;
2193 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2198 part { name: "elm.text";
2203 effect: SHADOW BOTTOM;
2204 description { state: "default" 0.0;
2208 to_x: "padding_icon_text";
2209 to_y: "padding_left_top";
2213 to: "padding_right_bottom";
2215 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
2216 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2218 font: "Tizen:style=Regular";
2219 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
2221 text_class: "tizen";
2224 description { state: "visible" 0.0;
2225 inherit: "default" 0.0;
2227 min: BUTTON_POPUP_TEXT_MIN_INC;
2229 description { state: "clicked" 0.0;
2230 inherit: "default" 0.0;
2233 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
2234 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
2236 description { state: "disabled" 0.0;
2237 inherit: "default" 0.0;
2239 description { state: "disabled_visible" 0.0;
2240 inherit: "default" 0.0;
2241 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
2242 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2244 min: BUTTON_POPUP_TEXT_MIN_INC;
2246 description { state: "focused" 0.0;
2247 inherit: "default" 0.0;
2250 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2253 part { name: "over2";
2256 ignore_flags: ON_HOLD;
2257 description { state: "default" 0.0;
2261 part { name: "over3";
2264 description { state: "default" 0.0;
2268 part { name: "clipper";
2270 description { state: "default" 0.0;
2271 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
2273 description { state: "disabled" 0.0;
2274 inherit: "default" 0.0;
2275 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
2278 part { name: "disabler";
2280 description { state: "default" 0.0;
2284 description { state: "disabled" 0.0;
2285 inherit: "default" 0.0;
2291 program { name: "button_click";
2292 signal: "mouse,down,1";
2294 action: SIGNAL_EMIT "elm,action,press" "";
2295 after: "button_click_anim";
2297 program { name: "button_click_anim";
2298 action: STATE_SET "clicked" 0.0;
2299 target: "button_image";
2300 after: "text_clicked";
2302 program { name: "text_clicked";
2306 get_state(PART:"elm.text", st, 30, vl);
2307 if (!strcmp(st, "visible"))
2308 set_state(PART:"elm.text", "clicked", 0.0);
2311 program { name: "button_double_click";
2312 signal: "mouse,down,1,double";
2314 after: "button_click_anim";
2316 program { name: "button_unpress";
2317 action: SIGNAL_EMIT "elm,action,unpress" "";
2319 program { name: "button_mouseout_clicked";
2320 signal: "mouse,up,1";
2325 get_state(PART:"elm.swallow.content", st, 30, vl);
2326 if (strcmp(st, "icononly"))
2328 emit("elm,action,default,text,set", "");
2329 set_state(PART:"elm.text", "visible", 0.0);
2331 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2332 set_state(PART:"button_image", "default", 0.0);
2334 after: button_unpress;
2336 program { name: "touch_snd";
2337 signal: "mouse,clicked,1";
2339 action: PLAY_SAMPLE "touch_sound" 1.0;
2340 after: button_unclick3;
2342 program { name: "button_unclick3";
2343 action: SIGNAL_EMIT "elm,action,click" "";
2345 program { name: "text_show";
2346 signal: "elm,state,text,visible";
2351 get_state(PART:"elm.swallow.content", st, 30, vl);
2352 if (!strcmp(st, "icononly"))
2354 set_state(PART:"elm.swallow.content", "visible", 0.0);
2355 set_state(PART:"padding_icon_text", "visible", 0.0);
2357 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2358 set_state(PART:"elm.text", "visible", 0.0);
2360 set_state(PART:"elm.text", "disabled_visible", 0.0);
2363 program { name: "text_hide";
2364 signal: "elm,state,text,hidden";
2369 get_state(PART:"elm.swallow.content", st, 30, vl);
2370 if (!strcmp(st, "visible"))
2372 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2373 set_state(PART:"padding_icon_text", "icononly", 0.0);
2375 set_state(PART:"elm.text", "default", 0.0);
2378 program { name: "icon_show";
2379 signal: "elm,state,icon,visible";
2384 get_state(PART:"elm.text", st, 30, vl);
2385 if (!strcmp(st, "visible"))
2387 set_state(PART:"elm.swallow.content", "visible", 0.0);
2388 set_state(PART:"padding_icon_text", "visible", 0.0);
2392 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2393 set_state(PART:"padding_icon_text", "icononly", 0.0);
2397 program { name: "icon_hide";
2398 signal: "elm,state,icon,hidden";
2400 action: STATE_SET "default" 0.0;
2401 target: "elm.swallow.content";
2402 target: "padding_icon_text";
2404 program { name: "disable";
2405 signal: "elm,state,disabled";
2407 action: STATE_SET "disabled" 0.0;
2408 target: "button_image";
2411 after: "disable_text";
2413 program { name: "disable_text";
2417 get_state(PART:"elm.text", st, 30, vl);
2418 if (!strcmp(st, "visible"))
2419 set_state(PART:"elm.text", "disabled_visible", 0.0);
2421 set_state(PART:"elm.text", "disabled", 0.0);
2422 set_int(button_state, BUTTON_STATE_DISABLED);
2425 program { name: "enable";
2426 signal: "elm,state,enabled";
2428 action: STATE_SET "default" 0.0;
2429 target: "button_image";
2432 after: "enable_text";
2434 program { name: "enable_text";
2438 get_state(PART:"elm.text", st, 30, vl);
2439 if (!strcmp(st, "disabled_visible"))
2440 set_state(PART:"elm.text", "visible", 0.0);
2442 set_state(PART:"elm.text", "default", 0.0);
2443 set_int(button_state, BUTTON_STATE_ENABLED);
2446 program { name: "action_focus";
2447 signal: "elm,action,focus_highlight,show";
2449 action: STATE_SET "focused" 0.0;
2450 target: "focus_image";
2452 program { name: "action_unfocus";
2453 signal: "elm,action,focus_highlight,hide";
2455 action: STATE_SET "default" 0.0;
2456 target: "focus_image";
2461 ///////////////////////////////////////////////////////////////////////////////////////
2462 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2463 group { name: "elm/button/base/"style_name; \
2465 item: "focus_highlight" "on"; \
2468 image: "00_circle_button.png" COMP; \
2469 image: "00_circle_button_press.png" COMP; \
2470 image: "00_circle_button_dim.png" COMP; \
2471 image: image_normal COMP; \
2472 image: image_press COMP; \
2473 image: 00_circle_button_focus.png COMP; \
2476 part { name: "button_image"; \
2478 description { state: "default" 0.0; \
2479 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2480 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2481 image.normal: "00_circle_button.png"; \
2484 state: "clicked" 0.0; \
2485 inherit: "default" 0.0; \
2486 image.normal: "00_circle_button_press.png"; \
2489 state: "disabled" 0.0; \
2490 inherit: "default" 0.0; \
2491 image.normal: "00_circle_button_dim.png"; \
2494 part { name: "left_top_padding"; \
2497 description { state: "default" 0.0; \
2498 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2499 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2502 rel1.to: "button_image"; \
2503 rel2.to: "button_image"; \
2506 part { name: "right_bottom_padding"; \
2509 description { state: "default" 0.0; \
2510 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2511 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2515 relative: 1.0 1.0; \
2516 to: "button_image"; \
2518 rel2.to: "button_image"; \
2521 part { name: "button_center_part"; \
2523 clip_to: "icon_clipper"; \
2524 description { state: "default" 0.0; \
2525 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2526 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2527 image.normal: image_normal; \
2529 relative: 1.0 1.0; \
2530 to: "left_top_padding"; \
2533 relative: 0.0 0.0; \
2534 to: "right_bottom_padding"; \
2537 description { state: "clicked" 0.0; \
2538 inherit: "default"; \
2539 image.normal: image_press; \
2541 description { state: "disabled" 0.0; \
2542 inherit: "default"; \
2545 part { name: "icon_clipper"; \
2548 description { state: "default" 0.0; \
2549 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2551 description { state: "clicked" 0.0; \
2552 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2554 description { state: "disabled" 0.0; \
2555 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2558 part { name: "focus_image"; \
2562 description { state: "default" 0.0; \
2563 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2564 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2566 rel1.to : "button_image"; \
2567 rel2.to : "button_image"; \
2569 normal: "00_circle_button_focus.png"; \
2573 description { state: "focused" 0.0; \
2574 inherit: "default" 0.0; \
2578 part { name: "over1"; \
2580 ignore_flags: ON_HOLD; \
2581 description { state: "default" 0.0; \
2583 min: min_width min_height; \
2586 part { name: "over2"; \
2589 description { state: "default" 0.0; \
2593 part { name: "disabler"; \
2595 description { state: "default" 0.0; \
2599 description { state: "disabled" 0.0; \
2600 inherit: "default" 0.0; \
2606 program { name: "button_click"; \
2607 signal: "mouse,down,1"; \
2609 action: SIGNAL_EMIT "elm,action,press" ""; \
2610 after: "button_click_anim"; \
2612 program { name: "button_click_anim"; \
2613 action: STATE_SET "clicked" 0.0; \
2614 target: "button_image"; \
2615 target: "button_center_part"; \
2616 target: "icon_clipper"; \
2618 program { name: "button_double_click"; \
2619 signal: "mouse,down,1,double"; \
2621 after: "button_click_anim"; \
2623 program { name: "button_unclick"; \
2624 signal: "mouse,up,1"; \
2626 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2627 after: "button_unclick_anim"; \
2629 program { name: "button_unclick_anim"; \
2630 action: STATE_SET "default" 0.0; \
2631 target: "button_image"; \
2632 target: "button_center_part"; \
2633 target: "icon_clipper"; \
2635 program { name: "touch_snd"; \
2636 signal: "mouse,clicked,1"; \
2638 action: PLAY_SAMPLE "touch_sound" 1.0; \
2639 after: button_unclick3; \
2641 program { name: "button_unclick3"; \
2642 action: SIGNAL_EMIT "elm,action,click" ""; \
2644 program { name: "disable"; \
2645 signal: "elm,state,disabled"; \
2647 action: STATE_SET "disabled" 0.0; \
2648 target: "disabler"; \
2649 target: "button_image"; \
2650 target: "button_center_part"; \
2651 target: "icon_clipper"; \
2653 program { name: "enable"; \
2654 signal: "elm,state,enabled"; \
2656 action: STATE_SET "default" 0.0; \
2657 target: "disabler"; \
2658 target: "button_image"; \
2659 target: "button_center_part"; \
2660 target: "icon_clipper"; \
2662 program { name: "action_focus"; \
2663 signal: "elm,action,focus_highlight,show"; \
2665 action: STATE_SET "focused" 0.0; \
2666 target: "focus_image"; \
2668 program { name: "action_unfocus"; \
2669 signal: "elm,action,focus_highlight,hide"; \
2671 action: STATE_SET "default" 0.0; \
2672 target: "focus_image"; \
2677 ///////////////////////////////////////////////////////////////////////////////////////
2678 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)
2680 ///////////////////////////////////////////////////////////////////////////////////////
2681 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)
2683 ///////////////////////////////////////////////////////////////////////////////////////
2684 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)
2686 ///////////////////////////////////////////////////////////////////////////////////////
2687 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)
2689 ///////////////////////////////////////////////////////////////////////////////////////
2690 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)
2692 ///////////////////////////////////////////////////////////////////////////////////////
2693 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)
2695 ///////////////////////////////////////////////////////////////////////////////////////
2696 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)
2698 ///////////////////////////////////////////////////////////////////////////////////////
2699 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)
2701 ///////////////////////////////////////////////////////////////////////////////////////
2702 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)
2704 ///////////////////////////////////////////////////////////////////////////////////////
2705 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)
2707 ///////////////////////////////////////////////////////////////////////////////////////
2708 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)
2710 ///////////////////////////////////////////////////////////////////////////////////////
2711 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)
2713 ///////////////////////////////////////////////////////////////////////////////////////
2714 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)
2716 ///////////////////////////////////////////////////////////////////////////////////////
2717 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)
2719 ///////////////////////////////////////////////////////////////////////////////////////
2720 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)
2722 ///////////////////////////////////////////////////////////////////////////////////////
2723 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)
2725 ///////////////////////////////////////////////////////////////////////////////////////
2726 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)
2728 ///////////////////////////////////////////////////////////////////////////////////////
2729 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)
2731 ///////////////////////////////////////////////////////////////////////////////////////
2732 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)
2734 ///////////////////////////////////////////////////////////////////////////////////////
2735 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)
2736 ///////////////////////////////////////////////////////////////////////////////////////
2738 ///////////////////////////////////////////////////////////////////////////////////////
2739 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)
2740 ///////////////////////////////////////////////////////////////////////////////////////
2742 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2743 group { name: "elm/button/base/"style_name; \
2744 inherit: "elm/button/base/info"; \
2746 image: "00_circle_button_delete.png" COMP; \
2747 image: "00_circle_button_delete_press.png" COMP; \
2748 image: "00_circle_button_delete_dim.png" COMP; \
2749 image: "00_button_warning.png" COMP; \
2750 image: "00_button_warning_press.png" COMP; \
2753 part { name: "button_image"; \
2755 description { state: "default" 0.0; \
2756 image.normal: "00_circle_button_delete.png"; \
2759 state: "clicked" 0.0; \
2760 inherit: "default" 0.0; \
2761 image.normal: "00_circle_button_delete_press.png"; \
2764 state: "disabled" 0.0; \
2765 inherit: "default" 0.0; \
2766 image.normal: "00_circle_button_delete_dim.png"; \
2769 part { name: "button_center_part"; \
2771 clip_to: "icon_clipper"; \
2772 description { state: "default" 0.0; \
2773 image.normal: "00_button_warning.png"; \
2775 description { state: "clicked" 0.0; \
2776 inherit: "default"; \
2777 image.normal: "00_button_warning_press.png"; \
2779 description { state: "disabled" 0.0; \
2780 inherit: "default"; \
2783 part { name: "icon_clipper"; \
2786 description { state: "default" 0.0; \
2787 color: BUTTON_CIRCLE_STYLE_WARNING_NORMAL_COLOR_INC; \
2789 description { state: "clicked" 0.0; \
2790 color: BUTTON_CIRCLE_STYLE_WARNING_PRESSED_COLOR_INC; \
2792 description { state: "disabled" 0.0; \
2793 color: BUTTON_CIRCLE_STYLE_WARNING_DISABLED_COLOR_INC; \
2796 part { name: "over1"; \
2798 ignore_flags: ON_HOLD; \
2799 description { state: "default" 0.0; \
2801 min: min_width min_height; \
2807 ///////////////////////////////////////////////////////////////////////////////////////
2808 BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2810 ///////////////////////////////////////////////////////////////////////////////////////
2811 BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2813 ///////////////////////////////////////////////////////////////////////////////////////
2814 group { name: "elm/button/base/circle/empty";
2816 item: "focus_highlight" "on";
2819 image: "00_circle_button.png" COMP;
2820 image: "00_circle_button_press.png" COMP;
2821 image: "00_circle_button_dim.png" COMP;
2822 image: 00_circle_button_focus.png COMP;
2825 part { name: "button_image";
2827 description { state: "default" 0.0;
2828 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2829 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2831 image.normal: "00_circle_button.png";
2833 description { state: "clicked" 0.0;
2834 inherit: "default" 0.0;
2835 image.normal: "00_circle_button_press.png";
2837 description { state: "disabled" 0.0;
2838 inherit: "default" 0.0;
2839 image.normal: "00_circle_button_dim.png";
2842 part { name: "left_top_padding";
2845 description { state: "default" 0.0;
2846 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2847 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2850 rel1.to: "button_image";
2851 rel2.to: "button_image";
2854 part { name: "right_bottom_padding";
2857 description { state: "default" 0.0;
2858 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2859 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2866 rel2.to: "button_image";
2869 part { name: "elm.swallow.content";
2871 clip_to: "icon_clipper";
2873 description { state: "default" 0.0;
2877 to: "left_top_padding";
2881 to: "right_bottom_padding";
2885 description { state: "visible" 0.0;
2886 inherit: "default" 0.0;
2888 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2889 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2892 part { name: "icon_clipper";
2895 description { state: "default" 0.0;
2896 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2898 description { state: "clicked" 0.0;
2899 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2901 description { state: "disabled" 0.0;
2902 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2905 part { name: "focus_image";
2909 description { state: "default" 0.0;
2910 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2911 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2913 rel1.to : "button_image";
2914 rel2.to : "button_image";
2916 normal: "00_circle_button_focus.png";
2920 description { state: "focused" 0.0;
2921 inherit: "default" 0.0;
2925 part { name: "over1";
2927 ignore_flags: ON_HOLD;
2928 description { state: "default" 0.0;
2932 part { name: "over2";
2935 description { state: "default" 0.0;
2939 part { name: "disabler";
2941 description { state: "default" 0.0;
2945 description { state: "disabled" 0.0;
2946 inherit: "default" 0.0;
2952 program { name: "button_click";
2953 signal: "mouse,down,1";
2955 action: SIGNAL_EMIT "elm,action,press" "";
2956 after: "button_click_anim";
2958 program { name: "button_click_anim";
2959 action: STATE_SET "clicked" 0.0;
2960 target: "button_image";
2961 target: "icon_clipper";
2963 program { name: "button_double_click";
2964 signal: "mouse,down,1,double";
2966 after: "button_click_anim";
2968 program { name: "touch_snd";
2969 signal: "mouse,clicked,1";
2971 action: PLAY_SAMPLE "touch_sound" 1.0;
2972 after: button_unclick2;
2974 program { name: "button_unclick2";
2975 action: SIGNAL_EMIT "elm,action,click" "";
2977 program { name: "button_unclick";
2978 signal: "mouse,up,1";
2980 action: SIGNAL_EMIT "elm,action,unpress" "";
2981 after: "button_unclick_anim";
2983 program { name: "button_unclick_anim";
2984 action: STATE_SET "default" 0.0;
2985 target: "button_image";
2986 target: "icon_clipper";
2988 program { name: "disable";
2989 signal: "elm,state,disabled";
2991 action: STATE_SET "disabled" 0.0;
2993 target: "button_image";
2994 target: "icon_clipper";
2996 program { name: "enable";
2997 signal: "elm,state,enabled";
2999 action: STATE_SET "default" 0.0;
3001 target: "button_image";
3002 target: "icon_clipper";
3004 program { name: "icon_show";
3005 signal: "elm,state,icon,visible";
3007 action: STATE_SET "visible" 0.0;
3008 target: "elm.swallow.content";
3010 program { name: "icon_hide";
3011 signal: "elm,state,icon,hidden";
3013 action: STATE_SET "default" 0.0;
3014 target: "elm.swallow.content";
3016 program { name: "action_focus";
3017 signal: "elm,action,focus_highlight,show";
3019 action: STATE_SET "focused" 0.0;
3020 target: "focus_image";
3022 program { name: "action_unfocus";
3023 signal: "elm,action,focus_highlight,hide";
3025 action: STATE_SET "default" 0.0;
3026 target: "focus_image";
3031 ///////////////////////////////////////////////////////////////////////////////////////
3032 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
3033 group { name: "elm/button/base/contacts/"style_name; \
3034 alias: "elm/button/base/"style_name; \
3036 item: "focus_highlight" "on"; \
3039 image: "00_circle_button.png" COMP; \
3040 image: "00_circle_button_press.png" COMP; \
3041 image: "00_circle_button_dim.png" COMP; \
3042 image: edit_normal COMP; \
3043 image: edit_press COMP; \
3044 image: 00_circle_button_focus.png COMP; \
3047 part { name: "button_image"; \
3049 description { state: "default" 0.0; \
3050 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3051 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3052 image.normal: "00_circle_button.png"; \
3054 description { state: "clicked" 0.0; \
3055 inherit: "default" 0.0; \
3056 image.normal: "00_circle_button_press.png"; \
3058 description { state: "disabled" 0.0; \
3059 inherit: "default" 0.0; \
3060 image.normal: "00_circle_button_dim.png"; \
3063 part { name: "button_center_part"; \
3066 clip_to: "icon_clipper"; \
3067 description { state: "default" 0.0; \
3068 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3069 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3070 image.normal: image_normal; \
3073 state: "clicked" 0.0; \
3074 inherit: "default" 0.0; \
3075 image.normal: image_press; \
3077 description { state: "disabled" 0.0; \
3078 inherit: "default" 0.0; \
3081 part { name: "focus_image"; \
3085 description { state: "default" 0.0; \
3086 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3087 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3089 rel1.to : "button_image"; \
3090 rel2.to : "button_image"; \
3092 normal: "00_circle_button_focus.png"; \
3096 description { state: "focused" 0.0; \
3097 inherit: "default" 0.0; \
3101 part { name: "icon_clipper"; \
3104 description { state: "default" 0.0; \
3105 color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
3107 description { state: "clicked" 0.0; \
3108 color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
3110 description { state: "disabled" 0.0; \
3111 color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
3114 part { name: "over1"; \
3117 ignore_flags: ON_HOLD; \
3118 description { state: "default" 0.0; \
3120 min: min_width min_height; \
3123 part { name: "over2"; \
3126 description { state: "default" 0.0; \
3130 part { name: "disabler"; \
3132 description { state: "default" 0.0; \
3136 description { state: "disabled" 0.0; \
3137 inherit: "default" 0.0; \
3143 program { name: "button_click"; \
3144 signal: "mouse,down,1"; \
3146 action: SIGNAL_EMIT "elm,action,press" ""; \
3147 after: "button_click_anim"; \
3149 program { name: "button_click_anim"; \
3150 action: STATE_SET "clicked" 0.0; \
3151 target: "button_image"; \
3152 target: "button_center_part"; \
3153 target: "icon_clipper"; \
3155 program { name: "button_double_click"; \
3156 signal: "mouse,down,1,double"; \
3158 after: "button_click_anim"; \
3160 program { name: "button_unclick"; \
3161 signal: "mouse,up,1"; \
3163 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3164 after: "button_unclick_anim"; \
3166 program { name: "button_unclick_anim"; \
3167 action: STATE_SET "default" 0.0; \
3168 target: "button_image"; \
3169 target: "button_center_part"; \
3170 target: "icon_clipper"; \
3172 program { name: "touch_snd"; \
3173 signal: "mouse,clicked,1"; \
3175 action: PLAY_SAMPLE "touch_sound" 1.0; \
3176 after: button_unclick3; \
3178 program { name: "button_unclick3"; \
3179 action: SIGNAL_EMIT "elm,action,click" ""; \
3181 program { name: "disable"; \
3182 signal: "elm,state,disabled"; \
3184 action: STATE_SET "disabled" 0.0; \
3185 target: "disabler"; \
3186 target: "button_image"; \
3187 target: "button_center_part"; \
3188 target: "icon_clipper"; \
3190 program { name: "enable"; \
3191 signal: "elm,state,enabled"; \
3193 action: STATE_SET "default" 0.0; \
3194 target: "disabler"; \
3195 target: "button_image"; \
3196 target: "button_center_part"; \
3197 target: "icon_clipper"; \
3199 program { name: "action_focus"; \
3200 signal: "elm,action,focus_highlight,show"; \
3202 action: STATE_SET "focused" 0.0; \
3203 target: "focus_image"; \
3205 program { name: "action_unfocus"; \
3206 signal: "elm,action,focus_highlight,hide"; \
3208 action: STATE_SET "default" 0.0; \
3209 target: "focus_image"; \
3213 ///////////////////////////////////////////////////////////////////////////////////////
3214 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)
3216 ///////////////////////////////////////////////////////////////////////////////////////
3217 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)
3219 ///////////////////////////////////////////////////////////////////////////////////////
3220 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)
3222 ///////////////////////////////////////////////////////////////////////////////////////
3223 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)
3225 ///////////////////////////////////////////////////////////////////////////////////////
3226 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)
3228 ///////////////////////////////////////////////////////////////////////////////////////
3229 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)
3231 ///////////////////////////////////////////////////////////////////////////////////////
3233 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
3234 group { name: "elm/button/base/contacts/"style_name; \
3235 alias: "elm/button/base/"style_name; \
3236 inherit: "elm/button/base/contacts/icon_plus"; \
3238 image: "00_circle_button_delete.png" COMP; \
3239 image: "00_circle_button_delete_press.png" COMP; \
3240 image: "00_circle_button_delete_dim.png" COMP; \
3241 image: "00_button_delete.png" COMP; \
3242 image: "00_button_delete_press.png" COMP; \
3245 part { name: "button_image"; \
3247 description { state: "default" 0.0; \
3248 image.normal: "00_circle_button_delete.png"; \
3250 description { state: "clicked" 0.0; \
3251 inherit: "default" 0.0; \
3252 image.normal: "00_circle_button_delete_press.png"; \
3254 description { state: "disabled" 0.0; \
3255 inherit: "default" 0.0; \
3256 image.normal: "00_circle_button_delete_dim.png"; \
3259 part { name: "button_center_part"; \
3262 clip_to: "icon_clipper"; \
3263 description { state: "default" 0.0; \
3264 image.normal: "00_button_delete.png"; \
3267 state: "clicked" 0.0; \
3268 inherit: "default" 0.0; \
3269 image.normal: "00_button_delete_press.png"; \
3271 description { state: "disabled" 0.0; \
3272 inherit: "default" 0.0; \
3275 part { name: "icon_clipper"; \
3278 description { state: "default" 0.0; \
3279 color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
3281 description { state: "clicked" 0.0; \
3282 color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
3284 description { state: "disabled" 0.0; \
3285 color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
3288 part { name: "over1"; \
3291 ignore_flags: ON_HOLD; \
3292 description { state: "default" 0.0; \
3294 min: min_width min_height; \
3300 ///////////////////////////////////////////////////////////////////////////////////////
3301 BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3303 ///////////////////////////////////////////////////////////////////////////////////////
3304 BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3306 ///////////////////////////////////////////////////////////////////////////////////////
3307 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
3308 group { name: "elm/button/base/"style_name; \
3310 item: "focus_highlight" "on"; \
3313 image: "00_button_01.png" COMP; \
3314 image: "00_button_01_press.png" COMP; \
3315 image: "00_button_01_dim.png" COMP; \
3316 image: image_normal COMP; \
3317 image: "00_button_01_focus.png" COMP; \
3320 part { name: "button_image";\
3323 description { state: "default" 0.0; \
3324 min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
3326 normal: "00_button_01.png"; \
3327 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3331 description { state: "clicked" 0.0; \
3332 inherit: "default" 0.0; \
3333 image.normal: "00_button_01_press.png"; \
3335 description { state: "disabled" 0.0; \
3336 inherit: "default" 0.0; \
3337 image.normal: "00_button_01_dim.png"; \
3340 part { name: "focus_image"; \
3344 description { state: "default" 0.0; \
3346 rel1.to : "button_image"; \
3347 rel2.to : "button_image"; \
3349 normal: "00_button_01_focus.png"; \
3350 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3354 description { state: "focused" 0.0; \
3355 inherit: "default" 0.0; \
3359 part { name: "padding_left_top"; \
3362 description { state: "default" 0.0; \
3364 rel2.relative: 0.0 0.0; \
3365 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3369 part { name: "padding_right_bottom"; \
3372 description { state: "default" 0.0; \
3374 rel1.relative: 1.0 1.0; \
3375 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3379 part { name: "jump_image"; \
3382 description { state: "default" 0.0; \
3383 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3384 max: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3386 relative: 1.0 0.0; \
3387 to_x: "padding_left_top"; \
3390 relative: 0.0 1.0; \
3391 to_x: "padding_right_bottom"; \
3393 image.normal: image_normal; \
3395 aspect_preference: VERTICAL; \
3396 color: BUTTON_JUMP_ICON_NORMAL_COLOR_INC; \
3398 description { state: "clicked" 0.0; \
3399 inherit: "default" 0.0; \
3400 color: BUTTON_JUMP_ICON_PRESSED_COLOR_INC; \
3402 description { state: "disabled" 0.0; \
3403 inherit: "default" 0.0; \
3404 color: BUTTON_JUMP_ICON_DIM_COLOR_INC; \
3407 part { name: "over1"; \
3410 ignore_flags: ON_HOLD; \
3411 description { state: "default" 0.0; \
3413 rel1.relative: 0.0 0.0; \
3414 rel2.relative: 1.0 1.0; \
3417 part { name: "over2"; \
3420 description { state: "default" 0.0; \
3426 program { name: "button_click"; \
3427 signal: "mouse,down,1"; \
3429 action: SIGNAL_EMIT "elm,action,press" ""; \
3430 after: "button_click_anim"; \
3432 program { name: "button_click_anim"; \
3433 action: STATE_SET "clicked" 0.0; \
3434 target: "button_image"; \
3435 target: "jump_image"; \
3437 program { name: "button_double_click"; \
3438 signal: "mouse,down,1,double"; \
3440 after: "button_click_anim"; \
3442 program { name: "button_unclick"; \
3443 signal: "mouse,up,1"; \
3445 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3446 after: "button_unclick_anim"; \
3448 program { name: "button_unclick_anim"; \
3449 action: STATE_SET "default" 0.0; \
3450 target: "button_image"; \
3451 target: "jump_image"; \
3453 program { name: "touch_snd"; \
3454 signal: "mouse,clicked,1"; \
3456 action: PLAY_SAMPLE "touch_sound" 1.0; \
3457 after: button_unclick3; \
3459 program { name: "button_unclick3"; \
3460 action: SIGNAL_EMIT "elm,action,click" ""; \
3462 program { name: "disable"; \
3463 signal: "elm,state,disabled"; \
3465 action: STATE_SET "disabled" 0.0; \
3466 target: "button_image"; \
3467 target: "jump_image"; \
3469 program { name: "enable"; \
3470 signal: "elm,state,enabled"; \
3472 action: STATE_SET "default" 0.0; \
3473 target: "button_image"; \
3474 target: "jump_image"; \
3476 program { name: "action_focus"; \
3477 signal: "elm,action,focus_highlight,show"; \
3479 action: STATE_SET "focused" 0.0; \
3480 target: "focus_image"; \
3482 program { name: "action_unfocus"; \
3483 signal: "elm,action,focus_highlight,hide"; \
3485 action: STATE_SET "default" 0.0; \
3486 target: "focus_image"; \
3491 ////////////////////////////////////////////////////////////////////////
3492 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3493 ////////////////////////////////////////////////////////////////////////
3494 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3496 ////////////////////////////////////////////////////////////////////////
3497 group { name: "elm/button/base/default";
3499 item: "focus_highlight" "on";
3502 image: "00_button_01.png" COMP;
3503 image: "00_button_01_press.png" COMP;
3504 image: "00_button_01_dim.png" COMP;
3505 image: "00_button_01_focus.png" COMP;
3508 public button_state = BUTTON_STATE_ENABLED;
3511 part { name: "button_image";
3513 description { state: "default" 0.0;
3514 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3516 normal: "00_button_01.png";
3517 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3521 description { state: "clicked" 0.0;
3522 inherit: "default" 0.0;
3523 image.normal: "00_button_01_press.png";
3525 description { state: "disabled" 0.0;
3526 inherit: "default" 0.0;
3527 image.normal: "00_button_01_dim.png";
3529 description { state: "focused" 0.0;
3530 inherit: "default" 0.0;
3531 image.normal: "00_button_01_press.png";
3534 part { name: "focus_image";
3538 description { state: "default" 0.0;
3540 rel1.to : "button_image";
3541 rel2.to : "button_image";
3543 normal: "00_button_01_focus.png";
3544 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3548 description { state: "focused" 0.0;
3549 inherit: "default" 0.0;
3553 part { name: "padding_left_top";
3557 description { state: "default" 0.0;
3559 rel2.relative: 0.0 0.0;
3560 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3565 part { name: "padding_right_bottom";
3569 description { state: "default" 0.0;
3571 rel1.relative: 1.0 1.0;
3572 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3577 part { name: "padding_icon_text";
3581 description { state: "default" 0.0; //when only icon or no icon is there
3587 to: "elm.swallow.content";
3589 rel2.to: "elm.swallow.content";
3592 description { state: "icononly" 0.0;
3593 inherit: "default" 0.0;
3595 description { state: "visible" 0.0; //when icon is visible
3596 inherit: "default" 0.0;
3597 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3600 part { name: "elm.swallow.content";
3604 description { state: "default" 0.0;
3610 to: "padding_left_top";
3614 to_x: "padding_left_top";
3615 to_y: "padding_right_bottom";
3618 description { state: "visible" 0.0;
3619 inherit: "default" 0.0;
3622 aspect_preference: VERTICAL;
3624 description { state: "icononly" 0.0;
3625 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3628 to_x: "padding_left_top";
3632 to_x: "padding_right_bottom";
3635 aspect_preference: VERTICAL;
3638 part { name: "elm.text";
3643 effect: SHADOW BOTTOM;
3644 description { state: "default" 0.0;
3649 to_x: "padding_icon_text";
3650 to_y: "padding_left_top";
3654 to: "padding_right_bottom";
3656 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3657 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
3659 font: "Tizen:style=Regular";
3660 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3662 text_class: "tizen";
3665 description { state: "visible" 0.0;
3666 inherit: "default" 0.0;
3668 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3670 description { state: "clicked" 0.0;
3671 inherit: "default" 0.0;
3673 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3674 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3676 description { state: "disabled" 0.0;
3677 inherit: "default" 0.0;
3679 description { state: "disabled_visible" 0.0;
3680 inherit: "default" 0.0;
3681 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3682 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
3684 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3686 description { state: "focused" 0.0;
3687 inherit: "default" 0.0;
3690 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3693 part { name: "over2";
3696 ignore_flags: ON_HOLD;
3697 description { state: "default" 0.0;
3701 part { name: "over3";
3704 description { state: "default" 0.0;
3708 part { name: "disclip";
3710 description { state: "default" 0.0;
3711 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3713 description { state: "disabled" 0.0;
3714 inherit: "default" 0.0;
3715 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3718 part { name: "disabler";
3720 description { state: "default" 0.0;
3724 description { state: "disabled" 0.0;
3725 inherit: "default" 0.0;
3731 program { name: "button_click";
3732 signal: "mouse,down,1";
3734 action: SIGNAL_EMIT "elm,action,press" "";
3735 after: "button_click_anim";
3737 program { name: "button_click_anim";
3738 action: STATE_SET "clicked" 0.0;
3739 target: "button_image";
3740 after: "text_clicked";
3742 program { name: "text_clicked";
3746 get_state(PART:"elm.text", st, 30, vl);
3747 if (!strcmp(st, "visible"))
3748 set_state(PART:"elm.text", "clicked", 0.0);
3751 program { name: "button_double_click";
3752 signal: "mouse,down,1,double";
3754 after: "button_click_anim";
3756 program { name: "button_unpress";
3757 action: SIGNAL_EMIT "elm,action,unpress" "";
3759 program { name: "button_mouseout_clicked";
3760 signal: "mouse,up,1";
3765 get_state(PART:"elm.swallow.content", st, 30, vl);
3766 if (strcmp(st, "icononly"))
3768 emit("elm,action,default,text,set", "");
3769 set_state(PART:"elm.text", "visible", 0.0);
3771 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3772 set_state(PART:"button_image", "default", 0.0);
3774 after: button_unpress;
3776 program { name: "touch_snd";
3777 signal: "mouse,clicked,1";
3779 action: PLAY_SAMPLE "touch_sound" 1.0;
3780 after: button_unclick3;
3782 program { name: "button_unclick3";
3783 action: SIGNAL_EMIT "elm,action,click" "";
3785 program { name: "text_show";
3786 signal: "elm,state,text,visible";
3791 get_state(PART:"elm.swallow.content", st, 30, vl);
3792 if (!strcmp(st, "icononly"))
3794 set_state(PART:"elm.swallow.content", "visible", 0.0);
3795 set_state(PART:"padding_icon_text", "visible", 0.0);
3797 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3798 set_state(PART:"elm.text", "visible", 0.0);
3800 set_state(PART:"elm.text", "disabled_visible", 0.0);
3803 program { name: "text_hide";
3804 signal: "elm,state,text,hidden";
3809 get_state(PART:"elm.swallow.content", st, 30, vl);
3810 if (!strcmp(st, "visible"))
3812 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3813 set_state(PART:"padding_icon_text", "icononly", 0.0);
3815 set_state(PART:"elm.text", "default", 0.0);
3818 program { name: "icon_show";
3819 signal: "elm,state,icon,visible";
3824 get_state(PART:"elm.text", st, 30, vl);
3825 if (!strcmp(st, "visible"))
3827 set_state(PART:"elm.swallow.content", "visible", 0.0);
3828 set_state(PART:"padding_icon_text", "visible", 0.0);
3832 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3833 set_state(PART:"padding_icon_text", "icononly", 0.0);
3837 program { name: "icon_hide";
3838 signal: "elm,state,icon,hidden";
3840 action: STATE_SET "default" 0.0;
3841 target: "elm.swallow.content";
3842 target: "padding_icon_text";
3844 program { name: "disable";
3845 signal: "elm,state,disabled";
3847 action: STATE_SET "disabled" 0.0;
3848 target: "button_image";
3851 after: "disable_text";
3853 program { name: "disable_text";
3857 get_state(PART:"elm.text", st, 30, vl);
3858 if (!strcmp(st, "visible"))
3859 set_state(PART:"elm.text", "disabled_visible", 0.0);
3861 set_state(PART:"elm.text", "disabled", 0.0);
3862 set_int(button_state, BUTTON_STATE_DISABLED);
3865 program { name: "enable";
3866 signal: "elm,state,enabled";
3868 action: STATE_SET "default" 0.0;
3869 target: "button_image";
3872 after: "enable_text";
3874 program { name: "enable_text";
3878 get_state(PART:"elm.text", st, 30, vl);
3879 if (!strcmp(st, "disabled_visible"))
3880 set_state(PART:"elm.text", "visible", 0.0);
3882 set_state(PART:"elm.text", "default", 0.0);
3883 set_int(button_state, BUTTON_STATE_ENABLED);
3886 program { name: "action_focus";
3887 signal: "elm,action,focus_highlight,show";
3889 action: STATE_SET "focused" 0.0;
3890 target: "focus_image";
3892 program { name: "action_unfocus";
3893 signal: "elm,action,focus_highlight,hide";
3895 action: STATE_SET "default" 0.0;
3896 target: "focus_image";
3901 ///////////////////////////////////////////////////////////////////////////////////////
3902 group { name: "elm/button/base/multiline";
3903 alias: "elm/button/base/text_only/multiline";
3904 inherit: "elm/button/base/default";
3906 style { name: "btn_multiline_style";
3907 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";
3914 part { name: "button_image";
3916 description { state: "default" 0.0;
3917 min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3919 normal: "00_button_01.png";
3920 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3924 description { state: "clicked" 0.0;
3925 inherit: "default" 0.0;
3926 image.normal: "00_button_01_press.png";
3928 description { state: "disabled" 0.0;
3929 inherit: "default" 0.0;
3930 image.normal: "00_button_01_dim.png";
3932 description { state: "focused" 0.0;
3933 inherit: "default" 0.0;
3934 image.normal: "00_button_01_press.png";
3937 part { name: "padding_left_top";
3941 description { state: "default" 0.0;
3943 rel2.relative: 0.0 0.0;
3944 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3949 part { name: "padding_right_bottom";
3953 description { state: "default" 0.0;
3955 rel1.relative: 1.0 1.0;
3956 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3961 part { name: "elm.text";
3966 description { state: "default" 0.0;
3970 to_x: "padding_icon_text";
3971 to_y: "padding_left_top";
3975 to: "padding_right_bottom";
3977 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3979 style: "btn_multiline_style";
3982 description { state: "visible" 0.0;
3983 inherit: "default" 0.0;
3987 description { state: "clicked" 0.0;
3988 inherit: "default" 0.0;
3991 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3993 description { state: "disabled" 0.0;
3994 inherit: "default" 0.0;
3996 description { state: "disabled_visible" 0.0;
3997 inherit: "default" 0.0;
3998 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4002 description { state: "focused" 0.0;
4003 inherit: "default" 0.0;
4006 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4012 ///////////////////////////////////////////////////////////////////////////////////////
4013 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
4014 group { name: "elm/button/base/"style_name; \
4016 item: "focus_highlight" "on"; \
4019 image: image_normal COMP; \
4020 image: image_press COMP; \
4021 image: image_dim COMP; \
4022 image: "00_button_01.png" COMP; \
4023 image: "00_button_01_press.png" COMP; \
4024 image: "00_button_01_focus.png" COMP; \
4027 part { name: "button_image"; \
4029 description { state: "default" 0.0; \
4030 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4031 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4033 normal: "00_button_01.png"; \
4034 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
4039 state: "clicked" 0.0; \
4040 inherit: "default" 0.0; \
4041 image.normal: "00_button_01_press.png"; \
4044 state: "disabled" 0.0; \
4045 inherit: "default" 0.0; \
4046 image.normal: "00_button_01_dim.png"; \
4049 state: "focused" 0.0; \
4050 inherit: "default" 0.0; \
4051 image.normal: "00_button_01_press.png"; \
4054 part { name: "focus_image"; \
4058 description { state: "default" 0.0; \
4059 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4060 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4062 rel1.to : "button_image"; \
4063 rel2.to : "button_image"; \
4065 normal: "00_button_01_focus.png"; \
4066 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
4070 description { state: "focused" 0.0; \
4071 inherit: "default" 0.0; \
4075 part { name: "button_center_part"; \
4077 clip_to: "icon_clipper"; \
4078 description { state: "default" 0.0; \
4079 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
4080 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
4081 image.normal: image_normal; \
4084 state: "clicked" 0.0; \
4085 inherit: "default" 0.0; \
4086 image.normal: image_press; \
4089 state: "disabled" 0.0; \
4090 inherit: "default" 0.0; \
4093 part { name: "icon_clipper"; \
4096 description { state: "default" 0.0; \
4097 color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
4099 description { state: "clicked" 0.0; \
4100 color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
4102 description { state: "disabled" 0.0; \
4103 color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
4106 part { name: "over1"; \
4108 ignore_flags: ON_HOLD; \
4109 description { state: "default" 0.0; \
4113 part { name: "over2"; \
4116 description { state: "default" 0.0; \
4120 part { name: "disabler"; \
4122 description { state: "default" 0.0; \
4126 description { state: "disabled" 0.0; \
4127 inherit: "default" 0.0; \
4133 program { name: "button_click"; \
4134 signal: "mouse,down,1"; \
4136 action: SIGNAL_EMIT "elm,action,press" ""; \
4137 after: "button_click_anim"; \
4139 program { name: "button_click_anim"; \
4140 action: STATE_SET "clicked" 0.0; \
4141 target: "button_image"; \
4142 target: "button_center_part"; \
4143 target: ""icon_clipper""; \
4145 program { name: "button_double_click"; \
4146 signal: "mouse,down,1,double"; \
4148 after: "button_click_anim"; \
4150 program { name: "button_unclick"; \
4151 signal: "mouse,up,1"; \
4153 action: SIGNAL_EMIT "elm,action,unpress" ""; \
4154 after: "button_unclick_anim"; \
4156 program { name: "button_unclick_anim"; \
4157 action: STATE_SET "default" 0.0; \
4158 target: "button_image"; \
4159 target: "button_center_part"; \
4160 target: ""icon_clipper""; \
4162 program { name: "touch_snd"; \
4163 signal: "mouse,clicked,1"; \
4165 action: PLAY_SAMPLE "touch_sound" 1.0; \
4166 after: button_unclick3; \
4168 program { name: "button_unclick3"; \
4169 action: SIGNAL_EMIT "elm,action,click" ""; \
4171 program { name: "disable"; \
4172 signal: "elm,state,disabled"; \
4174 action: STATE_SET "disabled" 0.0; \
4175 target: "disabler"; \
4176 target: "button_image"; \
4177 target: "button_center_part"; \
4178 target: ""icon_clipper""; \
4180 program { name: "enable"; \
4181 signal: "elm,state,enabled"; \
4183 action: STATE_SET "default" 0.0; \
4184 target: "disabler"; \
4185 target: "button_image"; \
4186 target: "button_center_part"; \
4187 target: ""icon_clipper""; \
4189 program { name: "action_focus"; \
4190 signal: "elm,action,focus_highlight,show"; \
4192 action: STATE_SET "focused" 0.0; \
4193 target: "focus_image"; \
4195 program { name: "action_unfocus"; \
4196 signal: "elm,action,focus_highlight,hide"; \
4198 action: STATE_SET "default" 0.0; \
4199 target: "focus_image"; \
4203 ///////////////////////////////////////////////////////////////////////////////////////
4204 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
4205 ///////////////////////////////////////////////////////////////////////////////////////
4206 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
4207 ///////////////////////////////////////////////////////////////////////////////////////
4209 group { name: "elm/button/base/multibuttonentry";
4210 alias: "elm/button/base/text_only/multibuttonentry";
4212 item: "focus_highlight" "on";
4215 image: "00_contacts_button.png" COMP;
4216 image: "00_contacts_button_press.png" COMP;
4217 image: "00_contacts_button_focus.png" COMP;
4220 public button_state = BUTTON_STATE_ENABLED;
4223 part { name: "button_image";
4225 description { state: "default" 0.0;
4227 to_x: "padding.left";
4231 to_x: "padding.right";
4234 min: BUTTON_CONTACT_BG_MIN_INC;
4236 normal: "00_contacts_button.png";
4237 border: BUTTON_CONTACT_BG_BORDER_INC;
4241 description { state: "clicked" 0.0;
4242 inherit: "default" 0.0;
4243 image.normal: "00_contacts_button_press.png";
4245 description { state: "disabled" 0.0;
4246 inherit: "default" 0.0;
4248 description { state: "focused" 0.0;
4249 inherit: "default" 0.0;
4250 image.normal: "00_contacts_button_press.png";
4253 part { name: "focus_image";
4257 description { state: "default" 0.0;
4259 rel1.to : "button_image";
4260 rel2.to : "button_image";
4262 normal: "00_contacts_button_focus.png";
4263 border: BUTTON_CONTACT_BG_BORDER_INC;
4267 description { state: "focused" 0.0;
4268 inherit: "default" 0.0;
4272 part { name: "padding.left";
4275 description { state: "default" 0.0;
4277 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
4287 part { name: "padding.right";
4290 description { state: "default" 0.0;
4292 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
4302 part { name: "elm.text";
4306 description { state: "default" 0.0;
4309 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
4311 font: "Tizen:style=Regular";
4312 size: BUTTON_CONTACT_FONT_SIZE_INC;
4314 text_class: "tizen";
4317 description { state: "visible" 0.0;
4318 inherit: "default" 0.0;
4322 description { state: "clicked" 0.0;
4323 inherit: "default" 0.0;
4326 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
4328 description { state: "disabled" 0.0;
4329 inherit: "default" 0.0;
4331 description { state: "disabled_visible" 0.0;
4332 inherit: "default" 0.0;
4333 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
4337 description { state: "focused" 0.0;
4338 inherit: "default" 0.0;
4341 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
4344 part { name: "over1";
4347 description { state: "default" 0.0;
4348 rel2.relative: 1.0 0.5;
4352 part { name: "over2";
4355 ignore_flags: ON_HOLD;
4356 description { state: "default" 0.0;
4357 rel1.to: "button_image";
4358 rel2.to: "button_image";
4362 part { name: "over3";
4365 description { state: "default" 0.0;
4366 rel1.to: "button_image";
4367 rel2.to: "button_image";
4371 part { name: "disabler";
4373 description { state: "default" 0.0;
4374 rel1.to: "button_image";
4375 rel2.to: "button_image";
4379 description { state: "disabled" 0.0;
4380 inherit: "default" 0.0;
4386 program { name: "button_click";
4387 signal: "mouse,down,1";
4389 action: SIGNAL_EMIT "elm,action,press" "";
4390 after: "button_click_anim";
4392 program { name: "button_click_anim";
4393 action: STATE_SET "clicked" 0.0;
4394 target: "button_image";
4397 program { name: "button_double_click";
4398 signal: "mouse,down,1,double";
4400 after: "button_click_anim";
4402 program { name: "button_unpress";
4403 action: SIGNAL_EMIT "elm,action,unpress" "";
4405 program { name: "button_mouseout_clicked";
4406 signal: "mouse,up,1";
4411 get_state(PART:"elm.text", st, 30, vl);
4412 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4414 emit("elm,action,default,text,set", "");
4415 set_state(PART:"elm.text", "visible", 0.0);
4417 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4418 set_state(PART:"button_image", "default", 0.0);
4420 after: button_unpress;
4422 program { name: "touch_snd";
4423 signal: "mouse,clicked,1";
4425 action: PLAY_SAMPLE "touch_sound" 1.0;
4426 after: button_unclick3;
4428 program { name: "button_unclick3";
4429 action: SIGNAL_EMIT "elm,action,click" "";
4431 program { name: "text_show";
4432 signal: "elm,state,text,visible";
4435 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4436 set_state(PART:"elm.text", "visible", 0.0);
4438 set_state(PART:"elm.text", "disabled_visible", 0.0);
4441 program { name: "text_hide";
4442 signal: "elm,state,text,hidden";
4444 action: STATE_SET "default" 0.0;
4447 program { name: "disable";
4448 signal: "elm,state,disabled";
4450 action: STATE_SET "disabled" 0.0;
4451 target: "button_image";
4453 after: "disable_text";
4455 program { name: "disable_text";
4459 get_state(PART:"elm.text", st, 30, vl);
4460 if (!strcmp(st, "visible"))
4461 set_state(PART:"elm.text", "disabled_visible", 0.0);
4463 set_state(PART:"elm.text", "disabled", 0.0);
4464 set_int(button_state, BUTTON_STATE_DISABLED);
4467 program { name: "enable";
4468 signal: "elm,state,enabled";
4470 action: STATE_SET "default" 0.0;
4471 target: "button_image";
4473 after: "enable_text";
4475 program { name: "enable_text";
4479 get_state(PART:"elm.text", st, 30, vl);
4480 if (!strcmp(st, "disabled_visible"))
4481 set_state(PART:"elm.text", "visible", 0.0);
4483 set_state(PART:"elm.text", "default", 0.0);
4484 set_int(button_state, BUTTON_STATE_ENABLED);
4487 program { name: "action_focus";
4488 signal: "elm,action,focus_highlight,show";
4490 action: STATE_SET "focused" 0.0;
4491 target: "focus_image";
4493 program { name: "action_unfocus";
4494 signal: "elm,action,focus_highlight,hide";
4496 action: STATE_SET "default" 0.0;
4497 target: "focus_image";
4502 ///////////////////////////////////////////////////////////////////////////////////////
4503 group { name: "elm/button/base/naviframe/back_btn/default";
4504 alias: "elm/button/base/naviframe/prev_btn/default";
4505 alias: "elm/button/base/naviframe/end_btn/default";
4507 item: "focus_highlight" "on";
4510 image: "00_icon_back.png" COMP;
4511 image: "00_icon_SIP_close.png" COMP;
4512 image: "00_icon_focus.png" COMP;
4515 part { name: "button_image";
4518 description { state: "default" 0.0;
4519 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4520 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4523 description { state: "landscape" 0.0;
4524 min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4525 max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4529 part { name: "focus_image";
4533 description { state: "default" 0.0;
4535 rel1.to : "button_image";
4536 rel2.to : "button_image";
4538 normal: "00_icon_focus.png";
4542 description { state: "focused" 0.0;
4543 inherit: "default" 0.0;
4547 part { name: "back_button";
4550 clip_to: "back_button.clipper";
4551 description { state: "default" 0.0;
4552 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4553 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4555 rel1.to: "button_image";
4556 rel2.to: "button_image";
4557 image.normal: "00_icon_back.png";
4559 description { state: "compress" 0.0;
4560 inherit: "default" 0.0;
4561 image.normal: "00_icon_SIP_close.png";
4564 part { name: "back_button.clipper";
4566 description { state: "default" 0.0;
4567 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4569 description { state: "clicked" 0.0;
4570 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4572 description { state: "disabled" 0.0;
4573 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4576 part { name: "over2";
4578 ignore_flags: ON_HOLD;
4579 description { state: "default" 0.0;
4583 part { name: "over3";
4586 description { state: "default" 0.0;
4590 part { name: "disabler";
4592 description { state: "default" 0.0;
4596 description { state: "disabled" 0.0;
4597 inherit: "default" 0.0;
4603 program { name: "button_click";
4604 signal: "mouse,down,1";
4606 action: SIGNAL_EMIT "elm,action,press" "";
4607 after: "button_click_anim";
4609 program { name: "button_click_anim";
4611 set_state(PART:"back_button.clipper", "clicked", 0.0);
4614 program { name: "button_double_click";
4615 signal: "mouse,down,1,double";
4617 after: "button_click_anim";
4619 program { name: "button_unclick";
4620 signal: "mouse,up,1";
4622 action: SIGNAL_EMIT "elm,action,unpress" "";
4623 after: "button_unclick_anim";
4625 program { name: "button_unclick_anim";
4627 set_state(PART:"back_button.clipper", "default", 0.0);
4630 program { name: "touch_snd";
4631 signal: "mouse,clicked,1";
4633 action: PLAY_SAMPLE "touch_sound" 1.0;
4634 after: button_unclick3;
4636 program { name: "button_unclick3";
4637 action: SIGNAL_EMIT "elm,action,click" "";
4639 program { name: "disable";
4640 signal: "elm,state,disabled";
4643 set_state(PART:"back_button.clipper", "disabled", 0.0);
4646 program { name: "enable";
4647 signal: "elm,state,enabled";
4650 set_state(PART:"back_button.clipper", "default", 0.0);
4653 program { name: "change_to_landscape";
4654 signal: "elm,state,landscape";
4656 action: STATE_SET "landscape" 0.0;
4657 target: "button_image";
4659 program { name: "change_to_portrait";
4660 signal: "elm,state,portrait";
4662 action: STATE_SET "default" 0.0;
4663 target: "button_image";
4665 program { name: "landscape_mode";
4667 signal: "elm,state,orient,90";
4668 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4670 program { name: "landscape_mode2";
4672 signal: "elm,state,orient,270";
4673 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4675 program { name: "portrait_mode";
4677 signal: "elm,state,orient,0";
4678 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4680 program { name: "portrait_mode2";
4682 signal: "elm,state,orient,180";
4683 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4685 program { name: "display_compress_mode";
4686 signal: "elm,state,display,compress";
4688 action: STATE_SET "compress" 0.0;
4689 target: "back_button";
4691 program { name: "display_default_mode";
4692 signal: "elm,state,display,default";
4694 action: STATE_SET "default" 0.0;
4695 target: "back_button";
4697 program { name: "action_focus";
4698 signal: "elm,action,focus_highlight,show";
4700 action: STATE_SET "focused" 0.0;
4701 target: "focus_image";
4703 program { name: "action_unfocus";
4704 signal: "elm,action,focus_highlight,hide";
4706 action: STATE_SET "default" 0.0;
4707 target: "focus_image";
4712 //////////////////////////////////////////////////////////////
4713 group { name: "elm/button/base/naviframe/toolbar/default";
4714 alias: "elm/button/base/naviframe/title/default";
4716 item: "focus_highlight" "on";
4719 image: "00_toolbar_button.png" COMP;
4720 image: "00_toolbar_button_press.png" COMP;
4721 image: "00_toolbar_button_dim.png" COMP;
4722 image: "00_toolbar_button_focus.png" COMP;
4725 style { name: "btn_naviframe_toolbar";
4726 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_NORMAL_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4731 style { name: "btn_naviframe_toolbar_pressed";
4732 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_PRESSED_COLOR_INC" style=shadow,top shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4737 style { name: "btn_naviframe_toolbar_disabled";
4738 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_DISABLED_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4745 public button_state = BUTTON_STATE_ENABLED;
4746 public landscape_state = BUTTON_LANDSCAPE_DISABLED;
4749 part { name: "button_bg";
4752 description { state: "default" 0.0;
4753 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4754 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4756 rel1.to: "padding_text_left_top";
4757 rel2.to: "padding_text_right_bottom";
4759 description { state: "landscape" 0.0;
4760 inherit: "default" 0.0;
4761 min: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
4762 max: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
4765 part { name: "button_image";
4767 description { state: "default" 0.0;
4768 rel1.to: "button_bg";
4769 rel2.to: "button_bg";
4771 normal: "00_toolbar_button.png";
4772 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4776 description { state: "clicked" 0.0;
4777 inherit: "default" 0.0;
4778 image.normal: "00_toolbar_button_press.png";
4780 description { state: "disabled" 0.0;
4781 inherit: "default" 0.0;
4782 image.normal: "00_toolbar_button_dim.png";
4784 description { state: "focused" 0.0;
4785 inherit: "default" 0.0;
4786 image.normal: "00_toolbar_button_press.png";
4789 part { name: "focus_image";
4793 description { state: "default" 0.0;
4795 rel1.to : "button_image";
4796 rel2.to : "button_image";
4798 normal: "00_toolbar_button_focus.png";
4799 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4803 description { state: "focused" 0.0;
4804 inherit: "default" 0.0;
4808 part { name: "padding_left_top";
4812 description { state: "default" 0.0;
4815 rel2.relative: 0.0 0.0;
4816 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4820 part { name: "padding_right_bottom";
4824 description { state: "default" 0.0;
4826 rel1.relative: 1.0 1.0;
4827 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4832 part { name: "padding_text_left_top";
4836 description { state: "default" 0.0;
4838 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4840 rel1.to: "elm.text";
4848 part { name: "padding_text_right_bottom";
4852 description { state: "default" 0.0;
4853 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4860 rel2.to: "elm.text";
4864 part { name: "elm.text";
4869 description { state: "default" 0.0;
4872 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4875 to: "padding_left_top";
4879 to: "padding_right_bottom";
4885 style: "btn_naviframe_toolbar";
4888 description { state: "landscape" 0.0;
4889 inherit: "default" 0.0;
4890 min: BUTTON_NAVIFRAME_TITLE_LANDSCAPE_TEXTBLOCK_MIN_INC;
4892 description { state: "visible" 0.0;
4893 inherit: "default" 0.0;
4896 description { state: "landscape_visible" 0.0;
4897 inherit: "landscape" 0.0;
4900 description { state: "clicked" 0.0;
4901 inherit: "default" 0.0;
4904 style: "btn_naviframe_toolbar_pressed";
4907 description { state: "landscape_clicked" 0.0;
4908 inherit: "landscape" 0.0;
4911 style: "btn_naviframe_toolbar_pressed";
4914 description { state: "disabled" 0.0;
4915 inherit: "default" 0.0;
4917 description { state: "landscape_disabled" 0.0;
4918 inherit: "landscape" 0.0;
4920 description { state: "disabled_visible" 0.0;
4921 inherit: "default" 0.0;
4924 style: "btn_naviframe_toolbar_disabled";
4927 description { state: "landscape_disabled_visible" 0.0;
4928 inherit: "landscape" 0.0;
4931 style: "btn_naviframe_toolbar_disabled";
4934 description { state: "focused" 0.0;
4935 inherit: "default" 0.0;
4938 style: "btn_naviframe_toolbar_pressed";
4941 description { state: "landscape_focused" 0.0;
4942 inherit: "landscape" 0.0;
4945 style: "btn_naviframe_toolbar_pressed";
4949 part { name: "disclip";
4951 description { state: "default" 0.0;
4952 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4954 description { state: "disabled" 0.0;
4955 inherit: "default" 0.0;
4956 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4959 part { name: "over2";
4962 ignore_flags: ON_HOLD;
4963 description { state: "default" 0.0;
4964 rel1.to: "button_image";
4965 rel2.to: "button_image";
4969 part { name: "over3";
4972 description { state: "default" 0.0;
4973 rel1.to: "button_image";
4974 rel2.to: "button_image";
4978 part { name: "disabler";
4980 description { state: "default" 0.0;
4981 rel1.to: "button_image";
4982 rel2.to: "button_image";
4986 description { state: "disabled" 0.0;
4987 inherit: "default" 0.0;
4993 program { name: "button_click";
4994 signal: "mouse,down,1";
4996 action: SIGNAL_EMIT "elm,action,press" "";
4997 after: "button_click_anim";
4999 program { name: "button_click_anim";
5001 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5002 set_state(PART:"elm.text", "landscape_clicked", 0.0);
5004 set_state(PART:"elm.text", "clicked", 0.0);
5005 set_state(PART:"button_image", "clicked", 0.0);
5008 program { name: "button_double_click";
5009 signal: "mouse,down,1,double";
5011 after: "button_click_anim";
5013 program { name: "button_unpress";
5014 action: SIGNAL_EMIT "elm,action,unpress" "";
5016 program { name: "button_mouseout_clicked";
5017 signal: "mouse,up,1";
5022 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5024 get_state(PART:"elm.text", st, 30, vl);
5025 if (!strcmp(st, "landscape_clicked") || !strcmp(st, "landscape_focused"))
5027 emit("elm,action,default,text,set", "");
5028 set_state(PART:"elm.text", "landscape_visible", 0.0);
5033 get_state(PART:"elm.text", st, 30, vl);
5034 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5036 emit("elm,action,default,text,set", "");
5037 set_state(PART:"elm.text", "visible", 0.0);
5040 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5041 set_state(PART:"button_image", "default", 0.0);
5043 after: button_unpress;
5045 program { name: "touch_snd";
5046 signal: "mouse,clicked,1";
5048 action: PLAY_SAMPLE "touch_sound" 1.0;
5049 after: button_unclick3;
5051 program { name: "button_unclick3";
5052 action: SIGNAL_EMIT "elm,action,click" "";
5054 program { name: "text_show";
5055 signal: "elm,state,text,visible";
5058 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5060 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5061 set_state(PART:"elm.text", "landscape_visible", 0.0);
5063 set_state(PART:"elm.text", "visible", 0.0);
5067 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5068 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
5070 set_state(PART:"elm.text", "disabled_visible", 0.0);
5074 program { name: "text_hide";
5075 signal: "elm,state,text,hidden";
5078 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5079 set_state(PART:"elm.text", "landscape", 0.0);
5081 set_state(PART:"elm.text", "default", 0.0);
5084 program { name: "disable";
5085 signal: "elm,state,disabled";
5087 action: STATE_SET "disabled" 0.0;
5088 target: "button_image";
5091 after: "disable_text";
5093 program { name: "disable_text";
5097 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5099 get_state(PART:"elm.text", st, 30, vl);
5100 if (!strcmp(st, "landscape_visible"))
5101 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
5103 set_state(PART:"elm.text", "landscape_disabled", 0.0);
5107 get_state(PART:"elm.text", st, 30, vl);
5108 if (!strcmp(st, "visible"))
5109 set_state(PART:"elm.text", "disabled_visible", 0.0);
5111 set_state(PART:"elm.text", "disabled", 0.0);
5113 set_int(button_state, BUTTON_STATE_DISABLED);
5116 program { name: "enable";
5117 signal: "elm,state,enabled";
5119 action: STATE_SET "default" 0.0;
5120 target: "button_image";
5123 after: "enable_text";
5125 program { name: "enable_text";
5129 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5131 get_state(PART:"elm.text", st, 30, vl);
5132 if (!strcmp(st, "landscape_disabled"))
5133 set_state(PART:"elm.text", "landscape", 0.0);
5135 set_state(PART:"elm.text", "landscape_visible", 0.0);
5139 get_state(PART:"elm.text", st, 30, vl);
5140 if (!strcmp(st, "disabled"))
5141 set_state(PART:"elm.text", "default", 0.0);
5143 set_state(PART:"elm.text", "visible", 0.0);
5145 set_int(button_state, BUTTON_STATE_ENABLED);
5148 program { name: "change_to_landscape";
5149 signal: "elm,state,landscape";
5154 set_int(landscape_state, BUTTON_LANDSCAPE_ENABLED);
5155 get_state(PART:"elm.text", st, 30, vl);
5156 if (!strcmp(st, "default"))
5157 set_state(PART:"elm.text", "landscape", 0.0);
5158 else if (!strcmp(st, "clicked"))
5159 set_state(PART:"elm.text", "landscape_clicked", 0.0);
5160 else if (!strcmp(st, "disabled"))
5161 set_state(PART:"elm.text", "landscape_disabled", 0.0);
5162 else if (!strcmp(st, "disabled_visible"))
5163 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
5165 set_state(PART:"elm.text", "landscape_visible", 0.0);
5166 set_state(PART:"button_bg", "landscape", 0.0);
5169 program { name: "change_to_portrait";
5170 signal: "elm,state,portrait";
5175 set_int(landscape_state, BUTTON_LANDSCAPE_DISABLED);
5176 get_state(PART:"elm.text", st, 30, vl);
5177 if (!strcmp(st, "landscape"))
5178 set_state(PART:"elm.text", "default", 0.0);
5179 else if (!strcmp(st, "landscape_clicked"))
5180 set_state(PART:"elm.text", "clicked", 0.0);
5181 else if (!strcmp(st, "landscape_disabled"))
5182 set_state(PART:"elm.text", "disabled", 0.0);
5183 else if (!strcmp(st, "landscape_disabled_visible"))
5184 set_state(PART:"elm.text", "disabled_visible", 0.0);
5186 set_state(PART:"elm.text", "visible", 0.0);
5187 set_state(PART:"button_bg", "default", 0.0);
5190 program { name: "landscape_mode";
5192 signal: "elm,state,orient,90";
5193 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5195 program { name: "landscape_mode2";
5197 signal: "elm,state,orient,270";
5198 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5200 program { name: "portrait_mode";
5202 signal: "elm,state,orient,0";
5203 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5205 program { name: "portrait_mode2";
5207 signal: "elm,state,orient,180";
5208 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5210 program { name: "action_focus";
5211 signal: "elm,action,focus_highlight,show";
5213 action: STATE_SET "focused" 0.0;
5214 target: "focus_image";
5216 program { name: "action_unfocus";
5217 signal: "elm,action,focus_highlight,hide";
5219 action: STATE_SET "default" 0.0;
5220 target: "focus_image";
5225 //////////////////////////////////////////////////////////////
5226 group { name: "elm/button/base/naviframe/toolbar/left";
5227 inherit: "elm/button/base/naviframe/toolbar/default";
5229 part { name: "button_bg";
5232 description { state: "default" 0.0;
5233 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
5234 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
5236 rel1.to: "padding_text_left_top";
5237 rel2.to: "padding_text_right_bottom";
5240 description { state: "landscape" 0.0;
5241 inherit: "default" 0.0;
5242 min: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5243 max: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
5246 part { name: "elm.text";
5251 description { state: "default" 0.0;
5254 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
5257 to: "padding_left_top";
5261 to: "padding_right_bottom";
5268 style: "btn_naviframe_toolbar";
5271 description { state: "landscape" 0.0;
5272 inherit: "default" 0.0;
5273 min: BUTTON_NAVIFRAME_TITLE_LANDSCAPE_TEXTBLOCK_MIN_INC;
5275 description { state: "visible" 0.0;
5276 inherit: "default" 0.0;
5279 description { state: "landscape_visible" 0.0;
5280 inherit: "landscape" 0.0;
5283 description { state: "clicked" 0.0;
5284 inherit: "default" 0.0;
5287 style: "btn_naviframe_toolbar_pressed";
5290 description { state: "landscape_clicked" 0.0;
5291 inherit: "landscape" 0.0;
5294 style: "btn_naviframe_toolbar_pressed";
5297 description { state: "disabled" 0.0;
5298 inherit: "default" 0.0;
5300 description { state: "landscape_disabled" 0.0;
5301 inherit: "landscape" 0.0;
5303 description { state: "disabled_visible" 0.0;
5304 inherit: "default" 0.0;
5307 style: "btn_naviframe_toolbar_disabled";
5310 description { state: "landscape_disabled_visible" 0.0;
5311 inherit: "landscape" 0.0;
5314 style: "btn_naviframe_toolbar_disabled";
5317 description { state: "focused" 0.0;
5318 inherit: "default" 0.0;
5321 style: "btn_naviframe_toolbar_pressed";
5324 description { state: "landscape_focused" 0.0;
5325 inherit: "landscape" 0.0;
5328 style: "btn_naviframe_toolbar_pressed";
5335 //////////////////////////////////////////////////////////////
5336 group { name: "elm/button/base/naviframe/toolbar/right";
5337 inherit: "elm/button/base/naviframe/toolbar/default";
5339 part { name: "button_bg";
5342 description { state: "default" 0.0;
5343 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
5344 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
5346 rel1.to: "padding_text_left_top";
5347 rel2.to: "padding_text_right_bottom";
5350 description { state: "landscape" 0.0;
5351 inherit: "default" 0.0;
5352 min: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5353 max: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
5356 part { name: "elm.text";
5361 description { state: "default" 0.0;
5364 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
5367 to: "padding_left_top";
5371 to: "padding_right_bottom";
5378 style: "btn_naviframe_toolbar";
5381 description { state: "landscape" 0.0;
5382 inherit: "default" 0.0;
5383 min: BUTTON_NAVIFRAME_TITLE_LANDSCAPE_TEXTBLOCK_MIN_INC;
5385 description { state: "visible" 0.0;
5386 inherit: "default" 0.0;
5389 description { state: "landscape_visible" 0.0;
5390 inherit: "landscape" 0.0;
5393 description { state: "clicked" 0.0;
5394 inherit: "default" 0.0;
5397 style: "btn_naviframe_toolbar_pressed";
5400 description { state: "landscape_clicked" 0.0;
5401 inherit: "landscape" 0.0;
5404 style: "btn_naviframe_toolbar_pressed";
5407 description { state: "disabled" 0.0;
5408 inherit: "default" 0.0;
5410 description { state: "landscape_disabled" 0.0;
5411 inherit: "landscape" 0.0;
5413 description { state: "disabled_visible" 0.0;
5414 inherit: "default" 0.0;
5417 style: "btn_naviframe_toolbar_disabled";
5420 description { state: "landscape_disabled_visible" 0.0;
5421 inherit: "landscape" 0.0;
5424 style: "btn_naviframe_toolbar_disabled";
5427 description { state: "focused" 0.0;
5428 inherit: "default" 0.0;
5431 style: "btn_naviframe_toolbar_pressed";
5434 description { state: "landscape_focused" 0.0;
5435 inherit: "landscape" 0.0;
5438 style: "btn_naviframe_toolbar_pressed";
5445 ////////////////////////////////////////////////////////////////////
5446 group { name: "elm/button/base/toolbar/segmentedcontrol";
5448 image: "00_toolbar_button.png" COMP;
5449 image: "00_toolbar_button_press.png" COMP;
5450 image: "00_toolbar_button_dim.png" COMP;
5451 image: "00_button_icon_arrow.png" COMP;
5452 image: "00_button_icon_arrow_press.png" COMP;
5455 item: "focus_highlight" "on";
5458 style { name: "btn_toolbar_segmentedcontrol";
5459 base: "font=Tizen:style=Bold font_size="BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXT_FONT_SIZE_INC" align=center color=#ffffff ellipsis=1.0 wrap=none text_class=tizen";
5466 public button_state = BUTTON_STATE_ENABLED;
5469 part { name: "button_image";
5471 description { state: "default" 0.0;
5472 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
5473 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
5475 rel1.to: "padding_text_left_top";
5476 rel2.to: "padding_text_right_bottom";
5478 normal: "00_toolbar_button.png";
5479 border: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_BORDER_INC;
5483 description { state: "clicked" 0.0;
5484 inherit: "default" 0.0;
5485 image.normal: "00_toolbar_button_press.png";
5487 description { state: "disabled" 0.0;
5488 inherit: "default" 0.0;
5489 image.normal: "00_toolbar_button_dim.png";
5491 description { state: "focused" 0.0;
5492 inherit: "default" 0.0;
5493 image.normal: "00_toolbar_button_press.png";
5496 part { name: "focus_image";
5500 description { state: "default" 0.0;
5501 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
5502 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
5504 rel1.to : "button_image";
5505 rel2.to : "button_image";
5507 normal: "00_toolbar_button_focus.png";
5508 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
5512 description { state: "focused" 0.0;
5513 inherit: "default" 0.0;
5517 part { name: "padding_left_top";
5521 description { state: "default" 0.0;
5524 rel2.relative: 0.0 0.0;
5525 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
5529 part { name: "padding_right_bottom";
5533 description { state: "default" 0.0;
5535 rel1.relative: 1.0 1.0;
5536 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
5541 part { name: "padding_text_left_top";
5545 description { state: "default" 0.0;
5547 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
5549 rel1.to: "elm.text";
5557 part { name: "padding_text_right_bottom";
5561 description { state: "default" 0.0;
5562 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
5578 part { name: "elm.text";
5582 effect: FAR_SHADOW BOTTOM;
5584 description { state: "default" 0.0;
5587 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXTBLOCK_MIN_INC;
5590 to: "padding_left_top";
5594 to: "padding_right_bottom";
5596 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
5597 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5601 style: "btn_toolbar_segmentedcontrol";
5604 description { state: "visible" 0.0;
5605 inherit: "default" 0.0;
5608 description { state: "clicked" 0.0;
5609 inherit: "default" 0.0;
5611 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
5613 description { state: "disabled" 0.0;
5614 inherit: "default" 0.0;
5616 description { state: "disabled_visible" 0.0;
5617 inherit: "default" 0.0;
5618 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
5619 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5622 description { state: "focused" 0.0;
5623 inherit: "default" 0.0;
5625 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
5628 part { name: "icon_padding";
5631 description { state: "default" 0.0;
5640 rel2.to: "elm.text";
5643 part { name: "icon";
5645 clip_to: "icon_clipper";
5646 description { state: "default" 0.0;
5647 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5648 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5653 to_x: "icon_padding";
5659 to_x: "icon_padding";
5662 image.normal: "00_button_icon_arrow.png";
5664 description { state: "clicked" 0.0;
5665 inherit: "default" 0.0;
5666 image.normal: "00_button_icon_arrow_press.png";
5669 part { name: "icon_clipper";
5671 description { state: "default" 0.0;
5672 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_NORMAL_COLOR_INC;
5674 description { state: "clicked" 0.0;
5675 inherit: "default" 0.0;
5676 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_PRESSED_COLOR_INC;
5679 part { name: "disclip";
5681 description { state: "default" 0.0;
5682 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5684 description { state: "disabled" 0.0;
5685 inherit: "default" 0.0;
5686 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5689 part { name: "over2";
5692 ignore_flags: ON_HOLD;
5693 description { state: "default" 0.0;
5694 rel1.to: "button_image";
5695 rel2.to: "button_image";
5699 part { name: "over3";
5702 description { state: "default" 0.0;
5703 rel1.to: "button_image";
5704 rel2.to: "button_image";
5708 part { name: "disabler";
5710 description { state: "default" 0.0;
5711 rel1.to: "button_image";
5712 rel2.to: "button_image";
5716 description { state: "disabled" 0.0;
5717 inherit: "default" 0.0;
5723 program { name: "button_click";
5724 signal: "mouse,down,1";
5726 action: SIGNAL_EMIT "elm,action,press" "";
5727 after: "button_click_anim";
5729 program { name: "button_click_anim";
5730 action: STATE_SET "clicked" 0.0;
5731 target: "button_image";
5734 target: "icon_clipper";
5736 program { name: "button_double_click";
5737 signal: "mouse,down,1,double";
5739 after: "button_click_anim";
5741 program { name: "button_unpress";
5742 action: SIGNAL_EMIT "elm,action,unpress" "";
5744 program { name: "button_mouseout_clicked";
5745 signal: "mouse,up,1";
5750 get_state(PART:"elm.text", st, 30, vl);
5751 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5753 emit("elm,action,default,text,set", "");
5754 set_state(PART:"elm.text", "visible", 0.0);
5756 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5757 set_state(PART:"button_image", "default", 0.0);
5758 set_state(PART:"icon", "default", 0.0);
5759 set_state(PART:"icon_clipper", "default", 0.0);
5761 after: button_unpress;
5763 program { name: "touch_snd";
5764 signal: "mouse,clicked,1";
5766 action: PLAY_SAMPLE "touch_sound" 1.0;
5767 after: button_unclick3;
5769 program { name: "button_unclick3";
5770 action: SIGNAL_EMIT "elm,action,click" "";
5772 program { name: "text_show";
5773 signal: "elm,state,text,visible";
5776 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5777 set_state(PART:"elm.text", "visible", 0.0);
5779 set_state(PART:"elm.text", "disabled_visible", 0.0);
5782 program { name: "text_hide";
5783 signal: "elm,state,text,hidden";
5785 action: STATE_SET "default" 0.0;
5788 program { name: "disable";
5789 signal: "elm,state,disabled";
5791 action: STATE_SET "disabled" 0.0;
5792 target: "button_image";
5795 after: "disable_text";
5797 program { name: "disable_text";
5801 get_state(PART:"elm.text", st, 30, vl);
5802 if (!strcmp(st, "visible"))
5803 set_state(PART:"elm.text", "disabled_visible", 0.0);
5805 set_state(PART:"elm.text", "disabled", 0.0);
5806 set_int(button_state, BUTTON_STATE_DISABLED);
5809 program { name: "enable";
5810 signal: "elm,state,enabled";
5812 action: STATE_SET "default" 0.0;
5813 target: "button_image";
5816 after: "enable_text";
5818 program { name: "enable_text";
5822 get_state(PART:"elm.text", st, 30, vl);
5823 if (!strcmp(st, "disabled_visible"))
5824 set_state(PART:"elm.text", "visible", 0.0);
5826 set_state(PART:"elm.text", "default", 0.0);
5827 set_int(button_state, BUTTON_STATE_ENABLED);
5830 program { name: "action_focus";
5831 signal: "elm,action,focus_highlight,show";
5833 action: STATE_SET "focused" 0.0;
5834 target: "focus_image";
5836 program { name: "action_unfocus";
5837 signal: "elm,action,focus_highlight,hide";
5839 action: STATE_SET "default" 0.0;
5840 target: "focus_image";
5845 ////////////////////////////////////////////////////////////////////
5846 group { name: "elm/button/base/naviframe/title_icon";
5848 item: "focus_highlight" "on";
5851 image: "00_icon_focus.png" COMP;
5854 part { name: "button_image";
5857 description { state: "default" 0.0;
5859 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5860 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5862 description { state: "landscape" 0.0;
5864 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5865 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5868 part { name: "elm.swallow.content";
5871 clip_to: "elm.icon.clipper";
5872 description { state: "default" 0.0;
5874 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5876 rel1 { to: "button_image"; }
5877 rel2 { to: "button_image"; }
5879 description { state: "visible" 0.0;
5880 inherit: "default" 0.0;
5884 part { name: "elm.icon.clipper";
5886 description { state: "default" 0.0;
5887 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5889 description { state: "clicked" 0.0;
5890 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5892 description { state: "disabled" 0.0;
5893 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5896 part { name: "over2";
5898 ignore_flags: ON_HOLD;
5899 description { state: "default" 0.0;
5903 part { name: "over3";
5906 description { state: "default" 0.0;
5910 part { name: "disabler";
5912 description { state: "default" 0.0;
5916 description { state: "disabled" 0.0;
5917 inherit: "default" 0.0;
5923 program { name: "button_click";
5924 signal: "mouse,down,1";
5926 action: SIGNAL_EMIT "elm,action,press" "";
5927 after: "button_click_anim";
5929 program { name: "button_click_anim";
5931 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5934 program { name: "button_double_click";
5935 signal: "mouse,down,1,double";
5937 after: "button_click_anim";
5939 program { name: "button_unpress";
5940 action: SIGNAL_EMIT "elm,action,unpress" "";
5942 program { name: "button_mouseout_clicked";
5943 signal: "mouse,up,1";
5945 action: STATE_SET "default" 0.0;
5946 target: "elm.icon.clipper";
5947 after: button_unpress;
5949 program { name: "touch_snd";
5950 signal: "mouse,clicked,1";
5952 action: PLAY_SAMPLE "touch_sound" 1.0;
5953 after: button_unclick3;
5955 program { name: "button_unclick3";
5956 action: SIGNAL_EMIT "elm,action,click" "";
5958 program { name: "icon_show";
5959 signal: "elm,state,icon,visible";
5961 action: STATE_SET "visible" 0.0;
5962 target: "elm.swallow.content";
5964 program { name: "icon_hide";
5965 signal: "elm,state,icon,hidden";
5967 action: STATE_SET "default" 0.0;
5968 target: "elm.swallow.content";
5970 program { name: "disable";
5971 signal: "elm,state,disabled";
5974 set_state(PART:"disabler", "disabled", 0.0);
5975 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5978 program { name: "enable";
5979 signal: "elm,state,enabled";
5982 set_state(PART:"disabler", "default", 0.0);
5983 set_state(PART:"elm.icon.clipper", "default", 0.0);
5986 program { name: "change_to_landscape";
5987 signal: "elm,state,landscape";
5989 action: STATE_SET "landscape" 0.0;
5990 target: "button_image";
5992 program { name: "change_to_portrait";
5993 signal: "elm,state,portrait";
5995 action: STATE_SET "default" 0.0;
5996 target: "button_image";
5998 program { name: "landscape_mode";
6000 signal: "elm,state,orient,90";
6001 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6003 program { name: "landscape_mode2";
6005 signal: "elm,state,orient,270";
6006 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6008 program { name: "portrait_mode";
6010 signal: "elm,state,orient,0";
6011 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6013 program { name: "portrait_mode2";
6015 signal: "elm,state,orient,180";
6016 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6021 /////////////////////////////////////////////////////////////////////////////////////////
6022 group { name: "elm/button/base/naviframe/more/default";
6024 item: "focus_highlight" "on";
6027 image: "00_icon_more.png" COMP;
6028 image: "00_icon_focus.png" COMP;
6031 part { name: "button_image";
6034 description { state: "default" 0.0;
6035 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
6036 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
6039 description { state: "landscape" 0.0;
6040 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
6041 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
6045 part { name: "focus_image";
6049 description { state: "default" 0.0;
6051 rel1.to : "button_image";
6052 rel2.to : "button_image";
6054 normal: "00_icon_focus.png";
6058 description { state: "focused" 0.0;
6059 inherit: "default" 0.0;
6063 part { name: "more_image";
6066 clip_to: "more_image.clipper";
6067 description { state: "default" 0.0;
6068 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
6069 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
6071 rel1.to: "button_image";
6072 rel2.to: "button_image";
6073 image.normal: "00_icon_more.png";
6076 part { name: "more_image.clipper";
6078 description { state: "default" 0.0;
6079 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
6081 description { state: "clicked" 0.0;
6082 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
6084 description { state: "disabled" 0.0;
6085 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
6088 part { name: "over2";
6090 ignore_flags: ON_HOLD;
6091 description { state: "default" 0.0;
6095 part { name: "over3";
6098 description { state: "default" 0.0;
6102 part { name: "disabler";
6104 description { state: "default" 0.0;
6108 description { state: "disabled" 0.0;
6109 inherit: "default" 0.0;
6115 program { name: "button_click";
6116 signal: "mouse,down,1";
6118 action: SIGNAL_EMIT "elm,action,press" "";
6119 after: "button_click_anim";
6121 program { name: "button_click_anim";
6123 set_state(PART:"more_image.clipper", "clicked", 0.0);
6126 program { name: "button_double_click";
6127 signal: "mouse,down,1,double";
6129 after: "button_click_anim";
6131 program { name: "button_unclick";
6132 signal: "mouse,up,1";
6134 action: SIGNAL_EMIT "elm,action,unpress" "";
6135 after: "button_unclick_anim";
6137 program { name: "button_unclick_anim";
6139 set_state(PART:"more_image.clipper", "default", 0.0);
6142 program { name: "touch_snd";
6143 signal: "mouse,clicked,1";
6145 action: PLAY_SAMPLE "touch_sound" 1.0;
6146 after: button_unclick3;
6148 program { name: "button_unclick3";
6149 action: SIGNAL_EMIT "elm,action,click" "";
6151 program { name: "disable";
6152 signal: "elm,state,disabled";
6155 set_state(PART:"disabler", "disabled", 0.0);
6156 set_state(PART:"more_image.clipper", "disabled", 0.0);
6159 program { name: "enable";
6160 signal: "elm,state,enabled";
6163 set_state(PART:"disabler", "default", 0.0);
6164 set_state(PART:"more_image.clipper", "default", 0.0);
6167 program { name: "change_to_landscape";
6168 signal: "elm,state,landscape";
6170 action: STATE_SET "landscape" 0.0;
6171 target: "button_image";
6173 program { name: "change_to_portrait";
6174 signal: "elm,state,portrait";
6176 action: STATE_SET "default" 0.0;
6177 target: "button_image";
6179 program { name: "landscape_mode";
6181 signal: "elm,state,orient,90";
6182 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6184 program { name: "landscape_mode2";
6186 signal: "elm,state,orient,270";
6187 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6189 program { name: "portrait_mode";
6191 signal: "elm,state,orient,0";
6192 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6194 program { name: "portrait_mode2";
6196 signal: "elm,state,orient,180";
6197 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6199 program { name: "action_focus";
6200 signal: "elm,action,focus_highlight,show";
6202 action: STATE_SET "focused" 0.0;
6203 target: "focus_image";
6205 program { name: "action_unfocus";
6206 signal: "elm,action,focus_highlight,hide";
6208 action: STATE_SET "default" 0.0;
6209 target: "focus_image";
6214 ///////////////////////////////////////////////////////////////////////////////////////
6215 group { name: "elm/button/base/tickernoti";
6217 image: "00_notification_button.png" COMP;
6218 image: "00_notification_button_press.png" COMP;
6219 image: "00_notification_button_dim.png" COMP;
6222 public button_state = BUTTON_STATE_ENABLED;
6225 part { name: "button_image";
6227 description { state: "default" 0.0;
6228 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6229 max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6231 normal: "00_notification_button.png";
6232 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
6236 description { state: "clicked" 0.0;
6237 inherit: "default" 0.0;
6238 image.normal: "00_notification_button_press.png";
6240 description { state: "disabled" 0.0;
6241 inherit: "default" 0.0;
6242 image.normal: "00_notification_button_dim.png";
6244 description { state: "focused" 0.0;
6245 inherit: "default" 0.0;
6246 image.normal: "00_notification_button_press.png";
6249 part { name: "padding_left_top";
6253 description { state: "default" 0.0;
6256 rel2.relative: 0.0 0.0;
6257 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
6265 description { state: "default" 0.0;
6266 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6269 description { state: "visible" 0.0;
6270 inherit: "default" 0.0;
6272 description { state: "icononly" 0.0;
6273 inherit: "default" 0.0;
6276 part { name: "padding_right_bottom";
6280 description { state: "default" 0.0;
6282 rel1.relative: 1.0 1.0;
6283 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
6288 part { name: "icon_rect";
6292 description { state: "default" 0.0;
6298 to: "padding_left_top";
6302 to_x: "padding_left_top";
6303 to_y: "padding_right_bottom";
6307 description { state: "visible" 0.0;
6308 inherit: "default" 0.0;
6309 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
6310 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
6312 description { state: "icononly" 0.0;
6313 inherit: "default" 0.0;
6316 part { name: "padding_after_icon";
6320 description { state: "default" 0.0; //when only icon or no icon is there
6329 rel2.to: "icon_rect";
6331 description { state: "visible" 0.0;
6332 inherit: "default" 0.0;
6333 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6335 description { state: "icononly" 0.0;
6336 inherit: "default" 0.0;
6339 part { name: "padding_before_text";
6343 description { state: "default" 0.0; //when only icon or no icon is there
6347 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6351 to_y: "padding_left_top";
6356 to_y: "padding_right_bottom";
6360 part { name: "elm.swallow.content";
6364 description { state: "default" 0.0;
6370 to: "padding_left_top";
6374 to_x: "padding_left_top";
6375 to_y: "padding_right_bottom";
6378 description { state: "visible" 0.0;
6380 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6381 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6385 to_x: "padding_before_text";
6386 to_y: "padding_left_top";
6390 to_x: "padding_before_text";
6391 to_y: "padding_right_bottom";
6394 description { state: "icononly" 0.0;
6395 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6396 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6399 part { name: "elm.text";
6402 effect: FAR_SHADOW BOTTOM;
6405 description { state: "default" 0.0;
6409 to_x: "padding_after_icon";
6410 to_y: "padding_left_top";
6414 to: "padding_right_bottom";
6416 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
6417 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6419 font: "Tizen:style=Regular";
6420 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
6421 text_class: "tizen";
6424 description { state: "visible" 0.0;
6425 inherit: "default" 0.0;
6428 description { state: "clicked" 0.0;
6429 inherit: "default" 0.0;
6431 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6433 description { state: "disabled" 0.0;
6434 inherit: "default" 0.0;
6436 description { state: "disabled_visible" 0.0;
6437 inherit: "default" 0.0;
6438 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
6439 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6442 description { state: "focused" 0.0;
6443 inherit: "default" 0.0;
6445 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6448 part { name: "over2";
6451 ignore_flags: ON_HOLD;
6452 description { state: "default" 0.0;
6456 part { name: "over3";
6459 description { state: "default" 0.0;
6463 part { name: "clipper";
6465 description { state: "default" 0.0;
6466 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
6468 description { state: "disabled" 0.0;
6469 inherit: "default" 0.0;
6470 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
6473 part { name: "disabler";
6475 description { state: "default" 0.0;
6479 description { state: "disabled" 0.0;
6480 inherit: "default" 0.0;
6486 program { name: "button_click";
6487 signal: "mouse,down,1";
6489 action: SIGNAL_EMIT "elm,action,press" "";
6490 after: "button_click_anim";
6492 program { name: "button_click_anim";
6493 action: STATE_SET "clicked" 0.0;
6494 target: "button_image";
6495 after: "text_clicked";
6497 program { name: "text_clicked";
6501 get_state(PART:"elm.text", st, 30, vl);
6502 if (!strcmp(st, "visible"))
6503 set_state(PART:"elm.text", "clicked", 0.0);
6506 program { name: "button_double_click";
6507 signal: "mouse,down,1,double";
6509 after: "button_click_anim";
6511 program { name: "button_unpress";
6512 action: SIGNAL_EMIT "elm,action,unpress" "";
6514 program { name: "button_mouseout_clicked";
6515 signal: "mouse,up,1";
6520 get_state(PART:"elm.swallow.content", st, 30, vl);
6521 if (strcmp(st, "icononly"))
6523 emit("elm,action,default,text,set", "");
6524 set_state(PART:"elm.text", "visible", 0.0);
6526 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6527 set_state(PART:"button_image", "default", 0.0);
6529 after: button_unpress;
6531 program { name: "touch_snd";
6532 signal: "mouse,clicked,1";
6534 action: PLAY_SAMPLE "touch_sound" 1.0;
6535 after: button_unclick3;
6537 program { name: "button_unclick3";
6538 action: SIGNAL_EMIT "elm,action,click" "";
6540 program { name: "text_show";
6541 signal: "elm,state,text,visible";
6546 get_state(PART:"elm.swallow.content", st, 30, vl);
6547 if (!strcmp(st, "icononly"))
6549 set_state(PART:"elm.swallow.content", "visible", 0.0);
6550 set_state(PART:"icon_rect", "visible", 0.0);
6551 set_state(PART:"padding_after_icon", "visible", 0.0);
6552 set_state(PART:"bg", "visible", 0.0);
6554 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6555 set_state(PART:"elm.text", "visible", 0.0);
6557 set_state(PART:"elm.text", "disabled_visible", 0.0);
6560 program { name: "text_hide";
6561 signal: "elm,state,text,hidden";
6566 get_state(PART:"elm.swallow.content", st, 30, vl);
6567 if (!strcmp(st, "visible"))
6569 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6570 set_state(PART:"icon_rect", "icononly", 0.0);
6571 set_state(PART:"padding_after_icon", "icononly", 0.0);
6572 set_state(PART:"bg", "icononly", 0.0);
6574 set_state(PART:"elm.text", "default", 0.0);
6577 program { name: "icon_show";
6578 signal: "elm,state,icon,visible";
6583 get_state(PART:"elm.text", st, 30, vl);
6584 if (!strcmp(st, "visible"))
6586 set_state(PART:"elm.swallow.content", "visible", 0.0);
6587 set_state(PART:"icon_rect", "visible", 0.0);
6588 set_state(PART:"padding_after_icon", "visible", 0.0);
6589 set_state(PART:"bg", "visible", 0.0);
6593 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6594 set_state(PART:"icon_rect", "icononly", 0.0);
6595 set_state(PART:"padding_after_icon", "icononly", 0.0);
6596 set_state(PART:"bg", "icononly", 0.0);
6600 program { name: "icon_hide";
6601 signal: "elm,state,icon,hidden";
6603 action: STATE_SET "default" 0.0;
6604 target: "elm.swallow.content";
6605 target: "padding_after_icon";
6606 target: "icon_rect";
6609 program { name: "disable";
6610 signal: "elm,state,disabled";
6612 action: STATE_SET "disabled" 0.0;
6613 target: "button_image";
6616 after: "disable_text";
6618 program { name: "disable_text";
6622 get_state(PART:"elm.text", st, 30, vl);
6623 if (!strcmp(st, "visible"))
6624 set_state(PART:"elm.text", "disabled_visible", 0.0);
6626 set_state(PART:"elm.text", "disabled", 0.0);
6627 set_int(button_state, BUTTON_STATE_DISABLED);
6630 program { name: "enable";
6631 signal: "elm,state,enabled";
6633 action: STATE_SET "default" 0.0;
6634 target: "button_image";
6637 after: "enable_text";
6639 program { name: "enable_text";
6643 get_state(PART:"elm.text", st, 30, vl);
6644 if (!strcmp(st, "disabled_visible"))
6645 set_state(PART:"elm.text", "visible", 0.0);
6647 set_state(PART:"elm.text", "default", 0.0);
6648 set_int(button_state, BUTTON_STATE_ENABLED);
6651 program { name: "focused";
6652 //signal: "elm,action,focus";
6654 action: STATE_SET "focused" 0.0;
6655 target: "button_image";
6658 program { name: "unfocused";
6659 //signal: "elm,action,unfocus";
6661 action: STATE_SET "default" 0.0;
6662 target: "button_image";
6663 after: "unfocus_text";
6665 program { name: "unfocus_text";
6666 action: STATE_SET "visible" 0.0;
6672 ///////////////////////////////////////////////////////////////////////////////////////
6673 group { name: "elm/button/base/expandable_number";
6674 alias: "elm/button/base/text_only/expandable_number";
6676 item: "focus_highlight" "on";
6679 image: "00_button_01.png" COMP;
6680 image: "00_button_01_press.png" COMP;
6681 image: "00_button_01_dim.png" COMP;
6682 image: "00_arrow_expand.png" COMP;
6683 image: "00_button_01_focus.png" COMP;
6686 public button_state = BUTTON_STATE_ENABLED;
6689 part { name: "button_image";
6691 description { state: "default" 0.0;
6692 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6693 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6695 normal: "00_button_01.png";
6696 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6700 description { state: "clicked" 0.0;
6701 inherit: "default" 0.0;
6702 image.normal: "00_button_01_press.png";
6704 description { state: "disabled" 0.0;
6705 inherit: "default" 0.0;
6706 image.normal: "00_button_01_dim.png";
6708 description { state: "focused" 0.0;
6709 inherit: "default" 0.0;
6710 image.normal: "00_button_01_press.png";
6713 part { name: "focus_image";
6717 description { state: "default" 0.0;
6718 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6719 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6721 rel1.to : "button_image";
6722 rel2.to : "button_image";
6724 normal: "00_button_01_focus.png";
6725 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6729 description { state: "focused" 0.0;
6730 inherit: "default" 0.0;
6734 part { name: "padding_left_top";
6738 description { state: "default" 0.0;
6741 rel2.relative: 0.0 0.0;
6742 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6746 part { name: "padding_right_bottom";
6750 description { state: "default" 0.0;
6753 rel1.relative: 1.0 1.0;
6754 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6758 part { name: "icon_rect";
6762 description { state: "default" 0.0;
6764 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6765 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6769 to_x: "padding_right_bottom";
6770 to_y: "padding_left_top";
6774 to: "padding_right_bottom";
6779 part { name: "arrow_expand";
6781 clip_to: "icon_clipper";
6783 description { state: "default" 0.0;
6785 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6786 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6788 rel1.to: "icon_rect";
6789 rel2.to: "icon_rect";
6790 image.normal:"00_arrow_expand.png";
6793 part { name: "elm.text";
6796 effect: SHADOW BOTTOM;
6798 description { state: "default" 0.0;
6799 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6800 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6804 to: "padding_left_top";
6808 to_x:"padding_left_top";
6809 to_y:"padding_right_bottom";
6812 color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6813 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6815 font: "Tizen:style=Regular";
6816 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6820 text_class: "tizen";
6823 description { state: "visible" 0.0;
6824 inherit: "default" 0.0;
6826 description { state: "clicked" 0.0;
6827 inherit: "default" 0.0;
6828 color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
6830 description { state: "disabled" 0.0;
6831 inherit: "default" 0.0;
6833 description { state: "disabled_visible" 0.0;
6834 inherit: "default" 0.0;
6835 color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6836 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
6838 description { state: "focused" 0.0;
6839 inherit: "default" 0.0;
6840 color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6843 part { name: "icon_clipper";
6846 description { state: "default" 0.0;
6847 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6849 description { state: "clicked" 0.0;
6850 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6852 description { state: "disabled" 0.0;
6853 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6856 part { name: "over2";
6859 ignore_flags: ON_HOLD;
6860 description { state: "default" 0.0;
6864 part { name: "over3";
6867 description { state: "default" 0.0;
6871 part { name: "disabler";
6873 description { state: "default" 0.0;
6877 description { state: "disabled" 0.0;
6878 inherit: "default" 0.0;
6884 program { name: "button_click";
6885 signal: "mouse,down,1";
6887 action: SIGNAL_EMIT "elm,action,press" "";
6888 after: "button_click_anim";
6890 program { name: "button_click_anim";
6891 action: STATE_SET "clicked" 0.0;
6892 target: "button_image";
6893 target: "icon_clipper";
6894 after: "text_clicked";
6896 program { name: "text_clicked";
6900 get_state(PART:"elm.text", st, 30, vl);
6901 if (!strcmp(st, "visible"))
6902 set_state(PART:"elm.text", "clicked", 0.0);
6905 program { name: "button_double_click";
6906 signal: "mouse,down,1,double";
6908 after: "button_click_anim";
6910 program { name: "button_unpress";
6911 action: SIGNAL_EMIT "elm,action,unpress" "";
6913 program { name: "button_mouseout_clicked";
6914 signal: "mouse,up,1";
6917 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6919 set_state(PART:"button_image", "default", 0.0);
6920 set_state(PART:"elm.text", "visible", 0.0);
6921 set_state(PART:"icon_clipper", "default", 0.0);
6924 after: button_unpress;
6926 program { name: "touch_snd";
6927 signal: "mouse,clicked,1";
6929 action: PLAY_SAMPLE "touch_sound" 1.0;
6930 after: button_unclick3;
6932 program { name: "button_unclick3";
6933 action: SIGNAL_EMIT "elm,action,click" "";
6935 program { name: "text_show";
6936 signal: "elm,state,text,visible";
6939 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6940 set_state(PART:"elm.text", "visible", 0.0);
6942 set_state(PART:"elm.text", "disabled_visible", 0.0);
6945 program { name: "text_hide";
6946 signal: "elm,state,text,hidden";
6949 set_state(PART:"elm.text", "default", 0.0);
6952 program { name: "disable";
6953 signal: "elm,state,disabled";
6955 action: STATE_SET "disabled" 0.0;
6956 target: "button_image";
6958 target: "icon_clipper";
6959 after: "disable_text";
6961 program { name: "disable_text";
6965 get_state(PART:"elm.text", st, 30, vl);
6966 if (!strcmp(st, "visible"))
6967 set_state(PART:"elm.text", "disabled_visible", 0.0);
6969 set_state(PART:"elm.text", "disabled", 0.0);
6970 set_int(button_state, BUTTON_STATE_DISABLED);
6973 program { name: "enable";
6974 signal: "elm,state,enabled";
6976 action: STATE_SET "default" 0.0;
6977 target: "button_image";
6979 target: "icon_clipper";
6980 after: "enable_text";
6982 program { name: "enable_text";
6986 get_state(PART:"elm.text", st, 30, vl);
6987 if (!strcmp(st, "disabled_visible"))
6988 set_state(PART:"elm.text", "visible", 0.0);
6990 set_state(PART:"elm.text", "default", 0.0);
6991 set_int(button_state, BUTTON_STATE_ENABLED);
6994 program { name: "action_focus";
6995 signal: "elm,action,focus_highlight,show";
6997 action: STATE_SET "focused" 0.0;
6998 target: "focus_image";
7000 program { name: "action_unfocus";
7001 signal: "elm,action,focus_highlight,hide";
7003 action: STATE_SET "default" 0.0;
7004 target: "focus_image";
7009 ////////////////////////////////////////////////////////////////////////
7010 group { name: "elm/button/base/bubble_sent";
7011 inherit: "elm/button/base/style1";
7013 image: "00_messagebubble_button_sent.png" COMP;
7014 image: "00_messagebubble_button_sent_press.png" COMP;
7015 image: "00_messagebubble_button_sent_dim.png" COMP;
7018 part { name: "button_image";
7020 description { state: "default" 0.0;
7022 normal: "00_messagebubble_button_sent.png";
7023 border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
7027 description { state: "clicked" 0.0;
7028 inherit: "default" 0.0;
7029 image.normal: "00_messagebubble_button_sent_press.png";
7031 description { state: "disabled" 0.0;
7032 inherit: "default" 0.0;
7033 image.normal: "00_messagebubble_button_sent_dim.png";
7035 description { state: "focused" 0.0;
7036 inherit: "default" 0.0;
7037 image.normal: "00_messagebubble_button_sent_press.png";
7040 part { name: "elm.text";
7043 effect: FAR_SHADOW BOTTOM;
7046 description { state: "default" 0.0;
7050 to_x: "padding_after_icon";
7051 to_y: "padding_left_top";
7055 to: "padding_right_bottom";
7057 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
7058 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7060 font: "Tizen:style=Regular";
7061 size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
7064 text_class: "tizen";
7067 description { state: "visible" 0.0;
7068 inherit: "default" 0.0;
7071 description { state: "clicked" 0.0;
7072 inherit: "default" 0.0;
7074 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
7076 description { state: "disabled" 0.0;
7077 inherit: "default" 0.0;
7079 description { state: "disabled_visible" 0.0;
7080 inherit: "default" 0.0;
7081 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
7084 description { state: "focused" 0.0;
7085 inherit: "default" 0.0;
7087 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7093 ////////////////////////////////////////////////////////////////////////
7094 group { name: "elm/button/base/bubble_sent/multiline";
7095 inherit: "elm/button/base/bubble_sent";
7097 style { name: "bubble_sent_multiline";
7098 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";
7105 part { name: "elm.text";
7108 effect: FAR_SHADOW BOTTOM;
7111 description { state: "default" 0.0;
7116 to_x: "padding_after_icon";
7117 to_y: "padding_left_top";
7121 to: "padding_right_bottom";
7123 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
7124 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7126 style: "bubble_sent_multiline";
7129 description { state: "visible" 0.0;
7130 inherit: "default" 0.0;
7133 description { state: "clicked" 0.0;
7134 inherit: "default" 0.0;
7136 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
7138 description { state: "disabled" 0.0;
7139 inherit: "default" 0.0;
7141 description { state: "disabled_visible" 0.0;
7142 inherit: "default" 0.0;
7143 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
7146 description { state: "focused" 0.0;
7147 inherit: "default" 0.0;
7149 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7155 ///////////////////////////////////////////////////////////////////////
7156 group { name: "elm/button/base/bubble_receive";
7157 inherit: "elm/button/base/style1";
7159 image: "00_messagebubble_button_receive.png" COMP;
7160 image: "00_messagebubble_button_receive_press.png" COMP;
7161 image: "00_messagebubble_button_receive_dim.png" COMP;
7164 part { name: "button_image";
7166 description { state: "default" 0.0;
7168 normal: "00_messagebubble_button_receive.png";
7169 border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
7173 description { state: "clicked" 0.0;
7174 inherit: "default" 0.0;
7175 image.normal: "00_messagebubble_button_receive_press.png";
7177 description { state: "disabled" 0.0;
7178 inherit: "default" 0.0;
7179 image.normal: "00_messagebubble_button_receive_dim.png";
7181 description { state: "focused" 0.0;
7182 inherit: "default" 0.0;
7183 image.normal: "00_messagebubble_button_receive_press.png";
7186 part { name: "elm.text";
7189 effect: SHADOW BOTTOM;
7192 description { state: "default" 0.0;
7196 to_x: "padding_after_icon";
7197 to_y: "padding_left_top";
7201 to: "padding_right_bottom";
7203 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
7204 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7206 font: "Tizen:style=Regular";
7207 size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
7210 text_class: "tizen";
7213 description { state: "visible" 0.0;
7214 inherit: "default" 0.0;
7217 description { state: "clicked" 0.0;
7218 inherit: "default" 0.0;
7220 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
7222 description { state: "disabled" 0.0;
7223 inherit: "default" 0.0;
7225 description { state: "disabled_visible" 0.0;
7226 inherit: "default" 0.0;
7227 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
7230 description { state: "focused" 0.0;
7231 inherit: "default" 0.0;
7233 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7239 ///////////////////////////////////////////////////////////////////////
7240 group { name: "elm/button/base/bubble_receive/multiline";
7241 inherit: "elm/button/base/bubble_receive";
7243 style { name: "bubble_receive_multiline";
7244 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";
7251 part { name: "elm.text";
7254 effect: SHADOW BOTTOM;
7257 description { state: "default" 0.0;
7262 to_x: "padding_after_icon";
7263 to_y: "padding_left_top";
7267 to: "padding_right_bottom";
7269 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
7270 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7272 style: "btn_style1_multiline";
7275 description { state: "visible" 0.0;
7276 inherit: "default" 0.0;
7279 description { state: "clicked" 0.0;
7280 inherit: "default" 0.0;
7282 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
7284 description { state: "disabled" 0.0;
7285 inherit: "default" 0.0;
7287 description { state: "disabled_visible" 0.0;
7288 inherit: "default" 0.0;
7289 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
7292 description { state: "focused" 0.0;
7293 inherit: "default" 0.0;
7295 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7301 ///////////////////////////////////////////////////////////////////////
7302 group { name: "elm/button/base/bubble_circle/receive";
7304 image: "00_messagebubble_circle_receive.png" COMP;
7305 image: "00_messagebubble_circle_receive_press.png" COMP;
7306 image: "00_messagebubble_circle_receive_dim.png" COMP;
7307 image: "00_button_right.png" COMP;
7308 image: "00_button_right_press.png" COMP;
7311 part { name: "button_image";
7313 description { state: "default" 0.0;
7314 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7315 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7316 image.normal: "00_messagebubble_circle_receive.png";
7319 state: "clicked" 0.0;
7320 inherit: "default" 0.0;
7321 image.normal: "00_messagebubble_circle_receive_press.png";
7324 state: "disabled" 0.0;
7325 inherit: "default" 0.0;
7326 image.normal: "00_messagebubble_circle_receive_dim.png";
7329 part { name: "image";
7331 clip_to: "icon_clipper";
7332 description { state: "default" 0.0;
7333 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7334 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7335 image.normal: "00_button_right.png";
7338 state: "clicked" 0.0;
7339 inherit: "default" 0.0;
7340 image.normal: "00_button_right_press.png";
7343 state: "disabled" 0.0;
7344 inherit: "default" 0.0;
7347 part { name: "icon_clipper";
7350 description { state: "default" 0.0;
7351 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
7353 description { state: "clicked" 0.0;
7354 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
7356 description { state: "disabled" 0.0;
7357 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
7360 part { name: "over1";
7362 ignore_flags: ON_HOLD;
7363 description { state: "default" 0.0;
7367 part { name: "over2";
7370 description { state: "default" 0.0;
7374 part { name: "disabler";
7376 description { state: "default" 0.0;
7380 description { state: "disabled" 0.0;
7381 inherit: "default" 0.0;
7387 program { name: "button_click";
7388 signal: "mouse,down,1";
7390 action: SIGNAL_EMIT "elm,action,press" "";
7391 after: "button_click_anim";
7393 program { name: "button_click_anim";
7394 action: STATE_SET "clicked" 0.0;
7395 target: "button_image";
7397 target: "icon_clipper";
7399 program { name: "button_double_click";
7400 signal: "mouse,down,1,double";
7402 after: "button_click_anim";
7404 program { name: "button_unclick";
7405 signal: "mouse,up,1";
7407 action: SIGNAL_EMIT "elm,action,unpress" "";
7408 after: "button_unclick_anim";
7410 program { name: "button_unclick_anim";
7411 action: STATE_SET "default" 0.0;
7412 target: "button_image";
7414 target: "icon_clipper";
7416 program { name: "touch_snd";
7417 signal: "mouse,clicked,1";
7419 action: PLAY_SAMPLE "touch_sound" 1.0;
7420 after: button_unclick3;
7422 program { name: "button_unclick3";
7423 action: SIGNAL_EMIT "elm,action,click" "";
7425 program { name: "disable";
7426 signal: "elm,state,disabled";
7428 action: STATE_SET "disabled" 0.0;
7430 target: "button_image";
7431 target: "icon_clipper";
7434 program { name: "enable";
7435 signal: "elm,state,enabled";
7437 action: STATE_SET "default" 0.0;
7439 target: "button_image";
7440 target: "icon_clipper";
7445 ///////////////////////////////////////////////////////////////////////
7446 group { name: "elm/button/base/bubble_circle/sent";
7448 image: "00_messagebubble_circle_sent.png" COMP;
7449 image: "00_messagebubble_circle_sent_press.png" COMP;
7450 image: "00_messagebubble_circle_sent_dim.png" COMP;
7451 image: "00_button_right.png" COMP;
7452 image: "00_button_right_press.png" COMP;
7455 part { name: "button_image";
7457 description { state: "default" 0.0;
7458 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7459 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7460 image.normal: "00_messagebubble_circle_sent.png";
7463 state: "clicked" 0.0;
7464 inherit: "default" 0.0;
7465 image.normal: "00_messagebubble_circle_sent_press.png";
7468 state: "disabled" 0.0;
7469 inherit: "default" 0.0;
7470 image.normal: "00_messagebubble_circle_sent_dim.png";
7473 part { name: "image";
7475 clip_to: "icon_clipper";
7476 description { state: "default" 0.0;
7477 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7478 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7479 image.normal: "00_button_right.png";
7482 state: "clicked" 0.0;
7483 inherit: "default" 0.0;
7484 image.normal: "00_button_right_press.png";
7487 state: "disabled" 0.0;
7488 inherit: "default" 0.0;
7491 part { name: "icon_clipper";
7494 description { state: "default" 0.0;
7495 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
7497 description { state: "clicked" 0.0;
7498 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
7500 description { state: "disabled" 0.0;
7501 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
7504 part { name: "over1";
7506 ignore_flags: ON_HOLD;
7507 description { state: "default" 0.0;
7511 part { name: "over2";
7514 description { state: "default" 0.0;
7518 part { name: "disabler";
7520 description { state: "default" 0.0;
7524 description { state: "disabled" 0.0;
7525 inherit: "default" 0.0;
7531 program { name: "button_click";
7532 signal: "mouse,down,1";
7534 action: SIGNAL_EMIT "elm,action,press" "";
7535 after: "button_click_anim";
7537 program { name: "button_click_anim";
7538 action: STATE_SET "clicked" 0.0;
7539 target: "button_image";
7541 target: "icon_clipper";
7543 program { name: "button_double_click";
7544 signal: "mouse,down,1,double";
7546 after: "button_click_anim";
7548 program { name: "button_unclick";
7549 signal: "mouse,up,1";
7551 action: SIGNAL_EMIT "elm,action,unpress" "";
7552 after: "button_unclick_anim";
7554 program { name: "button_unclick_anim";
7555 action: STATE_SET "default" 0.0;
7556 target: "button_image";
7558 target: "icon_clipper";
7560 program { name: "touch_snd";
7561 signal: "mouse,clicked,1";
7563 action: PLAY_SAMPLE "touch_sound" 1.0;
7564 after: button_unclick3;
7566 program { name: "button_unclick3";
7567 action: SIGNAL_EMIT "elm,action,click" "";
7569 program { name: "disable";
7570 signal: "elm,state,disabled";
7572 action: STATE_SET "disabled" 0.0;
7574 target: "button_image";
7575 target: "icon_clipper";
7577 program { name: "enable";
7578 signal: "elm,state,enabled";
7580 action: STATE_SET "default" 0.0;
7582 target: "button_image";
7583 target: "icon_clipper";
7588 //////////////////////////////////////////////////////////////////////////////////////
7589 group { name: "elm/button/base/editfield_rename";
7591 image: "00_edit_field_rename.png" COMP;
7594 part { name: "button_image";
7597 description { state: "default" 0.0;
7600 description { state: "clicked" 0.0;
7601 inherit: "default" 0.0;
7603 description { state: "disabled" 0.0;
7604 inherit: "default" 0.0;
7606 description { state: "focused" 0.0;
7607 inherit: "default" 0.0;
7610 part { name: "rename_button";
7613 clip_to: "rename_button.clipper";
7614 description { state: "default" 0.0;
7615 min: BUTTON_EDITFIELD_RENAME_BUTTON_MIN_MAX_INC;
7616 max: BUTTON_EDITFIELD_RENAME_BUTTON_MIN_MAX_INC;
7619 image.normal: "00_edit_field_rename.png";
7622 part { name: "rename_button.clipper";
7624 description { state: "default" 0.0;
7625 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7627 description { state: "clicked" 0.0;
7628 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7630 description { state: "disabled" 0.0;
7631 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7634 part { name: "over2";
7636 ignore_flags: ON_HOLD;
7637 description { state: "default" 0.0;
7641 part { name: "over3";
7644 description { state: "default" 0.0;
7648 part { name: "disabler";
7650 description { state: "default" 0.0;
7654 description { state: "disabled" 0.0;
7655 inherit: "default" 0.0;
7661 program { name: "button_click";
7662 signal: "mouse,down,1";
7664 action: SIGNAL_EMIT "elm,action,press" "";
7665 after: "button_click_anim";
7667 program { name: "button_click_anim";
7668 action: STATE_SET "clicked" 0.0;
7669 target: "button_image";
7670 target: "rename_button.clipper";
7672 program { name: "button_double_click";
7673 signal: "mouse,down,1,double";
7675 after: "button_click_anim";
7677 program { name: "button_unclick";
7678 signal: "mouse,up,1";
7680 action: SIGNAL_EMIT "elm,action,unpress" "";
7681 after: "button_unclick_anim";
7683 program { name: "button_unclick_anim";
7684 action: STATE_SET "default" 0.0;
7685 target: "button_image";
7686 target: "rename_button.clipper";
7688 program { name: "touch_snd";
7689 signal: "mouse,clicked,1";
7691 action: PLAY_SAMPLE "touch_sound" 1.0;
7692 after: "button_unclick3";
7694 program { name: "button_unclick3";
7695 action: SIGNAL_EMIT "elm,action,click" "";
7697 program { name: "disable";
7698 signal: "elm,state,disabled";
7700 action: STATE_SET "disabled" 0.0;
7701 target: "button_image";
7703 target: "rename_button.clipper";
7705 program { name: "enable";
7706 signal: "elm,state,enabled";
7708 action: STATE_SET "default" 0.0;
7709 target: "button_image";
7711 target: "rename_button.clipper";
7715 group { name: "elm/button/base/editfield_clear";
7717 image: "00_edit_field_clear.png" COMP;
7720 part { name: "button_image";
7723 description { state: "default" 0.0;
7726 description { state: "clicked" 0.0;
7727 inherit: "default" 0.0;
7729 description { state: "disabled" 0.0;
7730 inherit: "default" 0.0;
7732 description { state: "focused" 0.0;
7733 inherit: "default" 0.0;
7736 part { name: "clear_button";
7739 clip_to: "clear_button.clipper";
7740 description { state: "default" 0.0;
7741 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7742 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7745 image.normal: "00_edit_field_clear.png";
7748 part { name: "clear_button.clipper";
7750 description { state: "default" 0.0;
7751 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7753 description { state: "clicked" 0.0;
7754 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7756 description { state: "disabled" 0.0;
7757 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7760 part { name: "over2";
7762 ignore_flags: ON_HOLD;
7763 description { state: "default" 0.0;
7767 part { name: "over3";
7770 description { state: "default" 0.0;
7774 part { name: "disabler";
7776 description { state: "default" 0.0;
7780 description { state: "disabled" 0.0;
7781 inherit: "default" 0.0;
7787 program { name: "button_click";
7788 signal: "mouse,down,1";
7790 action: SIGNAL_EMIT "elm,action,press" "";
7791 after: "button_click_anim";
7793 program { name: "button_click_anim";
7794 action: STATE_SET "clicked" 0.0;
7795 target: "button_image";
7796 target: "clear_button.clipper";
7798 program { name: "button_double_click";
7799 signal: "mouse,down,1,double";
7801 after: "button_click_anim";
7803 program { name: "button_unclick";
7804 signal: "mouse,up,1";
7806 action: SIGNAL_EMIT "elm,action,unpress" "";
7807 after: "button_unclick_anim";
7809 program { name: "button_unclick_anim";
7810 action: STATE_SET "default" 0.0;
7811 target: "button_image";
7812 target: "clear_button.clipper";
7814 program { name: "touch_snd";
7815 signal: "mouse,clicked,1";
7817 action: PLAY_SAMPLE "touch_sound" 1.0;
7818 after: button_unclick3;
7820 program { name: "button_unclick3";
7821 action: SIGNAL_EMIT "elm,action,click" "";
7823 program { name: "disable";
7824 signal: "elm,state,disabled";
7826 action: STATE_SET "disabled" 0.0;
7827 target: "button_image";
7829 target: "clear_button.clipper";
7831 program { name: "enable";
7832 signal: "elm,state,enabled";
7834 action: STATE_SET "default" 0.0;
7835 target: "button_image";
7837 target: "clear_button.clipper";
7842 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
7843 group { name: "elm/button/base/"style_name; \
7845 item: "focus_highlight" "on"; \
7848 image: image_normal COMP; \
7851 part { name: "elm.swallow.content"; \
7854 description { state: "default" 0.0; \
7857 part { name: "focus_image"; \
7861 description { state: "default" 0.0; \
7864 normal: image_normal; \
7869 description { state: "focused" 0.0; \
7870 inherit: "default" 0.0; \
7874 part { name: "over2"; \
7877 ignore_flags: ON_HOLD; \
7878 description { state: "default" 0.0; \
7882 part { name: "over3"; \
7885 description { state: "default" 0.0; \
7891 program { name: "button_click"; \
7892 signal: "mouse,down,1"; \
7894 action: SIGNAL_EMIT "elm,action,press" ""; \
7896 program { name: "button_unclick"; \
7897 signal: "mouse,up,1"; \
7899 action: SIGNAL_EMIT "elm,action,unpress" ""; \
7901 program { name: "button_click3"; \
7902 signal: "mouse,clicked,1"; \
7904 action: SIGNAL_EMIT "elm,action,click" ""; \
7906 program { name: "action_focus"; \
7907 signal: "elm,action,focus_highlight,show"; \
7909 action: STATE_SET "focused" 0.0; \
7910 target: "focus_image"; \
7912 program { name: "action_unfocus"; \
7913 signal: "elm,action,focus_highlight,hide"; \
7915 action: STATE_SET "default" 0.0; \
7916 target: "focus_image"; \
7921 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
7922 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
7923 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
7924 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
7926 group { name: "elm/button/base/search_icon";
7928 image: "00_search_icon.png" COMP;
7931 part { name: "search_icon";
7934 clip_to: "search_icon.clipper";
7935 description { state: "default" 0.0;
7936 min: BUTTON_SEARCH_ICON_MIN_MAX_INC;
7937 max: BUTTON_SEARCH_ICON_MIN_MAX_INC;
7940 image.normal: "00_search_icon.png";
7943 part { name: "search_icon.clipper";
7945 description { state: "default" 0.0;
7946 color: BUTTON_SEARCH_ICON_CLIPPER_DEFAULT_COLOR_INC;
7948 description { state: "disabled" 0.0;
7949 color: BUTTON_SEARCH_ICON_CLIPPER_DISABLED_COLOR_INC;
7952 part { name: "over2";
7954 ignore_flags: ON_HOLD;
7955 description { state: "default" 0.0;
7959 part { name: "over3";
7962 description { state: "default" 0.0;
7966 part { name: "disabler";
7968 description { state: "default" 0.0;
7972 description { state: "disabled" 0.0;
7973 inherit: "default" 0.0;
7979 program { name: "button_click";
7980 signal: "mouse,down,1";
7982 action: SIGNAL_EMIT "elm,action,press" "";
7984 program { name: "button_double_click";
7985 signal: "mouse,down,1,double";
7988 program { name: "button_unclick";
7989 signal: "mouse,up,1";
7991 action: SIGNAL_EMIT "elm,action,unpress" "";
7993 program { name: "touch_snd";
7994 signal: "mouse,clicked,1";
7996 action: PLAY_SAMPLE "touch_sound" 1.0;
7997 after: "button_unclick3";
7999 program { name: "button_unclick3";
8000 action: SIGNAL_EMIT "elm,action,click" "";
8002 program { name: "disable";
8003 signal: "elm,state,disabled";
8005 action: STATE_SET "disabled" 0.0;
8007 target: "search_icon.clipper";
8009 program { name: "enable";
8010 signal: "elm,state,enabled";
8012 action: STATE_SET "default" 0.0;
8014 target: "search_icon.clipper";
8018 group { name: "elm/button/base/search_rename";
8019 inherit: "elm/button/base/editfield_rename";
8021 part { name: "rename_button";
8024 clip_to: "rename_button.clipper";
8025 description { state: "default" 0.0;
8026 min: BUTTON_SEARCH_RENAME_BUTTON_MIN_MAX_INC;
8027 max: BUTTON_SEARCH_RENAME_BUTTON_MIN_MAX_INC;
8030 image.normal: "00_edit_field_rename.png";
8036 group { name: "elm/button/base/search_clear";
8037 inherit: "elm/button/base/editfield_clear";
8039 part { name: "clear_button";
8042 clip_to: "clear_button.clipper";
8043 description { state: "default" 0.0;
8044 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
8045 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
8048 image.normal: "00_edit_field_clear.png";
8054 #undef BUTTON_STATE_ENABLED
8055 #undef BUTTON_STATE_DISABLED
8056 #undef BUTTON_LANDSCAPE_DISABLED
8057 #undef BUTTON_LANDSCAPE_ENABLED