3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 #define BUTTON_STATE_ENABLED 0
21 #define BUTTON_STATE_DISABLED 1
25 name: "touch_sound" AS_IS;
26 source: "S_Touch_30ms.wav";
30 ///////////////////////////////////////////////////////////////////////////////////////
31 group { name: "elm/button/base/style1";
32 alias: "elm/button/base/text_only/style1";
33 alias: "elm/button/base/center";
34 alias: "elm/button/base/icon_and_text/center";
35 alias: "elm/button/base/nocontents/search_button";
36 alias: "elm/button/base/style1/multiline";
38 image: "00_button_01.png" COMP;
39 image: "00_button_01_press.png" COMP;
40 image: "00_button_01_dim.png" COMP;
43 public button_state = BUTTON_STATE_ENABLED;
46 part { name: "button_image";
48 description { state: "default" 0.0;
50 normal: "00_button_01.png";
51 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
55 description { state: "clicked" 0.0;
56 inherit: "default" 0.0;
57 image.normal: "00_button_01_press.png";
59 description { state: "disabled" 0.0;
60 inherit: "default" 0.0;
61 image.normal: "00_button_01_dim.png";
63 description { state: "focused" 0.0;
64 inherit: "default" 0.0;
65 image.normal: "00_button_01_press.png";
68 part { name: "padding_left_top";
72 description { state: "default" 0.0;
74 rel2.relative: 0.0 0.0;
75 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
84 description { state: "default" 0.0;
85 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
88 description { state: "visible" 0.0;
89 inherit: "default" 0.0;
90 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
92 description { state: "icononly" 0.0;
93 inherit: "default" 0.0;
94 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
97 part { name: "padding_right_bottom";
101 description { state: "default" 0.0;
103 rel1.relative: 1.0 1.0;
104 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
109 part { name: "icon_rect";
113 description { state: "default" 0.0;
119 to: "padding_left_top";
123 to_x: "padding_left_top";
124 to_y: "padding_right_bottom";
128 description { state: "visible" 0.0;
129 inherit: "default" 0.0;
130 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
131 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
133 description { state: "icononly" 0.0;
134 inherit: "default" 0.0;
137 part { name: "padding_after_icon";
141 description { state: "default" 0.0; //when only icon or no icon is there
147 rel2.to: "icon_rect";
152 description { state: "visible" 0.0;
153 inherit: "default" 0.0;
154 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
156 description { state: "icononly" 0.0;
157 inherit: "default" 0.0;
160 part { name: "padding_before_text";
164 description { state: "default" 0.0; //when only icon or no icon is there
169 to_y: "padding_left_top";
174 to_y: "padding_right_bottom";
177 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
181 part { name: "elm.swallow.content";
185 description { state: "default" 0.0;
190 to: "padding_left_top";
194 to_x: "padding_left_top";
195 to_y: "padding_right_bottom";
199 description { state: "visible" 0.0;
201 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
202 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
206 to_x: "padding_before_text";
207 to_y: "padding_left_top";
211 to_x: "padding_before_text";
212 to_y: "padding_right_bottom";
215 description { state: "icononly" 0.0;
216 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
217 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
220 part { name: "elm.text";
223 effect: SHADOW BOTTOM;
226 description { state: "default" 0.0;
230 to_x: "padding_after_icon";
231 to_y: "padding_left_top";
235 to: "padding_right_bottom";
237 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
238 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
240 font: "Tizen:style=Regular";
241 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
247 description { state: "visible" 0.0;
248 inherit: "default" 0.0;
251 description { state: "clicked" 0.0;
252 inherit: "default" 0.0;
254 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
255 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
257 description { state: "disabled" 0.0;
258 inherit: "default" 0.0;
260 description { state: "disabled_visible" 0.0;
261 inherit: "default" 0.0;
262 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
263 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
266 description { state: "focused" 0.0;
267 inherit: "default" 0.0;
269 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
272 part { name: "over2";
275 ignore_flags: ON_HOLD;
276 description { state: "default" 0.0;
280 part { name: "over3";
283 description { state: "default" 0.0;
287 part { name: "clipper";
289 description { state: "default" 0.0;
290 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
292 description { state: "disabled" 0.0;
293 inherit: "default" 0.0;
294 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
297 part { name: "disabler";
299 description { state: "default" 0.0;
303 description { state: "disabled" 0.0;
304 inherit: "default" 0.0;
310 program { name: "button_click";
311 signal: "mouse,down,1";
313 action: SIGNAL_EMIT "elm,action,press" "";
314 after: "button_click_anim";
316 program { name: "button_click_anim";
317 action: STATE_SET "clicked" 0.0;
318 target: "button_image";
319 after: "text_clicked";
321 program { name: "text_clicked";
325 get_state(PART:"elm.text", st, 30, vl);
326 if (!strcmp(st, "visible"))
327 set_state(PART:"elm.text", "clicked", 0.0);
330 program { name: "button_double_click";
331 signal: "mouse,down,1,double";
333 after: "button_click_anim";
335 program { name: "button_unpress";
336 action: SIGNAL_EMIT "elm,action,unpress" "";
338 program { name: "button_mouseout_clicked";
339 signal: "mouse,up,1";
344 get_state(PART:"elm.swallow.content", st, 30, vl);
345 if (strcmp(st, "icononly"))
347 emit("elm,action,default,text,set", "");
348 set_state(PART:"elm.text", "visible", 0.0);
350 if (get_int(button_state) != BUTTON_STATE_DISABLED)
351 set_state(PART:"button_image", "default", 0.0);
353 after: button_unpress;
355 program { name: "touch_snd";
356 signal: "mouse,clicked,1";
358 action: PLAY_SAMPLE "touch_sound" 1.0;
359 after: button_unclick3;
361 program { name: "button_unclick3";
362 action: SIGNAL_EMIT "elm,action,click" "";
364 program { name: "text_show";
365 signal: "elm,state,text,visible";
370 get_state(PART:"elm.swallow.content", st, 30, vl);
371 if (!strcmp(st, "icononly"))
373 set_state(PART:"elm.swallow.content", "visible", 0.0);
374 set_state(PART:"icon_rect", "visible", 0.0);
375 set_state(PART:"padding_after_icon", "visible", 0.0);
376 set_state(PART:"bg", "visible", 0.0);
378 if (get_int(button_state) != BUTTON_STATE_DISABLED)
379 set_state(PART:"elm.text", "visible", 0.0);
381 set_state(PART:"elm.text", "disabled_visible", 0.0);
384 program { name: "text_hide";
385 signal: "elm,state,text,hidden";
390 get_state(PART:"elm.swallow.content", st, 30, vl);
391 if (!strcmp(st, "visible"))
393 set_state(PART:"elm.swallow.content", "icononly", 0.0);
394 set_state(PART:"icon_rect", "icononly", 0.0);
395 set_state(PART:"padding_after_icon", "icononly", 0.0);
396 set_state(PART:"bg", "icononly", 0.0);
398 set_state(PART:"elm.text", "default", 0.0);
401 program { name: "icon_show";
402 signal: "elm,state,icon,visible";
407 get_state(PART:"elm.text", st, 30, vl);
408 if (!strcmp(st, "visible"))
410 set_state(PART:"elm.swallow.content", "visible", 0.0);
411 set_state(PART:"icon_rect", "visible", 0.0);
412 set_state(PART:"padding_after_icon", "visible", 0.0);
413 set_state(PART:"bg", "visible", 0.0);
417 set_state(PART:"elm.swallow.content", "icononly", 0.0);
418 set_state(PART:"icon_rect", "icononly", 0.0);
419 set_state(PART:"padding_after_icon", "icononly", 0.0);
420 set_state(PART:"bg", "icononly", 0.0);
424 program { name: "icon_hide";
425 signal: "elm,state,icon,hidden";
427 action: STATE_SET "default" 0.0;
428 target: "elm.swallow.content";
429 target: "padding_after_icon";
433 program { name: "disable";
434 signal: "elm,state,disabled";
436 action: STATE_SET "disabled" 0.0;
437 target: "button_image";
440 after: "disable_text";
442 program { name: "disable_text";
446 get_state(PART:"elm.text", st, 30, vl);
447 if (!strcmp(st, "visible"))
448 set_state(PART:"elm.text", "disabled_visible", 0.0);
450 set_state(PART:"elm.text", "disabled", 0.0);
451 set_int(button_state, BUTTON_STATE_DISABLED);
454 program { name: "enable";
455 signal: "elm,state,enabled";
457 action: STATE_SET "default" 0.0;
458 target: "button_image";
461 after: "enable_text";
463 program { name: "enable_text";
467 get_state(PART:"elm.text", st, 30, vl);
468 if (!strcmp(st, "disabled_visible"))
469 set_state(PART:"elm.text", "visible", 0.0);
471 set_state(PART:"elm.text", "default", 0.0);
472 set_int(button_state, BUTTON_STATE_ENABLED);
475 program { name: "focused";
476 //signal: "elm,action,focus";
478 action: STATE_SET "focused" 0.0;
479 target: "button_image";
482 program { name: "unfocused";
483 //signal: "elm,action,unfocus";
485 action: STATE_SET "default" 0.0;
486 target: "button_image";
487 after: "unfocus_text";
489 program { name: "unfocus_text";
490 action: STATE_SET "visible" 0.0;
496 //////////////////////////////////////////////////////////////
497 group { name: "elm/button/base/style1/auto_expand";
498 inherit: "elm/button/base/style1";
500 part { name: "elm.text";
503 effect: SHADOW BOTTOM;
506 description { state: "default" 0.0;
510 to_x: "padding_after_icon";
511 to_y: "padding_left_top";
515 to: "padding_right_bottom";
517 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
518 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
520 font: "Tizen:style=Regular";
521 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
527 description { state: "visible" 0.0;
528 inherit: "default" 0.0;
531 description { state: "clicked" 0.0;
532 inherit: "default" 0.0;
534 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
535 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
537 description { state: "disabled" 0.0;
538 inherit: "default" 0.0;
540 description { state: "disabled_visible" 0.0;
541 inherit: "default" 0.0;
542 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
543 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
546 description { state: "focused" 0.0;
547 inherit: "default" 0.0;
549 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
555 //////////////////////////////////////////////////////////////////////////////////////
556 group { name: "elm/button/base/datetime/ampm/default";
557 alias: "elm/button/base/datetime_ampm/default";
558 inherit: "elm/button/base/style1/auto_expand";
560 part { name: "button_image";
562 description { state: "default" 0.0;
564 normal: "00_button_01.png";
565 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
568 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
569 max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
571 description { state: "clicked" 0.0;
572 inherit: "default" 0.0;
573 image.normal: "00_button_01_press.png";
575 description { state: "disabled" 0.0;
576 inherit: "default" 0.0;
577 image.normal: "00_button_01_dim.png";
579 description { state: "focused" 0.0;
580 inherit: "default" 0.0;
581 image.normal: "00_button_01_press.png";
588 description { state: "default" 0.0;
592 description { state: "visible" 0.0;
593 inherit: "default" 0.0;
594 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
596 description { state: "icononly" 0.0;
597 inherit: "default" 0.0;
600 part { name: "elm.text";
603 effect: SHADOW BOTTOM;
606 description { state: "default" 0.0;
609 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
610 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
613 description { state: "visible" 0.0;
614 inherit: "default" 0.0;
617 description { state: "clicked" 0.0;
618 inherit: "default" 0.0;
620 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
621 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
623 description { state: "disabled" 0.0;
624 inherit: "default" 0.0;
626 description { state: "disabled_visible" 0.0;
627 inherit: "default" 0.0;
628 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
629 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
632 description { state: "focused" 0.0;
633 inherit: "default" 0.0;
635 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
641 ///////////////////////////////////////////////////////////////////////////////////////
642 group { name: "elm/button/base/style1/delete";
643 inherit: "elm/button/base/style1";
645 image: "00_button_01_Delete.png" COMP;
646 image: "00_button_01_Delete_dim.png" COMP;
647 image: "00_button_01_Delete_press.png" COMP;
650 part { name: "button_image";
652 description { state: "default" 0.0;
654 normal: "00_button_01_Delete.png";
655 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
659 description { state: "clicked" 0.0;
660 inherit: "default" 0.0;
661 image.normal: "00_button_01_Delete_press.png";
663 description { state: "disabled" 0.0;
664 inherit: "default" 0.0;
665 image.normal: "00_button_01_Delete_dim.png";
667 description { state: "focused" 0.0;
668 inherit: "default" 0.0;
669 image.normal: "00_button_01_Delete_press.png";
672 part { name: "elm.text";
675 effect: SHADOW BOTTOM;
678 description { state: "default" 0.0;
682 to_x: "padding_after_icon";
683 to_y: "padding_left_top";
687 to: "padding_right_bottom";
689 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
690 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
692 font: "Tizen:style=Regular";
693 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
699 description { state: "visible" 0.0;
700 inherit: "default" 0.0;
703 description { state: "clicked" 0.0;
704 inherit: "default" 0.0;
706 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
707 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
709 description { state: "disabled" 0.0;
710 inherit: "default" 0.0;
712 description { state: "disabled_visible" 0.0;
713 inherit: "default" 0.0;
714 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
715 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
718 description { state: "focused" 0.0;
719 inherit: "default" 0.0;
721 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
727 ///////////////////////////////////////////////////////////////////////////////////////
728 group { name: "elm/button/base/search_button/text";
729 alias: "elm/button/base/searchbar/default";
730 inherit: "elm/button/base/style1";
732 image: "00_button_01.png" COMP;
733 image: "00_button_01_dim.png" COMP;
734 image: "00_button_01_press.png" COMP;
737 part { name: "button_image";
739 description { state: "default" 0.0;
741 normal: "00_button_01.png";
742 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
746 description { state: "clicked" 0.0;
747 inherit: "default" 0.0;
748 image.normal: "00_button_01_press.png";
750 description { state: "disabled" 0.0;
751 inherit: "default" 0.0;
752 image.normal: "00_button_01_dim.png";
754 description { state: "focused" 0.0;
755 inherit: "default" 0.0;
756 image.normal: "00_button_01_press.png";
763 description { state: "default" 0.0;
764 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
767 description { state: "visible" 0.0;
768 inherit: "default" 0.0;
769 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
771 description { state: "icononly" 0.0;
772 inherit: "default" 0.0;
773 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
776 part { name: "elm.text";
779 effect: SHADOW BOTTOM;
782 description { state: "default" 0.0;
786 to_x: "padding_after_icon";
787 to_y: "padding_left_top";
791 to: "padding_right_bottom";
793 color: BUTTON_SEARCH_BUTTON_TEXT_NORMAL_COLOR_INC;
795 font: "Tizen:style=Regular";
796 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
802 description { state: "visible" 0.0;
803 inherit: "default" 0.0;
806 description { state: "clicked" 0.0;
807 inherit: "default" 0.0;
809 color: BUTTON_SEARCH_BUTTON_TEXT_PRESSED_COLOR_INC;
810 color2: BUTTON_SEARCH_BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
812 description { state: "disabled" 0.0;
813 inherit: "default" 0.0;
815 description { state: "disabled_visible" 0.0;
816 inherit: "default" 0.0;
817 color: BUTTON_SEARCH_BUTTON_TEXT_DISABLED_COLOR_INC;
820 description { state: "focused" 0.0;
821 inherit: "default" 0.0;
823 color: BUTTON_SEARCH_BUTTON_TEXT_FOCUSED_COLOR_INC;
829 ///////////////////////////////////////////////////////////////////////////////////////
830 group { name: "elm/button/base/search_button/send";
831 inherit: "elm/button/base/style1";
833 image: "00_button_01_send.png" COMP;
834 image: "00_button_01_send_dim.png" COMP;
835 image: "00_button_01_send_press.png" COMP;
838 part { name: "button_image";
840 description { state: "default" 0.0;
842 normal: "00_button_01_send.png";
843 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
847 description { state: "clicked" 0.0;
848 inherit: "default" 0.0;
849 image.normal: "00_button_01_send_press.png";
851 description { state: "disabled" 0.0;
852 inherit: "default" 0.0;
853 image.normal: "00_button_01_send_dim.png";
855 description { state: "focused" 0.0;
856 inherit: "default" 0.0;
857 image.normal: "00_button_01_send_press.png";
864 description { state: "default" 0.0;
865 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
868 description { state: "visible" 0.0;
869 inherit: "default" 0.0;
870 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
872 description { state: "icononly" 0.0;
873 inherit: "default" 0.0;
874 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
877 part { name: "elm.text";
880 effect: SHADOW BOTTOM;
883 description { state: "default" 0.0;
887 to_x: "padding_after_icon";
888 to_y: "padding_left_top";
892 to: "padding_right_bottom";
894 color: BUTTON_SEARCH_BUTTON_SEND_NORMAL_COLOR_INC;
895 color2: BUTTON_SEARCH_BUTTON_SEND_SHADOW_NORMAL_COLOR_INC;
897 font: "Tizen:style=Regular";
898 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
904 description { state: "visible" 0.0;
905 inherit: "default" 0.0;
908 description { state: "clicked" 0.0;
909 inherit: "default" 0.0;
911 color: BUTTON_SEARCH_BUTTON_SEND_PRESSED_COLOR_INC;
913 description { state: "disabled" 0.0;
914 inherit: "default" 0.0;
916 description { state: "disabled_visible" 0.0;
917 inherit: "default" 0.0;
918 color: BUTTON_SEARCH_BUTTON_SEND_DISABLED_COLOR_INC;
921 description { state: "focused" 0.0;
922 inherit: "default" 0.0;
924 color: BUTTON_SEARCH_BUTTON_SEND_FOCUSED_COLOR_INC;
930 ///////////////////////////////////////////////////////////////////////////////////////
931 group { name: "elm/button/base/search_button/cancel";
932 inherit: "elm/button/base/style1";
934 image: "00_button_01_Delete.png" COMP;
935 image: "00_button_01_Delete_dim.png" COMP;
936 image: "00_button_01_Delete_press.png" COMP;
939 part { name: "button_image";
941 description { state: "default" 0.0;
943 normal: "00_button_01_Delete.png";
944 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
948 description { state: "clicked" 0.0;
949 inherit: "default" 0.0;
950 image.normal: "00_button_01_Delete_press.png";
952 description { state: "disabled" 0.0;
953 inherit: "default" 0.0;
954 image.normal: "00_button_01_Delete_dim.png";
956 description { state: "focused" 0.0;
957 inherit: "default" 0.0;
958 image.normal: "00_button_01_Delete_press.png";
965 description { state: "default" 0.0;
966 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
969 description { state: "visible" 0.0;
970 inherit: "default" 0.0;
971 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
973 description { state: "icononly" 0.0;
974 inherit: "default" 0.0;
975 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
978 part { name: "elm.text";
981 effect: SHADOW BOTTOM;
984 description { state: "default" 0.0;
988 to_x: "padding_after_icon";
989 to_y: "padding_left_top";
993 to: "padding_right_bottom";
995 color: BUTTON_SEARCH_BUTTON_CANCEL_NORMAL_COLOR_INC;
996 color2: BUTTON_SEARCH_BUTTON_CANCEL_SHADOW_NORMAL_COLOR_INC;
998 font: "Tizen:style=Regular";
999 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
1002 text_class: "tizen";
1005 description { state: "visible" 0.0;
1006 inherit: "default" 0.0;
1009 description { state: "clicked" 0.0;
1010 inherit: "default" 0.0;
1012 color: BUTTON_SEARCH_BUTTON_CANCEL_PRESSED_COLOR_INC;
1014 description { state: "disabled" 0.0;
1015 inherit: "default" 0.0;
1017 description { state: "disabled_visible" 0.0;
1018 inherit: "default" 0.0;
1019 color: BUTTON_SEARCH_BUTTON_CANCEL_DISABLED_COLOR_INC;
1022 description { state: "focused" 0.0;
1023 inherit: "default" 0.0;
1025 color: BUTTON_SEARCH_BUTTON_CANCEL_FOCUSED_COLOR_INC;
1031 ///////////////////////////////////////////////////////////////////////////////////////
1032 group { name: "elm/button/base/style2";
1033 alias: "elm/button/base/text_only/style2";
1034 alias: "elm/button/base/style2/multiline";
1036 image: "00_button_01.png" COMP;
1037 image: "00_button_01_press.png" COMP;
1038 image: "00_button_01_dim.png" COMP;
1041 public button_state = BUTTON_STATE_ENABLED;
1044 part { name: "button_image";
1046 description { state: "default" 0.0;
1048 normal: "00_button_01.png";
1049 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1053 description { state: "clicked" 0.0;
1054 inherit: "default" 0.0;
1055 image.normal: "00_button_01_press.png";
1057 description { state: "disabled" 0.0;
1058 inherit: "default" 0.0;
1059 image.normal: "00_button_01_dim.png";
1061 description { state: "focused" 0.0;
1062 inherit: "default" 0.0;
1063 image.normal: "00_button_01_press.png";
1066 part { name: "padding_left_top";
1070 description { state: "default" 0.0;
1072 rel2.relative: 0.0 0.0;
1073 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1082 description { state: "default" 0.0;
1083 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1086 description { state: "visible" 0.0;
1087 inherit: "default" 0.0;
1088 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1090 description { state: "icononly" 0.0;
1091 inherit: "default" 0.0;
1092 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1095 part { name: "padding_right_bottom";
1099 description { state: "default" 0.0;
1101 rel1.relative: 1.0 1.0;
1102 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1107 part { name: "icon_rect";
1111 description { state: "default" 0.0;
1117 to: "padding_left_top";
1121 to_x: "padding_left_top";
1122 to_y: "padding_right_bottom";
1126 description { state: "visible" 0.0;
1127 inherit: "default" 0.0;
1128 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1129 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1131 description { state: "icononly" 0.0;
1132 inherit: "default" 0.0;
1135 part { name: "padding_after_icon";
1139 description { state: "default" 0.0; //when only icon or no icon is there
1147 rel2.to: "icon_rect";
1150 description { state: "visible" 0.0;
1151 inherit: "default" 0.0;
1152 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1154 description { state: "icononly" 0.0;
1155 inherit: "default" 0.0;
1158 part { name: "padding_before_text";
1162 description { state: "default" 0.0; //when only icon or no icon is there
1167 to_y: "padding_left_top";
1172 to_y: "padding_right_bottom";
1175 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1179 part { name: "elm.swallow.content";
1183 description { state: "default" 0.0;
1188 to: "padding_left_top";
1192 to_x: "padding_left_top";
1193 to_y: "padding_right_bottom";
1197 description { state: "visible" 0.0;
1199 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1200 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1204 to_x: "padding_before_text";
1205 to_y: "padding_left_top";
1209 to_x: "padding_before_text";
1210 to_y: "padding_right_bottom";
1213 description { state: "icononly" 0.0;
1214 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1215 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1218 part { name: "elm.text";
1223 effect: SHADOW BOTTOM;
1224 description { state: "default" 0.0;
1228 to_x: "padding_after_icon";
1229 to_y: "padding_left_top";
1233 to: "padding_right_bottom";
1235 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1236 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1238 font: "Tizen:style=Regular";
1239 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1242 text_class: "tizen";
1245 description { state: "visible" 0.0;
1246 inherit: "default" 0.0;
1249 description { state: "clicked" 0.0;
1250 inherit: "default" 0.0;
1252 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1253 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1255 description { state: "disabled" 0.0;
1256 inherit: "default" 0.0;
1258 description { state: "disabled_visible" 0.0;
1259 inherit: "default" 0.0;
1260 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1261 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1264 description { state: "focused" 0.0;
1265 inherit: "default" 0.0;
1267 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1270 part { name: "over2";
1273 ignore_flags: ON_HOLD;
1274 description { state: "default" 0.0;
1278 part { name: "over3";
1281 description { state: "default" 0.0;
1285 part { name: "clipper";
1287 description { state: "default" 0.0;
1288 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1290 description { state: "disabled" 0.0;
1291 inherit: "default" 0.0;
1292 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1295 part { name: "disabler";
1297 description { state: "default" 0.0;
1301 description { state: "disabled" 0.0;
1302 inherit: "default" 0.0;
1308 program { name: "button_click";
1309 signal: "mouse,down,1";
1311 action: SIGNAL_EMIT "elm,action,press" "";
1312 after: "button_click_anim";
1314 program { name: "button_click_anim";
1315 action: STATE_SET "clicked" 0.0;
1316 target: "button_image";
1317 after: "text_clicked";
1319 program { name: "text_clicked";
1323 get_state(PART:"elm.text", st, 30, vl);
1324 if (!strcmp(st, "visible"))
1325 set_state(PART:"elm.text", "clicked", 0.0);
1328 program { name: "button_double_click";
1329 signal: "mouse,down,1,double";
1331 after: "button_click_anim";
1333 program { name: "button_unpress";
1334 action: SIGNAL_EMIT "elm,action,unpress" "";
1336 program { name: "button_mouseout_clicked";
1337 signal: "mouse,up,1";
1342 get_state(PART:"elm.swallow.content", st, 30, vl);
1343 if (strcmp(st, "icononly"))
1345 emit("elm,action,default,text,set", "");
1346 set_state(PART:"elm.text", "visible", 0.0);
1348 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1349 set_state(PART:"button_image", "default", 0.0);
1351 after: button_unpress;
1353 program { name: "touch_snd";
1354 signal: "mouse,clicked,1";
1356 action: PLAY_SAMPLE "touch_sound" 1.0;
1357 after: button_unclick3;
1359 program { name: "button_unclick3";
1360 action: SIGNAL_EMIT "elm,action,click" "";
1362 program { name: "text_show";
1363 signal: "elm,state,text,visible";
1368 get_state(PART:"elm.swallow.content", st, 30, vl);
1369 if (!strcmp(st, "icononly"))
1371 set_state(PART:"elm.swallow.content", "visible", 0.0);
1372 set_state(PART:"icon_rect", "visible", 0.0);
1373 set_state(PART:"padding_after_icon", "visible", 0.0);
1374 set_state(PART:"bg", "visible", 0.0);
1376 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1377 set_state(PART:"elm.text", "visible", 0.0);
1379 set_state(PART:"elm.text", "disabled_visible", 0.0);
1382 program { name: "text_hide";
1383 signal: "elm,state,text,hidden";
1388 get_state(PART:"elm.swallow.content", st, 30, vl);
1389 if (!strcmp(st, "visible"))
1391 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1392 set_state(PART:"icon_rect", "icononly", 0.0);
1393 set_state(PART:"padding_after_icon", "icononly", 0.0);
1394 set_state(PART:"bg", "icononly", 0.0);
1396 set_state(PART:"elm.text", "default", 0.0);
1399 program { name: "icon_show";
1400 signal: "elm,state,icon,visible";
1405 get_state(PART:"elm.text", st, 30, vl);
1406 if (!strcmp(st, "visible"))
1408 set_state(PART:"elm.swallow.content", "visible", 0.0);
1409 set_state(PART:"icon_rect", "visible", 0.0);
1410 set_state(PART:"padding_after_icon", "visible", 0.0);
1411 set_state(PART:"bg", "visible", 0.0);
1415 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1416 set_state(PART:"icon_rect", "icononly", 0.0);
1417 set_state(PART:"padding_after_icon", "icononly", 0.0);
1418 set_state(PART:"bg", "icononly", 0.0);
1422 program { name: "icon_hide";
1423 signal: "elm,state,icon,hidden";
1425 action: STATE_SET "default" 0.0;
1426 target: "elm.swallow.content";
1427 target: "padding_after_icon";
1428 target: "icon_rect";
1431 program { name: "disable";
1432 signal: "elm,state,disabled";
1434 action: STATE_SET "disabled" 0.0;
1435 target: "button_image";
1438 after: "disable_text";
1440 program { name: "disable_text";
1444 get_state(PART:"elm.text", st, 30, vl);
1445 if (!strcmp(st, "visible"))
1446 set_state(PART:"elm.text", "disabled_visible", 0.0);
1448 set_state(PART:"elm.text", "disabled", 0.0);
1449 set_int(button_state, BUTTON_STATE_DISABLED);
1452 program { name: "enable";
1453 signal: "elm,state,enabled";
1455 action: STATE_SET "default" 0.0;
1456 target: "button_image";
1459 after: "enable_text";
1461 program { name: "enable_text";
1465 get_state(PART:"elm.text", st, 30, vl);
1466 if (!strcmp(st, "disabled_visible"))
1467 set_state(PART:"elm.text", "visible", 0.0);
1469 set_state(PART:"elm.text", "default", 0.0);
1470 set_int(button_state, BUTTON_STATE_ENABLED);
1473 program { name: "focused";
1474 //signal: "elm,action,focus";
1476 action: STATE_SET "focused" 0.0;
1477 target: "button_image";
1480 program { name: "unfocused";
1481 //signal: "elm,action,unfocus";
1483 action: STATE_SET "default" 0.0;
1484 target: "button_image";
1485 after: "unfocus_text";
1487 program { name: "unfocus_text";
1488 action: STATE_SET "visible" 0.0;
1494 ///////////////////////////////////////////////////////////////////////////////////////
1495 group { name: "elm/button/base/sweep";
1496 alias: "elm/button/base/text_only/sweep";
1497 alias: "elm/button/base/hidden";
1498 alias: "elm/button/base/sweep/multiline";
1500 image: "00_button_01.png" COMP;
1501 image: "00_button_01_press.png" COMP;
1502 image: "00_button_01_dim.png" COMP;
1505 public button_state = BUTTON_STATE_ENABLED;
1508 style { name: "btn_sweep_multiline";
1509 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";
1516 part { name: "button_image";
1518 description { state: "default" 0.0;
1519 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1521 normal: "00_button_01.png";
1522 border: BUTTON_SWEEP_BG_BORDER_INC;
1526 description { state: "clicked" 0.0;
1527 inherit: "default" 0.0;
1528 image.normal: "00_button_01_press.png";
1530 description { state: "disabled" 0.0;
1531 inherit: "default" 0.0;
1532 image.normal: "00_button_01_dim.png";
1534 description { state: "focused" 0.0;
1535 inherit: "default" 0.0;
1536 image.normal: "00_button_01_press.png";
1539 part { name: "padding_left_top";
1543 description { state: "default" 0.0;
1545 rel2.relative: 0.0 0.0;
1546 min: BUTTON_SWEEP_PADDING_MIN_INC;
1551 part { name: "padding_right_bottom";
1555 description { state: "default" 0.0;
1557 rel1.relative: 1.0 1.0;
1558 min: BUTTON_SWEEP_PADDING_MIN_INC;
1563 part { name: "icon_rect";
1567 description { state: "default" 0.0;
1568 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1572 to_x: "elm.swallow.content";
1573 to_y: "padding_left_top";
1577 to_x: "elm.swallow.content";
1578 to_y: "padding_right_bottom";
1584 part { name: "padding_icon_text";
1588 description { state: "default" 0.0; //when only icon or no icon is there
1596 rel2.to: "icon_rect";
1599 description { state: "visible" 0.0; //when icon is visible
1600 inherit: "default" 0.0;
1601 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1603 description { state: "icononly" 0.0;
1604 inherit: "default" 0.0;
1607 part { name: "elm.swallow.content";
1611 description { state: "default" 0.0;
1616 to: "padding_left_top";
1620 to_x: "padding_left_top";
1621 to_y: "padding_right_bottom";
1625 description { state: "visible" 0.0;
1626 inherit: "default" 0.0;
1627 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1628 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1631 aspect_preference: VERTICAL;
1633 description { state: "icononly" 0.0;
1634 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1635 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1638 part { name: "elm.text";
1641 effect: SHADOW BOTTOM;
1644 description { state: "default" 0.0;
1649 to_x: "padding_icon_text";
1650 to_y: "padding_left_top";
1654 to: "padding_right_bottom";
1656 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1657 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1659 style: "btn_sweep_multiline";
1663 description { state: "visible" 0.0;
1664 inherit: "default" 0.0;
1666 min: BUTTON_SWEEP_TEXT_MIN_INC;
1668 description { state: "clicked" 0.0;
1669 inherit: "default" 0.0;
1672 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1673 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1675 description { state: "disabled" 0.0;
1676 inherit: "default" 0.0;
1678 description { state: "disabled_visible" 0.0;
1679 inherit: "default" 0.0;
1680 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1681 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1683 min: BUTTON_SWEEP_TEXT_MIN_INC;
1685 description { state: "focused" 0.0;
1686 inherit: "default" 0.0;
1689 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1692 part { name: "over2";
1695 ignore_flags: ON_HOLD;
1696 description { state: "default" 0.0;
1700 part { name: "over3";
1703 description { state: "default" 0.0;
1707 part { name: "clipper";
1709 description { state: "default" 0.0;
1710 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1712 description { state: "disabled" 0.0;
1713 inherit: "default" 0.0;
1714 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1717 part { name: "disabler";
1719 description { state: "default" 0.0;
1723 description { state: "disabled" 0.0;
1724 inherit: "default" 0.0;
1730 program { name: "button_click";
1731 signal: "mouse,down,1";
1733 action: SIGNAL_EMIT "elm,action,press" "";
1734 after: "button_click_anim";
1736 program { name: "button_click_anim";
1737 action: STATE_SET "clicked" 0.0;
1738 target: "button_image";
1739 after: "text_clicked";
1741 program { name: "text_clicked";
1745 get_state(PART:"elm.text", st, 30, vl);
1746 if (!strcmp(st, "visible"))
1747 set_state(PART:"elm.text", "clicked", 0.0);
1750 program { name: "button_double_click";
1751 signal: "mouse,down,1,double";
1753 after: "button_click_anim";
1755 program { name: "button_unpress";
1756 action: SIGNAL_EMIT "elm,action,unpress" "";
1758 program { name: "button_mouseout_clicked";
1759 signal: "mouse,up,1";
1764 get_state(PART:"elm.swallow.content", st, 30, vl);
1765 if (strcmp(st, "icononly"))
1767 emit("elm,action,default,text,set", "");
1768 set_state(PART:"elm.text", "visible", 0.0);
1770 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1771 set_state(PART:"button_image", "default", 0.0);
1773 after: button_unpress;
1775 program { name: "touch_snd";
1776 signal: "mouse,clicked,1";
1778 action: PLAY_SAMPLE "touch_sound" 1.0;
1779 after: button_unclick3;
1781 program { name: "button_unclick3";
1782 action: SIGNAL_EMIT "elm,action,click" "";
1784 program { name: "text_show";
1785 signal: "elm,state,text,visible";
1790 get_state(PART:"elm.swallow.content", st, 30, vl);
1791 if (!strcmp(st, "icononly"))
1793 set_state(PART:"elm.swallow.content", "visible", 0.0);
1794 set_state(PART:"padding_icon_text", "visible", 0.0);
1796 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1797 set_state(PART:"elm.text", "visible", 0.0);
1799 set_state(PART:"elm.text", "disabled_visible", 0.0);
1802 program { name: "text_hide";
1803 signal: "elm,state,text,hidden";
1808 get_state(PART:"elm.swallow.content", st, 30, vl);
1809 if (!strcmp(st, "visible"))
1811 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1812 set_state(PART:"padding_icon_text", "icononly", 0.0);
1814 set_state(PART:"elm.text", "default", 0.0);
1817 program { name: "icon_show";
1818 signal: "elm,state,icon,visible";
1823 get_state(PART:"elm.text", st, 30, vl);
1824 if (!strcmp(st, "visible"))
1826 set_state(PART:"elm.swallow.content", "visible", 0.0);
1827 set_state(PART:"padding_icon_text", "visible", 0.0);
1831 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1832 set_state(PART:"padding_icon_text", "icononly", 0.0);
1836 program { name: "icon_hide";
1837 signal: "elm,state,icon,hidden";
1839 action: STATE_SET "default" 0.0;
1840 target: "elm.swallow.content";
1841 target: "padding_icon_text";
1843 program { name: "disable";
1844 signal: "elm,state,disabled";
1846 action: STATE_SET "disabled" 0.0;
1847 target: "button_image";
1850 after: "disable_text";
1852 program { name: "disable_text";
1856 get_state(PART:"elm.text", st, 30, vl);
1857 if (!strcmp(st, "visible"))
1858 set_state(PART:"elm.text", "disabled_visible", 0.0);
1860 set_state(PART:"elm.text", "disabled", 0.0);
1861 set_int(button_state, BUTTON_STATE_DISABLED);
1864 program { name: "enable";
1865 signal: "elm,state,enabled";
1867 action: STATE_SET "default" 0.0;
1868 target: "button_image";
1871 after: "enable_text";
1873 program { name: "enable_text";
1877 get_state(PART:"elm.text", st, 30, vl);
1878 if (!strcmp(st, "disabled_visible"))
1879 set_state(PART:"elm.text", "visible", 0.0);
1881 set_state(PART:"elm.text", "default", 0.0);
1882 set_int(button_state, BUTTON_STATE_ENABLED);
1885 program { name: "focused";
1886 //signal: "elm,action,focus";
1888 action: STATE_SET "focused" 0.0;
1889 target: "button_image";
1892 program { name: "unfocused";
1893 //signal: "elm,action,unfocus";
1895 action: STATE_SET "default" 0.0;
1896 target: "button_image";
1897 after: "unfocus_text";
1899 program { name: "unfocus_text";
1900 action: STATE_SET "visible" 0.0;
1906 ///////////////////////////////////////////////////////////////////////////////////////
1907 group { name: "elm/button/base/sweep/delete";
1908 inherit: "elm/button/base/sweep";
1909 alias: "elm/button/base/sweep/delete/multiline";
1911 image: "00_button_01_Delete_press.png" COMP;
1912 image: "00_button_01_Delete.png" COMP;
1913 image: "00_button_01_Delete_dim.png" COMP;
1916 style { name: "btn_sweep_delete_multiline";
1917 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";
1924 part { name: "button_image";
1926 description { state: "default" 0.0;
1927 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1929 normal: "00_button_01_Delete.png";
1930 border: BUTTON_SWEEP_BG_BORDER_INC;
1934 description { state: "clicked" 0.0;
1935 inherit: "default" 0.0;
1936 image.normal: "00_button_01_Delete_press.png";
1938 description { state: "disabled" 0.0;
1939 inherit: "default" 0.0;
1940 image.normal: "00_button_01_Delete_dim.png";
1942 description { state: "focused" 0.0;
1943 inherit: "default" 0.0;
1944 image.normal: "00_button_01_Delete_press.png";
1947 part { name: "elm.text";
1950 effect: SHADOW BOTTOM;
1953 description { state: "default" 0.0;
1958 to_x: "padding_icon_text";
1959 to_y: "padding_left_top";
1963 to: "padding_right_bottom";
1965 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
1966 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1968 style: "btn_sweep_multiline";
1972 description { state: "visible" 0.0;
1973 inherit: "default" 0.0;
1975 min: BUTTON_SWEEP_TEXT_MIN_INC;
1977 description { state: "clicked" 0.0;
1978 inherit: "default" 0.0;
1981 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
1982 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1984 description { state: "disabled" 0.0;
1985 inherit: "default" 0.0;
1987 description { state: "disabled_visible" 0.0;
1988 inherit: "default" 0.0;
1989 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
1990 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1992 min: BUTTON_SWEEP_TEXT_MIN_INC;
1994 description { state: "focused" 0.0;
1995 inherit: "default" 0.0;
1998 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
2004 ///////////////////////////////////////////////////////////////////////////////////////
2005 group { name: "elm/button/base/popup_button/default";
2006 alias: "elm/button/base/popup_button/menustyle";
2007 alias: "elm/button/base/popup_button/liststyle";
2008 alias: "elm/button/base/popup_button/volumebarstyle";
2009 alias: "elm/button/base/popup_button/customstyle";
2010 alias: "elm/button/base/popup_button/verticalbuttonstyle";
2011 alias: "elm/button/base/popup_button/default/multiline";
2013 image: "00_button_01.png" COMP;
2014 image: "00_button_01_dim.png" COMP;
2015 image: "00_button_01_press.png" COMP;
2018 public button_state = BUTTON_STATE_ENABLED;
2021 part { name: "button_image";
2023 description { state: "default" 0.0;
2024 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2026 normal: "00_button_01.png";
2027 border: BUTTON_POPUP_BG_BORDER_INC;
2031 description { state: "clicked" 0.0;
2032 inherit: "default" 0.0;
2033 image.normal: "00_button_01_press.png";
2035 description { state: "disabled" 0.0;
2036 inherit: "default" 0.0;
2037 image.normal: "00_button_01_dim.png";
2039 description { state: "focused" 0.0;
2040 inherit: "default" 0.0;
2041 image.normal: "00_button_01_press.png";
2044 part { name: "padding_left_top";
2048 description { state: "default" 0.0;
2050 rel2.relative: 0.0 0.0;
2051 min: BUTTON_POPUP_PADDING_MIN_INC;
2056 part { name: "padding_right_bottom";
2059 description { state: "default" 0.0;
2061 rel1.relative: 1.0 1.0;
2062 min: BUTTON_POPUP_PADDING_MIN_INC;
2067 part { name: "padding_icon_text";
2070 description { state: "default" 0.0; //when only icon or no icon is there
2074 to: "elm.swallow.content";
2076 rel2.to: "elm.swallow.content";
2081 description { state: "icononly" 0.0;
2082 inherit: "default" 0.0;
2084 description { state: "visible" 0.0; //when icon is visible
2085 inherit: "default" 0.0;
2086 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2089 part { name: "elm.swallow.content";
2093 description { state: "default" 0.0;
2098 to: "padding_left_top";
2102 to_x: "padding_left_top";
2103 to_y: "padding_right_bottom";
2107 description { state: "visible" 0.0;
2108 inherit: "default" 0.0;
2112 aspect_preference: VERTICAL;
2114 description { state: "icononly" 0.0;
2115 inherit: "default" 0.0;
2116 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2121 part { name: "elm.text";
2126 effect: SHADOW BOTTOM;
2127 description { state: "default" 0.0;
2131 to_x: "padding_icon_text";
2132 to_y: "padding_left_top";
2136 to: "padding_right_bottom";
2138 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
2139 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2141 font: "Tizen:style=Regular";
2142 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
2144 text_class: "tizen";
2147 description { state: "visible" 0.0;
2148 inherit: "default" 0.0;
2150 min: BUTTON_POPUP_TEXT_MIN_INC;
2152 description { state: "clicked" 0.0;
2153 inherit: "default" 0.0;
2156 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
2157 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
2159 description { state: "disabled" 0.0;
2160 inherit: "default" 0.0;
2162 description { state: "disabled_visible" 0.0;
2163 inherit: "default" 0.0;
2164 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
2165 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2167 min: BUTTON_POPUP_TEXT_MIN_INC;
2169 description { state: "focused" 0.0;
2170 inherit: "default" 0.0;
2173 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2176 part { name: "over2";
2179 ignore_flags: ON_HOLD;
2180 description { state: "default" 0.0;
2184 part { name: "over3";
2187 description { state: "default" 0.0;
2191 part { name: "clipper";
2193 description { state: "default" 0.0;
2194 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
2196 description { state: "disabled" 0.0;
2197 inherit: "default" 0.0;
2198 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
2201 part { name: "disabler";
2203 description { state: "default" 0.0;
2207 description { state: "disabled" 0.0;
2208 inherit: "default" 0.0;
2214 program { name: "button_click";
2215 signal: "mouse,down,1";
2217 action: SIGNAL_EMIT "elm,action,press" "";
2218 after: "button_click_anim";
2220 program { name: "button_click_anim";
2221 action: STATE_SET "clicked" 0.0;
2222 target: "button_image";
2223 after: "text_clicked";
2225 program { name: "text_clicked";
2229 get_state(PART:"elm.text", st, 30, vl);
2230 if (!strcmp(st, "visible"))
2231 set_state(PART:"elm.text", "clicked", 0.0);
2234 program { name: "button_double_click";
2235 signal: "mouse,down,1,double";
2237 after: "button_click_anim";
2239 program { name: "button_unpress";
2240 action: SIGNAL_EMIT "elm,action,unpress" "";
2242 program { name: "button_mouseout_clicked";
2243 signal: "mouse,up,1";
2248 get_state(PART:"elm.swallow.content", st, 30, vl);
2249 if (strcmp(st, "icononly"))
2251 emit("elm,action,default,text,set", "");
2252 set_state(PART:"elm.text", "visible", 0.0);
2254 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2255 set_state(PART:"button_image", "default", 0.0);
2257 after: button_unpress;
2259 program { name: "touch_snd";
2260 signal: "mouse,clicked,1";
2262 action: PLAY_SAMPLE "touch_sound" 1.0;
2263 after: button_unclick3;
2265 program { name: "button_unclick3";
2266 action: SIGNAL_EMIT "elm,action,click" "";
2268 program { name: "text_show";
2269 signal: "elm,state,text,visible";
2274 get_state(PART:"elm.swallow.content", st, 30, vl);
2275 if (!strcmp(st, "icononly"))
2277 set_state(PART:"elm.swallow.content", "visible", 0.0);
2278 set_state(PART:"padding_icon_text", "visible", 0.0);
2280 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2281 set_state(PART:"elm.text", "visible", 0.0);
2283 set_state(PART:"elm.text", "disabled_visible", 0.0);
2286 program { name: "text_hide";
2287 signal: "elm,state,text,hidden";
2292 get_state(PART:"elm.swallow.content", st, 30, vl);
2293 if (!strcmp(st, "visible"))
2295 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2296 set_state(PART:"padding_icon_text", "icononly", 0.0);
2298 set_state(PART:"elm.text", "default", 0.0);
2301 program { name: "icon_show";
2302 signal: "elm,state,icon,visible";
2307 get_state(PART:"elm.text", st, 30, vl);
2308 if (!strcmp(st, "visible"))
2310 set_state(PART:"elm.swallow.content", "visible", 0.0);
2311 set_state(PART:"padding_icon_text", "visible", 0.0);
2315 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2316 set_state(PART:"padding_icon_text", "icononly", 0.0);
2320 program { name: "icon_hide";
2321 signal: "elm,state,icon,hidden";
2323 action: STATE_SET "default" 0.0;
2324 target: "elm.swallow.content";
2325 target: "padding_icon_text";
2327 program { name: "disable";
2328 signal: "elm,state,disabled";
2330 action: STATE_SET "disabled" 0.0;
2331 target: "button_image";
2334 after: "disable_text";
2336 program { name: "disable_text";
2340 get_state(PART:"elm.text", st, 30, vl);
2341 if (!strcmp(st, "visible"))
2342 set_state(PART:"elm.text", "disabled_visible", 0.0);
2344 set_state(PART:"elm.text", "disabled", 0.0);
2345 set_int(button_state, BUTTON_STATE_DISABLED);
2348 program { name: "enable";
2349 signal: "elm,state,enabled";
2351 action: STATE_SET "default" 0.0;
2352 target: "button_image";
2355 after: "enable_text";
2357 program { name: "enable_text";
2361 get_state(PART:"elm.text", st, 30, vl);
2362 if (!strcmp(st, "disabled_visible"))
2363 set_state(PART:"elm.text", "visible", 0.0);
2365 set_state(PART:"elm.text", "default", 0.0);
2366 set_int(button_state, BUTTON_STATE_ENABLED);
2369 program { name: "focused";
2370 //signal: "elm,action,focus";
2372 action: STATE_SET "focused" 0.0;
2373 target: "button_image";
2376 program { name: "unfocused";
2377 //signal: "elm,action,unfocus";
2379 action: STATE_SET "default" 0.0;
2380 target: "button_image";
2381 after: "unfocus_text";
2383 program { name: "unfocus_text";
2384 action: STATE_SET "visible" 0.0;
2390 ///////////////////////////////////////////////////////////////////////////////////////
2391 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2392 group { name: "elm/button/base/"style_name; \
2394 image: "00_circle_button.png" COMP; \
2395 image: "00_circle_button_press.png" COMP; \
2396 image: "00_circle_button_dim.png" COMP; \
2397 image: image_normal COMP; \
2398 image: image_press COMP; \
2401 part { name: "button_image"; \
2403 description { state: "default" 0.0; \
2404 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2405 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2406 image.normal: "00_circle_button.png"; \
2409 state: "clicked" 0.0; \
2410 inherit: "default" 0.0; \
2411 image.normal: "00_circle_button_press.png"; \
2414 state: "disabled" 0.0; \
2415 inherit: "default" 0.0; \
2416 image.normal: "00_circle_button_dim.png"; \
2419 part { name: "button_center_part"; \
2421 clip_to: "icon_clipper"; \
2422 description { state: "default" 0.0; \
2423 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2424 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2425 image.normal: image_normal; \
2427 description { state: "clicked" 0.0; \
2428 inherit: "default"; \
2429 image.normal: image_press; \
2431 description { state: "disabled" 0.0; \
2432 inherit: "default"; \
2435 part { name: "icon_clipper"; \
2438 description { state: "default" 0.0; \
2439 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2441 description { state: "clicked" 0.0; \
2442 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2444 description { state: "disabled" 0.0; \
2445 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2448 part { name: "over1"; \
2450 ignore_flags: ON_HOLD; \
2451 description { state: "default" 0.0; \
2453 min: min_width min_height; \
2456 part { name: "over2"; \
2459 description { state: "default" 0.0; \
2463 part { name: "disabler"; \
2465 description { state: "default" 0.0; \
2469 description { state: "disabled" 0.0; \
2470 inherit: "default" 0.0; \
2476 program { name: "button_click"; \
2477 signal: "mouse,down,1"; \
2479 action: SIGNAL_EMIT "elm,action,press" ""; \
2480 after: "button_click_anim"; \
2482 program { name: "button_click_anim"; \
2483 action: STATE_SET "clicked" 0.0; \
2484 target: "button_image"; \
2485 target: "button_center_part"; \
2486 target: "icon_clipper"; \
2488 program { name: "button_double_click"; \
2489 signal: "mouse,down,1,double"; \
2491 after: "button_click_anim"; \
2493 program { name: "button_unclick"; \
2494 signal: "mouse,up,1"; \
2496 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2497 after: "button_unclick_anim"; \
2499 program { name: "button_unclick_anim"; \
2500 action: STATE_SET "default" 0.0; \
2501 target: "button_image"; \
2502 target: "button_center_part"; \
2503 target: "icon_clipper"; \
2505 program { name: "touch_snd"; \
2506 signal: "mouse,clicked,1"; \
2508 action: PLAY_SAMPLE "touch_sound" 1.0; \
2509 after: button_unclick3; \
2511 program { name: "button_unclick3"; \
2512 action: SIGNAL_EMIT "elm,action,click" ""; \
2514 program { name: "disable"; \
2515 signal: "elm,state,disabled"; \
2517 action: STATE_SET "disabled" 0.0; \
2518 target: "disabler"; \
2519 target: "button_image"; \
2520 target: "button_center_part"; \
2521 target: "icon_clipper"; \
2523 program { name: "enable"; \
2524 signal: "elm,state,enabled"; \
2526 action: STATE_SET "default" 0.0; \
2527 target: "disabler"; \
2528 target: "button_image"; \
2529 target: "button_center_part"; \
2530 target: "icon_clipper"; \
2535 ///////////////////////////////////////////////////////////////////////////////////////
2536 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)
2538 ///////////////////////////////////////////////////////////////////////////////////////
2539 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)
2541 ///////////////////////////////////////////////////////////////////////////////////////
2542 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)
2544 ///////////////////////////////////////////////////////////////////////////////////////
2545 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)
2547 ///////////////////////////////////////////////////////////////////////////////////////
2548 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)
2550 ///////////////////////////////////////////////////////////////////////////////////////
2551 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)
2553 ///////////////////////////////////////////////////////////////////////////////////////
2554 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)
2556 ///////////////////////////////////////////////////////////////////////////////////////
2557 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)
2559 ///////////////////////////////////////////////////////////////////////////////////////
2560 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)
2562 ///////////////////////////////////////////////////////////////////////////////////////
2563 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)
2565 ///////////////////////////////////////////////////////////////////////////////////////
2566 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)
2568 ///////////////////////////////////////////////////////////////////////////////////////
2569 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)
2571 ///////////////////////////////////////////////////////////////////////////////////////
2572 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)
2574 ///////////////////////////////////////////////////////////////////////////////////////
2575 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)
2577 ///////////////////////////////////////////////////////////////////////////////////////
2578 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)
2580 ///////////////////////////////////////////////////////////////////////////////////////
2581 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)
2583 ///////////////////////////////////////////////////////////////////////////////////////
2584 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)
2586 ///////////////////////////////////////////////////////////////////////////////////////
2587 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)
2589 ///////////////////////////////////////////////////////////////////////////////////////
2590 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)
2592 ///////////////////////////////////////////////////////////////////////////////////////
2593 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)
2594 ///////////////////////////////////////////////////////////////////////////////////////
2597 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2598 group { name: "elm/button/base/"style_name; \
2599 inherit: "elm/button/base/info"; \
2601 image: "00_circle_button_delete.png" COMP; \
2602 image: "00_circle_button_delete_press.png" COMP; \
2603 image: "00_circle_button_delete_dim.png" COMP; \
2604 image: "00_button_warning.png" COMP; \
2605 image: "00_button_warning_press.png" COMP; \
2608 part { name: "button_image"; \
2610 description { state: "default" 0.0; \
2611 image.normal: "00_circle_button_delete.png"; \
2614 state: "clicked" 0.0; \
2615 inherit: "default" 0.0; \
2616 image.normal: "00_circle_button_delete_press.png"; \
2619 state: "disabled" 0.0; \
2620 inherit: "default" 0.0; \
2621 image.normal: "00_circle_button_delete_dim.png"; \
2624 part { name: "button_center_part"; \
2626 clip_to: "icon_clipper"; \
2627 description { state: "default" 0.0; \
2628 image.normal: "00_button_warning.png"; \
2630 description { state: "clicked" 0.0; \
2631 inherit: "default"; \
2632 image.normal: "00_button_warning_press.png"; \
2634 description { state: "disabled" 0.0; \
2635 inherit: "default"; \
2638 part { name: "icon_clipper"; \
2641 description { state: "default" 0.0; \
2642 color: BUTTON_CIRCLE_STYLE_WARNING_NORMAL_COLOR_INC; \
2644 description { state: "clicked" 0.0; \
2645 color: BUTTON_CIRCLE_STYLE_WARNING_PRESSED_COLOR_INC; \
2647 description { state: "disabled" 0.0; \
2648 color: BUTTON_CIRCLE_STYLE_WARNING_DISABLED_COLOR_INC; \
2651 part { name: "over1"; \
2653 ignore_flags: ON_HOLD; \
2654 description { state: "default" 0.0; \
2656 min: min_width min_height; \
2662 ///////////////////////////////////////////////////////////////////////////////////////
2663 BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2665 ///////////////////////////////////////////////////////////////////////////////////////
2666 BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2668 ///////////////////////////////////////////////////////////////////////////////////////
2669 group { name: "elm/button/base/circle/empty";
2671 image: "00_circle_button.png" COMP;
2672 image: "00_circle_button_press.png" COMP;
2673 image: "00_circle_button_dim.png" COMP;
2676 part { name: "button_image";
2678 description { state: "default" 0.0;
2679 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2680 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2682 image.normal: "00_circle_button.png";
2684 description { state: "clicked" 0.0;
2685 inherit: "default" 0.0;
2686 image.normal: "00_circle_button_press.png";
2688 description { state: "disabled" 0.0;
2689 inherit: "default" 0.0;
2690 image.normal: "00_circle_button_dim.png";
2693 part { name: "elm.swallow.content";
2695 clip_to: "icon_clipper";
2697 description { state: "default" 0.0;
2701 description { state: "visible" 0.0;
2702 inherit: "default" 0.0;
2704 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2705 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2708 part { name: "icon_clipper";
2711 description { state: "default" 0.0;
2712 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2714 description { state: "clicked" 0.0;
2715 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2717 description { state: "disabled" 0.0;
2718 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2721 part { name: "over1";
2723 ignore_flags: ON_HOLD;
2724 description { state: "default" 0.0;
2728 part { name: "over2";
2731 description { state: "default" 0.0;
2735 part { name: "disabler";
2737 description { state: "default" 0.0;
2741 description { state: "disabled" 0.0;
2742 inherit: "default" 0.0;
2748 program { name: "button_click";
2749 signal: "mouse,down,1";
2751 action: SIGNAL_EMIT "elm,action,press" "";
2752 after: "button_click_anim";
2754 program { name: "button_click_anim";
2755 action: STATE_SET "clicked" 0.0;
2756 target: "button_image";
2757 target: "icon_clipper";
2759 program { name: "button_double_click";
2760 signal: "mouse,down,1,double";
2762 after: "button_click_anim";
2764 program { name: "touch_snd";
2765 signal: "mouse,clicked,1";
2767 action: PLAY_SAMPLE "touch_sound" 1.0;
2768 after: button_unclick2;
2770 program { name: "button_unclick2";
2771 action: SIGNAL_EMIT "elm,action,click" "";
2773 program { name: "button_unclick";
2774 signal: "mouse,up,1";
2776 action: SIGNAL_EMIT "elm,action,unpress" "";
2777 after: "button_unclick_anim";
2779 program { name: "button_unclick_anim";
2780 action: STATE_SET "default" 0.0;
2781 target: "button_image";
2782 target: "icon_clipper";
2784 program { name: "disable";
2785 signal: "elm,state,disabled";
2787 action: STATE_SET "disabled" 0.0;
2789 target: "button_image";
2790 target: "icon_clipper";
2792 program { name: "enable";
2793 signal: "elm,state,enabled";
2795 action: STATE_SET "default" 0.0;
2797 target: "button_image";
2798 target: "icon_clipper";
2800 program { name: "icon_show";
2801 signal: "elm,state,icon,visible";
2803 action: STATE_SET "visible" 0.0;
2804 target: "elm.swallow.content";
2806 program { name: "icon_hide";
2807 signal: "elm,state,icon,hidden";
2809 action: STATE_SET "default" 0.0;
2810 target: "elm.swallow.content";
2815 ///////////////////////////////////////////////////////////////////////////////////////
2816 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2817 group { name: "elm/button/base/contacts/"style_name; \
2818 alias: "elm/button/base/"style_name; \
2820 image: "00_circle_button.png" COMP; \
2821 image: "00_circle_button_press.png" COMP; \
2822 image: "00_circle_button_dim.png" COMP; \
2823 image: edit_normal COMP; \
2824 image: edit_press COMP; \
2827 part { name: "button_image"; \
2829 description { state: "default" 0.0; \
2830 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2831 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2832 image.normal: "00_circle_button.png"; \
2834 description { state: "clicked" 0.0; \
2835 inherit: "default" 0.0; \
2836 image.normal: "00_circle_button_press.png"; \
2838 description { state: "disabled" 0.0; \
2839 inherit: "default" 0.0; \
2840 image.normal: "00_circle_button_dim.png"; \
2843 part { name: "button_center_part"; \
2846 clip_to: "icon_clipper"; \
2847 description { state: "default" 0.0; \
2848 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2849 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2850 image.normal: image_normal; \
2853 state: "clicked" 0.0; \
2854 inherit: "default" 0.0; \
2855 image.normal: image_press; \
2857 description { state: "disabled" 0.0; \
2858 inherit: "default" 0.0; \
2861 part { name: "icon_clipper"; \
2864 description { state: "default" 0.0; \
2865 color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
2867 description { state: "clicked" 0.0; \
2868 color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
2870 description { state: "disabled" 0.0; \
2871 color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
2874 part { name: "over1"; \
2877 ignore_flags: ON_HOLD; \
2878 description { state: "default" 0.0; \
2880 min: min_width min_height; \
2883 part { name: "over2"; \
2886 description { state: "default" 0.0; \
2890 part { name: "disabler"; \
2892 description { state: "default" 0.0; \
2896 description { state: "disabled" 0.0; \
2897 inherit: "default" 0.0; \
2903 program { name: "button_click"; \
2904 signal: "mouse,down,1"; \
2906 action: SIGNAL_EMIT "elm,action,press" ""; \
2907 after: "button_click_anim"; \
2909 program { name: "button_click_anim"; \
2910 action: STATE_SET "clicked" 0.0; \
2911 target: "button_image"; \
2912 target: "button_center_part"; \
2913 target: "icon_clipper"; \
2915 program { name: "button_double_click"; \
2916 signal: "mouse,down,1,double"; \
2918 after: "button_click_anim"; \
2920 program { name: "button_unclick"; \
2921 signal: "mouse,up,1"; \
2923 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2924 after: "button_unclick_anim"; \
2926 program { name: "button_unclick_anim"; \
2927 action: STATE_SET "default" 0.0; \
2928 target: "button_image"; \
2929 target: "button_center_part"; \
2930 target: "icon_clipper"; \
2932 program { name: "touch_snd"; \
2933 signal: "mouse,clicked,1"; \
2935 action: PLAY_SAMPLE "touch_sound" 1.0; \
2936 after: button_unclick3; \
2938 program { name: "button_unclick3"; \
2939 action: SIGNAL_EMIT "elm,action,click" ""; \
2941 program { name: "disable"; \
2942 signal: "elm,state,disabled"; \
2944 action: STATE_SET "disabled" 0.0; \
2945 target: "disabler"; \
2946 target: "button_image"; \
2947 target: "button_center_part"; \
2948 target: "icon_clipper"; \
2950 program { name: "enable"; \
2951 signal: "elm,state,enabled"; \
2953 action: STATE_SET "default" 0.0; \
2954 target: "disabler"; \
2955 target: "button_image"; \
2956 target: "button_center_part"; \
2957 target: "icon_clipper"; \
2961 ///////////////////////////////////////////////////////////////////////////////////////
2962 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)
2964 ///////////////////////////////////////////////////////////////////////////////////////
2965 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)
2967 ///////////////////////////////////////////////////////////////////////////////////////
2968 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)
2970 ///////////////////////////////////////////////////////////////////////////////////////
2971 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)
2973 ///////////////////////////////////////////////////////////////////////////////////////
2974 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)
2976 ///////////////////////////////////////////////////////////////////////////////////////
2977 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)
2979 ///////////////////////////////////////////////////////////////////////////////////////
2981 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
2982 group { name: "elm/button/base/contacts/"style_name; \
2983 alias: "elm/button/base/"style_name; \
2984 inherit: "elm/button/base/contacts/icon_plus"; \
2986 image: "00_circle_button_delete.png" COMP; \
2987 image: "00_circle_button_delete_press.png" COMP; \
2988 image: "00_circle_button_delete_dim.png" COMP; \
2989 image: "00_button_delete.png" COMP; \
2990 image: "00_button_delete_press.png" COMP; \
2993 part { name: "button_image"; \
2995 description { state: "default" 0.0; \
2996 image.normal: "00_circle_button_delete.png"; \
2998 description { state: "clicked" 0.0; \
2999 inherit: "default" 0.0; \
3000 image.normal: "00_circle_button_delete_press.png"; \
3002 description { state: "disabled" 0.0; \
3003 inherit: "default" 0.0; \
3004 image.normal: "00_circle_button_delete_dim.png"; \
3007 part { name: "button_center_part"; \
3010 clip_to: "icon_clipper"; \
3011 description { state: "default" 0.0; \
3012 image.normal: "00_button_delete.png"; \
3015 state: "clicked" 0.0; \
3016 inherit: "default" 0.0; \
3017 image.normal: "00_button_delete_press.png"; \
3019 description { state: "disabled" 0.0; \
3020 inherit: "default" 0.0; \
3023 part { name: "icon_clipper"; \
3026 description { state: "default" 0.0; \
3027 color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
3029 description { state: "clicked" 0.0; \
3030 color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
3032 description { state: "disabled" 0.0; \
3033 color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
3036 part { name: "over1"; \
3039 ignore_flags: ON_HOLD; \
3040 description { state: "default" 0.0; \
3042 min: min_width min_height; \
3048 ///////////////////////////////////////////////////////////////////////////////////////
3049 BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3051 ///////////////////////////////////////////////////////////////////////////////////////
3052 BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3054 ///////////////////////////////////////////////////////////////////////////////////////
3055 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
3056 group { name: "elm/button/base/"style_name; \
3058 image: "00_button_01.png" COMP; \
3059 image: "00_button_01_press.png" COMP; \
3060 image: "00_button_01_dim.png" COMP; \
3061 image: image_normal COMP; \
3064 part { name: "button_image";\
3067 description { state: "default" 0.0; \
3068 min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
3070 normal: "00_button_01.png"; \
3071 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3075 description { state: "clicked" 0.0; \
3076 inherit: "default" 0.0; \
3077 image.normal: "00_button_01_press.png"; \
3079 description { state: "disabled" 0.0; \
3080 inherit: "default" 0.0; \
3081 image.normal: "00_button_01_dim.png"; \
3084 part { name: "padding_left_top"; \
3087 description { state: "default" 0.0; \
3089 rel2.relative: 0.0 0.0; \
3090 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3094 part { name: "padding_right_bottom"; \
3097 description { state: "default" 0.0; \
3099 rel1.relative: 1.0 1.0; \
3100 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3104 part { name: "jump_image"; \
3107 description { state: "default" 0.0; \
3108 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3111 relative: 1.0 0.0; \
3112 to_x: "padding_left_top"; \
3115 relative: 0.0 1.0; \
3116 to_x: "padding_right_bottom"; \
3118 image.normal: image_normal; \
3120 aspect_preference: VERTICAL; \
3121 color: BUTTON_JUMP_ICON_NORMAL_COLOR_INC; \
3123 description { state: "clicked" 0.0; \
3124 inherit: "default" 0.0; \
3125 color: BUTTON_JUMP_ICON_PRESSED_COLOR_INC; \
3127 description { state: "disabled" 0.0; \
3128 inherit: "default" 0.0; \
3129 color: BUTTON_JUMP_ICON_DIM_COLOR_INC; \
3132 part { name: "over1"; \
3135 ignore_flags: ON_HOLD; \
3136 description { state: "default" 0.0; \
3138 rel1.relative: 0.0 0.0; \
3139 rel2.relative: 1.0 1.0; \
3142 part { name: "over2"; \
3145 description { state: "default" 0.0; \
3151 program { name: "button_click"; \
3152 signal: "mouse,down,1"; \
3154 action: SIGNAL_EMIT "elm,action,press" ""; \
3155 after: "button_click_anim"; \
3157 program { name: "button_click_anim"; \
3158 action: STATE_SET "clicked" 0.0; \
3159 target: "button_image"; \
3160 target: "jump_image"; \
3162 program { name: "button_double_click"; \
3163 signal: "mouse,down,1,double"; \
3165 after: "button_click_anim"; \
3167 program { name: "button_unclick"; \
3168 signal: "mouse,up,1"; \
3170 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3171 after: "button_unclick_anim"; \
3173 program { name: "button_unclick_anim"; \
3174 action: STATE_SET "default" 0.0; \
3175 target: "button_image"; \
3176 target: "jump_image"; \
3178 program { name: "touch_snd"; \
3179 signal: "mouse,clicked,1"; \
3181 action: PLAY_SAMPLE "touch_sound" 1.0; \
3182 after: button_unclick3; \
3184 program { name: "button_unclick3"; \
3185 action: SIGNAL_EMIT "elm,action,click" ""; \
3187 program { name: "disable"; \
3188 signal: "elm,state,disabled"; \
3190 action: STATE_SET "disabled" 0.0; \
3191 target: "button_image"; \
3192 target: "jump_image"; \
3194 program { name: "enable"; \
3195 signal: "elm,state,enabled"; \
3197 action: STATE_SET "default" 0.0; \
3198 target: "button_image"; \
3199 target: "jump_image"; \
3204 ////////////////////////////////////////////////////////////////////////
3205 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3206 ////////////////////////////////////////////////////////////////////////
3207 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3209 ////////////////////////////////////////////////////////////////////////
3210 group { name: "elm/button/base/default";
3212 image: "00_button_01.png" COMP;
3213 image: "00_button_01_press.png" COMP;
3214 image: "00_button_01_dim.png" COMP;
3217 public button_state = BUTTON_STATE_ENABLED;
3220 part { name: "button_image";
3222 description { state: "default" 0.0;
3223 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3225 normal: "00_button_01.png";
3226 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3230 description { state: "clicked" 0.0;
3231 inherit: "default" 0.0;
3232 image.normal: "00_button_01_press.png";
3234 description { state: "disabled" 0.0;
3235 inherit: "default" 0.0;
3236 image.normal: "00_button_01_dim.png";
3238 description { state: "focused" 0.0;
3239 inherit: "default" 0.0;
3240 image.normal: "00_button_01_press.png";
3243 part { name: "padding_left_top";
3247 description { state: "default" 0.0;
3249 rel2.relative: 0.0 0.0;
3250 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3255 part { name: "padding_right_bottom";
3259 description { state: "default" 0.0;
3261 rel1.relative: 1.0 1.0;
3262 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3267 part { name: "padding_icon_text";
3271 description { state: "default" 0.0; //when only icon or no icon is there
3277 to: "elm.swallow.content";
3279 rel2.to: "elm.swallow.content";
3282 description { state: "icononly" 0.0;
3283 inherit: "default" 0.0;
3285 description { state: "visible" 0.0; //when icon is visible
3286 inherit: "default" 0.0;
3287 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3290 part { name: "elm.swallow.content";
3294 description { state: "default" 0.0;
3300 to: "padding_left_top";
3304 to_x: "padding_left_top";
3305 to_y: "padding_right_bottom";
3308 description { state: "visible" 0.0;
3309 inherit: "default" 0.0;
3312 aspect_preference: VERTICAL;
3314 description { state: "icononly" 0.0;
3315 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3318 to_x: "padding_left_top";
3322 to_x: "padding_right_bottom";
3325 aspect_preference: VERTICAL;
3328 part { name: "elm.text";
3333 effect: SHADOW BOTTOM;
3334 description { state: "default" 0.0;
3339 to_x: "padding_icon_text";
3340 to_y: "padding_left_top";
3344 to: "padding_right_bottom";
3346 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3347 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
3349 font: "Tizen:style=Regular";
3350 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3352 text_class: "tizen";
3355 description { state: "visible" 0.0;
3356 inherit: "default" 0.0;
3358 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3360 description { state: "clicked" 0.0;
3361 inherit: "default" 0.0;
3363 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3364 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3366 description { state: "disabled" 0.0;
3367 inherit: "default" 0.0;
3369 description { state: "disabled_visible" 0.0;
3370 inherit: "default" 0.0;
3371 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3372 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
3374 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3376 description { state: "focused" 0.0;
3377 inherit: "default" 0.0;
3380 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3383 part { name: "over2";
3386 ignore_flags: ON_HOLD;
3387 description { state: "default" 0.0;
3391 part { name: "over3";
3394 description { state: "default" 0.0;
3398 part { name: "disclip";
3400 description { state: "default" 0.0;
3401 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3403 description { state: "disabled" 0.0;
3404 inherit: "default" 0.0;
3405 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3408 part { name: "disabler";
3410 description { state: "default" 0.0;
3414 description { state: "disabled" 0.0;
3415 inherit: "default" 0.0;
3421 program { name: "button_click";
3422 signal: "mouse,down,1";
3424 action: SIGNAL_EMIT "elm,action,press" "";
3425 after: "button_click_anim";
3427 program { name: "button_click_anim";
3428 action: STATE_SET "clicked" 0.0;
3429 target: "button_image";
3430 after: "text_clicked";
3432 program { name: "text_clicked";
3436 get_state(PART:"elm.text", st, 30, vl);
3437 if (!strcmp(st, "visible"))
3438 set_state(PART:"elm.text", "clicked", 0.0);
3441 program { name: "button_double_click";
3442 signal: "mouse,down,1,double";
3444 after: "button_click_anim";
3446 program { name: "button_unpress";
3447 action: SIGNAL_EMIT "elm,action,unpress" "";
3449 program { name: "button_mouseout_clicked";
3450 signal: "mouse,up,1";
3455 get_state(PART:"elm.swallow.content", st, 30, vl);
3456 if (strcmp(st, "icononly"))
3458 emit("elm,action,default,text,set", "");
3459 set_state(PART:"elm.text", "visible", 0.0);
3461 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3462 set_state(PART:"button_image", "default", 0.0);
3464 after: button_unpress;
3466 program { name: "touch_snd";
3467 signal: "mouse,clicked,1";
3469 action: PLAY_SAMPLE "touch_sound" 1.0;
3470 after: button_unclick3;
3472 program { name: "button_unclick3";
3473 action: SIGNAL_EMIT "elm,action,click" "";
3475 program { name: "text_show";
3476 signal: "elm,state,text,visible";
3481 get_state(PART:"elm.swallow.content", st, 30, vl);
3482 if (!strcmp(st, "icononly"))
3484 set_state(PART:"elm.swallow.content", "visible", 0.0);
3485 set_state(PART:"padding_icon_text", "visible", 0.0);
3487 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3488 set_state(PART:"elm.text", "visible", 0.0);
3490 set_state(PART:"elm.text", "disabled_visible", 0.0);
3493 program { name: "text_hide";
3494 signal: "elm,state,text,hidden";
3499 get_state(PART:"elm.swallow.content", st, 30, vl);
3500 if (!strcmp(st, "visible"))
3502 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3503 set_state(PART:"padding_icon_text", "icononly", 0.0);
3505 set_state(PART:"elm.text", "default", 0.0);
3508 program { name: "icon_show";
3509 signal: "elm,state,icon,visible";
3514 get_state(PART:"elm.text", st, 30, vl);
3515 if (!strcmp(st, "visible"))
3517 set_state(PART:"elm.swallow.content", "visible", 0.0);
3518 set_state(PART:"padding_icon_text", "visible", 0.0);
3522 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3523 set_state(PART:"padding_icon_text", "icononly", 0.0);
3527 program { name: "icon_hide";
3528 signal: "elm,state,icon,hidden";
3530 action: STATE_SET "default" 0.0;
3531 target: "elm.swallow.content";
3532 target: "padding_icon_text";
3534 program { name: "disable";
3535 signal: "elm,state,disabled";
3537 action: STATE_SET "disabled" 0.0;
3538 target: "button_image";
3541 after: "disable_text";
3543 program { name: "disable_text";
3547 get_state(PART:"elm.text", st, 30, vl);
3548 if (!strcmp(st, "visible"))
3549 set_state(PART:"elm.text", "disabled_visible", 0.0);
3551 set_state(PART:"elm.text", "disabled", 0.0);
3552 set_int(button_state, BUTTON_STATE_DISABLED);
3555 program { name: "enable";
3556 signal: "elm,state,enabled";
3558 action: STATE_SET "default" 0.0;
3559 target: "button_image";
3562 after: "enable_text";
3564 program { name: "enable_text";
3568 get_state(PART:"elm.text", st, 30, vl);
3569 if (!strcmp(st, "disabled_visible"))
3570 set_state(PART:"elm.text", "visible", 0.0);
3572 set_state(PART:"elm.text", "default", 0.0);
3573 set_int(button_state, BUTTON_STATE_ENABLED);
3576 program { name: "focused";
3577 //signal: "elm,action,focus";
3579 action: STATE_SET "focused" 0.0;
3580 target: "button_image";
3583 program { name: "unfocused";
3584 //signal: "elm,action,unfocus";
3586 action: STATE_SET "default" 0.0;
3587 target: "button_image";
3588 after: "unfocus_text";
3590 program { name: "unfocus_text";
3591 action: STATE_SET "visible" 0.0;
3597 ///////////////////////////////////////////////////////////////////////////////////////
3598 group { name: "elm/button/base/multiline";
3599 alias: "elm/button/base/text_only/multiline";
3600 inherit: "elm/button/base/default";
3602 style { name: "btn_multiline_style";
3603 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";
3610 part { name: "button_image";
3612 description { state: "default" 0.0;
3613 min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3615 normal: "00_button_01.png";
3616 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3620 description { state: "clicked" 0.0;
3621 inherit: "default" 0.0;
3622 image.normal: "00_button_01_press.png";
3624 description { state: "disabled" 0.0;
3625 inherit: "default" 0.0;
3626 image.normal: "00_button_01_dim.png";
3628 description { state: "focused" 0.0;
3629 inherit: "default" 0.0;
3630 image.normal: "00_button_01_press.png";
3633 part { name: "padding_left_top";
3637 description { state: "default" 0.0;
3639 rel2.relative: 0.0 0.0;
3640 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3645 part { name: "padding_right_bottom";
3649 description { state: "default" 0.0;
3651 rel1.relative: 1.0 1.0;
3652 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3657 part { name: "elm.text";
3662 description { state: "default" 0.0;
3666 to_x: "padding_icon_text";
3667 to_y: "padding_left_top";
3671 to: "padding_right_bottom";
3673 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3675 style: "btn_multiline_style";
3678 description { state: "visible" 0.0;
3679 inherit: "default" 0.0;
3683 description { state: "clicked" 0.0;
3684 inherit: "default" 0.0;
3687 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3689 description { state: "disabled" 0.0;
3690 inherit: "default" 0.0;
3692 description { state: "disabled_visible" 0.0;
3693 inherit: "default" 0.0;
3694 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3698 description { state: "focused" 0.0;
3699 inherit: "default" 0.0;
3702 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3708 ///////////////////////////////////////////////////////////////////////////////////////
3709 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
3710 group { name: "elm/button/base/"style_name; \
3712 image: image_normal COMP; \
3713 image: image_press COMP; \
3714 image: image_dim COMP; \
3715 image: "00_button_01.png" COMP; \
3716 image: "00_button_01_press.png" COMP; \
3719 part { name: "button_image"; \
3721 description { state: "default" 0.0; \
3722 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3723 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3725 normal: "00_button_01.png"; \
3726 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3731 state: "clicked" 0.0; \
3732 inherit: "default" 0.0; \
3733 image.normal: "00_button_01_press.png"; \
3736 state: "disabled" 0.0; \
3737 inherit: "default" 0.0; \
3738 image.normal: "00_button_01_dim.png"; \
3741 state: "focused" 0.0; \
3742 inherit: "default" 0.0; \
3743 image.normal: "00_button_01_press.png"; \
3746 part { name: "button_center_part"; \
3748 clip_to: "icon_clipper"; \
3749 description { state: "default" 0.0; \
3750 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3751 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3752 image.normal: image_normal; \
3755 state: "clicked" 0.0; \
3756 inherit: "default" 0.0; \
3757 image.normal: image_press; \
3760 state: "disabled" 0.0; \
3761 inherit: "default" 0.0; \
3764 part { name: "icon_clipper"; \
3767 description { state: "default" 0.0; \
3768 color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
3770 description { state: "clicked" 0.0; \
3771 color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
3773 description { state: "disabled" 0.0; \
3774 color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
3777 part { name: "over1"; \
3779 ignore_flags: ON_HOLD; \
3780 description { state: "default" 0.0; \
3784 part { name: "over2"; \
3787 description { state: "default" 0.0; \
3791 part { name: "disabler"; \
3793 description { state: "default" 0.0; \
3797 description { state: "disabled" 0.0; \
3798 inherit: "default" 0.0; \
3804 program { name: "button_click"; \
3805 signal: "mouse,down,1"; \
3807 action: SIGNAL_EMIT "elm,action,press" ""; \
3808 after: "button_click_anim"; \
3810 program { name: "button_click_anim"; \
3811 action: STATE_SET "clicked" 0.0; \
3812 target: "button_image"; \
3813 target: "button_center_part"; \
3814 target: ""icon_clipper""; \
3816 program { name: "button_double_click"; \
3817 signal: "mouse,down,1,double"; \
3819 after: "button_click_anim"; \
3821 program { name: "button_unclick"; \
3822 signal: "mouse,up,1"; \
3824 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3825 after: "button_unclick_anim"; \
3827 program { name: "button_unclick_anim"; \
3828 action: STATE_SET "default" 0.0; \
3829 target: "button_image"; \
3830 target: "button_center_part"; \
3831 target: ""icon_clipper""; \
3833 program { name: "touch_snd"; \
3834 signal: "mouse,clicked,1"; \
3836 action: PLAY_SAMPLE "touch_sound" 1.0; \
3837 after: button_unclick3; \
3839 program { name: "button_unclick3"; \
3840 action: SIGNAL_EMIT "elm,action,click" ""; \
3842 program { name: "disable"; \
3843 signal: "elm,state,disabled"; \
3845 action: STATE_SET "disabled" 0.0; \
3846 target: "disabler"; \
3847 target: "button_image"; \
3848 target: "button_center_part"; \
3849 target: ""icon_clipper""; \
3851 program { name: "enable"; \
3852 signal: "elm,state,enabled"; \
3854 action: STATE_SET "default" 0.0; \
3855 target: "disabler"; \
3856 target: "button_image"; \
3857 target: "button_center_part"; \
3858 target: ""icon_clipper""; \
3862 ///////////////////////////////////////////////////////////////////////////////////////
3863 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
3864 ///////////////////////////////////////////////////////////////////////////////////////
3865 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
3866 ///////////////////////////////////////////////////////////////////////////////////////
3868 group { name: "elm/button/base/contact";
3869 alias: "elm/button/base/text_only/contact";
3871 image: "00_contacts_button.png" COMP;
3872 image: "00_contacts_button_press.png" COMP;
3875 public button_state = BUTTON_STATE_ENABLED;
3878 part { name: "button_image";
3880 description { state: "default" 0.0;
3882 to_x: "padding.left";
3886 to_x: "padding.right";
3889 min: BUTTON_CONTACT_BG_MIN_INC;
3891 normal: "00_contacts_button.png";
3892 border: BUTTON_CONTACT_BG_BORDER_INC;
3896 description { state: "clicked" 0.0;
3897 inherit: "default" 0.0;
3898 image.normal: "00_contacts_button_press.png";
3900 description { state: "disabled" 0.0;
3901 inherit: "default" 0.0;
3903 description { state: "focused" 0.0;
3904 inherit: "default" 0.0;
3905 image.normal: "00_contacts_button_press.png";
3908 part { name: "padding.left";
3911 description { state: "default" 0.0;
3913 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
3923 part { name: "padding.right";
3926 description { state: "default" 0.0;
3928 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
3938 part { name: "elm.text";
3942 description { state: "default" 0.0;
3945 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
3947 font: "Tizen:style=Regular";
3948 size: BUTTON_CONTACT_FONT_SIZE_INC;
3950 text_class: "tizen";
3953 description { state: "visible" 0.0;
3954 inherit: "default" 0.0;
3958 description { state: "clicked" 0.0;
3959 inherit: "default" 0.0;
3962 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
3964 description { state: "disabled" 0.0;
3965 inherit: "default" 0.0;
3967 description { state: "disabled_visible" 0.0;
3968 inherit: "default" 0.0;
3969 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
3973 description { state: "focused" 0.0;
3974 inherit: "default" 0.0;
3977 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
3980 part { name: "over1";
3983 description { state: "default" 0.0;
3984 rel2.relative: 1.0 0.5;
3988 part { name: "over2";
3991 ignore_flags: ON_HOLD;
3992 description { state: "default" 0.0;
3993 rel1.to: "button_image";
3994 rel2.to: "button_image";
3998 part { name: "over3";
4001 description { state: "default" 0.0;
4002 rel1.to: "button_image";
4003 rel2.to: "button_image";
4007 part { name: "disabler";
4009 description { state: "default" 0.0;
4010 rel1.to: "button_image";
4011 rel2.to: "button_image";
4015 description { state: "disabled" 0.0;
4016 inherit: "default" 0.0;
4022 program { name: "button_click";
4023 signal: "mouse,down,1";
4025 action: SIGNAL_EMIT "elm,action,press" "";
4026 after: "button_click_anim";
4028 program { name: "button_click_anim";
4029 action: STATE_SET "clicked" 0.0;
4030 target: "button_image";
4033 program { name: "button_double_click";
4034 signal: "mouse,down,1,double";
4036 after: "button_click_anim";
4038 program { name: "button_unpress";
4039 action: SIGNAL_EMIT "elm,action,unpress" "";
4041 program { name: "button_mouseout_clicked";
4042 signal: "mouse,up,1";
4047 get_state(PART:"elm.text", st, 30, vl);
4048 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4050 emit("elm,action,default,text,set", "");
4051 set_state(PART:"elm.text", "visible", 0.0);
4053 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4054 set_state(PART:"button_image", "default", 0.0);
4056 after: button_unpress;
4058 program { name: "touch_snd";
4059 signal: "mouse,clicked,1";
4061 action: PLAY_SAMPLE "touch_sound" 1.0;
4062 after: button_unclick3;
4064 program { name: "button_unclick3";
4065 action: SIGNAL_EMIT "elm,action,click" "";
4067 program { name: "text_show";
4068 signal: "elm,state,text,visible";
4071 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4072 set_state(PART:"elm.text", "visible", 0.0);
4074 set_state(PART:"elm.text", "disabled_visible", 0.0);
4077 program { name: "text_hide";
4078 signal: "elm,state,text,hidden";
4080 action: STATE_SET "default" 0.0;
4083 program { name: "disable";
4084 signal: "elm,state,disabled";
4086 action: STATE_SET "disabled" 0.0;
4087 target: "button_image";
4089 after: "disable_text";
4091 program { name: "disable_text";
4095 get_state(PART:"elm.text", st, 30, vl);
4096 if (!strcmp(st, "visible"))
4097 set_state(PART:"elm.text", "disabled_visible", 0.0);
4099 set_state(PART:"elm.text", "disabled", 0.0);
4100 set_int(button_state, BUTTON_STATE_DISABLED);
4103 program { name: "enable";
4104 signal: "elm,state,enabled";
4106 action: STATE_SET "default" 0.0;
4107 target: "button_image";
4109 after: "enable_text";
4111 program { name: "enable_text";
4115 get_state(PART:"elm.text", st, 30, vl);
4116 if (!strcmp(st, "disabled_visible"))
4117 set_state(PART:"elm.text", "visible", 0.0);
4119 set_state(PART:"elm.text", "default", 0.0);
4120 set_int(button_state, BUTTON_STATE_ENABLED);
4123 program { name: "focused";
4124 //signal: "elm,action,focus";
4126 action: STATE_SET "focused" 0.0;
4127 target: "button_image";
4130 program { name: "unfocused";
4131 //signal: "elm,action,unfocus";
4133 action: STATE_SET "default" 0.0;
4134 target: "button_image";
4135 action: STATE_SET "visible" 0.0;
4141 ///////////////////////////////////////////////////////////////////////////////////////
4142 group { name: "elm/button/base/naviframe/back_btn/default";
4143 alias: "elm/button/base/naviframe/prev_btn/default";
4144 alias: "elm/button/base/naviframe/end_btn/default";
4146 image: "00_icon_back.png" COMP;
4147 image: "00_icon_SIP_close.png" COMP;
4150 part { name: "button_image";
4153 description { state: "default" 0.0;
4154 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4155 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4158 description { state: "landscape" 0.0;
4159 min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4160 max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4164 part { name: "back_button";
4167 clip_to: "back_button.clipper";
4168 description { state: "default" 0.0;
4169 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4170 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4172 rel1.to: "button_image";
4173 rel2.to: "button_image";
4174 image.normal: "00_icon_back.png";
4176 description { state: "compress" 0.0;
4177 inherit: "default" 0.0;
4178 image.normal: "00_icon_SIP_close.png";
4181 part { name: "back_button.clipper";
4183 description { state: "default" 0.0;
4184 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4186 description { state: "clicked" 0.0;
4187 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4189 description { state: "disabled" 0.0;
4190 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4193 part { name: "over2";
4195 ignore_flags: ON_HOLD;
4196 description { state: "default" 0.0;
4200 part { name: "over3";
4203 description { state: "default" 0.0;
4207 part { name: "disabler";
4209 description { state: "default" 0.0;
4213 description { state: "disabled" 0.0;
4214 inherit: "default" 0.0;
4220 program { name: "button_click";
4221 signal: "mouse,down,1";
4223 action: SIGNAL_EMIT "elm,action,press" "";
4224 after: "button_click_anim";
4226 program { name: "button_click_anim";
4228 set_state(PART:"back_button.clipper", "clicked", 0.0);
4231 program { name: "button_double_click";
4232 signal: "mouse,down,1,double";
4234 after: "button_click_anim";
4236 program { name: "button_unclick";
4237 signal: "mouse,up,1";
4239 action: SIGNAL_EMIT "elm,action,unpress" "";
4240 after: "button_unclick_anim";
4242 program { name: "button_unclick_anim";
4244 set_state(PART:"back_button.clipper", "default", 0.0);
4247 program { name: "touch_snd";
4248 signal: "mouse,clicked,1";
4250 action: PLAY_SAMPLE "touch_sound" 1.0;
4251 after: button_unclick3;
4253 program { name: "button_unclick3";
4254 action: SIGNAL_EMIT "elm,action,click" "";
4256 program { name: "disable";
4257 signal: "elm,state,disabled";
4260 set_state(PART:"back_button.clipper", "disabled", 0.0);
4263 program { name: "enable";
4264 signal: "elm,state,enabled";
4267 set_state(PART:"back_button.clipper", "default", 0.0);
4270 program { name: "change_to_landscape";
4271 signal: "elm,state,landscape";
4273 action: STATE_SET "landscape" 0.0;
4274 target: "button_image";
4276 program { name: "change_to_portrait";
4277 signal: "elm,state,portrait";
4279 action: STATE_SET "default" 0.0;
4280 target: "button_image";
4282 program { name: "landscape_mode";
4284 signal: "elm,state,orient,90";
4285 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4287 program { name: "landscape_mode2";
4289 signal: "elm,state,orient,270";
4290 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4292 program { name: "portrait_mode";
4294 signal: "elm,state,orient,0";
4295 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4297 program { name: "portrait_mode2";
4299 signal: "elm,state,orient,180";
4300 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4302 program { name: "display_compress_mode";
4303 signal: "elm,state,display,compress";
4305 action: STATE_SET "compress" 0.0;
4306 target: "back_button";
4308 program { name: "display_default_mode";
4309 signal: "elm,state,display,default";
4311 action: STATE_SET "default" 0.0;
4312 target: "back_button";
4317 //////////////////////////////////////////////////////////////
4318 group { name: "elm/button/base/naviframe/toolbar/default";
4319 alias: "elm/button/base/naviframe/title/default";
4321 image: "00_toolbar_button.png" COMP;
4322 image: "00_toolbar_button_press.png" COMP;
4323 image: "00_toolbar_button_dim.png" COMP;
4324 image: "00_badge_bg.png" COMP;
4327 style { name: "btn_naviframe_toolbar";
4328 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color=#ffffff ellipsis=1.0 wrap=none text_class=tizen";
4335 public button_state = BUTTON_STATE_ENABLED;
4338 part { name: "button_image";
4340 description { state: "default" 0.0;
4341 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4342 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4344 rel1.to: "padding_text_left_top";
4345 rel2.to: "padding_text_right_bottom";
4347 normal: "00_toolbar_button.png";
4348 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4352 description { state: "clicked" 0.0;
4353 inherit: "default" 0.0;
4354 image.normal: "00_toolbar_button_press.png";
4356 description { state: "disabled" 0.0;
4357 inherit: "default" 0.0;
4358 image.normal: "00_toolbar_button_dim.png";
4360 description { state: "focused" 0.0;
4361 inherit: "default" 0.0;
4362 image.normal: "00_toolbar_button_press.png";
4365 part { name: "padding_left_top";
4369 description { state: "default" 0.0;
4372 rel2.relative: 0.0 0.0;
4373 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4377 part { name: "padding_right_bottom";
4381 description { state: "default" 0.0;
4383 rel1.relative: 1.0 1.0;
4384 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4389 part { name: "padding_text_left_top";
4393 description { state: "default" 0.0;
4395 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4397 rel1.to: "elm.text";
4405 part { name: "padding_text_right_bottom";
4409 description { state: "default" 0.0;
4410 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4417 rel2.to: "elm.text";
4421 part { name: "elm.text";
4425 effect: FAR_SHADOW BOTTOM;
4427 description { state: "default" 0.0;
4430 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4433 to: "padding_left_top";
4437 to: "padding_right_bottom";
4439 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4440 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4444 style: "btn_naviframe_toolbar";
4447 description { state: "visible" 0.0;
4448 inherit: "default" 0.0;
4451 description { state: "clicked" 0.0;
4452 inherit: "default" 0.0;
4454 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4456 description { state: "disabled" 0.0;
4457 inherit: "default" 0.0;
4459 description { state: "disabled_visible" 0.0;
4460 inherit: "default" 0.0;
4461 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4462 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4465 description { state: "focused" 0.0;
4466 inherit: "default" 0.0;
4468 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4471 part { name: "disclip";
4473 description { state: "default" 0.0;
4474 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4476 description { state: "disabled" 0.0;
4477 inherit: "default" 0.0;
4478 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4481 part { name: "over2";
4484 ignore_flags: ON_HOLD;
4485 description { state: "default" 0.0;
4486 rel1.to: "button_image";
4487 rel2.to: "button_image";
4491 part { name: "over3";
4494 description { state: "default" 0.0;
4495 rel1.to: "button_image";
4496 rel2.to: "button_image";
4500 part { name: "disabler";
4502 description { state: "default" 0.0;
4503 rel1.to: "button_image";
4504 rel2.to: "button_image";
4508 description { state: "disabled" 0.0;
4509 inherit: "default" 0.0;
4515 program { name: "button_click";
4516 signal: "mouse,down,1";
4518 action: SIGNAL_EMIT "elm,action,press" "";
4519 after: "button_click_anim";
4521 program { name: "button_click_anim";
4522 action: STATE_SET "clicked" 0.0;
4523 target: "button_image";
4526 program { name: "button_double_click";
4527 signal: "mouse,down,1,double";
4529 after: "button_click_anim";
4531 program { name: "button_unpress";
4532 action: SIGNAL_EMIT "elm,action,unpress" "";
4534 program { name: "button_mouseout_clicked";
4535 signal: "mouse,up,1";
4540 get_state(PART:"elm.text", st, 30, vl);
4541 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4543 emit("elm,action,default,text,set", "");
4544 set_state(PART:"elm.text", "visible", 0.0);
4546 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4547 set_state(PART:"button_image", "default", 0.0);
4549 after: button_unpress;
4551 program { name: "touch_snd";
4552 signal: "mouse,clicked,1";
4554 action: PLAY_SAMPLE "touch_sound" 1.0;
4555 after: button_unclick3;
4557 program { name: "button_unclick3";
4558 action: SIGNAL_EMIT "elm,action,click" "";
4560 program { name: "text_show";
4561 signal: "elm,state,text,visible";
4564 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4565 set_state(PART:"elm.text", "visible", 0.0);
4567 set_state(PART:"elm.text", "disabled_visible", 0.0);
4570 program { name: "text_hide";
4571 signal: "elm,state,text,hidden";
4573 action: STATE_SET "default" 0.0;
4576 program { name: "disable";
4577 signal: "elm,state,disabled";
4579 action: STATE_SET "disabled" 0.0;
4580 target: "button_image";
4583 after: "disable_text";
4585 program { name: "disable_text";
4589 get_state(PART:"elm.text", st, 30, vl);
4590 if (!strcmp(st, "visible"))
4591 set_state(PART:"elm.text", "disabled_visible", 0.0);
4593 set_state(PART:"elm.text", "disabled", 0.0);
4594 set_int(button_state, BUTTON_STATE_DISABLED);
4597 program { name: "enable";
4598 signal: "elm,state,enabled";
4600 action: STATE_SET "default" 0.0;
4601 target: "button_image";
4604 after: "enable_text";
4606 program { name: "enable_text";
4610 get_state(PART:"elm.text", st, 30, vl);
4611 if (!strcmp(st, "disabled_visible"))
4612 set_state(PART:"elm.text", "visible", 0.0);
4614 set_state(PART:"elm.text", "default", 0.0);
4615 set_int(button_state, BUTTON_STATE_ENABLED);
4618 program { name: "focused";
4619 //signal: "elm,action,focus";
4621 action: STATE_SET "focused" 0.0;
4622 target: "button_image";
4625 program { name: "unfocused";
4626 //signal: "elm,action,unfocus";
4628 action: STATE_SET "default" 0.0;
4629 target: "button_image";
4630 action: STATE_SET "visible" 0.0;
4636 //////////////////////////////////////////////////////////////
4637 group { name: "elm/button/base/naviframe/toolbar/left";
4638 inherit: "elm/button/base/naviframe/toolbar/default";
4640 part { name: "button_image";
4642 description { state: "default" 0.0;
4643 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4644 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4646 rel1.to: "padding_text_left_top";
4647 rel2.to: "padding_text_right_bottom";
4650 normal: "00_toolbar_button.png";
4651 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4655 description { state: "clicked" 0.0;
4656 inherit: "default" 0.0;
4657 image.normal: "00_toolbar_button_press.png";
4659 description { state: "disabled" 0.0;
4660 inherit: "default" 0.0;
4661 image.normal: "00_toolbar_button_dim.png";
4663 description { state: "focused" 0.0;
4664 inherit: "default" 0.0;
4665 image.normal: "00_toolbar_button_press.png";
4668 part { name: "elm.text";
4672 effect: FAR_SHADOW BOTTOM;
4674 description { state: "default" 0.0;
4677 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4680 to: "padding_left_top";
4684 to: "padding_right_bottom";
4687 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4688 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4692 style: "btn_naviframe_toolbar";
4695 description { state: "visible" 0.0;
4696 inherit: "default" 0.0;
4699 description { state: "clicked" 0.0;
4700 inherit: "default" 0.0;
4702 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4704 description { state: "disabled" 0.0;
4705 inherit: "default" 0.0;
4707 description { state: "disabled_visible" 0.0;
4708 inherit: "default" 0.0;
4709 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4710 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4713 description { state: "focused" 0.0;
4714 inherit: "default" 0.0;
4716 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4722 //////////////////////////////////////////////////////////////
4723 group { name: "elm/button/base/naviframe/toolbar/right";
4724 inherit: "elm/button/base/naviframe/toolbar/default";
4726 part { name: "button_image";
4728 description { state: "default" 0.0;
4729 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4730 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4732 rel1.to: "padding_text_left_top";
4733 rel2.to: "padding_text_right_bottom";
4736 normal: "00_toolbar_button.png";
4737 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4741 description { state: "clicked" 0.0;
4742 inherit: "default" 0.0;
4743 image.normal: "00_toolbar_button_press.png";
4745 description { state: "disabled" 0.0;
4746 inherit: "default" 0.0;
4747 image.normal: "00_toolbar_button_dim.png";
4749 description { state: "focused" 0.0;
4750 inherit: "default" 0.0;
4751 image.normal: "00_toolbar_button_press.png";
4754 part { name: "elm.text";
4758 effect: FAR_SHADOW BOTTOM;
4760 description { state: "default" 0.0;
4763 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4766 to: "padding_left_top";
4770 to: "padding_right_bottom";
4773 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4774 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4778 style: "btn_naviframe_toolbar";
4781 description { state: "visible" 0.0;
4782 inherit: "default" 0.0;
4785 description { state: "clicked" 0.0;
4786 inherit: "default" 0.0;
4788 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4790 description { state: "disabled" 0.0;
4791 inherit: "default" 0.0;
4793 description { state: "disabled_visible" 0.0;
4794 inherit: "default" 0.0;
4795 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4796 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4799 description { state: "focused" 0.0;
4800 inherit: "default" 0.0;
4802 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4808 ////////////////////////////////////////////////////////////////////
4809 group { name: "elm/button/base/toolbar/segmentedcontrol";
4811 image: "00_toolbar_button.png" COMP;
4812 image: "00_toolbar_button_press.png" COMP;
4813 image: "00_toolbar_button_dim.png" COMP;
4814 image: "00_button_icon_arrow.png" COMP;
4815 image: "00_button_icon_arrow_press.png" COMP;
4818 style { name: "btn_toolbar_segmentedcontrol";
4819 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";
4826 public button_state = BUTTON_STATE_ENABLED;
4829 part { name: "button_image";
4831 description { state: "default" 0.0;
4832 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
4833 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
4835 rel1.to: "padding_text_left_top";
4836 rel2.to: "padding_text_right_bottom";
4838 normal: "00_toolbar_button.png";
4839 border: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_BORDER_INC;
4843 description { state: "clicked" 0.0;
4844 inherit: "default" 0.0;
4845 image.normal: "00_toolbar_button_press.png";
4847 description { state: "disabled" 0.0;
4848 inherit: "default" 0.0;
4849 image.normal: "00_toolbar_button_dim.png";
4851 description { state: "focused" 0.0;
4852 inherit: "default" 0.0;
4853 image.normal: "00_toolbar_button_press.png";
4856 part { name: "padding_left_top";
4860 description { state: "default" 0.0;
4863 rel2.relative: 0.0 0.0;
4864 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4868 part { name: "padding_right_bottom";
4872 description { state: "default" 0.0;
4874 rel1.relative: 1.0 1.0;
4875 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
4880 part { name: "padding_text_left_top";
4884 description { state: "default" 0.0;
4886 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4888 rel1.to: "elm.text";
4896 part { name: "padding_text_right_bottom";
4900 description { state: "default" 0.0;
4901 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
4917 part { name: "elm.text";
4921 effect: FAR_SHADOW BOTTOM;
4923 description { state: "default" 0.0;
4926 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXTBLOCK_MIN_INC;
4929 to: "padding_left_top";
4933 to: "padding_right_bottom";
4935 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4936 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4940 style: "btn_toolbar_segmentedcontrol";
4943 description { state: "visible" 0.0;
4944 inherit: "default" 0.0;
4947 description { state: "clicked" 0.0;
4948 inherit: "default" 0.0;
4950 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4952 description { state: "disabled" 0.0;
4953 inherit: "default" 0.0;
4955 description { state: "disabled_visible" 0.0;
4956 inherit: "default" 0.0;
4957 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4958 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4961 description { state: "focused" 0.0;
4962 inherit: "default" 0.0;
4964 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4967 part { name: "icon_padding";
4970 description { state: "default" 0.0;
4979 rel2.to: "elm.text";
4982 part { name: "icon";
4984 clip_to: "icon_clipper";
4985 description { state: "default" 0.0;
4986 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
4987 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
4992 to_x: "icon_padding";
4998 to_x: "icon_padding";
5001 image.normal: "00_button_icon_arrow.png";
5003 description { state: "clicked" 0.0;
5004 inherit: "default" 0.0;
5005 image.normal: "00_button_icon_arrow_press.png";
5008 part { name: "icon_clipper";
5010 description { state: "default" 0.0;
5011 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_NORMAL_COLOR_INC;
5013 description { state: "clicked" 0.0;
5014 inherit: "default" 0.0;
5015 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_PRESSED_COLOR_INC;
5018 part { name: "disclip";
5020 description { state: "default" 0.0;
5021 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5023 description { state: "disabled" 0.0;
5024 inherit: "default" 0.0;
5025 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5028 part { name: "over2";
5031 ignore_flags: ON_HOLD;
5032 description { state: "default" 0.0;
5033 rel1.to: "button_image";
5034 rel2.to: "button_image";
5038 part { name: "over3";
5041 description { state: "default" 0.0;
5042 rel1.to: "button_image";
5043 rel2.to: "button_image";
5047 part { name: "disabler";
5049 description { state: "default" 0.0;
5050 rel1.to: "button_image";
5051 rel2.to: "button_image";
5055 description { state: "disabled" 0.0;
5056 inherit: "default" 0.0;
5062 program { name: "button_click";
5063 signal: "mouse,down,1";
5065 action: SIGNAL_EMIT "elm,action,press" "";
5066 after: "button_click_anim";
5068 program { name: "button_click_anim";
5069 action: STATE_SET "clicked" 0.0;
5070 target: "button_image";
5073 target: "icon_clipper";
5075 program { name: "button_double_click";
5076 signal: "mouse,down,1,double";
5078 after: "button_click_anim";
5080 program { name: "button_unpress";
5081 action: SIGNAL_EMIT "elm,action,unpress" "";
5083 program { name: "button_mouseout_clicked";
5084 signal: "mouse,up,1";
5089 get_state(PART:"elm.text", st, 30, vl);
5090 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5092 emit("elm,action,default,text,set", "");
5093 set_state(PART:"elm.text", "visible", 0.0);
5095 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5096 set_state(PART:"button_image", "default", 0.0);
5097 set_state(PART:"icon", "default", 0.0);
5098 set_state(PART:"icon_clipper", "default", 0.0);
5100 after: button_unpress;
5102 program { name: "touch_snd";
5103 signal: "mouse,clicked,1";
5105 action: PLAY_SAMPLE "touch_sound" 1.0;
5106 after: button_unclick3;
5108 program { name: "button_unclick3";
5109 action: SIGNAL_EMIT "elm,action,click" "";
5111 program { name: "text_show";
5112 signal: "elm,state,text,visible";
5115 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5116 set_state(PART:"elm.text", "visible", 0.0);
5118 set_state(PART:"elm.text", "disabled_visible", 0.0);
5121 program { name: "text_hide";
5122 signal: "elm,state,text,hidden";
5124 action: STATE_SET "default" 0.0;
5127 program { name: "disable";
5128 signal: "elm,state,disabled";
5130 action: STATE_SET "disabled" 0.0;
5131 target: "button_image";
5134 after: "disable_text";
5136 program { name: "disable_text";
5140 get_state(PART:"elm.text", st, 30, vl);
5141 if (!strcmp(st, "visible"))
5142 set_state(PART:"elm.text", "disabled_visible", 0.0);
5144 set_state(PART:"elm.text", "disabled", 0.0);
5145 set_int(button_state, BUTTON_STATE_DISABLED);
5148 program { name: "enable";
5149 signal: "elm,state,enabled";
5151 action: STATE_SET "default" 0.0;
5152 target: "button_image";
5155 after: "enable_text";
5157 program { name: "enable_text";
5161 get_state(PART:"elm.text", st, 30, vl);
5162 if (!strcmp(st, "disabled_visible"))
5163 set_state(PART:"elm.text", "visible", 0.0);
5165 set_state(PART:"elm.text", "default", 0.0);
5166 set_int(button_state, BUTTON_STATE_ENABLED);
5169 program { name: "focused";
5170 //signal: "elm,action,focus";
5172 action: STATE_SET "focused" 0.0;
5173 target: "button_image";
5176 program { name: "unfocused";
5177 //signal: "elm,action,unfocus";
5179 action: STATE_SET "default" 0.0;
5180 target: "button_image";
5181 action: STATE_SET "visible" 0.0;
5187 ////////////////////////////////////////////////////////////////////
5188 group { name: "elm/button/base/naviframe/title_icon";
5190 part { name: "button_image";
5193 description { state: "default" 0.0;
5195 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5196 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5198 description { state: "landscape" 0.0;
5200 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5201 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5204 part { name: "top_padding";
5207 description { state: "default" 0.0;
5209 min: BUTTON_NAVIFRAME_TITLE_ICON_TOP_PADDING_INC;
5212 rel1 { relative: 0.0 0.0; to: "button_image"; }
5213 rel2 { relative: 1.0 0.0; to: "button_image"; }
5215 description { state: "landscape" 0.0;
5216 inherit: "default" 0.0;
5217 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_TOP_PADDING_INC;
5220 part { name: "elm.swallow.content";
5223 clip_to: "elm.icon.clipper";
5224 description { state: "default" 0.0;
5226 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5229 rel1 { relative: 0.0 1.0; to: "top_padding"; }
5230 rel2 { relative: 1.0 1.0; to: "button_image"; }
5232 description { state: "visible" 0.0;
5233 inherit: "default" 0.0;
5237 part { name: "elm.swallow.icon.proxy";
5240 clip_to: "elm.icon.proxy.clipper";
5241 description { state: "default" 0.0;
5242 source: "elm.swallow.content";
5243 rel1.to: "elm.swallow.content";
5245 rel2.to: "elm.swallow.content";
5249 part { name: "elm.icon.proxy.clipper";
5251 description { state: "default" 0.0;
5252 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5254 description { state: "clicked" 0.0;
5255 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5257 description { state: "disabled" 0.0;
5258 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5261 part { name: "elm.icon.clipper";
5263 description { state: "default" 0.0;
5264 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5266 description { state: "clicked" 0.0;
5267 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5269 description { state: "disabled" 0.0;
5270 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5273 part { name: "over2";
5275 ignore_flags: ON_HOLD;
5276 description { state: "default" 0.0;
5280 part { name: "over3";
5283 description { state: "default" 0.0;
5287 part { name: "disabler";
5289 description { state: "default" 0.0;
5293 description { state: "disabled" 0.0;
5294 inherit: "default" 0.0;
5300 program { name: "button_click";
5301 signal: "mouse,down,1";
5303 action: SIGNAL_EMIT "elm,action,press" "";
5304 after: "button_click_anim";
5306 program { name: "button_click_anim";
5308 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5309 set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0);
5312 program { name: "button_double_click";
5313 signal: "mouse,down,1,double";
5315 after: "button_click_anim";
5317 program { name: "button_unpress";
5318 action: SIGNAL_EMIT "elm,action,unpress" "";
5320 program { name: "button_mouseout_clicked";
5321 signal: "mouse,up,1";
5323 action: STATE_SET "default" 0.0;
5324 target: "elm.icon.clipper";
5325 target: "elm.icon.proxy.clipper";
5326 after: button_unpress;
5328 program { name: "touch_snd";
5329 signal: "mouse,clicked,1";
5331 action: PLAY_SAMPLE "touch_sound" 1.0;
5332 after: button_unclick3;
5334 program { name: "button_unclick3";
5335 action: SIGNAL_EMIT "elm,action,click" "";
5337 program { name: "icon_show";
5338 signal: "elm,state,icon,visible";
5340 action: STATE_SET "visible" 0.0;
5341 target: "elm.swallow.content";
5343 program { name: "icon_hide";
5344 signal: "elm,state,icon,hidden";
5346 action: STATE_SET "default" 0.0;
5347 target: "elm.swallow.content";
5349 program { name: "disable";
5350 signal: "elm,state,disabled";
5353 set_state(PART:"disabler", "disabled", 0.0);
5354 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5355 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
5358 program { name: "enable";
5359 signal: "elm,state,enabled";
5362 set_state(PART:"disabler", "default", 0.0);
5363 set_state(PART:"elm.icon.clipper", "default", 0.0);
5364 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
5367 program { name: "change_to_landscape";
5368 signal: "elm,state,landscape";
5370 action: STATE_SET "landscape" 0.0;
5371 target: "button_image";
5372 target: "top_padding";
5374 program { name: "change_to_portrait";
5375 signal: "elm,state,portrait";
5377 action: STATE_SET "default" 0.0;
5378 target: "button_image";
5379 target: "top_padding";
5381 /* program { name: "landscape_mode";
5383 signal: "elm,state,orient,90";
5384 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5386 program { name: "landscape_mode2";
5388 signal: "elm,state,orient,270";
5389 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5391 program { name: "portrait_mode";
5393 signal: "elm,state,orient,0";
5394 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5396 program { name: "portrait_mode2";
5398 signal: "elm,state,orient,180";
5399 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5404 /////////////////////////////////////////////////////////////////////////////////////////
5405 group { name: "elm/button/base/naviframe/more/default";
5407 image: "00_icon_more.png" COMP;
5410 part { name: "button_image";
5413 description { state: "default" 0.0;
5414 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5415 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5418 description { state: "landscape" 0.0;
5419 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5420 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5424 part { name: "more_image";
5427 clip_to: "more_image.clipper";
5428 description { state: "default" 0.0;
5429 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5430 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5432 rel1.to: "button_image";
5433 rel2.to: "button_image";
5434 image.normal: "00_icon_more.png";
5437 part { name: "more_image.clipper";
5439 description { state: "default" 0.0;
5440 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5442 description { state: "clicked" 0.0;
5443 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5445 description { state: "disabled" 0.0;
5446 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5449 part { name: "elm.text.badge.bg";
5453 state: "default" 0.0;
5456 to: "left.padding.text.badge";
5460 to: "right.padding.text.badge";
5465 normal: "00_badge_bg.png";
5470 description { state: "visible" 0.0;
5471 inherit: "default" 0.0;
5475 part { name: "left.padding.text.badge";
5479 state: "default" 0.0;
5484 to: "elm.text.badge";
5488 to: "elm.text.badge";
5494 part { name: "right.padding.text.badge";
5498 state: "default" 0.0;
5513 part { name: "elm.text.badge";
5518 state: "default" 0.0;
5526 to: "right.padding.text.badge";
5530 color: 10 100 208 255;
5532 font: "Tizen:style=Bold";
5538 description { state: "visible" 0.0;
5539 inherit: "default" 0.0;
5543 part { name: "over2";
5545 ignore_flags: ON_HOLD;
5546 description { state: "default" 0.0;
5550 part { name: "over3";
5553 description { state: "default" 0.0;
5557 part { name: "disabler";
5559 description { state: "default" 0.0;
5563 description { state: "disabled" 0.0;
5564 inherit: "default" 0.0;
5570 program { name: "button_click";
5571 signal: "mouse,down,1";
5573 action: SIGNAL_EMIT "elm,action,press" "";
5574 after: "button_click_anim";
5576 program { name: "button_click_anim";
5578 set_state(PART:"more_image.clipper", "clicked", 0.0);
5581 program { name: "button_double_click";
5582 signal: "mouse,down,1,double";
5584 after: "button_click_anim";
5586 program { name: "button_unclick";
5587 signal: "mouse,up,1";
5589 action: SIGNAL_EMIT "elm,action,unpress" "";
5590 after: "button_unclick_anim";
5592 program { name: "button_unclick_anim";
5594 set_state(PART:"more_image.clipper", "default", 0.0);
5597 program { name: "touch_snd";
5598 signal: "mouse,clicked,1";
5600 action: PLAY_SAMPLE "touch_sound" 1.0;
5601 after: button_unclick3;
5603 program { name: "button_unclick3";
5604 action: SIGNAL_EMIT "elm,action,click" "";
5606 program { name: "badge_text_show";
5607 signal: "elm,state,elm.text.badge,visible";
5609 action: STATE_SET "visible" 0.0;
5610 target: "elm.text.badge";
5611 target: "elm.text.badge.bg";
5613 program { name: "badge_text_hide";
5614 signal: "elm,state,elm.text.badge,hidden";
5616 action: STATE_SET "default" 0.0;
5617 target: "elm.text.badge";
5618 target: "elm.text.badge.bg";
5620 program { name: "disable";
5621 signal: "elm,state,disabled";
5624 set_state(PART:"disabler", "disabled", 0.0);
5625 set_state(PART:"more_image.clipper", "disabled", 0.0);
5628 program { name: "enable";
5629 signal: "elm,state,enabled";
5632 set_state(PART:"disabler", "default", 0.0);
5633 set_state(PART:"more_image.clipper", "default", 0.0);
5636 program { name: "change_to_landscape";
5637 signal: "elm,state,landscape";
5639 action: STATE_SET "landscape" 0.0;
5640 target: "button_image";
5642 program { name: "change_to_portrait";
5643 signal: "elm,state,portrait";
5645 action: STATE_SET "default" 0.0;
5646 target: "button_image";
5648 program { name: "landscape_mode";
5650 signal: "elm,state,orient,90";
5651 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5653 program { name: "landscape_mode2";
5655 signal: "elm,state,orient,270";
5656 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5658 program { name: "portrait_mode";
5660 signal: "elm,state,orient,0";
5661 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5663 program { name: "portrait_mode2";
5665 signal: "elm,state,orient,180";
5666 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5671 ///////////////////////////////////////////////////////////////////////////////////////
5672 group { name: "elm/button/base/tickernoti";
5674 image: "00_notification_button_bg.png" COMP;
5675 image: "00_notification_button_bg_press.png" COMP;
5676 image: "00_notification_button_bg_dim.png" COMP;
5679 public button_state = BUTTON_STATE_ENABLED;
5682 part { name: "button_image";
5684 description { state: "default" 0.0;
5685 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5686 max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5688 normal: "00_notification_button_bg.png";
5689 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
5693 description { state: "clicked" 0.0;
5694 inherit: "default" 0.0;
5695 image.normal: "00_notification_button_bg_press.png";
5697 description { state: "disabled" 0.0;
5698 inherit: "default" 0.0;
5699 image.normal: "00_notification_button_bg_dim.png";
5701 description { state: "focused" 0.0;
5702 inherit: "default" 0.0;
5703 image.normal: "00_notification_button_bg_press.png";
5706 part { name: "padding_left_top";
5710 description { state: "default" 0.0;
5713 rel2.relative: 0.0 0.0;
5714 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5722 description { state: "default" 0.0;
5723 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5726 description { state: "visible" 0.0;
5727 inherit: "default" 0.0;
5729 description { state: "icononly" 0.0;
5730 inherit: "default" 0.0;
5733 part { name: "padding_right_bottom";
5737 description { state: "default" 0.0;
5739 rel1.relative: 1.0 1.0;
5740 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5745 part { name: "icon_rect";
5749 description { state: "default" 0.0;
5755 to: "padding_left_top";
5759 to_x: "padding_left_top";
5760 to_y: "padding_right_bottom";
5764 description { state: "visible" 0.0;
5765 inherit: "default" 0.0;
5766 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5767 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5769 description { state: "icononly" 0.0;
5770 inherit: "default" 0.0;
5773 part { name: "padding_after_icon";
5777 description { state: "default" 0.0; //when only icon or no icon is there
5786 rel2.to: "icon_rect";
5788 description { state: "visible" 0.0;
5789 inherit: "default" 0.0;
5790 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5792 description { state: "icononly" 0.0;
5793 inherit: "default" 0.0;
5796 part { name: "padding_before_text";
5800 description { state: "default" 0.0; //when only icon or no icon is there
5804 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5808 to_y: "padding_left_top";
5813 to_y: "padding_right_bottom";
5817 part { name: "elm.swallow.content";
5821 description { state: "default" 0.0;
5827 to: "padding_left_top";
5831 to_x: "padding_left_top";
5832 to_y: "padding_right_bottom";
5835 description { state: "visible" 0.0;
5837 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5838 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5842 to_x: "padding_before_text";
5843 to_y: "padding_left_top";
5847 to_x: "padding_before_text";
5848 to_y: "padding_right_bottom";
5851 description { state: "icononly" 0.0;
5852 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5853 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5856 part { name: "elm.text";
5859 effect: FAR_SHADOW BOTTOM;
5862 description { state: "default" 0.0;
5866 to_x: "padding_after_icon";
5867 to_y: "padding_left_top";
5871 to: "padding_right_bottom";
5873 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
5874 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5876 font: "Tizen:style=Regular";
5877 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
5878 text_class: "tizen";
5881 description { state: "visible" 0.0;
5882 inherit: "default" 0.0;
5885 description { state: "clicked" 0.0;
5886 inherit: "default" 0.0;
5888 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5890 description { state: "disabled" 0.0;
5891 inherit: "default" 0.0;
5893 description { state: "disabled_visible" 0.0;
5894 inherit: "default" 0.0;
5895 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
5896 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5899 description { state: "focused" 0.0;
5900 inherit: "default" 0.0;
5902 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5905 part { name: "over2";
5908 ignore_flags: ON_HOLD;
5909 description { state: "default" 0.0;
5913 part { name: "over3";
5916 description { state: "default" 0.0;
5920 part { name: "clipper";
5922 description { state: "default" 0.0;
5923 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5925 description { state: "disabled" 0.0;
5926 inherit: "default" 0.0;
5927 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5930 part { name: "disabler";
5932 description { state: "default" 0.0;
5936 description { state: "disabled" 0.0;
5937 inherit: "default" 0.0;
5943 program { name: "button_click";
5944 signal: "mouse,down,1";
5946 action: SIGNAL_EMIT "elm,action,press" "";
5947 after: "button_click_anim";
5949 program { name: "button_click_anim";
5950 action: STATE_SET "clicked" 0.0;
5951 target: "button_image";
5952 after: "text_clicked";
5954 program { name: "text_clicked";
5958 get_state(PART:"elm.text", st, 30, vl);
5959 if (!strcmp(st, "visible"))
5960 set_state(PART:"elm.text", "clicked", 0.0);
5963 program { name: "button_double_click";
5964 signal: "mouse,down,1,double";
5966 after: "button_click_anim";
5968 program { name: "button_unpress";
5969 action: SIGNAL_EMIT "elm,action,unpress" "";
5971 program { name: "button_mouseout_clicked";
5972 signal: "mouse,up,1";
5977 get_state(PART:"elm.swallow.content", st, 30, vl);
5978 if (strcmp(st, "icononly"))
5980 emit("elm,action,default,text,set", "");
5981 set_state(PART:"elm.text", "visible", 0.0);
5983 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5984 set_state(PART:"button_image", "default", 0.0);
5986 after: button_unpress;
5988 program { name: "touch_snd";
5989 signal: "mouse,clicked,1";
5991 action: PLAY_SAMPLE "touch_sound" 1.0;
5992 after: button_unclick3;
5994 program { name: "button_unclick3";
5995 action: SIGNAL_EMIT "elm,action,click" "";
5997 program { name: "text_show";
5998 signal: "elm,state,text,visible";
6003 get_state(PART:"elm.swallow.content", st, 30, vl);
6004 if (!strcmp(st, "icononly"))
6006 set_state(PART:"elm.swallow.content", "visible", 0.0);
6007 set_state(PART:"icon_rect", "visible", 0.0);
6008 set_state(PART:"padding_after_icon", "visible", 0.0);
6009 set_state(PART:"bg", "visible", 0.0);
6011 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6012 set_state(PART:"elm.text", "visible", 0.0);
6014 set_state(PART:"elm.text", "disabled_visible", 0.0);
6017 program { name: "text_hide";
6018 signal: "elm,state,text,hidden";
6023 get_state(PART:"elm.swallow.content", st, 30, vl);
6024 if (!strcmp(st, "visible"))
6026 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6027 set_state(PART:"icon_rect", "icononly", 0.0);
6028 set_state(PART:"padding_after_icon", "icononly", 0.0);
6029 set_state(PART:"bg", "icononly", 0.0);
6031 set_state(PART:"elm.text", "default", 0.0);
6034 program { name: "icon_show";
6035 signal: "elm,state,icon,visible";
6040 get_state(PART:"elm.text", st, 30, vl);
6041 if (!strcmp(st, "visible"))
6043 set_state(PART:"elm.swallow.content", "visible", 0.0);
6044 set_state(PART:"icon_rect", "visible", 0.0);
6045 set_state(PART:"padding_after_icon", "visible", 0.0);
6046 set_state(PART:"bg", "visible", 0.0);
6050 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6051 set_state(PART:"icon_rect", "icononly", 0.0);
6052 set_state(PART:"padding_after_icon", "icononly", 0.0);
6053 set_state(PART:"bg", "icononly", 0.0);
6057 program { name: "icon_hide";
6058 signal: "elm,state,icon,hidden";
6060 action: STATE_SET "default" 0.0;
6061 target: "elm.swallow.content";
6062 target: "padding_after_icon";
6063 target: "icon_rect";
6066 program { name: "disable";
6067 signal: "elm,state,disabled";
6069 action: STATE_SET "disabled" 0.0;
6070 target: "button_image";
6073 after: "disable_text";
6075 program { name: "disable_text";
6079 get_state(PART:"elm.text", st, 30, vl);
6080 if (!strcmp(st, "visible"))
6081 set_state(PART:"elm.text", "disabled_visible", 0.0);
6083 set_state(PART:"elm.text", "disabled", 0.0);
6084 set_int(button_state, BUTTON_STATE_DISABLED);
6087 program { name: "enable";
6088 signal: "elm,state,enabled";
6090 action: STATE_SET "default" 0.0;
6091 target: "button_image";
6094 after: "enable_text";
6096 program { name: "enable_text";
6100 get_state(PART:"elm.text", st, 30, vl);
6101 if (!strcmp(st, "disabled_visible"))
6102 set_state(PART:"elm.text", "visible", 0.0);
6104 set_state(PART:"elm.text", "default", 0.0);
6105 set_int(button_state, BUTTON_STATE_ENABLED);
6108 program { name: "focused";
6109 //signal: "elm,action,focus";
6111 action: STATE_SET "focused" 0.0;
6112 target: "button_image";
6115 program { name: "unfocused";
6116 //signal: "elm,action,unfocus";
6118 action: STATE_SET "default" 0.0;
6119 target: "button_image";
6120 after: "unfocus_text";
6122 program { name: "unfocus_text";
6123 action: STATE_SET "visible" 0.0;
6129 ///////////////////////////////////////////////////////////////////////////////////////
6130 group { name: "elm/button/base/expandable_number";
6131 alias: "elm/button/base/text_only/expandable_number";
6133 image: "00_button_01.png" COMP;
6134 image: "00_button_01_press.png" COMP;
6135 image: "00_button_01_dim.png" COMP;
6136 image: "00_arrow_expand.png" COMP;
6139 public button_state = BUTTON_STATE_ENABLED;
6142 part { name: "button_image";
6144 description { state: "default" 0.0;
6145 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6146 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6148 normal: "00_button_01.png";
6149 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6153 description { state: "clicked" 0.0;
6154 inherit: "default" 0.0;
6155 image.normal: "00_button_01_press.png";
6157 description { state: "disabled" 0.0;
6158 inherit: "default" 0.0;
6159 image.normal: "00_button_01_dim.png";
6161 description { state: "focused" 0.0;
6162 inherit: "default" 0.0;
6163 image.normal: "00_button_01_press.png";
6166 part { name: "padding_left_top";
6170 description { state: "default" 0.0;
6173 rel2.relative: 0.0 0.0;
6174 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6178 part { name: "padding_right_bottom";
6182 description { state: "default" 0.0;
6185 rel1.relative: 1.0 1.0;
6186 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6190 part { name: "icon_rect";
6194 description { state: "default" 0.0;
6196 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6197 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6201 to_x: "padding_right_bottom";
6202 to_y: "padding_left_top";
6206 to: "padding_right_bottom";
6211 part { name: "arrow_expand";
6213 clip_to: "icon_clipper";
6215 description { state: "default" 0.0;
6217 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6218 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6220 rel1.to: "icon_rect";
6221 rel2.to: "icon_rect";
6222 image.normal:"00_arrow_expand.png";
6225 part { name: "elm.text";
6228 effect: SHADOW BOTTOM;
6230 description { state: "default" 0.0;
6231 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6232 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6236 to: "padding_left_top";
6240 to_x:"padding_left_top";
6241 to_y:"padding_right_bottom";
6244 color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6245 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6247 font: "Tizen:style=Regular";
6248 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6252 text_class: "tizen";
6255 description { state: "visible" 0.0;
6256 inherit: "default" 0.0;
6258 description { state: "clicked" 0.0;
6259 inherit: "default" 0.0;
6260 color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
6262 description { state: "disabled" 0.0;
6263 inherit: "default" 0.0;
6265 description { state: "disabled_visible" 0.0;
6266 inherit: "default" 0.0;
6267 color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6268 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
6270 description { state: "focused" 0.0;
6271 inherit: "default" 0.0;
6272 color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6275 part { name: "icon_clipper";
6278 description { state: "default" 0.0;
6279 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6281 description { state: "clicked" 0.0;
6282 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6284 description { state: "disabled" 0.0;
6285 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6288 part { name: "over2";
6291 ignore_flags: ON_HOLD;
6292 description { state: "default" 0.0;
6296 part { name: "over3";
6299 description { state: "default" 0.0;
6303 part { name: "disabler";
6305 description { state: "default" 0.0;
6309 description { state: "disabled" 0.0;
6310 inherit: "default" 0.0;
6316 program { name: "button_click";
6317 signal: "mouse,down,1";
6319 action: SIGNAL_EMIT "elm,action,press" "";
6320 after: "button_click_anim";
6322 program { name: "button_click_anim";
6323 action: STATE_SET "clicked" 0.0;
6324 target: "button_image";
6325 target: "icon_clipper";
6326 after: "text_clicked";
6328 program { name: "text_clicked";
6332 get_state(PART:"elm.text", st, 30, vl);
6333 if (!strcmp(st, "visible"))
6334 set_state(PART:"elm.text", "clicked", 0.0);
6337 program { name: "button_double_click";
6338 signal: "mouse,down,1,double";
6340 after: "button_click_anim";
6342 program { name: "button_unpress";
6343 action: SIGNAL_EMIT "elm,action,unpress" "";
6345 program { name: "button_mouseout_clicked";
6346 signal: "mouse,up,1";
6349 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6351 set_state(PART:"button_image", "default", 0.0);
6352 set_state(PART:"elm.text", "visible", 0.0);
6353 set_state(PART:"icon_clipper", "default", 0.0);
6356 after: button_unpress;
6358 program { name: "touch_snd";
6359 signal: "mouse,clicked,1";
6361 action: PLAY_SAMPLE "touch_sound" 1.0;
6362 after: button_unclick3;
6364 program { name: "button_unclick3";
6365 action: SIGNAL_EMIT "elm,action,click" "";
6367 program { name: "text_show";
6368 signal: "elm,state,text,visible";
6371 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6372 set_state(PART:"elm.text", "visible", 0.0);
6374 set_state(PART:"elm.text", "disabled_visible", 0.0);
6377 program { name: "text_hide";
6378 signal: "elm,state,text,hidden";
6381 set_state(PART:"elm.text", "default", 0.0);
6384 program { name: "disable";
6385 signal: "elm,state,disabled";
6387 action: STATE_SET "disabled" 0.0;
6388 target: "button_image";
6390 target: "icon_clipper";
6391 after: "disable_text";
6393 program { name: "disable_text";
6397 get_state(PART:"elm.text", st, 30, vl);
6398 if (!strcmp(st, "visible"))
6399 set_state(PART:"elm.text", "disabled_visible", 0.0);
6401 set_state(PART:"elm.text", "disabled", 0.0);
6402 set_int(button_state, BUTTON_STATE_DISABLED);
6405 program { name: "enable";
6406 signal: "elm,state,enabled";
6408 action: STATE_SET "default" 0.0;
6409 target: "button_image";
6411 target: "icon_clipper";
6412 after: "enable_text";
6414 program { name: "enable_text";
6418 get_state(PART:"elm.text", st, 30, vl);
6419 if (!strcmp(st, "disabled_visible"))
6420 set_state(PART:"elm.text", "visible", 0.0);
6422 set_state(PART:"elm.text", "default", 0.0);
6423 set_int(button_state, BUTTON_STATE_ENABLED);
6426 program { name: "focused";
6427 //signal: "elm,action,focus";
6429 action: STATE_SET "focused" 0.0;
6430 target: "button_image";
6433 program { name: "unfocused";
6434 //signal: "elm,action,unfocus";
6436 action: STATE_SET "default" 0.0;
6437 target: "button_image";
6438 after: "unfocus_text";
6440 program { name: "unfocus_text";
6441 action: STATE_SET "visible" 0.0;
6447 ////////////////////////////////////////////////////////////////////////
6448 group { name: "elm/button/base/bubble_sent";
6449 inherit: "elm/button/base/style1";
6451 image: "00_messagebubble_button_sent.png" COMP;
6452 image: "00_messagebubble_button_sent_press.png" COMP;
6453 image: "00_messagebubble_button_sent_dim.png" COMP;
6456 part { name: "button_image";
6458 description { state: "default" 0.0;
6460 normal: "00_messagebubble_button_sent.png";
6461 border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
6465 description { state: "clicked" 0.0;
6466 inherit: "default" 0.0;
6467 image.normal: "00_messagebubble_button_sent_press.png";
6469 description { state: "disabled" 0.0;
6470 inherit: "default" 0.0;
6471 image.normal: "00_messagebubble_button_sent_dim.png";
6473 description { state: "focused" 0.0;
6474 inherit: "default" 0.0;
6475 image.normal: "00_messagebubble_button_sent_press.png";
6478 part { name: "elm.text";
6481 effect: FAR_SHADOW BOTTOM;
6484 description { state: "default" 0.0;
6488 to_x: "padding_after_icon";
6489 to_y: "padding_left_top";
6493 to: "padding_right_bottom";
6495 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6496 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6498 font: "Tizen:style=Regular";
6499 size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
6502 text_class: "tizen";
6505 description { state: "visible" 0.0;
6506 inherit: "default" 0.0;
6509 description { state: "clicked" 0.0;
6510 inherit: "default" 0.0;
6512 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6514 description { state: "disabled" 0.0;
6515 inherit: "default" 0.0;
6517 description { state: "disabled_visible" 0.0;
6518 inherit: "default" 0.0;
6519 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6522 description { state: "focused" 0.0;
6523 inherit: "default" 0.0;
6525 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6531 ////////////////////////////////////////////////////////////////////////
6532 group { name: "elm/button/base/bubble_sent/multiline";
6533 inherit: "elm/button/base/bubble_sent";
6535 style { name: "bubble_sent_multiline";
6536 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";
6543 part { name: "elm.text";
6546 effect: FAR_SHADOW BOTTOM;
6549 description { state: "default" 0.0;
6554 to_x: "padding_after_icon";
6555 to_y: "padding_left_top";
6559 to: "padding_right_bottom";
6561 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6562 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6564 style: "bubble_sent_multiline";
6567 description { state: "visible" 0.0;
6568 inherit: "default" 0.0;
6571 description { state: "clicked" 0.0;
6572 inherit: "default" 0.0;
6574 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6576 description { state: "disabled" 0.0;
6577 inherit: "default" 0.0;
6579 description { state: "disabled_visible" 0.0;
6580 inherit: "default" 0.0;
6581 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6584 description { state: "focused" 0.0;
6585 inherit: "default" 0.0;
6587 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6593 ///////////////////////////////////////////////////////////////////////
6594 group { name: "elm/button/base/bubble_receive";
6595 inherit: "elm/button/base/style1";
6597 image: "00_messagebubble_button_receive.png" COMP;
6598 image: "00_messagebubble_button_receive_press.png" COMP;
6599 image: "00_messagebubble_button_receive_dim.png" COMP;
6602 part { name: "button_image";
6604 description { state: "default" 0.0;
6606 normal: "00_messagebubble_button_receive.png";
6607 border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
6611 description { state: "clicked" 0.0;
6612 inherit: "default" 0.0;
6613 image.normal: "00_messagebubble_button_receive_press.png";
6615 description { state: "disabled" 0.0;
6616 inherit: "default" 0.0;
6617 image.normal: "00_messagebubble_button_receive_dim.png";
6619 description { state: "focused" 0.0;
6620 inherit: "default" 0.0;
6621 image.normal: "00_messagebubble_button_receive_press.png";
6624 part { name: "elm.text";
6627 effect: SHADOW BOTTOM;
6630 description { state: "default" 0.0;
6634 to_x: "padding_after_icon";
6635 to_y: "padding_left_top";
6639 to: "padding_right_bottom";
6641 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6642 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6644 font: "Tizen:style=Regular";
6645 size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
6648 text_class: "tizen";
6651 description { state: "visible" 0.0;
6652 inherit: "default" 0.0;
6655 description { state: "clicked" 0.0;
6656 inherit: "default" 0.0;
6658 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6660 description { state: "disabled" 0.0;
6661 inherit: "default" 0.0;
6663 description { state: "disabled_visible" 0.0;
6664 inherit: "default" 0.0;
6665 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6668 description { state: "focused" 0.0;
6669 inherit: "default" 0.0;
6671 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6677 ///////////////////////////////////////////////////////////////////////
6678 group { name: "elm/button/base/bubble_receive/multiline";
6679 inherit: "elm/button/base/bubble_receive";
6681 style { name: "bubble_receive_multiline";
6682 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";
6689 part { name: "elm.text";
6692 effect: SHADOW BOTTOM;
6695 description { state: "default" 0.0;
6700 to_x: "padding_after_icon";
6701 to_y: "padding_left_top";
6705 to: "padding_right_bottom";
6707 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6708 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6710 style: "btn_style1_multiline";
6713 description { state: "visible" 0.0;
6714 inherit: "default" 0.0;
6717 description { state: "clicked" 0.0;
6718 inherit: "default" 0.0;
6720 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6722 description { state: "disabled" 0.0;
6723 inherit: "default" 0.0;
6725 description { state: "disabled_visible" 0.0;
6726 inherit: "default" 0.0;
6727 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6730 description { state: "focused" 0.0;
6731 inherit: "default" 0.0;
6733 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6739 ///////////////////////////////////////////////////////////////////////
6740 group { name: "elm/button/base/bubble_circle/receive";
6742 image: "00_messagebubble_circle_receive.png" COMP;
6743 image: "00_messagebubble_circle_receive_press.png" COMP;
6744 image: "00_messagebubble_circle_receive_dim.png" COMP;
6745 image: "00_button_right.png" COMP;
6746 image: "00_button_right_press.png" COMP;
6749 part { name: "button_image";
6751 description { state: "default" 0.0;
6752 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6753 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6754 image.normal: "00_messagebubble_circle_receive.png";
6757 state: "clicked" 0.0;
6758 inherit: "default" 0.0;
6759 image.normal: "00_messagebubble_circle_receive_press.png";
6762 state: "disabled" 0.0;
6763 inherit: "default" 0.0;
6764 image.normal: "00_messagebubble_circle_receive_dim.png";
6767 part { name: "image";
6769 clip_to: "icon_clipper";
6770 description { state: "default" 0.0;
6771 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6772 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6773 image.normal: "00_button_right.png";
6776 state: "clicked" 0.0;
6777 inherit: "default" 0.0;
6778 image.normal: "00_button_right_press.png";
6781 state: "disabled" 0.0;
6782 inherit: "default" 0.0;
6785 part { name: "icon_clipper";
6788 description { state: "default" 0.0;
6789 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
6791 description { state: "clicked" 0.0;
6792 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
6794 description { state: "disabled" 0.0;
6795 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
6798 part { name: "over1";
6800 ignore_flags: ON_HOLD;
6801 description { state: "default" 0.0;
6805 part { name: "over2";
6808 description { state: "default" 0.0;
6812 part { name: "disabler";
6814 description { state: "default" 0.0;
6818 description { state: "disabled" 0.0;
6819 inherit: "default" 0.0;
6825 program { name: "button_click";
6826 signal: "mouse,down,1";
6828 action: SIGNAL_EMIT "elm,action,press" "";
6829 after: "button_click_anim";
6831 program { name: "button_click_anim";
6832 action: STATE_SET "clicked" 0.0;
6833 target: "button_image";
6835 target: "icon_clipper";
6837 program { name: "button_double_click";
6838 signal: "mouse,down,1,double";
6840 after: "button_click_anim";
6842 program { name: "button_unclick";
6843 signal: "mouse,up,1";
6845 action: SIGNAL_EMIT "elm,action,unpress" "";
6846 after: "button_unclick_anim";
6848 program { name: "button_unclick_anim";
6849 action: STATE_SET "default" 0.0;
6850 target: "button_image";
6852 target: "icon_clipper";
6854 program { name: "touch_snd";
6855 signal: "mouse,clicked,1";
6857 action: PLAY_SAMPLE "touch_sound" 1.0;
6858 after: button_unclick3;
6860 program { name: "button_unclick3";
6861 action: SIGNAL_EMIT "elm,action,click" "";
6863 program { name: "disable";
6864 signal: "elm,state,disabled";
6866 action: STATE_SET "disabled" 0.0;
6868 target: "button_image";
6869 target: "icon_clipper";
6872 program { name: "enable";
6873 signal: "elm,state,enabled";
6875 action: STATE_SET "default" 0.0;
6877 target: "button_image";
6878 target: "icon_clipper";
6883 ///////////////////////////////////////////////////////////////////////
6884 group { name: "elm/button/base/bubble_circle/sent";
6886 image: "00_messagebubble_circle_sent.png" COMP;
6887 image: "00_messagebubble_circle_sent_press.png" COMP;
6888 image: "00_messagebubble_circle_sent_dim.png" COMP;
6889 image: "00_button_right.png" COMP;
6890 image: "00_button_right_press.png" COMP;
6893 part { name: "button_image";
6895 description { state: "default" 0.0;
6896 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6897 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6898 image.normal: "00_messagebubble_circle_sent.png";
6901 state: "clicked" 0.0;
6902 inherit: "default" 0.0;
6903 image.normal: "00_messagebubble_circle_sent_press.png";
6906 state: "disabled" 0.0;
6907 inherit: "default" 0.0;
6908 image.normal: "00_messagebubble_circle_sent_dim.png";
6911 part { name: "image";
6913 clip_to: "icon_clipper";
6914 description { state: "default" 0.0;
6915 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6916 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6917 image.normal: "00_button_right.png";
6920 state: "clicked" 0.0;
6921 inherit: "default" 0.0;
6922 image.normal: "00_button_right_press.png";
6925 state: "disabled" 0.0;
6926 inherit: "default" 0.0;
6929 part { name: "icon_clipper";
6932 description { state: "default" 0.0;
6933 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
6935 description { state: "clicked" 0.0;
6936 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
6938 description { state: "disabled" 0.0;
6939 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
6942 part { name: "over1";
6944 ignore_flags: ON_HOLD;
6945 description { state: "default" 0.0;
6949 part { name: "over2";
6952 description { state: "default" 0.0;
6956 part { name: "disabler";
6958 description { state: "default" 0.0;
6962 description { state: "disabled" 0.0;
6963 inherit: "default" 0.0;
6969 program { name: "button_click";
6970 signal: "mouse,down,1";
6972 action: SIGNAL_EMIT "elm,action,press" "";
6973 after: "button_click_anim";
6975 program { name: "button_click_anim";
6976 action: STATE_SET "clicked" 0.0;
6977 target: "button_image";
6979 target: "icon_clipper";
6981 program { name: "button_double_click";
6982 signal: "mouse,down,1,double";
6984 after: "button_click_anim";
6986 program { name: "button_unclick";
6987 signal: "mouse,up,1";
6989 action: SIGNAL_EMIT "elm,action,unpress" "";
6990 after: "button_unclick_anim";
6992 program { name: "button_unclick_anim";
6993 action: STATE_SET "default" 0.0;
6994 target: "button_image";
6996 target: "icon_clipper";
6998 program { name: "touch_snd";
6999 signal: "mouse,clicked,1";
7001 action: PLAY_SAMPLE "touch_sound" 1.0;
7002 after: button_unclick3;
7004 program { name: "button_unclick3";
7005 action: SIGNAL_EMIT "elm,action,click" "";
7007 program { name: "disable";
7008 signal: "elm,state,disabled";
7010 action: STATE_SET "disabled" 0.0;
7012 target: "button_image";
7013 target: "icon_clipper";
7015 program { name: "enable";
7016 signal: "elm,state,enabled";
7018 action: STATE_SET "default" 0.0;
7020 target: "button_image";
7021 target: "icon_clipper";
7026 //////////////////////////////////////////////////////////////////////////////////////
7027 group { name: "elm/button/base/editfield_clear";
7029 image: "00_EditField_clear" COMP;
7032 part { name: "button_image";
7035 description { state: "default" 0.0;
7038 description { state: "clicked" 0.0;
7039 inherit: "default" 0.0;
7041 description { state: "disabled" 0.0;
7042 inherit: "default" 0.0;
7044 description { state: "focused" 0.0;
7045 inherit: "default" 0.0;
7048 part { name: "clear_button";
7051 clip_to: "clear_button.clipper";
7052 description { state: "default" 0.0;
7053 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7054 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7057 image.normal: "00_EditField_clear.png";
7060 part { name: "clear_button.clipper";
7062 description { state: "default" 0.0;
7063 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7065 description { state: "clicked" 0.0;
7066 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7068 description { state: "disabled" 0.0;
7069 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7072 part { name: "over2";
7074 ignore_flags: ON_HOLD;
7075 description { state: "default" 0.0;
7079 part { name: "over3";
7082 description { state: "default" 0.0;
7086 part { name: "disabler";
7088 description { state: "default" 0.0;
7092 description { state: "disabled" 0.0;
7093 inherit: "default" 0.0;
7099 program { name: "button_click";
7100 signal: "mouse,down,1";
7102 action: SIGNAL_EMIT "elm,action,press" "";
7103 after: "button_click_anim";
7105 program { name: "button_click_anim";
7106 action: STATE_SET "clicked" 0.0;
7107 target: "button_image";
7108 target: "clear_button.clipper";
7110 program { name: "button_double_click";
7111 signal: "mouse,down,1,double";
7113 after: "button_click_anim";
7115 program { name: "button_unclick";
7116 signal: "mouse,up,1";
7118 action: SIGNAL_EMIT "elm,action,unpress" "";
7119 after: "button_unclick_anim";
7121 program { name: "button_unclick_anim";
7122 action: STATE_SET "default" 0.0;
7123 target: "button_image";
7124 target: "clear_button.clipper";
7126 program { name: "touch_snd";
7127 signal: "mouse,clicked,1";
7129 action: PLAY_SAMPLE "touch_sound" 1.0;
7130 after: button_unclick3;
7132 program { name: "button_unclick3";
7133 action: SIGNAL_EMIT "elm,action,click" "";
7135 program { name: "disable";
7136 signal: "elm,state,disabled";
7138 action: STATE_SET "disabled" 0.0;
7139 target: "button_image";
7141 target: "clear_button.clipper";
7143 program { name: "enable";
7144 signal: "elm,state,enabled";
7146 action: STATE_SET "default" 0.0;
7147 target: "button_image";
7149 target: "clear_button.clipper";
7154 group { name: "elm/button/base/search_clear";
7155 inherit: "elm/button/base/editfield_clear";
7157 part { name: "clear_button";
7160 clip_to: "clear_button.clipper";
7161 description { state: "default" 0.0;
7162 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7163 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7166 image.normal: "00_EditField_clear.png";
7172 #undef BUTTON_STATE_ENABLED
7173 #undef BUTTON_STATE_DISABLED