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_TOOLBAR_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
4754 max: BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
4762 max: BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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_TOOLBAR_TEXT_PADDING_MIN_INC;
4832 part { name: "padding_text_left_top";
4836 description { state: "default" 0.0;
4838 min: BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_TEXT_PADDING_MIN_INC;
4860 rel2.to: "elm.text";
4864 part { name: "elm.text";
4869 description { state: "default" 0.0;
4872 min: BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_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_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
5234 max: BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5243 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
5246 part { name: "elm.text";
5251 description { state: "default" 0.0;
5254 min: BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_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_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
5344 max: BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5353 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
5356 part { name: "elm.text";
5361 description { state: "default" 0.0;
5364 min: BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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/title_text";
6024 image: "00_title_press.png" COMP;
6027 style { name: "btn_naviframe_title_text";
6028 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
6035 part { name: "button_bg";
6038 description { state: "default" 0.0;
6039 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_MAX_INC;
6040 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_MAX_INC;
6042 description { state: "landscape" 0.0;
6043 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_MAX_INC;
6044 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_MAX_INC;
6047 part { name: "button_image";
6050 description { state: "default" 0.0;
6052 rel1 { to: "button_bg"; }
6053 rel2 { to: "button_bg"; }
6055 description { state: "clicked" 0.0;
6056 inherit: "default" 0.0;
6059 normal: "00_title_press.png";
6060 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
6065 part { name: "elm.text";
6069 clip_to: "button_bg";
6070 description { state: "default" 0.0;
6071 rel1.to: "button_bg";
6072 rel2.to: "button_bg";
6074 style: "btn_naviframe_title_text";
6079 part { name: "over2";
6081 ignore_flags: ON_HOLD;
6082 description { state: "default" 0.0;
6086 part { name: "over3";
6089 description { state: "default" 0.0;
6093 part { name: "disabler";
6095 description { state: "default" 0.0;
6099 description { state: "disabled" 0.0;
6100 inherit: "default" 0.0;
6106 program { name: "button_click";
6107 signal: "mouse,down,1";
6109 action: SIGNAL_EMIT "elm,action,press" "";
6110 after: "button_click_anim";
6112 program { name: "button_click_anim";
6114 set_state(PART:"button_image", "clicked", 0.0);
6117 program { name: "button_double_click";
6118 signal: "mouse,down,1,double";
6120 after: "button_click_anim";
6122 program { name: "button_unclick";
6123 signal: "mouse,up,1";
6125 action: SIGNAL_EMIT "elm,action,unpress" "";
6126 after: "button_unclick_anim";
6128 program { name: "button_unclick_anim";
6130 set_state(PART:"button_image", "default", 0.0);
6133 program { name: "touch_snd";
6134 signal: "mouse,clicked,1";
6136 action: PLAY_SAMPLE "touch_sound" 1.0;
6137 after: "button_unclick3";
6139 program { name: "button_unclick3";
6140 action: SIGNAL_EMIT "elm,action,click" "";
6142 program { name: "change_to_landscape";
6143 signal: "elm,state,landscape";
6145 action: STATE_SET "landscape" 0.0;
6146 target: "button_bg";
6148 program { name: "change_to_portrait";
6149 signal: "elm,state,portrait";
6151 action: STATE_SET "default" 0.0;
6152 target: "button_bg";
6154 program { name: "landscape_mode";
6156 signal: "elm,state,orient,90";
6157 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6159 program { name: "landscape_mode2";
6161 signal: "elm,state,orient,270";
6162 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6164 program { name: "portrait_mode";
6166 signal: "elm,state,orient,0";
6167 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6169 program { name: "portrait_mode2";
6171 signal: "elm,state,orient,180";
6172 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6177 /////////////////////////////////////////////////////////////////////////////////////////
6178 group { name: "elm/button/base/naviframe/more/default";
6180 item: "focus_highlight" "on";
6183 image: "00_icon_more.png" COMP;
6184 image: "00_icon_focus.png" COMP;
6187 part { name: "button_image";
6190 description { state: "default" 0.0;
6191 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
6192 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
6195 description { state: "landscape" 0.0;
6196 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
6197 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
6201 part { name: "focus_image";
6205 description { state: "default" 0.0;
6207 rel1.to : "button_image";
6208 rel2.to : "button_image";
6210 normal: "00_icon_focus.png";
6214 description { state: "focused" 0.0;
6215 inherit: "default" 0.0;
6219 part { name: "more_image";
6222 clip_to: "more_image.clipper";
6223 description { state: "default" 0.0;
6224 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
6225 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
6227 rel1.to: "button_image";
6228 rel2.to: "button_image";
6229 image.normal: "00_icon_more.png";
6232 part { name: "more_image.clipper";
6234 description { state: "default" 0.0;
6235 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
6237 description { state: "clicked" 0.0;
6238 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
6240 description { state: "disabled" 0.0;
6241 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
6244 part { name: "over2";
6246 ignore_flags: ON_HOLD;
6247 description { state: "default" 0.0;
6251 part { name: "over3";
6254 description { state: "default" 0.0;
6258 part { name: "disabler";
6260 description { state: "default" 0.0;
6264 description { state: "disabled" 0.0;
6265 inherit: "default" 0.0;
6271 program { name: "button_click";
6272 signal: "mouse,down,1";
6274 action: SIGNAL_EMIT "elm,action,press" "";
6275 after: "button_click_anim";
6277 program { name: "button_click_anim";
6279 set_state(PART:"more_image.clipper", "clicked", 0.0);
6282 program { name: "button_double_click";
6283 signal: "mouse,down,1,double";
6285 after: "button_click_anim";
6287 program { name: "button_unclick";
6288 signal: "mouse,up,1";
6290 action: SIGNAL_EMIT "elm,action,unpress" "";
6291 after: "button_unclick_anim";
6293 program { name: "button_unclick_anim";
6295 set_state(PART:"more_image.clipper", "default", 0.0);
6298 program { name: "touch_snd";
6299 signal: "mouse,clicked,1";
6301 action: PLAY_SAMPLE "touch_sound" 1.0;
6302 after: button_unclick3;
6304 program { name: "button_unclick3";
6305 action: SIGNAL_EMIT "elm,action,click" "";
6307 program { name: "disable";
6308 signal: "elm,state,disabled";
6311 set_state(PART:"disabler", "disabled", 0.0);
6312 set_state(PART:"more_image.clipper", "disabled", 0.0);
6315 program { name: "enable";
6316 signal: "elm,state,enabled";
6319 set_state(PART:"disabler", "default", 0.0);
6320 set_state(PART:"more_image.clipper", "default", 0.0);
6323 program { name: "change_to_landscape";
6324 signal: "elm,state,landscape";
6326 action: STATE_SET "landscape" 0.0;
6327 target: "button_image";
6329 program { name: "change_to_portrait";
6330 signal: "elm,state,portrait";
6332 action: STATE_SET "default" 0.0;
6333 target: "button_image";
6335 program { name: "landscape_mode";
6337 signal: "elm,state,orient,90";
6338 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6340 program { name: "landscape_mode2";
6342 signal: "elm,state,orient,270";
6343 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6345 program { name: "portrait_mode";
6347 signal: "elm,state,orient,0";
6348 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6350 program { name: "portrait_mode2";
6352 signal: "elm,state,orient,180";
6353 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6355 program { name: "action_focus";
6356 signal: "elm,action,focus_highlight,show";
6358 action: STATE_SET "focused" 0.0;
6359 target: "focus_image";
6361 program { name: "action_unfocus";
6362 signal: "elm,action,focus_highlight,hide";
6364 action: STATE_SET "default" 0.0;
6365 target: "focus_image";
6370 ///////////////////////////////////////////////////////////////////////////////////////
6371 group { name: "elm/button/base/tickernoti";
6373 image: "00_notification_button.png" COMP;
6374 image: "00_notification_button_press.png" COMP;
6375 image: "00_notification_button_dim.png" COMP;
6378 public button_state = BUTTON_STATE_ENABLED;
6381 part { name: "button_image";
6383 description { state: "default" 0.0;
6384 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6385 max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6387 normal: "00_notification_button.png";
6388 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
6392 description { state: "clicked" 0.0;
6393 inherit: "default" 0.0;
6394 image.normal: "00_notification_button_press.png";
6396 description { state: "disabled" 0.0;
6397 inherit: "default" 0.0;
6398 image.normal: "00_notification_button_dim.png";
6400 description { state: "focused" 0.0;
6401 inherit: "default" 0.0;
6402 image.normal: "00_notification_button_press.png";
6405 part { name: "padding_left_top";
6409 description { state: "default" 0.0;
6412 rel2.relative: 0.0 0.0;
6413 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
6421 description { state: "default" 0.0;
6422 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6425 description { state: "visible" 0.0;
6426 inherit: "default" 0.0;
6428 description { state: "icononly" 0.0;
6429 inherit: "default" 0.0;
6432 part { name: "padding_right_bottom";
6436 description { state: "default" 0.0;
6438 rel1.relative: 1.0 1.0;
6439 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
6444 part { name: "icon_rect";
6448 description { state: "default" 0.0;
6454 to: "padding_left_top";
6458 to_x: "padding_left_top";
6459 to_y: "padding_right_bottom";
6463 description { state: "visible" 0.0;
6464 inherit: "default" 0.0;
6465 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
6466 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
6468 description { state: "icononly" 0.0;
6469 inherit: "default" 0.0;
6472 part { name: "padding_after_icon";
6476 description { state: "default" 0.0; //when only icon or no icon is there
6485 rel2.to: "icon_rect";
6487 description { state: "visible" 0.0;
6488 inherit: "default" 0.0;
6489 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6491 description { state: "icononly" 0.0;
6492 inherit: "default" 0.0;
6495 part { name: "padding_before_text";
6499 description { state: "default" 0.0; //when only icon or no icon is there
6503 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6507 to_y: "padding_left_top";
6512 to_y: "padding_right_bottom";
6516 part { name: "elm.swallow.content";
6520 description { state: "default" 0.0;
6526 to: "padding_left_top";
6530 to_x: "padding_left_top";
6531 to_y: "padding_right_bottom";
6534 description { state: "visible" 0.0;
6536 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6537 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6541 to_x: "padding_before_text";
6542 to_y: "padding_left_top";
6546 to_x: "padding_before_text";
6547 to_y: "padding_right_bottom";
6550 description { state: "icononly" 0.0;
6551 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6552 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6555 part { name: "elm.text";
6558 effect: FAR_SHADOW BOTTOM;
6561 description { state: "default" 0.0;
6565 to_x: "padding_after_icon";
6566 to_y: "padding_left_top";
6570 to: "padding_right_bottom";
6572 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
6573 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6575 font: "Tizen:style=Regular";
6576 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
6577 text_class: "tizen";
6580 description { state: "visible" 0.0;
6581 inherit: "default" 0.0;
6584 description { state: "clicked" 0.0;
6585 inherit: "default" 0.0;
6587 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6589 description { state: "disabled" 0.0;
6590 inherit: "default" 0.0;
6592 description { state: "disabled_visible" 0.0;
6593 inherit: "default" 0.0;
6594 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
6595 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6598 description { state: "focused" 0.0;
6599 inherit: "default" 0.0;
6601 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6604 part { name: "over2";
6607 ignore_flags: ON_HOLD;
6608 description { state: "default" 0.0;
6612 part { name: "over3";
6615 description { state: "default" 0.0;
6619 part { name: "clipper";
6621 description { state: "default" 0.0;
6622 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
6624 description { state: "disabled" 0.0;
6625 inherit: "default" 0.0;
6626 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
6629 part { name: "disabler";
6631 description { state: "default" 0.0;
6635 description { state: "disabled" 0.0;
6636 inherit: "default" 0.0;
6642 program { name: "button_click";
6643 signal: "mouse,down,1";
6645 action: SIGNAL_EMIT "elm,action,press" "";
6646 after: "button_click_anim";
6648 program { name: "button_click_anim";
6649 action: STATE_SET "clicked" 0.0;
6650 target: "button_image";
6651 after: "text_clicked";
6653 program { name: "text_clicked";
6657 get_state(PART:"elm.text", st, 30, vl);
6658 if (!strcmp(st, "visible"))
6659 set_state(PART:"elm.text", "clicked", 0.0);
6662 program { name: "button_double_click";
6663 signal: "mouse,down,1,double";
6665 after: "button_click_anim";
6667 program { name: "button_unpress";
6668 action: SIGNAL_EMIT "elm,action,unpress" "";
6670 program { name: "button_mouseout_clicked";
6671 signal: "mouse,up,1";
6676 get_state(PART:"elm.swallow.content", st, 30, vl);
6677 if (strcmp(st, "icononly"))
6679 emit("elm,action,default,text,set", "");
6680 set_state(PART:"elm.text", "visible", 0.0);
6682 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6683 set_state(PART:"button_image", "default", 0.0);
6685 after: button_unpress;
6687 program { name: "touch_snd";
6688 signal: "mouse,clicked,1";
6690 action: PLAY_SAMPLE "touch_sound" 1.0;
6691 after: button_unclick3;
6693 program { name: "button_unclick3";
6694 action: SIGNAL_EMIT "elm,action,click" "";
6696 program { name: "text_show";
6697 signal: "elm,state,text,visible";
6702 get_state(PART:"elm.swallow.content", st, 30, vl);
6703 if (!strcmp(st, "icononly"))
6705 set_state(PART:"elm.swallow.content", "visible", 0.0);
6706 set_state(PART:"icon_rect", "visible", 0.0);
6707 set_state(PART:"padding_after_icon", "visible", 0.0);
6708 set_state(PART:"bg", "visible", 0.0);
6710 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6711 set_state(PART:"elm.text", "visible", 0.0);
6713 set_state(PART:"elm.text", "disabled_visible", 0.0);
6716 program { name: "text_hide";
6717 signal: "elm,state,text,hidden";
6722 get_state(PART:"elm.swallow.content", st, 30, vl);
6723 if (!strcmp(st, "visible"))
6725 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6726 set_state(PART:"icon_rect", "icononly", 0.0);
6727 set_state(PART:"padding_after_icon", "icononly", 0.0);
6728 set_state(PART:"bg", "icononly", 0.0);
6730 set_state(PART:"elm.text", "default", 0.0);
6733 program { name: "icon_show";
6734 signal: "elm,state,icon,visible";
6739 get_state(PART:"elm.text", st, 30, vl);
6740 if (!strcmp(st, "visible"))
6742 set_state(PART:"elm.swallow.content", "visible", 0.0);
6743 set_state(PART:"icon_rect", "visible", 0.0);
6744 set_state(PART:"padding_after_icon", "visible", 0.0);
6745 set_state(PART:"bg", "visible", 0.0);
6749 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6750 set_state(PART:"icon_rect", "icononly", 0.0);
6751 set_state(PART:"padding_after_icon", "icononly", 0.0);
6752 set_state(PART:"bg", "icononly", 0.0);
6756 program { name: "icon_hide";
6757 signal: "elm,state,icon,hidden";
6759 action: STATE_SET "default" 0.0;
6760 target: "elm.swallow.content";
6761 target: "padding_after_icon";
6762 target: "icon_rect";
6765 program { name: "disable";
6766 signal: "elm,state,disabled";
6768 action: STATE_SET "disabled" 0.0;
6769 target: "button_image";
6772 after: "disable_text";
6774 program { name: "disable_text";
6778 get_state(PART:"elm.text", st, 30, vl);
6779 if (!strcmp(st, "visible"))
6780 set_state(PART:"elm.text", "disabled_visible", 0.0);
6782 set_state(PART:"elm.text", "disabled", 0.0);
6783 set_int(button_state, BUTTON_STATE_DISABLED);
6786 program { name: "enable";
6787 signal: "elm,state,enabled";
6789 action: STATE_SET "default" 0.0;
6790 target: "button_image";
6793 after: "enable_text";
6795 program { name: "enable_text";
6799 get_state(PART:"elm.text", st, 30, vl);
6800 if (!strcmp(st, "disabled_visible"))
6801 set_state(PART:"elm.text", "visible", 0.0);
6803 set_state(PART:"elm.text", "default", 0.0);
6804 set_int(button_state, BUTTON_STATE_ENABLED);
6807 program { name: "focused";
6808 //signal: "elm,action,focus";
6810 action: STATE_SET "focused" 0.0;
6811 target: "button_image";
6814 program { name: "unfocused";
6815 //signal: "elm,action,unfocus";
6817 action: STATE_SET "default" 0.0;
6818 target: "button_image";
6819 after: "unfocus_text";
6821 program { name: "unfocus_text";
6822 action: STATE_SET "visible" 0.0;
6828 ///////////////////////////////////////////////////////////////////////////////////////
6829 group { name: "elm/button/base/expandable_number";
6830 alias: "elm/button/base/text_only/expandable_number";
6832 item: "focus_highlight" "on";
6835 image: "00_button_01.png" COMP;
6836 image: "00_button_01_press.png" COMP;
6837 image: "00_button_01_dim.png" COMP;
6838 image: "00_arrow_expand.png" COMP;
6839 image: "00_button_01_focus.png" COMP;
6842 public button_state = BUTTON_STATE_ENABLED;
6845 part { name: "button_image";
6847 description { state: "default" 0.0;
6848 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6849 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6851 normal: "00_button_01.png";
6852 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6856 description { state: "clicked" 0.0;
6857 inherit: "default" 0.0;
6858 image.normal: "00_button_01_press.png";
6860 description { state: "disabled" 0.0;
6861 inherit: "default" 0.0;
6862 image.normal: "00_button_01_dim.png";
6864 description { state: "focused" 0.0;
6865 inherit: "default" 0.0;
6866 image.normal: "00_button_01_press.png";
6869 part { name: "focus_image";
6873 description { state: "default" 0.0;
6874 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6875 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6877 rel1.to : "button_image";
6878 rel2.to : "button_image";
6880 normal: "00_button_01_focus.png";
6881 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6885 description { state: "focused" 0.0;
6886 inherit: "default" 0.0;
6890 part { name: "padding_left_top";
6894 description { state: "default" 0.0;
6897 rel2.relative: 0.0 0.0;
6898 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6902 part { name: "padding_right_bottom";
6906 description { state: "default" 0.0;
6909 rel1.relative: 1.0 1.0;
6910 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6914 part { name: "icon_rect";
6918 description { state: "default" 0.0;
6920 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6921 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6925 to_x: "padding_right_bottom";
6926 to_y: "padding_left_top";
6930 to: "padding_right_bottom";
6935 part { name: "arrow_expand";
6937 clip_to: "icon_clipper";
6939 description { state: "default" 0.0;
6941 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6942 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6944 rel1.to: "icon_rect";
6945 rel2.to: "icon_rect";
6946 image.normal:"00_arrow_expand.png";
6949 part { name: "elm.text";
6952 effect: SHADOW BOTTOM;
6954 description { state: "default" 0.0;
6955 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6956 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6960 to: "padding_left_top";
6964 to_x:"padding_left_top";
6965 to_y:"padding_right_bottom";
6968 color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6969 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6971 font: "Tizen:style=Regular";
6972 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6976 text_class: "tizen";
6979 description { state: "visible" 0.0;
6980 inherit: "default" 0.0;
6982 description { state: "clicked" 0.0;
6983 inherit: "default" 0.0;
6984 color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
6986 description { state: "disabled" 0.0;
6987 inherit: "default" 0.0;
6989 description { state: "disabled_visible" 0.0;
6990 inherit: "default" 0.0;
6991 color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6992 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
6994 description { state: "focused" 0.0;
6995 inherit: "default" 0.0;
6996 color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6999 part { name: "icon_clipper";
7002 description { state: "default" 0.0;
7003 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
7005 description { state: "clicked" 0.0;
7006 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
7008 description { state: "disabled" 0.0;
7009 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
7012 part { name: "over2";
7015 ignore_flags: ON_HOLD;
7016 description { state: "default" 0.0;
7020 part { name: "over3";
7023 description { state: "default" 0.0;
7027 part { name: "disabler";
7029 description { state: "default" 0.0;
7033 description { state: "disabled" 0.0;
7034 inherit: "default" 0.0;
7040 program { name: "button_click";
7041 signal: "mouse,down,1";
7043 action: SIGNAL_EMIT "elm,action,press" "";
7044 after: "button_click_anim";
7046 program { name: "button_click_anim";
7047 action: STATE_SET "clicked" 0.0;
7048 target: "button_image";
7049 target: "icon_clipper";
7050 after: "text_clicked";
7052 program { name: "text_clicked";
7056 get_state(PART:"elm.text", st, 30, vl);
7057 if (!strcmp(st, "visible"))
7058 set_state(PART:"elm.text", "clicked", 0.0);
7061 program { name: "button_double_click";
7062 signal: "mouse,down,1,double";
7064 after: "button_click_anim";
7066 program { name: "button_unpress";
7067 action: SIGNAL_EMIT "elm,action,unpress" "";
7069 program { name: "button_mouseout_clicked";
7070 signal: "mouse,up,1";
7073 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7075 set_state(PART:"button_image", "default", 0.0);
7076 set_state(PART:"elm.text", "visible", 0.0);
7077 set_state(PART:"icon_clipper", "default", 0.0);
7080 after: button_unpress;
7082 program { name: "touch_snd";
7083 signal: "mouse,clicked,1";
7085 action: PLAY_SAMPLE "touch_sound" 1.0;
7086 after: button_unclick3;
7088 program { name: "button_unclick3";
7089 action: SIGNAL_EMIT "elm,action,click" "";
7091 program { name: "text_show";
7092 signal: "elm,state,text,visible";
7095 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7096 set_state(PART:"elm.text", "visible", 0.0);
7098 set_state(PART:"elm.text", "disabled_visible", 0.0);
7101 program { name: "text_hide";
7102 signal: "elm,state,text,hidden";
7105 set_state(PART:"elm.text", "default", 0.0);
7108 program { name: "disable";
7109 signal: "elm,state,disabled";
7111 action: STATE_SET "disabled" 0.0;
7112 target: "button_image";
7114 target: "icon_clipper";
7115 after: "disable_text";
7117 program { name: "disable_text";
7121 get_state(PART:"elm.text", st, 30, vl);
7122 if (!strcmp(st, "visible"))
7123 set_state(PART:"elm.text", "disabled_visible", 0.0);
7125 set_state(PART:"elm.text", "disabled", 0.0);
7126 set_int(button_state, BUTTON_STATE_DISABLED);
7129 program { name: "enable";
7130 signal: "elm,state,enabled";
7132 action: STATE_SET "default" 0.0;
7133 target: "button_image";
7135 target: "icon_clipper";
7136 after: "enable_text";
7138 program { name: "enable_text";
7142 get_state(PART:"elm.text", st, 30, vl);
7143 if (!strcmp(st, "disabled_visible"))
7144 set_state(PART:"elm.text", "visible", 0.0);
7146 set_state(PART:"elm.text", "default", 0.0);
7147 set_int(button_state, BUTTON_STATE_ENABLED);
7150 program { name: "action_focus";
7151 signal: "elm,action,focus_highlight,show";
7153 action: STATE_SET "focused" 0.0;
7154 target: "focus_image";
7156 program { name: "action_unfocus";
7157 signal: "elm,action,focus_highlight,hide";
7159 action: STATE_SET "default" 0.0;
7160 target: "focus_image";
7165 ////////////////////////////////////////////////////////////////////////
7166 group { name: "elm/button/base/bubble_sent";
7167 inherit: "elm/button/base/style1";
7169 image: "00_messagebubble_button_sent.png" COMP;
7170 image: "00_messagebubble_button_sent_press.png" COMP;
7171 image: "00_messagebubble_button_sent_dim.png" COMP;
7174 part { name: "button_image";
7176 description { state: "default" 0.0;
7178 normal: "00_messagebubble_button_sent.png";
7179 border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
7183 description { state: "clicked" 0.0;
7184 inherit: "default" 0.0;
7185 image.normal: "00_messagebubble_button_sent_press.png";
7187 description { state: "disabled" 0.0;
7188 inherit: "default" 0.0;
7189 image.normal: "00_messagebubble_button_sent_dim.png";
7191 description { state: "focused" 0.0;
7192 inherit: "default" 0.0;
7193 image.normal: "00_messagebubble_button_sent_press.png";
7196 part { name: "elm.text";
7199 effect: FAR_SHADOW BOTTOM;
7202 description { state: "default" 0.0;
7206 to_x: "padding_after_icon";
7207 to_y: "padding_left_top";
7211 to: "padding_right_bottom";
7213 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
7214 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7216 font: "Tizen:style=Regular";
7217 size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
7220 text_class: "tizen";
7223 description { state: "visible" 0.0;
7224 inherit: "default" 0.0;
7227 description { state: "clicked" 0.0;
7228 inherit: "default" 0.0;
7230 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
7232 description { state: "disabled" 0.0;
7233 inherit: "default" 0.0;
7235 description { state: "disabled_visible" 0.0;
7236 inherit: "default" 0.0;
7237 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
7240 description { state: "focused" 0.0;
7241 inherit: "default" 0.0;
7243 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7249 ////////////////////////////////////////////////////////////////////////
7250 group { name: "elm/button/base/bubble_sent/multiline";
7251 inherit: "elm/button/base/bubble_sent";
7253 style { name: "bubble_sent_multiline";
7254 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";
7261 part { name: "elm.text";
7264 effect: FAR_SHADOW BOTTOM;
7267 description { state: "default" 0.0;
7272 to_x: "padding_after_icon";
7273 to_y: "padding_left_top";
7277 to: "padding_right_bottom";
7279 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
7280 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7282 style: "bubble_sent_multiline";
7285 description { state: "visible" 0.0;
7286 inherit: "default" 0.0;
7289 description { state: "clicked" 0.0;
7290 inherit: "default" 0.0;
7292 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
7294 description { state: "disabled" 0.0;
7295 inherit: "default" 0.0;
7297 description { state: "disabled_visible" 0.0;
7298 inherit: "default" 0.0;
7299 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
7302 description { state: "focused" 0.0;
7303 inherit: "default" 0.0;
7305 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7311 ///////////////////////////////////////////////////////////////////////
7312 group { name: "elm/button/base/bubble_receive";
7313 inherit: "elm/button/base/style1";
7315 image: "00_messagebubble_button_receive.png" COMP;
7316 image: "00_messagebubble_button_receive_press.png" COMP;
7317 image: "00_messagebubble_button_receive_dim.png" COMP;
7320 part { name: "button_image";
7322 description { state: "default" 0.0;
7324 normal: "00_messagebubble_button_receive.png";
7325 border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
7329 description { state: "clicked" 0.0;
7330 inherit: "default" 0.0;
7331 image.normal: "00_messagebubble_button_receive_press.png";
7333 description { state: "disabled" 0.0;
7334 inherit: "default" 0.0;
7335 image.normal: "00_messagebubble_button_receive_dim.png";
7337 description { state: "focused" 0.0;
7338 inherit: "default" 0.0;
7339 image.normal: "00_messagebubble_button_receive_press.png";
7342 part { name: "elm.text";
7345 effect: SHADOW BOTTOM;
7348 description { state: "default" 0.0;
7352 to_x: "padding_after_icon";
7353 to_y: "padding_left_top";
7357 to: "padding_right_bottom";
7359 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
7360 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7362 font: "Tizen:style=Regular";
7363 size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
7366 text_class: "tizen";
7369 description { state: "visible" 0.0;
7370 inherit: "default" 0.0;
7373 description { state: "clicked" 0.0;
7374 inherit: "default" 0.0;
7376 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
7378 description { state: "disabled" 0.0;
7379 inherit: "default" 0.0;
7381 description { state: "disabled_visible" 0.0;
7382 inherit: "default" 0.0;
7383 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
7386 description { state: "focused" 0.0;
7387 inherit: "default" 0.0;
7389 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7395 ///////////////////////////////////////////////////////////////////////
7396 group { name: "elm/button/base/bubble_receive/multiline";
7397 inherit: "elm/button/base/bubble_receive";
7399 style { name: "bubble_receive_multiline";
7400 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";
7407 part { name: "elm.text";
7410 effect: SHADOW BOTTOM;
7413 description { state: "default" 0.0;
7418 to_x: "padding_after_icon";
7419 to_y: "padding_left_top";
7423 to: "padding_right_bottom";
7425 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
7426 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7428 style: "btn_style1_multiline";
7431 description { state: "visible" 0.0;
7432 inherit: "default" 0.0;
7435 description { state: "clicked" 0.0;
7436 inherit: "default" 0.0;
7438 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
7440 description { state: "disabled" 0.0;
7441 inherit: "default" 0.0;
7443 description { state: "disabled_visible" 0.0;
7444 inherit: "default" 0.0;
7445 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
7448 description { state: "focused" 0.0;
7449 inherit: "default" 0.0;
7451 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7457 ///////////////////////////////////////////////////////////////////////
7458 group { name: "elm/button/base/bubble_circle/receive";
7460 image: "00_messagebubble_circle_receive.png" COMP;
7461 image: "00_messagebubble_circle_receive_press.png" COMP;
7462 image: "00_messagebubble_circle_receive_dim.png" COMP;
7463 image: "00_button_right.png" COMP;
7464 image: "00_button_right_press.png" COMP;
7467 part { name: "button_image";
7469 description { state: "default" 0.0;
7470 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7471 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7472 image.normal: "00_messagebubble_circle_receive.png";
7475 state: "clicked" 0.0;
7476 inherit: "default" 0.0;
7477 image.normal: "00_messagebubble_circle_receive_press.png";
7480 state: "disabled" 0.0;
7481 inherit: "default" 0.0;
7482 image.normal: "00_messagebubble_circle_receive_dim.png";
7485 part { name: "image";
7487 clip_to: "icon_clipper";
7488 description { state: "default" 0.0;
7489 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7490 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7491 image.normal: "00_button_right.png";
7494 state: "clicked" 0.0;
7495 inherit: "default" 0.0;
7496 image.normal: "00_button_right_press.png";
7499 state: "disabled" 0.0;
7500 inherit: "default" 0.0;
7503 part { name: "icon_clipper";
7506 description { state: "default" 0.0;
7507 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
7509 description { state: "clicked" 0.0;
7510 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
7512 description { state: "disabled" 0.0;
7513 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
7516 part { name: "over1";
7518 ignore_flags: ON_HOLD;
7519 description { state: "default" 0.0;
7523 part { name: "over2";
7526 description { state: "default" 0.0;
7530 part { name: "disabler";
7532 description { state: "default" 0.0;
7536 description { state: "disabled" 0.0;
7537 inherit: "default" 0.0;
7543 program { name: "button_click";
7544 signal: "mouse,down,1";
7546 action: SIGNAL_EMIT "elm,action,press" "";
7547 after: "button_click_anim";
7549 program { name: "button_click_anim";
7550 action: STATE_SET "clicked" 0.0;
7551 target: "button_image";
7553 target: "icon_clipper";
7555 program { name: "button_double_click";
7556 signal: "mouse,down,1,double";
7558 after: "button_click_anim";
7560 program { name: "button_unclick";
7561 signal: "mouse,up,1";
7563 action: SIGNAL_EMIT "elm,action,unpress" "";
7564 after: "button_unclick_anim";
7566 program { name: "button_unclick_anim";
7567 action: STATE_SET "default" 0.0;
7568 target: "button_image";
7570 target: "icon_clipper";
7572 program { name: "touch_snd";
7573 signal: "mouse,clicked,1";
7575 action: PLAY_SAMPLE "touch_sound" 1.0;
7576 after: button_unclick3;
7578 program { name: "button_unclick3";
7579 action: SIGNAL_EMIT "elm,action,click" "";
7581 program { name: "disable";
7582 signal: "elm,state,disabled";
7584 action: STATE_SET "disabled" 0.0;
7586 target: "button_image";
7587 target: "icon_clipper";
7590 program { name: "enable";
7591 signal: "elm,state,enabled";
7593 action: STATE_SET "default" 0.0;
7595 target: "button_image";
7596 target: "icon_clipper";
7601 ///////////////////////////////////////////////////////////////////////
7602 group { name: "elm/button/base/bubble_circle/sent";
7604 image: "00_messagebubble_circle_sent.png" COMP;
7605 image: "00_messagebubble_circle_sent_press.png" COMP;
7606 image: "00_messagebubble_circle_sent_dim.png" COMP;
7607 image: "00_button_right.png" COMP;
7608 image: "00_button_right_press.png" COMP;
7611 part { name: "button_image";
7613 description { state: "default" 0.0;
7614 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7615 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7616 image.normal: "00_messagebubble_circle_sent.png";
7619 state: "clicked" 0.0;
7620 inherit: "default" 0.0;
7621 image.normal: "00_messagebubble_circle_sent_press.png";
7624 state: "disabled" 0.0;
7625 inherit: "default" 0.0;
7626 image.normal: "00_messagebubble_circle_sent_dim.png";
7629 part { name: "image";
7631 clip_to: "icon_clipper";
7632 description { state: "default" 0.0;
7633 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7634 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7635 image.normal: "00_button_right.png";
7638 state: "clicked" 0.0;
7639 inherit: "default" 0.0;
7640 image.normal: "00_button_right_press.png";
7643 state: "disabled" 0.0;
7644 inherit: "default" 0.0;
7647 part { name: "icon_clipper";
7650 description { state: "default" 0.0;
7651 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
7653 description { state: "clicked" 0.0;
7654 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
7656 description { state: "disabled" 0.0;
7657 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
7660 part { name: "over1";
7662 ignore_flags: ON_HOLD;
7663 description { state: "default" 0.0;
7667 part { name: "over2";
7670 description { state: "default" 0.0;
7674 part { name: "disabler";
7676 description { state: "default" 0.0;
7680 description { state: "disabled" 0.0;
7681 inherit: "default" 0.0;
7687 program { name: "button_click";
7688 signal: "mouse,down,1";
7690 action: SIGNAL_EMIT "elm,action,press" "";
7691 after: "button_click_anim";
7693 program { name: "button_click_anim";
7694 action: STATE_SET "clicked" 0.0;
7695 target: "button_image";
7697 target: "icon_clipper";
7699 program { name: "button_double_click";
7700 signal: "mouse,down,1,double";
7702 after: "button_click_anim";
7704 program { name: "button_unclick";
7705 signal: "mouse,up,1";
7707 action: SIGNAL_EMIT "elm,action,unpress" "";
7708 after: "button_unclick_anim";
7710 program { name: "button_unclick_anim";
7711 action: STATE_SET "default" 0.0;
7712 target: "button_image";
7714 target: "icon_clipper";
7716 program { name: "touch_snd";
7717 signal: "mouse,clicked,1";
7719 action: PLAY_SAMPLE "touch_sound" 1.0;
7720 after: button_unclick3;
7722 program { name: "button_unclick3";
7723 action: SIGNAL_EMIT "elm,action,click" "";
7725 program { name: "disable";
7726 signal: "elm,state,disabled";
7728 action: STATE_SET "disabled" 0.0;
7730 target: "button_image";
7731 target: "icon_clipper";
7733 program { name: "enable";
7734 signal: "elm,state,enabled";
7736 action: STATE_SET "default" 0.0;
7738 target: "button_image";
7739 target: "icon_clipper";
7744 //////////////////////////////////////////////////////////////////////////////////////
7745 group { name: "elm/button/base/editfield_rename";
7747 image: "00_edit_field_rename.png" COMP;
7750 part { name: "button_image";
7753 description { state: "default" 0.0;
7756 description { state: "clicked" 0.0;
7757 inherit: "default" 0.0;
7759 description { state: "disabled" 0.0;
7760 inherit: "default" 0.0;
7762 description { state: "focused" 0.0;
7763 inherit: "default" 0.0;
7766 part { name: "rename_button";
7769 clip_to: "rename_button.clipper";
7770 description { state: "default" 0.0;
7771 min: BUTTON_EDITFIELD_RENAME_BUTTON_MIN_MAX_INC;
7772 max: BUTTON_EDITFIELD_RENAME_BUTTON_MIN_MAX_INC;
7775 image.normal: "00_edit_field_rename.png";
7778 part { name: "rename_button.clipper";
7780 description { state: "default" 0.0;
7781 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7783 description { state: "clicked" 0.0;
7784 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7786 description { state: "disabled" 0.0;
7787 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7790 part { name: "over2";
7792 ignore_flags: ON_HOLD;
7793 description { state: "default" 0.0;
7797 part { name: "over3";
7800 description { state: "default" 0.0;
7804 part { name: "disabler";
7806 description { state: "default" 0.0;
7810 description { state: "disabled" 0.0;
7811 inherit: "default" 0.0;
7817 program { name: "button_click";
7818 signal: "mouse,down,1";
7820 action: SIGNAL_EMIT "elm,action,press" "";
7821 after: "button_click_anim";
7823 program { name: "button_click_anim";
7824 action: STATE_SET "clicked" 0.0;
7825 target: "button_image";
7826 target: "rename_button.clipper";
7828 program { name: "button_double_click";
7829 signal: "mouse,down,1,double";
7831 after: "button_click_anim";
7833 program { name: "button_unclick";
7834 signal: "mouse,up,1";
7836 action: SIGNAL_EMIT "elm,action,unpress" "";
7837 after: "button_unclick_anim";
7839 program { name: "button_unclick_anim";
7840 action: STATE_SET "default" 0.0;
7841 target: "button_image";
7842 target: "rename_button.clipper";
7844 program { name: "touch_snd";
7845 signal: "mouse,clicked,1";
7847 action: PLAY_SAMPLE "touch_sound" 1.0;
7848 after: "button_unclick3";
7850 program { name: "button_unclick3";
7851 action: SIGNAL_EMIT "elm,action,click" "";
7853 program { name: "disable";
7854 signal: "elm,state,disabled";
7856 action: STATE_SET "disabled" 0.0;
7857 target: "button_image";
7859 target: "rename_button.clipper";
7861 program { name: "enable";
7862 signal: "elm,state,enabled";
7864 action: STATE_SET "default" 0.0;
7865 target: "button_image";
7867 target: "rename_button.clipper";
7871 group { name: "elm/button/base/editfield_clear";
7873 image: "00_edit_field_clear.png" COMP;
7876 part { name: "button_image";
7879 description { state: "default" 0.0;
7882 description { state: "clicked" 0.0;
7883 inherit: "default" 0.0;
7885 description { state: "disabled" 0.0;
7886 inherit: "default" 0.0;
7888 description { state: "focused" 0.0;
7889 inherit: "default" 0.0;
7892 part { name: "clear_button";
7895 clip_to: "clear_button.clipper";
7896 description { state: "default" 0.0;
7897 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7898 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7901 image.normal: "00_edit_field_clear.png";
7904 part { name: "clear_button.clipper";
7906 description { state: "default" 0.0;
7907 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7909 description { state: "clicked" 0.0;
7910 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7912 description { state: "disabled" 0.0;
7913 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7916 part { name: "over2";
7918 ignore_flags: ON_HOLD;
7919 description { state: "default" 0.0;
7923 part { name: "over3";
7926 description { state: "default" 0.0;
7930 part { name: "disabler";
7932 description { state: "default" 0.0;
7936 description { state: "disabled" 0.0;
7937 inherit: "default" 0.0;
7943 program { name: "button_click";
7944 signal: "mouse,down,1";
7946 action: SIGNAL_EMIT "elm,action,press" "";
7947 after: "button_click_anim";
7949 program { name: "button_click_anim";
7950 action: STATE_SET "clicked" 0.0;
7951 target: "button_image";
7952 target: "clear_button.clipper";
7954 program { name: "button_double_click";
7955 signal: "mouse,down,1,double";
7957 after: "button_click_anim";
7959 program { name: "button_unclick";
7960 signal: "mouse,up,1";
7962 action: SIGNAL_EMIT "elm,action,unpress" "";
7963 after: "button_unclick_anim";
7965 program { name: "button_unclick_anim";
7966 action: STATE_SET "default" 0.0;
7967 target: "button_image";
7968 target: "clear_button.clipper";
7970 program { name: "touch_snd";
7971 signal: "mouse,clicked,1";
7973 action: PLAY_SAMPLE "touch_sound" 1.0;
7974 after: button_unclick3;
7976 program { name: "button_unclick3";
7977 action: SIGNAL_EMIT "elm,action,click" "";
7979 program { name: "disable";
7980 signal: "elm,state,disabled";
7982 action: STATE_SET "disabled" 0.0;
7983 target: "button_image";
7985 target: "clear_button.clipper";
7987 program { name: "enable";
7988 signal: "elm,state,enabled";
7990 action: STATE_SET "default" 0.0;
7991 target: "button_image";
7993 target: "clear_button.clipper";
7998 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
7999 group { name: "elm/button/base/"style_name; \
8001 item: "focus_highlight" "on"; \
8004 image: image_normal COMP; \
8007 part { name: "elm.swallow.content"; \
8010 description { state: "default" 0.0; \
8013 part { name: "focus_image"; \
8017 description { state: "default" 0.0; \
8020 normal: image_normal; \
8025 description { state: "focused" 0.0; \
8026 inherit: "default" 0.0; \
8030 part { name: "over2"; \
8033 ignore_flags: ON_HOLD; \
8034 description { state: "default" 0.0; \
8038 part { name: "over3"; \
8041 description { state: "default" 0.0; \
8047 program { name: "button_click"; \
8048 signal: "mouse,down,1"; \
8050 action: SIGNAL_EMIT "elm,action,press" ""; \
8052 program { name: "button_unclick"; \
8053 signal: "mouse,up,1"; \
8055 action: SIGNAL_EMIT "elm,action,unpress" ""; \
8057 program { name: "button_click3"; \
8058 signal: "mouse,clicked,1"; \
8060 action: SIGNAL_EMIT "elm,action,click" ""; \
8062 program { name: "action_focus"; \
8063 signal: "elm,action,focus_highlight,show"; \
8065 action: STATE_SET "focused" 0.0; \
8066 target: "focus_image"; \
8068 program { name: "action_unfocus"; \
8069 signal: "elm,action,focus_highlight,hide"; \
8071 action: STATE_SET "default" 0.0; \
8072 target: "focus_image"; \
8077 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
8078 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
8079 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
8080 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
8082 group { name: "elm/button/base/search_icon";
8084 image: "00_search_icon.png" COMP;
8087 part { name: "search_icon";
8090 clip_to: "search_icon.clipper";
8091 description { state: "default" 0.0;
8092 min: BUTTON_SEARCH_ICON_MIN_MAX_INC;
8093 max: BUTTON_SEARCH_ICON_MIN_MAX_INC;
8096 image.normal: "00_search_icon.png";
8099 part { name: "search_icon.clipper";
8101 description { state: "default" 0.0;
8102 color: BUTTON_SEARCH_ICON_CLIPPER_DEFAULT_COLOR_INC;
8104 description { state: "disabled" 0.0;
8105 color: BUTTON_SEARCH_ICON_CLIPPER_DISABLED_COLOR_INC;
8108 part { name: "over2";
8110 ignore_flags: ON_HOLD;
8111 description { state: "default" 0.0;
8115 part { name: "over3";
8118 description { state: "default" 0.0;
8122 part { name: "disabler";
8124 description { state: "default" 0.0;
8128 description { state: "disabled" 0.0;
8129 inherit: "default" 0.0;
8135 program { name: "button_click";
8136 signal: "mouse,down,1";
8138 action: SIGNAL_EMIT "elm,action,press" "";
8140 program { name: "button_double_click";
8141 signal: "mouse,down,1,double";
8144 program { name: "button_unclick";
8145 signal: "mouse,up,1";
8147 action: SIGNAL_EMIT "elm,action,unpress" "";
8149 program { name: "touch_snd";
8150 signal: "mouse,clicked,1";
8152 action: PLAY_SAMPLE "touch_sound" 1.0;
8153 after: "button_unclick3";
8155 program { name: "button_unclick3";
8156 action: SIGNAL_EMIT "elm,action,click" "";
8158 program { name: "disable";
8159 signal: "elm,state,disabled";
8161 action: STATE_SET "disabled" 0.0;
8163 target: "search_icon.clipper";
8165 program { name: "enable";
8166 signal: "elm,state,enabled";
8168 action: STATE_SET "default" 0.0;
8170 target: "search_icon.clipper";
8174 group { name: "elm/button/base/search_rename";
8175 inherit: "elm/button/base/editfield_rename";
8177 part { name: "rename_button";
8180 clip_to: "rename_button.clipper";
8181 description { state: "default" 0.0;
8182 min: BUTTON_SEARCH_RENAME_BUTTON_MIN_MAX_INC;
8183 max: BUTTON_SEARCH_RENAME_BUTTON_MIN_MAX_INC;
8186 image.normal: "00_edit_field_rename.png";
8192 group { name: "elm/button/base/search_clear";
8193 inherit: "elm/button/base/editfield_clear";
8195 part { name: "clear_button";
8198 clip_to: "clear_button.clipper";
8199 description { state: "default" 0.0;
8200 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
8201 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
8204 image.normal: "00_edit_field_clear.png";
8210 #undef BUTTON_STATE_ENABLED
8211 #undef BUTTON_STATE_DISABLED
8212 #undef BUTTON_LANDSCAPE_DISABLED
8213 #undef BUTTON_LANDSCAPE_ENABLED