3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 #define BUTTON_STATE_ENABLED 0
21 #define BUTTON_STATE_DISABLED 1
22 #define BUTTON_LANDSCAPE_DISABLED 0
23 #define BUTTON_LANDSCAPE_ENABLED 1
27 name: "touch_sound" AS_IS;
28 source: "S_Touch_30ms.wav";
32 ///////////////////////////////////////////////////////////////////////////////////////
33 group { name: "elm/button/base/style1";
34 alias: "elm/button/base/text_only/style1";
35 alias: "elm/button/base/center";
36 alias: "elm/button/base/icon_and_text/center";
37 alias: "elm/button/base/nocontents/search_button";
38 alias: "elm/button/base/style1/multiline";
40 image: "00_button_01.png" COMP;
41 image: "00_button_01_press.png" COMP;
42 image: "00_button_01_dim.png" COMP;
45 public button_state = BUTTON_STATE_ENABLED;
48 part { name: "button_image";
50 description { state: "default" 0.0;
52 normal: "00_button_01.png";
53 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
57 description { state: "clicked" 0.0;
58 inherit: "default" 0.0;
59 image.normal: "00_button_01_press.png";
61 description { state: "disabled" 0.0;
62 inherit: "default" 0.0;
63 image.normal: "00_button_01_dim.png";
65 description { state: "focused" 0.0;
66 inherit: "default" 0.0;
67 image.normal: "00_button_01_press.png";
70 part { name: "padding_left_top";
74 description { state: "default" 0.0;
76 rel2.relative: 0.0 0.0;
77 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
86 description { state: "default" 0.0;
87 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
90 description { state: "visible" 0.0;
91 inherit: "default" 0.0;
92 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
94 description { state: "icononly" 0.0;
95 inherit: "default" 0.0;
96 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
99 part { name: "padding_right_bottom";
103 description { state: "default" 0.0;
105 rel1.relative: 1.0 1.0;
106 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
111 part { name: "icon_rect";
115 description { state: "default" 0.0;
121 to: "padding_left_top";
125 to_x: "padding_left_top";
126 to_y: "padding_right_bottom";
130 description { state: "visible" 0.0;
131 inherit: "default" 0.0;
132 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
133 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
135 description { state: "icononly" 0.0;
136 inherit: "default" 0.0;
139 part { name: "padding_after_icon";
143 description { state: "default" 0.0; //when only icon or no icon is there
149 rel2.to: "icon_rect";
154 description { state: "visible" 0.0;
155 inherit: "default" 0.0;
156 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
158 description { state: "icononly" 0.0;
159 inherit: "default" 0.0;
162 part { name: "padding_before_text";
166 description { state: "default" 0.0; //when only icon or no icon is there
171 to_y: "padding_left_top";
176 to_y: "padding_right_bottom";
179 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
183 part { name: "elm.swallow.content";
187 description { state: "default" 0.0;
192 to: "padding_left_top";
196 to_x: "padding_left_top";
197 to_y: "padding_right_bottom";
201 description { state: "visible" 0.0;
203 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
204 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
208 to_x: "padding_before_text";
209 to_y: "padding_left_top";
213 to_x: "padding_before_text";
214 to_y: "padding_right_bottom";
217 description { state: "icononly" 0.0;
218 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
219 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
222 part { name: "elm.text";
225 effect: SHADOW BOTTOM;
228 description { state: "default" 0.0;
232 to_x: "padding_after_icon";
233 to_y: "padding_left_top";
237 to: "padding_right_bottom";
239 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
240 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
242 font: "Tizen:style=Regular";
243 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
249 description { state: "visible" 0.0;
250 inherit: "default" 0.0;
253 description { state: "clicked" 0.0;
254 inherit: "default" 0.0;
256 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
257 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
259 description { state: "disabled" 0.0;
260 inherit: "default" 0.0;
262 description { state: "disabled_visible" 0.0;
263 inherit: "default" 0.0;
264 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
265 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
268 description { state: "focused" 0.0;
269 inherit: "default" 0.0;
271 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
274 part { name: "over2";
277 ignore_flags: ON_HOLD;
278 description { state: "default" 0.0;
282 part { name: "over3";
285 description { state: "default" 0.0;
289 part { name: "clipper";
291 description { state: "default" 0.0;
292 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
294 description { state: "disabled" 0.0;
295 inherit: "default" 0.0;
296 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
299 part { name: "disabler";
301 description { state: "default" 0.0;
305 description { state: "disabled" 0.0;
306 inherit: "default" 0.0;
312 program { name: "button_click";
313 signal: "mouse,down,1";
315 action: SIGNAL_EMIT "elm,action,press" "";
316 after: "button_click_anim";
318 program { name: "button_click_anim";
319 action: STATE_SET "clicked" 0.0;
320 target: "button_image";
321 after: "text_clicked";
323 program { name: "text_clicked";
327 get_state(PART:"elm.text", st, 30, vl);
328 if (!strcmp(st, "visible"))
329 set_state(PART:"elm.text", "clicked", 0.0);
332 program { name: "button_double_click";
333 signal: "mouse,down,1,double";
335 after: "button_click_anim";
337 program { name: "button_unpress";
338 action: SIGNAL_EMIT "elm,action,unpress" "";
340 program { name: "button_mouseout_clicked";
341 signal: "mouse,up,1";
346 get_state(PART:"elm.swallow.content", st, 30, vl);
347 if (strcmp(st, "icononly"))
349 emit("elm,action,default,text,set", "");
350 set_state(PART:"elm.text", "visible", 0.0);
352 if (get_int(button_state) != BUTTON_STATE_DISABLED)
353 set_state(PART:"button_image", "default", 0.0);
355 after: button_unpress;
357 program { name: "touch_snd";
358 signal: "mouse,clicked,1";
360 action: PLAY_SAMPLE "touch_sound" 1.0;
361 after: button_unclick3;
363 program { name: "button_unclick3";
364 action: SIGNAL_EMIT "elm,action,click" "";
366 program { name: "text_show";
367 signal: "elm,state,text,visible";
372 get_state(PART:"elm.swallow.content", st, 30, vl);
373 if (!strcmp(st, "icononly"))
375 set_state(PART:"elm.swallow.content", "visible", 0.0);
376 set_state(PART:"icon_rect", "visible", 0.0);
377 set_state(PART:"padding_after_icon", "visible", 0.0);
378 set_state(PART:"bg", "visible", 0.0);
380 if (get_int(button_state) != BUTTON_STATE_DISABLED)
381 set_state(PART:"elm.text", "visible", 0.0);
383 set_state(PART:"elm.text", "disabled_visible", 0.0);
386 program { name: "text_hide";
387 signal: "elm,state,text,hidden";
392 get_state(PART:"elm.swallow.content", st, 30, vl);
393 if (!strcmp(st, "visible"))
395 set_state(PART:"elm.swallow.content", "icononly", 0.0);
396 set_state(PART:"icon_rect", "icononly", 0.0);
397 set_state(PART:"padding_after_icon", "icononly", 0.0);
398 set_state(PART:"bg", "icononly", 0.0);
400 set_state(PART:"elm.text", "default", 0.0);
403 program { name: "icon_show";
404 signal: "elm,state,icon,visible";
409 get_state(PART:"elm.text", st, 30, vl);
410 if (!strcmp(st, "visible"))
412 set_state(PART:"elm.swallow.content", "visible", 0.0);
413 set_state(PART:"icon_rect", "visible", 0.0);
414 set_state(PART:"padding_after_icon", "visible", 0.0);
415 set_state(PART:"bg", "visible", 0.0);
419 set_state(PART:"elm.swallow.content", "icononly", 0.0);
420 set_state(PART:"icon_rect", "icononly", 0.0);
421 set_state(PART:"padding_after_icon", "icononly", 0.0);
422 set_state(PART:"bg", "icononly", 0.0);
426 program { name: "icon_hide";
427 signal: "elm,state,icon,hidden";
429 action: STATE_SET "default" 0.0;
430 target: "elm.swallow.content";
431 target: "padding_after_icon";
435 program { name: "disable";
436 signal: "elm,state,disabled";
438 action: STATE_SET "disabled" 0.0;
439 target: "button_image";
442 after: "disable_text";
444 program { name: "disable_text";
448 get_state(PART:"elm.text", st, 30, vl);
449 if (!strcmp(st, "visible"))
450 set_state(PART:"elm.text", "disabled_visible", 0.0);
452 set_state(PART:"elm.text", "disabled", 0.0);
453 set_int(button_state, BUTTON_STATE_DISABLED);
456 program { name: "enable";
457 signal: "elm,state,enabled";
459 action: STATE_SET "default" 0.0;
460 target: "button_image";
463 after: "enable_text";
465 program { name: "enable_text";
469 get_state(PART:"elm.text", st, 30, vl);
470 if (!strcmp(st, "disabled_visible"))
471 set_state(PART:"elm.text", "visible", 0.0);
473 set_state(PART:"elm.text", "default", 0.0);
474 set_int(button_state, BUTTON_STATE_ENABLED);
477 program { name: "focused";
478 //signal: "elm,action,focus";
480 action: STATE_SET "focused" 0.0;
481 target: "button_image";
484 program { name: "unfocused";
485 //signal: "elm,action,unfocus";
487 action: STATE_SET "default" 0.0;
488 target: "button_image";
489 after: "unfocus_text";
491 program { name: "unfocus_text";
492 action: STATE_SET "visible" 0.0;
498 //////////////////////////////////////////////////////////////
499 group { name: "elm/button/base/style1/auto_expand";
500 inherit: "elm/button/base/style1";
502 part { name: "elm.text";
505 effect: SHADOW BOTTOM;
508 description { state: "default" 0.0;
512 to_x: "padding_after_icon";
513 to_y: "padding_left_top";
517 to: "padding_right_bottom";
519 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
520 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
522 font: "Tizen:style=Regular";
523 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
529 description { state: "visible" 0.0;
530 inherit: "default" 0.0;
533 description { state: "clicked" 0.0;
534 inherit: "default" 0.0;
536 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
537 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
539 description { state: "disabled" 0.0;
540 inherit: "default" 0.0;
542 description { state: "disabled_visible" 0.0;
543 inherit: "default" 0.0;
544 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
545 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
548 description { state: "focused" 0.0;
549 inherit: "default" 0.0;
551 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
557 //////////////////////////////////////////////////////////////////////////////////////
558 group { name: "elm/button/base/datetime/ampm/default";
559 alias: "elm/button/base/datetime_ampm/default";
560 inherit: "elm/button/base/style1/auto_expand";
562 part { name: "button_image";
564 description { state: "default" 0.0;
566 normal: "00_button_01.png";
567 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
570 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
571 max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
573 description { state: "clicked" 0.0;
574 inherit: "default" 0.0;
575 image.normal: "00_button_01_press.png";
577 description { state: "disabled" 0.0;
578 inherit: "default" 0.0;
579 image.normal: "00_button_01_dim.png";
581 description { state: "focused" 0.0;
582 inherit: "default" 0.0;
583 image.normal: "00_button_01_press.png";
590 description { state: "default" 0.0;
594 description { state: "visible" 0.0;
595 inherit: "default" 0.0;
596 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
598 description { state: "icononly" 0.0;
599 inherit: "default" 0.0;
602 part { name: "elm.text";
605 effect: SHADOW BOTTOM;
608 description { state: "default" 0.0;
611 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
612 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
613 text.size: BUTTON_DATETIME_AMPM_TEXT_FONT_SIZE_INC;
616 description { state: "visible" 0.0;
617 inherit: "default" 0.0;
620 description { state: "clicked" 0.0;
621 inherit: "default" 0.0;
623 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
624 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
626 description { state: "disabled" 0.0;
627 inherit: "default" 0.0;
629 description { state: "disabled_visible" 0.0;
630 inherit: "default" 0.0;
631 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
632 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
635 description { state: "focused" 0.0;
636 inherit: "default" 0.0;
638 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
644 ///////////////////////////////////////////////////////////////////////////////////////
645 group { name: "elm/button/base/style1/delete";
646 inherit: "elm/button/base/style1";
648 image: "00_button_01_delete.png" COMP;
649 image: "00_button_01_delete_dim.png" COMP;
650 image: "00_button_01_delete_press.png" COMP;
653 part { name: "button_image";
655 description { state: "default" 0.0;
657 normal: "00_button_01_delete.png";
658 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
662 description { state: "clicked" 0.0;
663 inherit: "default" 0.0;
664 image.normal: "00_button_01_delete_press.png";
666 description { state: "disabled" 0.0;
667 inherit: "default" 0.0;
668 image.normal: "00_button_01_delete_dim.png";
670 description { state: "focused" 0.0;
671 inherit: "default" 0.0;
672 image.normal: "00_button_01_delete_press.png";
675 part { name: "elm.text";
678 effect: SHADOW BOTTOM;
681 description { state: "default" 0.0;
685 to_x: "padding_after_icon";
686 to_y: "padding_left_top";
690 to: "padding_right_bottom";
692 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
693 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
695 font: "Tizen:style=Regular";
696 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
702 description { state: "visible" 0.0;
703 inherit: "default" 0.0;
706 description { state: "clicked" 0.0;
707 inherit: "default" 0.0;
709 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
710 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
712 description { state: "disabled" 0.0;
713 inherit: "default" 0.0;
715 description { state: "disabled_visible" 0.0;
716 inherit: "default" 0.0;
717 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
718 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
721 description { state: "focused" 0.0;
722 inherit: "default" 0.0;
724 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
730 ///////////////////////////////////////////////////////////////////////////////////////
731 group { name: "elm/button/base/search_button/text";
732 alias: "elm/button/base/searchbar/default";
733 inherit: "elm/button/base/style1";
735 image: "00_button_01.png" COMP;
736 image: "00_button_01_dim.png" COMP;
737 image: "00_button_01_press.png" COMP;
740 part { name: "button_image";
742 description { state: "default" 0.0;
744 normal: "00_button_01.png";
745 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
749 description { state: "clicked" 0.0;
750 inherit: "default" 0.0;
751 image.normal: "00_button_01_press.png";
753 description { state: "disabled" 0.0;
754 inherit: "default" 0.0;
755 image.normal: "00_button_01_dim.png";
757 description { state: "focused" 0.0;
758 inherit: "default" 0.0;
759 image.normal: "00_button_01_press.png";
766 description { state: "default" 0.0;
767 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
770 description { state: "visible" 0.0;
771 inherit: "default" 0.0;
772 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
774 description { state: "icononly" 0.0;
775 inherit: "default" 0.0;
776 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
779 part { name: "elm.text";
782 effect: SHADOW BOTTOM;
785 description { state: "default" 0.0;
789 to_x: "padding_after_icon";
790 to_y: "padding_left_top";
794 to: "padding_right_bottom";
796 color: BUTTON_SEARCH_BUTTON_TEXT_NORMAL_COLOR_INC;
798 font: "Tizen:style=Regular";
799 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
805 description { state: "visible" 0.0;
806 inherit: "default" 0.0;
809 description { state: "clicked" 0.0;
810 inherit: "default" 0.0;
812 color: BUTTON_SEARCH_BUTTON_TEXT_PRESSED_COLOR_INC;
813 color2: BUTTON_SEARCH_BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
815 description { state: "disabled" 0.0;
816 inherit: "default" 0.0;
818 description { state: "disabled_visible" 0.0;
819 inherit: "default" 0.0;
820 color: BUTTON_SEARCH_BUTTON_TEXT_DISABLED_COLOR_INC;
823 description { state: "focused" 0.0;
824 inherit: "default" 0.0;
826 color: BUTTON_SEARCH_BUTTON_TEXT_FOCUSED_COLOR_INC;
832 ///////////////////////////////////////////////////////////////////////////////////////
833 group { name: "elm/button/base/search_button/send";
834 inherit: "elm/button/base/style1";
836 image: "00_button_01_send.png" COMP;
837 image: "00_button_01_send_dim.png" COMP;
838 image: "00_button_01_send_press.png" COMP;
841 part { name: "button_image";
843 description { state: "default" 0.0;
845 normal: "00_button_01_send.png";
846 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
850 description { state: "clicked" 0.0;
851 inherit: "default" 0.0;
852 image.normal: "00_button_01_send_press.png";
854 description { state: "disabled" 0.0;
855 inherit: "default" 0.0;
856 image.normal: "00_button_01_send_dim.png";
858 description { state: "focused" 0.0;
859 inherit: "default" 0.0;
860 image.normal: "00_button_01_send_press.png";
867 description { state: "default" 0.0;
868 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
871 description { state: "visible" 0.0;
872 inherit: "default" 0.0;
873 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
875 description { state: "icononly" 0.0;
876 inherit: "default" 0.0;
877 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
880 part { name: "elm.text";
883 effect: SHADOW BOTTOM;
886 description { state: "default" 0.0;
890 to_x: "padding_after_icon";
891 to_y: "padding_left_top";
895 to: "padding_right_bottom";
897 color: BUTTON_SEARCH_BUTTON_SEND_NORMAL_COLOR_INC;
898 color2: BUTTON_SEARCH_BUTTON_SEND_SHADOW_NORMAL_COLOR_INC;
900 font: "Tizen:style=Regular";
901 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
907 description { state: "visible" 0.0;
908 inherit: "default" 0.0;
911 description { state: "clicked" 0.0;
912 inherit: "default" 0.0;
914 color: BUTTON_SEARCH_BUTTON_SEND_PRESSED_COLOR_INC;
916 description { state: "disabled" 0.0;
917 inherit: "default" 0.0;
919 description { state: "disabled_visible" 0.0;
920 inherit: "default" 0.0;
921 color: BUTTON_SEARCH_BUTTON_SEND_DISABLED_COLOR_INC;
924 description { state: "focused" 0.0;
925 inherit: "default" 0.0;
927 color: BUTTON_SEARCH_BUTTON_SEND_FOCUSED_COLOR_INC;
933 ///////////////////////////////////////////////////////////////////////////////////////
934 group { name: "elm/button/base/search_button/cancel";
935 inherit: "elm/button/base/style1";
937 image: "00_button_01_delete.png" COMP;
938 image: "00_button_01_delete_dim.png" COMP;
939 image: "00_button_01_delete_press.png" COMP;
942 part { name: "button_image";
944 description { state: "default" 0.0;
946 normal: "00_button_01_delete.png";
947 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
951 description { state: "clicked" 0.0;
952 inherit: "default" 0.0;
953 image.normal: "00_button_01_delete_press.png";
955 description { state: "disabled" 0.0;
956 inherit: "default" 0.0;
957 image.normal: "00_button_01_delete_dim.png";
959 description { state: "focused" 0.0;
960 inherit: "default" 0.0;
961 image.normal: "00_button_01_delete_press.png";
968 description { state: "default" 0.0;
969 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
972 description { state: "visible" 0.0;
973 inherit: "default" 0.0;
974 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
976 description { state: "icononly" 0.0;
977 inherit: "default" 0.0;
978 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
981 part { name: "elm.text";
984 effect: SHADOW BOTTOM;
987 description { state: "default" 0.0;
991 to_x: "padding_after_icon";
992 to_y: "padding_left_top";
996 to: "padding_right_bottom";
998 color: BUTTON_SEARCH_BUTTON_CANCEL_NORMAL_COLOR_INC;
999 color2: BUTTON_SEARCH_BUTTON_CANCEL_SHADOW_NORMAL_COLOR_INC;
1001 font: "Tizen:style=Regular";
1002 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
1005 text_class: "tizen";
1008 description { state: "visible" 0.0;
1009 inherit: "default" 0.0;
1012 description { state: "clicked" 0.0;
1013 inherit: "default" 0.0;
1015 color: BUTTON_SEARCH_BUTTON_CANCEL_PRESSED_COLOR_INC;
1017 description { state: "disabled" 0.0;
1018 inherit: "default" 0.0;
1020 description { state: "disabled_visible" 0.0;
1021 inherit: "default" 0.0;
1022 color: BUTTON_SEARCH_BUTTON_CANCEL_DISABLED_COLOR_INC;
1025 description { state: "focused" 0.0;
1026 inherit: "default" 0.0;
1028 color: BUTTON_SEARCH_BUTTON_CANCEL_FOCUSED_COLOR_INC;
1034 ///////////////////////////////////////////////////////////////////////////////////////
1035 group { name: "elm/button/base/style2";
1036 alias: "elm/button/base/text_only/style2";
1037 alias: "elm/button/base/style2/multiline";
1039 image: "00_button_01.png" COMP;
1040 image: "00_button_01_press.png" COMP;
1041 image: "00_button_01_dim.png" COMP;
1044 public button_state = BUTTON_STATE_ENABLED;
1047 part { name: "button_image";
1049 description { state: "default" 0.0;
1051 normal: "00_button_01.png";
1052 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1056 description { state: "clicked" 0.0;
1057 inherit: "default" 0.0;
1058 image.normal: "00_button_01_press.png";
1060 description { state: "disabled" 0.0;
1061 inherit: "default" 0.0;
1062 image.normal: "00_button_01_dim.png";
1064 description { state: "focused" 0.0;
1065 inherit: "default" 0.0;
1066 image.normal: "00_button_01_press.png";
1069 part { name: "padding_left_top";
1073 description { state: "default" 0.0;
1075 rel2.relative: 0.0 0.0;
1076 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1085 description { state: "default" 0.0;
1086 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1089 description { state: "visible" 0.0;
1090 inherit: "default" 0.0;
1091 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1093 description { state: "icononly" 0.0;
1094 inherit: "default" 0.0;
1095 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1098 part { name: "padding_right_bottom";
1102 description { state: "default" 0.0;
1104 rel1.relative: 1.0 1.0;
1105 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1110 part { name: "icon_rect";
1114 description { state: "default" 0.0;
1120 to: "padding_left_top";
1124 to_x: "padding_left_top";
1125 to_y: "padding_right_bottom";
1129 description { state: "visible" 0.0;
1130 inherit: "default" 0.0;
1131 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1132 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1134 description { state: "icononly" 0.0;
1135 inherit: "default" 0.0;
1138 part { name: "padding_after_icon";
1142 description { state: "default" 0.0; //when only icon or no icon is there
1150 rel2.to: "icon_rect";
1153 description { state: "visible" 0.0;
1154 inherit: "default" 0.0;
1155 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1157 description { state: "icononly" 0.0;
1158 inherit: "default" 0.0;
1161 part { name: "padding_before_text";
1165 description { state: "default" 0.0; //when only icon or no icon is there
1170 to_y: "padding_left_top";
1175 to_y: "padding_right_bottom";
1178 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1182 part { name: "elm.swallow.content";
1186 description { state: "default" 0.0;
1191 to: "padding_left_top";
1195 to_x: "padding_left_top";
1196 to_y: "padding_right_bottom";
1200 description { state: "visible" 0.0;
1202 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1203 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1207 to_x: "padding_before_text";
1208 to_y: "padding_left_top";
1212 to_x: "padding_before_text";
1213 to_y: "padding_right_bottom";
1216 description { state: "icononly" 0.0;
1217 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1218 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1221 part { name: "elm.text";
1226 effect: SHADOW BOTTOM;
1227 description { state: "default" 0.0;
1231 to_x: "padding_after_icon";
1232 to_y: "padding_left_top";
1236 to: "padding_right_bottom";
1238 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1239 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1241 font: "Tizen:style=Regular";
1242 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1245 text_class: "tizen";
1248 description { state: "visible" 0.0;
1249 inherit: "default" 0.0;
1252 description { state: "clicked" 0.0;
1253 inherit: "default" 0.0;
1255 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1256 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1258 description { state: "disabled" 0.0;
1259 inherit: "default" 0.0;
1261 description { state: "disabled_visible" 0.0;
1262 inherit: "default" 0.0;
1263 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1264 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1267 description { state: "focused" 0.0;
1268 inherit: "default" 0.0;
1270 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1273 part { name: "over2";
1276 ignore_flags: ON_HOLD;
1277 description { state: "default" 0.0;
1281 part { name: "over3";
1284 description { state: "default" 0.0;
1288 part { name: "clipper";
1290 description { state: "default" 0.0;
1291 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1293 description { state: "disabled" 0.0;
1294 inherit: "default" 0.0;
1295 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1298 part { name: "disabler";
1300 description { state: "default" 0.0;
1304 description { state: "disabled" 0.0;
1305 inherit: "default" 0.0;
1311 program { name: "button_click";
1312 signal: "mouse,down,1";
1314 action: SIGNAL_EMIT "elm,action,press" "";
1315 after: "button_click_anim";
1317 program { name: "button_click_anim";
1318 action: STATE_SET "clicked" 0.0;
1319 target: "button_image";
1320 after: "text_clicked";
1322 program { name: "text_clicked";
1326 get_state(PART:"elm.text", st, 30, vl);
1327 if (!strcmp(st, "visible"))
1328 set_state(PART:"elm.text", "clicked", 0.0);
1331 program { name: "button_double_click";
1332 signal: "mouse,down,1,double";
1334 after: "button_click_anim";
1336 program { name: "button_unpress";
1337 action: SIGNAL_EMIT "elm,action,unpress" "";
1339 program { name: "button_mouseout_clicked";
1340 signal: "mouse,up,1";
1345 get_state(PART:"elm.swallow.content", st, 30, vl);
1346 if (strcmp(st, "icononly"))
1348 emit("elm,action,default,text,set", "");
1349 set_state(PART:"elm.text", "visible", 0.0);
1351 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1352 set_state(PART:"button_image", "default", 0.0);
1354 after: button_unpress;
1356 program { name: "touch_snd";
1357 signal: "mouse,clicked,1";
1359 action: PLAY_SAMPLE "touch_sound" 1.0;
1360 after: button_unclick3;
1362 program { name: "button_unclick3";
1363 action: SIGNAL_EMIT "elm,action,click" "";
1365 program { name: "text_show";
1366 signal: "elm,state,text,visible";
1371 get_state(PART:"elm.swallow.content", st, 30, vl);
1372 if (!strcmp(st, "icononly"))
1374 set_state(PART:"elm.swallow.content", "visible", 0.0);
1375 set_state(PART:"icon_rect", "visible", 0.0);
1376 set_state(PART:"padding_after_icon", "visible", 0.0);
1377 set_state(PART:"bg", "visible", 0.0);
1379 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1380 set_state(PART:"elm.text", "visible", 0.0);
1382 set_state(PART:"elm.text", "disabled_visible", 0.0);
1385 program { name: "text_hide";
1386 signal: "elm,state,text,hidden";
1391 get_state(PART:"elm.swallow.content", st, 30, vl);
1392 if (!strcmp(st, "visible"))
1394 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1395 set_state(PART:"icon_rect", "icononly", 0.0);
1396 set_state(PART:"padding_after_icon", "icononly", 0.0);
1397 set_state(PART:"bg", "icononly", 0.0);
1399 set_state(PART:"elm.text", "default", 0.0);
1402 program { name: "icon_show";
1403 signal: "elm,state,icon,visible";
1408 get_state(PART:"elm.text", st, 30, vl);
1409 if (!strcmp(st, "visible"))
1411 set_state(PART:"elm.swallow.content", "visible", 0.0);
1412 set_state(PART:"icon_rect", "visible", 0.0);
1413 set_state(PART:"padding_after_icon", "visible", 0.0);
1414 set_state(PART:"bg", "visible", 0.0);
1418 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1419 set_state(PART:"icon_rect", "icononly", 0.0);
1420 set_state(PART:"padding_after_icon", "icononly", 0.0);
1421 set_state(PART:"bg", "icononly", 0.0);
1425 program { name: "icon_hide";
1426 signal: "elm,state,icon,hidden";
1428 action: STATE_SET "default" 0.0;
1429 target: "elm.swallow.content";
1430 target: "padding_after_icon";
1431 target: "icon_rect";
1434 program { name: "disable";
1435 signal: "elm,state,disabled";
1437 action: STATE_SET "disabled" 0.0;
1438 target: "button_image";
1441 after: "disable_text";
1443 program { name: "disable_text";
1447 get_state(PART:"elm.text", st, 30, vl);
1448 if (!strcmp(st, "visible"))
1449 set_state(PART:"elm.text", "disabled_visible", 0.0);
1451 set_state(PART:"elm.text", "disabled", 0.0);
1452 set_int(button_state, BUTTON_STATE_DISABLED);
1455 program { name: "enable";
1456 signal: "elm,state,enabled";
1458 action: STATE_SET "default" 0.0;
1459 target: "button_image";
1462 after: "enable_text";
1464 program { name: "enable_text";
1468 get_state(PART:"elm.text", st, 30, vl);
1469 if (!strcmp(st, "disabled_visible"))
1470 set_state(PART:"elm.text", "visible", 0.0);
1472 set_state(PART:"elm.text", "default", 0.0);
1473 set_int(button_state, BUTTON_STATE_ENABLED);
1476 program { name: "focused";
1477 //signal: "elm,action,focus";
1479 action: STATE_SET "focused" 0.0;
1480 target: "button_image";
1483 program { name: "unfocused";
1484 //signal: "elm,action,unfocus";
1486 action: STATE_SET "default" 0.0;
1487 target: "button_image";
1488 after: "unfocus_text";
1490 program { name: "unfocus_text";
1491 action: STATE_SET "visible" 0.0;
1497 ///////////////////////////////////////////////////////////////////////////////////////
1498 group { name: "elm/button/base/sweep";
1499 alias: "elm/button/base/text_only/sweep";
1500 alias: "elm/button/base/hidden";
1501 alias: "elm/button/base/sweep/multiline";
1503 image: "00_button_01.png" COMP;
1504 image: "00_button_01_press.png" COMP;
1505 image: "00_button_01_dim.png" COMP;
1508 public button_state = BUTTON_STATE_ENABLED;
1511 style { name: "btn_sweep_multiline";
1512 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";
1519 part { name: "button_image";
1521 description { state: "default" 0.0;
1522 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1524 normal: "00_button_01.png";
1525 border: BUTTON_SWEEP_BG_BORDER_INC;
1529 description { state: "clicked" 0.0;
1530 inherit: "default" 0.0;
1531 image.normal: "00_button_01_press.png";
1533 description { state: "disabled" 0.0;
1534 inherit: "default" 0.0;
1535 image.normal: "00_button_01_dim.png";
1537 description { state: "focused" 0.0;
1538 inherit: "default" 0.0;
1539 image.normal: "00_button_01_press.png";
1542 part { name: "padding_left_top";
1546 description { state: "default" 0.0;
1548 rel2.relative: 0.0 0.0;
1549 min: BUTTON_SWEEP_PADDING_MIN_INC;
1554 part { name: "padding_right_bottom";
1558 description { state: "default" 0.0;
1560 rel1.relative: 1.0 1.0;
1561 min: BUTTON_SWEEP_PADDING_MIN_INC;
1566 part { name: "icon_rect";
1570 description { state: "default" 0.0;
1571 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1575 to_x: "elm.swallow.content";
1576 to_y: "padding_left_top";
1580 to_x: "elm.swallow.content";
1581 to_y: "padding_right_bottom";
1587 part { name: "padding_icon_text";
1591 description { state: "default" 0.0; //when only icon or no icon is there
1599 rel2.to: "icon_rect";
1602 description { state: "visible" 0.0; //when icon is visible
1603 inherit: "default" 0.0;
1604 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1606 description { state: "icononly" 0.0;
1607 inherit: "default" 0.0;
1610 part { name: "elm.swallow.content";
1614 description { state: "default" 0.0;
1619 to: "padding_left_top";
1623 to_x: "padding_left_top";
1624 to_y: "padding_right_bottom";
1628 description { state: "visible" 0.0;
1629 inherit: "default" 0.0;
1630 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1631 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1634 aspect_preference: VERTICAL;
1636 description { state: "icononly" 0.0;
1637 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1638 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1641 part { name: "elm.text";
1644 effect: SHADOW BOTTOM;
1647 description { state: "default" 0.0;
1652 to_x: "padding_icon_text";
1653 to_y: "padding_left_top";
1657 to: "padding_right_bottom";
1659 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1660 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1662 style: "btn_sweep_multiline";
1666 description { state: "visible" 0.0;
1667 inherit: "default" 0.0;
1669 min: BUTTON_SWEEP_TEXT_MIN_INC;
1671 description { state: "clicked" 0.0;
1672 inherit: "default" 0.0;
1675 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1676 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1678 description { state: "disabled" 0.0;
1679 inherit: "default" 0.0;
1681 description { state: "disabled_visible" 0.0;
1682 inherit: "default" 0.0;
1683 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1684 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1686 min: BUTTON_SWEEP_TEXT_MIN_INC;
1688 description { state: "focused" 0.0;
1689 inherit: "default" 0.0;
1692 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1695 part { name: "over2";
1698 ignore_flags: ON_HOLD;
1699 description { state: "default" 0.0;
1703 part { name: "over3";
1706 description { state: "default" 0.0;
1710 part { name: "clipper";
1712 description { state: "default" 0.0;
1713 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1715 description { state: "disabled" 0.0;
1716 inherit: "default" 0.0;
1717 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1720 part { name: "disabler";
1722 description { state: "default" 0.0;
1726 description { state: "disabled" 0.0;
1727 inherit: "default" 0.0;
1733 program { name: "button_click";
1734 signal: "mouse,down,1";
1736 action: SIGNAL_EMIT "elm,action,press" "";
1737 after: "button_click_anim";
1739 program { name: "button_click_anim";
1740 action: STATE_SET "clicked" 0.0;
1741 target: "button_image";
1742 after: "text_clicked";
1744 program { name: "text_clicked";
1748 get_state(PART:"elm.text", st, 30, vl);
1749 if (!strcmp(st, "visible"))
1750 set_state(PART:"elm.text", "clicked", 0.0);
1753 program { name: "button_double_click";
1754 signal: "mouse,down,1,double";
1756 after: "button_click_anim";
1758 program { name: "button_unpress";
1759 action: SIGNAL_EMIT "elm,action,unpress" "";
1761 program { name: "button_mouseout_clicked";
1762 signal: "mouse,up,1";
1767 get_state(PART:"elm.swallow.content", st, 30, vl);
1768 if (strcmp(st, "icononly"))
1770 emit("elm,action,default,text,set", "");
1771 set_state(PART:"elm.text", "visible", 0.0);
1773 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1774 set_state(PART:"button_image", "default", 0.0);
1776 after: button_unpress;
1778 program { name: "touch_snd";
1779 signal: "mouse,clicked,1";
1781 action: PLAY_SAMPLE "touch_sound" 1.0;
1782 after: button_unclick3;
1784 program { name: "button_unclick3";
1785 action: SIGNAL_EMIT "elm,action,click" "";
1787 program { name: "text_show";
1788 signal: "elm,state,text,visible";
1793 get_state(PART:"elm.swallow.content", st, 30, vl);
1794 if (!strcmp(st, "icononly"))
1796 set_state(PART:"elm.swallow.content", "visible", 0.0);
1797 set_state(PART:"padding_icon_text", "visible", 0.0);
1799 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1800 set_state(PART:"elm.text", "visible", 0.0);
1802 set_state(PART:"elm.text", "disabled_visible", 0.0);
1805 program { name: "text_hide";
1806 signal: "elm,state,text,hidden";
1811 get_state(PART:"elm.swallow.content", st, 30, vl);
1812 if (!strcmp(st, "visible"))
1814 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1815 set_state(PART:"padding_icon_text", "icononly", 0.0);
1817 set_state(PART:"elm.text", "default", 0.0);
1820 program { name: "icon_show";
1821 signal: "elm,state,icon,visible";
1826 get_state(PART:"elm.text", st, 30, vl);
1827 if (!strcmp(st, "visible"))
1829 set_state(PART:"elm.swallow.content", "visible", 0.0);
1830 set_state(PART:"padding_icon_text", "visible", 0.0);
1834 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1835 set_state(PART:"padding_icon_text", "icononly", 0.0);
1839 program { name: "icon_hide";
1840 signal: "elm,state,icon,hidden";
1842 action: STATE_SET "default" 0.0;
1843 target: "elm.swallow.content";
1844 target: "padding_icon_text";
1846 program { name: "disable";
1847 signal: "elm,state,disabled";
1849 action: STATE_SET "disabled" 0.0;
1850 target: "button_image";
1853 after: "disable_text";
1855 program { name: "disable_text";
1859 get_state(PART:"elm.text", st, 30, vl);
1860 if (!strcmp(st, "visible"))
1861 set_state(PART:"elm.text", "disabled_visible", 0.0);
1863 set_state(PART:"elm.text", "disabled", 0.0);
1864 set_int(button_state, BUTTON_STATE_DISABLED);
1867 program { name: "enable";
1868 signal: "elm,state,enabled";
1870 action: STATE_SET "default" 0.0;
1871 target: "button_image";
1874 after: "enable_text";
1876 program { name: "enable_text";
1880 get_state(PART:"elm.text", st, 30, vl);
1881 if (!strcmp(st, "disabled_visible"))
1882 set_state(PART:"elm.text", "visible", 0.0);
1884 set_state(PART:"elm.text", "default", 0.0);
1885 set_int(button_state, BUTTON_STATE_ENABLED);
1888 program { name: "focused";
1889 //signal: "elm,action,focus";
1891 action: STATE_SET "focused" 0.0;
1892 target: "button_image";
1895 program { name: "unfocused";
1896 //signal: "elm,action,unfocus";
1898 action: STATE_SET "default" 0.0;
1899 target: "button_image";
1900 after: "unfocus_text";
1902 program { name: "unfocus_text";
1903 action: STATE_SET "visible" 0.0;
1909 ///////////////////////////////////////////////////////////////////////////////////////
1910 group { name: "elm/button/base/sweep/delete";
1911 inherit: "elm/button/base/sweep";
1912 alias: "elm/button/base/sweep/delete/multiline";
1914 image: "00_button_01_delete_press.png" COMP;
1915 image: "00_button_01_delete.png" COMP;
1916 image: "00_button_01_delete_dim.png" COMP;
1919 style { name: "btn_sweep_delete_multiline";
1920 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";
1927 part { name: "button_image";
1929 description { state: "default" 0.0;
1930 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1932 normal: "00_button_01_delete.png";
1933 border: BUTTON_SWEEP_BG_BORDER_INC;
1937 description { state: "clicked" 0.0;
1938 inherit: "default" 0.0;
1939 image.normal: "00_button_01_delete_press.png";
1941 description { state: "disabled" 0.0;
1942 inherit: "default" 0.0;
1943 image.normal: "00_button_01_delete_dim.png";
1945 description { state: "focused" 0.0;
1946 inherit: "default" 0.0;
1947 image.normal: "00_button_01_delete_press.png";
1950 part { name: "elm.text";
1953 effect: SHADOW BOTTOM;
1956 description { state: "default" 0.0;
1961 to_x: "padding_icon_text";
1962 to_y: "padding_left_top";
1966 to: "padding_right_bottom";
1968 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
1969 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1971 style: "btn_sweep_multiline";
1975 description { state: "visible" 0.0;
1976 inherit: "default" 0.0;
1978 min: BUTTON_SWEEP_TEXT_MIN_INC;
1980 description { state: "clicked" 0.0;
1981 inherit: "default" 0.0;
1984 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
1985 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1987 description { state: "disabled" 0.0;
1988 inherit: "default" 0.0;
1990 description { state: "disabled_visible" 0.0;
1991 inherit: "default" 0.0;
1992 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
1993 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1995 min: BUTTON_SWEEP_TEXT_MIN_INC;
1997 description { state: "focused" 0.0;
1998 inherit: "default" 0.0;
2001 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
2007 ///////////////////////////////////////////////////////////////////////////////////////
2008 group { name: "elm/button/base/popup_button/default";
2009 alias: "elm/button/base/popup_button/menustyle";
2010 alias: "elm/button/base/popup_button/liststyle";
2011 alias: "elm/button/base/popup_button/volumebarstyle";
2012 alias: "elm/button/base/popup_button/customstyle";
2013 alias: "elm/button/base/popup_button/verticalbuttonstyle";
2014 alias: "elm/button/base/popup_button/default/multiline";
2016 image: "00_button_01.png" COMP;
2017 image: "00_button_01_dim.png" COMP;
2018 image: "00_button_01_press.png" COMP;
2021 public button_state = BUTTON_STATE_ENABLED;
2024 part { name: "button_image";
2026 description { state: "default" 0.0;
2027 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2029 normal: "00_button_01.png";
2030 border: BUTTON_POPUP_BG_BORDER_INC;
2034 description { state: "clicked" 0.0;
2035 inherit: "default" 0.0;
2036 image.normal: "00_button_01_press.png";
2038 description { state: "disabled" 0.0;
2039 inherit: "default" 0.0;
2040 image.normal: "00_button_01_dim.png";
2042 description { state: "focused" 0.0;
2043 inherit: "default" 0.0;
2044 image.normal: "00_button_01_press.png";
2047 part { name: "padding_left_top";
2051 description { state: "default" 0.0;
2053 rel2.relative: 0.0 0.0;
2054 min: BUTTON_POPUP_PADDING_MIN_INC;
2059 part { name: "padding_right_bottom";
2062 description { state: "default" 0.0;
2064 rel1.relative: 1.0 1.0;
2065 min: BUTTON_POPUP_PADDING_MIN_INC;
2070 part { name: "padding_icon_text";
2073 description { state: "default" 0.0; //when only icon or no icon is there
2077 to: "elm.swallow.content";
2079 rel2.to: "elm.swallow.content";
2084 description { state: "icononly" 0.0;
2085 inherit: "default" 0.0;
2087 description { state: "visible" 0.0; //when icon is visible
2088 inherit: "default" 0.0;
2089 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2092 part { name: "elm.swallow.content";
2096 description { state: "default" 0.0;
2101 to: "padding_left_top";
2105 to_x: "padding_left_top";
2106 to_y: "padding_right_bottom";
2110 description { state: "visible" 0.0;
2111 inherit: "default" 0.0;
2115 aspect_preference: VERTICAL;
2117 description { state: "icononly" 0.0;
2118 inherit: "default" 0.0;
2119 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2124 part { name: "elm.text";
2129 effect: SHADOW BOTTOM;
2130 description { state: "default" 0.0;
2134 to_x: "padding_icon_text";
2135 to_y: "padding_left_top";
2139 to: "padding_right_bottom";
2141 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
2142 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2144 font: "Tizen:style=Regular";
2145 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
2147 text_class: "tizen";
2150 description { state: "visible" 0.0;
2151 inherit: "default" 0.0;
2153 min: BUTTON_POPUP_TEXT_MIN_INC;
2155 description { state: "clicked" 0.0;
2156 inherit: "default" 0.0;
2159 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
2160 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
2162 description { state: "disabled" 0.0;
2163 inherit: "default" 0.0;
2165 description { state: "disabled_visible" 0.0;
2166 inherit: "default" 0.0;
2167 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
2168 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2170 min: BUTTON_POPUP_TEXT_MIN_INC;
2172 description { state: "focused" 0.0;
2173 inherit: "default" 0.0;
2176 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2179 part { name: "over2";
2182 ignore_flags: ON_HOLD;
2183 description { state: "default" 0.0;
2187 part { name: "over3";
2190 description { state: "default" 0.0;
2194 part { name: "clipper";
2196 description { state: "default" 0.0;
2197 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
2199 description { state: "disabled" 0.0;
2200 inherit: "default" 0.0;
2201 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
2204 part { name: "disabler";
2206 description { state: "default" 0.0;
2210 description { state: "disabled" 0.0;
2211 inherit: "default" 0.0;
2217 program { name: "button_click";
2218 signal: "mouse,down,1";
2220 action: SIGNAL_EMIT "elm,action,press" "";
2221 after: "button_click_anim";
2223 program { name: "button_click_anim";
2224 action: STATE_SET "clicked" 0.0;
2225 target: "button_image";
2226 after: "text_clicked";
2228 program { name: "text_clicked";
2232 get_state(PART:"elm.text", st, 30, vl);
2233 if (!strcmp(st, "visible"))
2234 set_state(PART:"elm.text", "clicked", 0.0);
2237 program { name: "button_double_click";
2238 signal: "mouse,down,1,double";
2240 after: "button_click_anim";
2242 program { name: "button_unpress";
2243 action: SIGNAL_EMIT "elm,action,unpress" "";
2245 program { name: "button_mouseout_clicked";
2246 signal: "mouse,up,1";
2251 get_state(PART:"elm.swallow.content", st, 30, vl);
2252 if (strcmp(st, "icononly"))
2254 emit("elm,action,default,text,set", "");
2255 set_state(PART:"elm.text", "visible", 0.0);
2257 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2258 set_state(PART:"button_image", "default", 0.0);
2260 after: button_unpress;
2262 program { name: "touch_snd";
2263 signal: "mouse,clicked,1";
2265 action: PLAY_SAMPLE "touch_sound" 1.0;
2266 after: button_unclick3;
2268 program { name: "button_unclick3";
2269 action: SIGNAL_EMIT "elm,action,click" "";
2271 program { name: "text_show";
2272 signal: "elm,state,text,visible";
2277 get_state(PART:"elm.swallow.content", st, 30, vl);
2278 if (!strcmp(st, "icononly"))
2280 set_state(PART:"elm.swallow.content", "visible", 0.0);
2281 set_state(PART:"padding_icon_text", "visible", 0.0);
2283 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2284 set_state(PART:"elm.text", "visible", 0.0);
2286 set_state(PART:"elm.text", "disabled_visible", 0.0);
2289 program { name: "text_hide";
2290 signal: "elm,state,text,hidden";
2295 get_state(PART:"elm.swallow.content", st, 30, vl);
2296 if (!strcmp(st, "visible"))
2298 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2299 set_state(PART:"padding_icon_text", "icononly", 0.0);
2301 set_state(PART:"elm.text", "default", 0.0);
2304 program { name: "icon_show";
2305 signal: "elm,state,icon,visible";
2310 get_state(PART:"elm.text", st, 30, vl);
2311 if (!strcmp(st, "visible"))
2313 set_state(PART:"elm.swallow.content", "visible", 0.0);
2314 set_state(PART:"padding_icon_text", "visible", 0.0);
2318 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2319 set_state(PART:"padding_icon_text", "icononly", 0.0);
2323 program { name: "icon_hide";
2324 signal: "elm,state,icon,hidden";
2326 action: STATE_SET "default" 0.0;
2327 target: "elm.swallow.content";
2328 target: "padding_icon_text";
2330 program { name: "disable";
2331 signal: "elm,state,disabled";
2333 action: STATE_SET "disabled" 0.0;
2334 target: "button_image";
2337 after: "disable_text";
2339 program { name: "disable_text";
2343 get_state(PART:"elm.text", st, 30, vl);
2344 if (!strcmp(st, "visible"))
2345 set_state(PART:"elm.text", "disabled_visible", 0.0);
2347 set_state(PART:"elm.text", "disabled", 0.0);
2348 set_int(button_state, BUTTON_STATE_DISABLED);
2351 program { name: "enable";
2352 signal: "elm,state,enabled";
2354 action: STATE_SET "default" 0.0;
2355 target: "button_image";
2358 after: "enable_text";
2360 program { name: "enable_text";
2364 get_state(PART:"elm.text", st, 30, vl);
2365 if (!strcmp(st, "disabled_visible"))
2366 set_state(PART:"elm.text", "visible", 0.0);
2368 set_state(PART:"elm.text", "default", 0.0);
2369 set_int(button_state, BUTTON_STATE_ENABLED);
2372 program { name: "focused";
2373 //signal: "elm,action,focus";
2375 action: STATE_SET "focused" 0.0;
2376 target: "button_image";
2379 program { name: "unfocused";
2380 //signal: "elm,action,unfocus";
2382 action: STATE_SET "default" 0.0;
2383 target: "button_image";
2384 after: "unfocus_text";
2386 program { name: "unfocus_text";
2387 action: STATE_SET "visible" 0.0;
2393 ///////////////////////////////////////////////////////////////////////////////////////
2394 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2395 group { name: "elm/button/base/"style_name; \
2397 item: "focus_highlight" "on"; \
2400 image: "00_circle_button.png" COMP; \
2401 image: "00_circle_button_press.png" COMP; \
2402 image: "00_circle_button_dim.png" COMP; \
2403 image: image_normal COMP; \
2404 image: image_press COMP; \
2405 image: 00_circle_button_focus.png COMP; \
2408 part { name: "button_image"; \
2410 description { state: "default" 0.0; \
2411 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2412 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2413 image.normal: "00_circle_button.png"; \
2416 state: "clicked" 0.0; \
2417 inherit: "default" 0.0; \
2418 image.normal: "00_circle_button_press.png"; \
2421 state: "disabled" 0.0; \
2422 inherit: "default" 0.0; \
2423 image.normal: "00_circle_button_dim.png"; \
2426 part { name: "left_top_padding"; \
2429 description { state: "default" 0.0; \
2430 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2431 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2434 rel1.to: "button_image"; \
2435 rel2.to: "button_image"; \
2438 part { name: "right_bottom_padding"; \
2441 description { state: "default" 0.0; \
2442 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2443 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2447 relative: 1.0 1.0; \
2448 to: "button_image"; \
2450 rel2.to: "button_image"; \
2453 part { name: "button_center_part"; \
2455 clip_to: "icon_clipper"; \
2456 description { state: "default" 0.0; \
2457 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2458 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2459 image.normal: image_normal; \
2461 relative: 1.0 1.0; \
2462 to: "left_top_padding"; \
2465 relative: 0.0 0.0; \
2466 to: "right_bottom_padding"; \
2469 description { state: "clicked" 0.0; \
2470 inherit: "default"; \
2471 image.normal: image_press; \
2473 description { state: "disabled" 0.0; \
2474 inherit: "default"; \
2477 part { name: "icon_clipper"; \
2480 description { state: "default" 0.0; \
2481 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2483 description { state: "clicked" 0.0; \
2484 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2486 description { state: "disabled" 0.0; \
2487 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2490 part { name: "focus_image"; \
2494 description { state: "default" 0.0; \
2495 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2496 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2498 rel1.to : "button_image"; \
2499 rel2.to : "button_image"; \
2501 normal: "00_circle_button_focus.png"; \
2505 description { state: "focused" 0.0; \
2506 inherit: "default" 0.0; \
2510 part { name: "over1"; \
2512 ignore_flags: ON_HOLD; \
2513 description { state: "default" 0.0; \
2515 min: min_width min_height; \
2518 part { name: "over2"; \
2521 description { state: "default" 0.0; \
2525 part { name: "disabler"; \
2527 description { state: "default" 0.0; \
2531 description { state: "disabled" 0.0; \
2532 inherit: "default" 0.0; \
2538 program { name: "button_click"; \
2539 signal: "mouse,down,1"; \
2541 action: SIGNAL_EMIT "elm,action,press" ""; \
2542 after: "button_click_anim"; \
2544 program { name: "button_click_anim"; \
2545 action: STATE_SET "clicked" 0.0; \
2546 target: "button_image"; \
2547 target: "button_center_part"; \
2548 target: "icon_clipper"; \
2550 program { name: "button_double_click"; \
2551 signal: "mouse,down,1,double"; \
2553 after: "button_click_anim"; \
2555 program { name: "button_unclick"; \
2556 signal: "mouse,up,1"; \
2558 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2559 after: "button_unclick_anim"; \
2561 program { name: "button_unclick_anim"; \
2562 action: STATE_SET "default" 0.0; \
2563 target: "button_image"; \
2564 target: "button_center_part"; \
2565 target: "icon_clipper"; \
2567 program { name: "touch_snd"; \
2568 signal: "mouse,clicked,1"; \
2570 action: PLAY_SAMPLE "touch_sound" 1.0; \
2571 after: button_unclick3; \
2573 program { name: "button_unclick3"; \
2574 action: SIGNAL_EMIT "elm,action,click" ""; \
2576 program { name: "disable"; \
2577 signal: "elm,state,disabled"; \
2579 action: STATE_SET "disabled" 0.0; \
2580 target: "disabler"; \
2581 target: "button_image"; \
2582 target: "button_center_part"; \
2583 target: "icon_clipper"; \
2585 program { name: "enable"; \
2586 signal: "elm,state,enabled"; \
2588 action: STATE_SET "default" 0.0; \
2589 target: "disabler"; \
2590 target: "button_image"; \
2591 target: "button_center_part"; \
2592 target: "icon_clipper"; \
2594 program { name: "action_focus"; \
2595 signal: "elm,action,focus_highlight,show"; \
2597 action: STATE_SET "focused" 0.0; \
2598 target: "focus_image"; \
2600 program { name: "action_unfocus"; \
2601 signal: "elm,action,focus_highlight,hide"; \
2603 action: STATE_SET "default" 0.0; \
2604 target: "focus_image"; \
2609 ///////////////////////////////////////////////////////////////////////////////////////
2610 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)
2612 ///////////////////////////////////////////////////////////////////////////////////////
2613 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)
2615 ///////////////////////////////////////////////////////////////////////////////////////
2616 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)
2618 ///////////////////////////////////////////////////////////////////////////////////////
2619 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)
2621 ///////////////////////////////////////////////////////////////////////////////////////
2622 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)
2624 ///////////////////////////////////////////////////////////////////////////////////////
2625 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)
2627 ///////////////////////////////////////////////////////////////////////////////////////
2628 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)
2630 ///////////////////////////////////////////////////////////////////////////////////////
2631 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)
2633 ///////////////////////////////////////////////////////////////////////////////////////
2634 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)
2636 ///////////////////////////////////////////////////////////////////////////////////////
2637 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)
2639 ///////////////////////////////////////////////////////////////////////////////////////
2640 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)
2642 ///////////////////////////////////////////////////////////////////////////////////////
2643 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)
2645 ///////////////////////////////////////////////////////////////////////////////////////
2646 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)
2648 ///////////////////////////////////////////////////////////////////////////////////////
2649 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)
2651 ///////////////////////////////////////////////////////////////////////////////////////
2652 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)
2654 ///////////////////////////////////////////////////////////////////////////////////////
2655 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)
2657 ///////////////////////////////////////////////////////////////////////////////////////
2658 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)
2660 ///////////////////////////////////////////////////////////////////////////////////////
2661 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)
2663 ///////////////////////////////////////////////////////////////////////////////////////
2664 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)
2666 ///////////////////////////////////////////////////////////////////////////////////////
2667 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)
2668 ///////////////////////////////////////////////////////////////////////////////////////
2670 ///////////////////////////////////////////////////////////////////////////////////////
2671 BUTTON_CIRCLE_STYLES("contact", "00_button_contact.png", "00_button_contact_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2672 ///////////////////////////////////////////////////////////////////////////////////////
2674 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2675 group { name: "elm/button/base/"style_name; \
2676 inherit: "elm/button/base/info"; \
2678 image: "00_circle_button_delete.png" COMP; \
2679 image: "00_circle_button_delete_press.png" COMP; \
2680 image: "00_circle_button_delete_dim.png" COMP; \
2681 image: "00_button_warning.png" COMP; \
2682 image: "00_button_warning_press.png" COMP; \
2685 part { name: "button_image"; \
2687 description { state: "default" 0.0; \
2688 image.normal: "00_circle_button_delete.png"; \
2691 state: "clicked" 0.0; \
2692 inherit: "default" 0.0; \
2693 image.normal: "00_circle_button_delete_press.png"; \
2696 state: "disabled" 0.0; \
2697 inherit: "default" 0.0; \
2698 image.normal: "00_circle_button_delete_dim.png"; \
2701 part { name: "button_center_part"; \
2703 clip_to: "icon_clipper"; \
2704 description { state: "default" 0.0; \
2705 image.normal: "00_button_warning.png"; \
2707 description { state: "clicked" 0.0; \
2708 inherit: "default"; \
2709 image.normal: "00_button_warning_press.png"; \
2711 description { state: "disabled" 0.0; \
2712 inherit: "default"; \
2715 part { name: "icon_clipper"; \
2718 description { state: "default" 0.0; \
2719 color: BUTTON_CIRCLE_STYLE_WARNING_NORMAL_COLOR_INC; \
2721 description { state: "clicked" 0.0; \
2722 color: BUTTON_CIRCLE_STYLE_WARNING_PRESSED_COLOR_INC; \
2724 description { state: "disabled" 0.0; \
2725 color: BUTTON_CIRCLE_STYLE_WARNING_DISABLED_COLOR_INC; \
2728 part { name: "over1"; \
2730 ignore_flags: ON_HOLD; \
2731 description { state: "default" 0.0; \
2733 min: min_width min_height; \
2739 ///////////////////////////////////////////////////////////////////////////////////////
2740 BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2742 ///////////////////////////////////////////////////////////////////////////////////////
2743 BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2745 ///////////////////////////////////////////////////////////////////////////////////////
2746 group { name: "elm/button/base/circle/empty";
2748 image: "00_circle_button.png" COMP;
2749 image: "00_circle_button_press.png" COMP;
2750 image: "00_circle_button_dim.png" COMP;
2753 part { name: "button_image";
2755 description { state: "default" 0.0;
2756 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2757 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2759 image.normal: "00_circle_button.png";
2761 description { state: "clicked" 0.0;
2762 inherit: "default" 0.0;
2763 image.normal: "00_circle_button_press.png";
2765 description { state: "disabled" 0.0;
2766 inherit: "default" 0.0;
2767 image.normal: "00_circle_button_dim.png";
2770 part { name: "left_top_padding";
2773 description { state: "default" 0.0;
2774 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2775 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2778 rel1.to: "button_image";
2779 rel2.to: "button_image";
2782 part { name: "right_bottom_padding";
2785 description { state: "default" 0.0;
2786 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2787 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2794 rel2.to: "button_image";
2797 part { name: "elm.swallow.content";
2799 clip_to: "icon_clipper";
2801 description { state: "default" 0.0;
2805 to: "left_top_padding";
2809 to: "right_bottom_padding";
2813 description { state: "visible" 0.0;
2814 inherit: "default" 0.0;
2816 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2817 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2820 part { name: "icon_clipper";
2823 description { state: "default" 0.0;
2824 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2826 description { state: "clicked" 0.0;
2827 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2829 description { state: "disabled" 0.0;
2830 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2833 part { name: "over1";
2835 ignore_flags: ON_HOLD;
2836 description { state: "default" 0.0;
2840 part { name: "over2";
2843 description { state: "default" 0.0;
2847 part { name: "disabler";
2849 description { state: "default" 0.0;
2853 description { state: "disabled" 0.0;
2854 inherit: "default" 0.0;
2860 program { name: "button_click";
2861 signal: "mouse,down,1";
2863 action: SIGNAL_EMIT "elm,action,press" "";
2864 after: "button_click_anim";
2866 program { name: "button_click_anim";
2867 action: STATE_SET "clicked" 0.0;
2868 target: "button_image";
2869 target: "icon_clipper";
2871 program { name: "button_double_click";
2872 signal: "mouse,down,1,double";
2874 after: "button_click_anim";
2876 program { name: "touch_snd";
2877 signal: "mouse,clicked,1";
2879 action: PLAY_SAMPLE "touch_sound" 1.0;
2880 after: button_unclick2;
2882 program { name: "button_unclick2";
2883 action: SIGNAL_EMIT "elm,action,click" "";
2885 program { name: "button_unclick";
2886 signal: "mouse,up,1";
2888 action: SIGNAL_EMIT "elm,action,unpress" "";
2889 after: "button_unclick_anim";
2891 program { name: "button_unclick_anim";
2892 action: STATE_SET "default" 0.0;
2893 target: "button_image";
2894 target: "icon_clipper";
2896 program { name: "disable";
2897 signal: "elm,state,disabled";
2899 action: STATE_SET "disabled" 0.0;
2901 target: "button_image";
2902 target: "icon_clipper";
2904 program { name: "enable";
2905 signal: "elm,state,enabled";
2907 action: STATE_SET "default" 0.0;
2909 target: "button_image";
2910 target: "icon_clipper";
2912 program { name: "icon_show";
2913 signal: "elm,state,icon,visible";
2915 action: STATE_SET "visible" 0.0;
2916 target: "elm.swallow.content";
2918 program { name: "icon_hide";
2919 signal: "elm,state,icon,hidden";
2921 action: STATE_SET "default" 0.0;
2922 target: "elm.swallow.content";
2927 ///////////////////////////////////////////////////////////////////////////////////////
2928 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2929 group { name: "elm/button/base/contacts/"style_name; \
2930 alias: "elm/button/base/"style_name; \
2932 image: "00_circle_button.png" COMP; \
2933 image: "00_circle_button_press.png" COMP; \
2934 image: "00_circle_button_dim.png" COMP; \
2935 image: edit_normal COMP; \
2936 image: edit_press COMP; \
2939 part { name: "button_image"; \
2941 description { state: "default" 0.0; \
2942 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2943 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2944 image.normal: "00_circle_button.png"; \
2946 description { state: "clicked" 0.0; \
2947 inherit: "default" 0.0; \
2948 image.normal: "00_circle_button_press.png"; \
2950 description { state: "disabled" 0.0; \
2951 inherit: "default" 0.0; \
2952 image.normal: "00_circle_button_dim.png"; \
2955 part { name: "button_center_part"; \
2958 clip_to: "icon_clipper"; \
2959 description { state: "default" 0.0; \
2960 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2961 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2962 image.normal: image_normal; \
2965 state: "clicked" 0.0; \
2966 inherit: "default" 0.0; \
2967 image.normal: image_press; \
2969 description { state: "disabled" 0.0; \
2970 inherit: "default" 0.0; \
2973 part { name: "icon_clipper"; \
2976 description { state: "default" 0.0; \
2977 color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
2979 description { state: "clicked" 0.0; \
2980 color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
2982 description { state: "disabled" 0.0; \
2983 color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
2986 part { name: "over1"; \
2989 ignore_flags: ON_HOLD; \
2990 description { state: "default" 0.0; \
2992 min: min_width min_height; \
2995 part { name: "over2"; \
2998 description { state: "default" 0.0; \
3002 part { name: "disabler"; \
3004 description { state: "default" 0.0; \
3008 description { state: "disabled" 0.0; \
3009 inherit: "default" 0.0; \
3015 program { name: "button_click"; \
3016 signal: "mouse,down,1"; \
3018 action: SIGNAL_EMIT "elm,action,press" ""; \
3019 after: "button_click_anim"; \
3021 program { name: "button_click_anim"; \
3022 action: STATE_SET "clicked" 0.0; \
3023 target: "button_image"; \
3024 target: "button_center_part"; \
3025 target: "icon_clipper"; \
3027 program { name: "button_double_click"; \
3028 signal: "mouse,down,1,double"; \
3030 after: "button_click_anim"; \
3032 program { name: "button_unclick"; \
3033 signal: "mouse,up,1"; \
3035 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3036 after: "button_unclick_anim"; \
3038 program { name: "button_unclick_anim"; \
3039 action: STATE_SET "default" 0.0; \
3040 target: "button_image"; \
3041 target: "button_center_part"; \
3042 target: "icon_clipper"; \
3044 program { name: "touch_snd"; \
3045 signal: "mouse,clicked,1"; \
3047 action: PLAY_SAMPLE "touch_sound" 1.0; \
3048 after: button_unclick3; \
3050 program { name: "button_unclick3"; \
3051 action: SIGNAL_EMIT "elm,action,click" ""; \
3053 program { name: "disable"; \
3054 signal: "elm,state,disabled"; \
3056 action: STATE_SET "disabled" 0.0; \
3057 target: "disabler"; \
3058 target: "button_image"; \
3059 target: "button_center_part"; \
3060 target: "icon_clipper"; \
3062 program { name: "enable"; \
3063 signal: "elm,state,enabled"; \
3065 action: STATE_SET "default" 0.0; \
3066 target: "disabler"; \
3067 target: "button_image"; \
3068 target: "button_center_part"; \
3069 target: "icon_clipper"; \
3073 ///////////////////////////////////////////////////////////////////////////////////////
3074 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)
3076 ///////////////////////////////////////////////////////////////////////////////////////
3077 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)
3079 ///////////////////////////////////////////////////////////////////////////////////////
3080 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)
3082 ///////////////////////////////////////////////////////////////////////////////////////
3083 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)
3085 ///////////////////////////////////////////////////////////////////////////////////////
3086 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)
3088 ///////////////////////////////////////////////////////////////////////////////////////
3089 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)
3091 ///////////////////////////////////////////////////////////////////////////////////////
3093 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
3094 group { name: "elm/button/base/contacts/"style_name; \
3095 alias: "elm/button/base/"style_name; \
3096 inherit: "elm/button/base/contacts/icon_plus"; \
3098 image: "00_circle_button_delete.png" COMP; \
3099 image: "00_circle_button_delete_press.png" COMP; \
3100 image: "00_circle_button_delete_dim.png" COMP; \
3101 image: "00_button_delete.png" COMP; \
3102 image: "00_button_delete_press.png" COMP; \
3105 part { name: "button_image"; \
3107 description { state: "default" 0.0; \
3108 image.normal: "00_circle_button_delete.png"; \
3110 description { state: "clicked" 0.0; \
3111 inherit: "default" 0.0; \
3112 image.normal: "00_circle_button_delete_press.png"; \
3114 description { state: "disabled" 0.0; \
3115 inherit: "default" 0.0; \
3116 image.normal: "00_circle_button_delete_dim.png"; \
3119 part { name: "button_center_part"; \
3122 clip_to: "icon_clipper"; \
3123 description { state: "default" 0.0; \
3124 image.normal: "00_button_delete.png"; \
3127 state: "clicked" 0.0; \
3128 inherit: "default" 0.0; \
3129 image.normal: "00_button_delete_press.png"; \
3131 description { state: "disabled" 0.0; \
3132 inherit: "default" 0.0; \
3135 part { name: "icon_clipper"; \
3138 description { state: "default" 0.0; \
3139 color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
3141 description { state: "clicked" 0.0; \
3142 color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
3144 description { state: "disabled" 0.0; \
3145 color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
3148 part { name: "over1"; \
3151 ignore_flags: ON_HOLD; \
3152 description { state: "default" 0.0; \
3154 min: min_width min_height; \
3160 ///////////////////////////////////////////////////////////////////////////////////////
3161 BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3163 ///////////////////////////////////////////////////////////////////////////////////////
3164 BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3166 ///////////////////////////////////////////////////////////////////////////////////////
3167 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
3168 group { name: "elm/button/base/"style_name; \
3170 image: "00_button_01.png" COMP; \
3171 image: "00_button_01_press.png" COMP; \
3172 image: "00_button_01_dim.png" COMP; \
3173 image: image_normal COMP; \
3176 part { name: "button_image";\
3179 description { state: "default" 0.0; \
3180 min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
3182 normal: "00_button_01.png"; \
3183 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3187 description { state: "clicked" 0.0; \
3188 inherit: "default" 0.0; \
3189 image.normal: "00_button_01_press.png"; \
3191 description { state: "disabled" 0.0; \
3192 inherit: "default" 0.0; \
3193 image.normal: "00_button_01_dim.png"; \
3196 part { name: "padding_left_top"; \
3199 description { state: "default" 0.0; \
3201 rel2.relative: 0.0 0.0; \
3202 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3206 part { name: "padding_right_bottom"; \
3209 description { state: "default" 0.0; \
3211 rel1.relative: 1.0 1.0; \
3212 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3216 part { name: "jump_image"; \
3219 description { state: "default" 0.0; \
3220 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3223 relative: 1.0 0.0; \
3224 to_x: "padding_left_top"; \
3227 relative: 0.0 1.0; \
3228 to_x: "padding_right_bottom"; \
3230 image.normal: image_normal; \
3232 aspect_preference: VERTICAL; \
3233 color: BUTTON_JUMP_ICON_NORMAL_COLOR_INC; \
3235 description { state: "clicked" 0.0; \
3236 inherit: "default" 0.0; \
3237 color: BUTTON_JUMP_ICON_PRESSED_COLOR_INC; \
3239 description { state: "disabled" 0.0; \
3240 inherit: "default" 0.0; \
3241 color: BUTTON_JUMP_ICON_DIM_COLOR_INC; \
3244 part { name: "over1"; \
3247 ignore_flags: ON_HOLD; \
3248 description { state: "default" 0.0; \
3250 rel1.relative: 0.0 0.0; \
3251 rel2.relative: 1.0 1.0; \
3254 part { name: "over2"; \
3257 description { state: "default" 0.0; \
3263 program { name: "button_click"; \
3264 signal: "mouse,down,1"; \
3266 action: SIGNAL_EMIT "elm,action,press" ""; \
3267 after: "button_click_anim"; \
3269 program { name: "button_click_anim"; \
3270 action: STATE_SET "clicked" 0.0; \
3271 target: "button_image"; \
3272 target: "jump_image"; \
3274 program { name: "button_double_click"; \
3275 signal: "mouse,down,1,double"; \
3277 after: "button_click_anim"; \
3279 program { name: "button_unclick"; \
3280 signal: "mouse,up,1"; \
3282 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3283 after: "button_unclick_anim"; \
3285 program { name: "button_unclick_anim"; \
3286 action: STATE_SET "default" 0.0; \
3287 target: "button_image"; \
3288 target: "jump_image"; \
3290 program { name: "touch_snd"; \
3291 signal: "mouse,clicked,1"; \
3293 action: PLAY_SAMPLE "touch_sound" 1.0; \
3294 after: button_unclick3; \
3296 program { name: "button_unclick3"; \
3297 action: SIGNAL_EMIT "elm,action,click" ""; \
3299 program { name: "disable"; \
3300 signal: "elm,state,disabled"; \
3302 action: STATE_SET "disabled" 0.0; \
3303 target: "button_image"; \
3304 target: "jump_image"; \
3306 program { name: "enable"; \
3307 signal: "elm,state,enabled"; \
3309 action: STATE_SET "default" 0.0; \
3310 target: "button_image"; \
3311 target: "jump_image"; \
3316 ////////////////////////////////////////////////////////////////////////
3317 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3318 ////////////////////////////////////////////////////////////////////////
3319 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3321 ////////////////////////////////////////////////////////////////////////
3322 group { name: "elm/button/base/default";
3324 image: "00_button_01.png" COMP;
3325 image: "00_button_01_press.png" COMP;
3326 image: "00_button_01_dim.png" COMP;
3329 public button_state = BUTTON_STATE_ENABLED;
3332 part { name: "button_image";
3334 description { state: "default" 0.0;
3335 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3337 normal: "00_button_01.png";
3338 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3342 description { state: "clicked" 0.0;
3343 inherit: "default" 0.0;
3344 image.normal: "00_button_01_press.png";
3346 description { state: "disabled" 0.0;
3347 inherit: "default" 0.0;
3348 image.normal: "00_button_01_dim.png";
3350 description { state: "focused" 0.0;
3351 inherit: "default" 0.0;
3352 image.normal: "00_button_01_press.png";
3355 part { name: "padding_left_top";
3359 description { state: "default" 0.0;
3361 rel2.relative: 0.0 0.0;
3362 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3367 part { name: "padding_right_bottom";
3371 description { state: "default" 0.0;
3373 rel1.relative: 1.0 1.0;
3374 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3379 part { name: "padding_icon_text";
3383 description { state: "default" 0.0; //when only icon or no icon is there
3389 to: "elm.swallow.content";
3391 rel2.to: "elm.swallow.content";
3394 description { state: "icononly" 0.0;
3395 inherit: "default" 0.0;
3397 description { state: "visible" 0.0; //when icon is visible
3398 inherit: "default" 0.0;
3399 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3402 part { name: "elm.swallow.content";
3406 description { state: "default" 0.0;
3412 to: "padding_left_top";
3416 to_x: "padding_left_top";
3417 to_y: "padding_right_bottom";
3420 description { state: "visible" 0.0;
3421 inherit: "default" 0.0;
3424 aspect_preference: VERTICAL;
3426 description { state: "icononly" 0.0;
3427 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3430 to_x: "padding_left_top";
3434 to_x: "padding_right_bottom";
3437 aspect_preference: VERTICAL;
3440 part { name: "elm.text";
3445 effect: SHADOW BOTTOM;
3446 description { state: "default" 0.0;
3451 to_x: "padding_icon_text";
3452 to_y: "padding_left_top";
3456 to: "padding_right_bottom";
3458 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3459 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
3461 font: "Tizen:style=Regular";
3462 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3464 text_class: "tizen";
3467 description { state: "visible" 0.0;
3468 inherit: "default" 0.0;
3470 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3472 description { state: "clicked" 0.0;
3473 inherit: "default" 0.0;
3475 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3476 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3478 description { state: "disabled" 0.0;
3479 inherit: "default" 0.0;
3481 description { state: "disabled_visible" 0.0;
3482 inherit: "default" 0.0;
3483 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3484 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
3486 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3488 description { state: "focused" 0.0;
3489 inherit: "default" 0.0;
3492 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3495 part { name: "over2";
3498 ignore_flags: ON_HOLD;
3499 description { state: "default" 0.0;
3503 part { name: "over3";
3506 description { state: "default" 0.0;
3510 part { name: "disclip";
3512 description { state: "default" 0.0;
3513 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3515 description { state: "disabled" 0.0;
3516 inherit: "default" 0.0;
3517 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3520 part { name: "disabler";
3522 description { state: "default" 0.0;
3526 description { state: "disabled" 0.0;
3527 inherit: "default" 0.0;
3533 program { name: "button_click";
3534 signal: "mouse,down,1";
3536 action: SIGNAL_EMIT "elm,action,press" "";
3537 after: "button_click_anim";
3539 program { name: "button_click_anim";
3540 action: STATE_SET "clicked" 0.0;
3541 target: "button_image";
3542 after: "text_clicked";
3544 program { name: "text_clicked";
3548 get_state(PART:"elm.text", st, 30, vl);
3549 if (!strcmp(st, "visible"))
3550 set_state(PART:"elm.text", "clicked", 0.0);
3553 program { name: "button_double_click";
3554 signal: "mouse,down,1,double";
3556 after: "button_click_anim";
3558 program { name: "button_unpress";
3559 action: SIGNAL_EMIT "elm,action,unpress" "";
3561 program { name: "button_mouseout_clicked";
3562 signal: "mouse,up,1";
3567 get_state(PART:"elm.swallow.content", st, 30, vl);
3568 if (strcmp(st, "icononly"))
3570 emit("elm,action,default,text,set", "");
3571 set_state(PART:"elm.text", "visible", 0.0);
3573 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3574 set_state(PART:"button_image", "default", 0.0);
3576 after: button_unpress;
3578 program { name: "touch_snd";
3579 signal: "mouse,clicked,1";
3581 action: PLAY_SAMPLE "touch_sound" 1.0;
3582 after: button_unclick3;
3584 program { name: "button_unclick3";
3585 action: SIGNAL_EMIT "elm,action,click" "";
3587 program { name: "text_show";
3588 signal: "elm,state,text,visible";
3593 get_state(PART:"elm.swallow.content", st, 30, vl);
3594 if (!strcmp(st, "icononly"))
3596 set_state(PART:"elm.swallow.content", "visible", 0.0);
3597 set_state(PART:"padding_icon_text", "visible", 0.0);
3599 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3600 set_state(PART:"elm.text", "visible", 0.0);
3602 set_state(PART:"elm.text", "disabled_visible", 0.0);
3605 program { name: "text_hide";
3606 signal: "elm,state,text,hidden";
3611 get_state(PART:"elm.swallow.content", st, 30, vl);
3612 if (!strcmp(st, "visible"))
3614 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3615 set_state(PART:"padding_icon_text", "icononly", 0.0);
3617 set_state(PART:"elm.text", "default", 0.0);
3620 program { name: "icon_show";
3621 signal: "elm,state,icon,visible";
3626 get_state(PART:"elm.text", st, 30, vl);
3627 if (!strcmp(st, "visible"))
3629 set_state(PART:"elm.swallow.content", "visible", 0.0);
3630 set_state(PART:"padding_icon_text", "visible", 0.0);
3634 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3635 set_state(PART:"padding_icon_text", "icononly", 0.0);
3639 program { name: "icon_hide";
3640 signal: "elm,state,icon,hidden";
3642 action: STATE_SET "default" 0.0;
3643 target: "elm.swallow.content";
3644 target: "padding_icon_text";
3646 program { name: "disable";
3647 signal: "elm,state,disabled";
3649 action: STATE_SET "disabled" 0.0;
3650 target: "button_image";
3653 after: "disable_text";
3655 program { name: "disable_text";
3659 get_state(PART:"elm.text", st, 30, vl);
3660 if (!strcmp(st, "visible"))
3661 set_state(PART:"elm.text", "disabled_visible", 0.0);
3663 set_state(PART:"elm.text", "disabled", 0.0);
3664 set_int(button_state, BUTTON_STATE_DISABLED);
3667 program { name: "enable";
3668 signal: "elm,state,enabled";
3670 action: STATE_SET "default" 0.0;
3671 target: "button_image";
3674 after: "enable_text";
3676 program { name: "enable_text";
3680 get_state(PART:"elm.text", st, 30, vl);
3681 if (!strcmp(st, "disabled_visible"))
3682 set_state(PART:"elm.text", "visible", 0.0);
3684 set_state(PART:"elm.text", "default", 0.0);
3685 set_int(button_state, BUTTON_STATE_ENABLED);
3688 program { name: "focused";
3689 //signal: "elm,action,focus";
3691 action: STATE_SET "focused" 0.0;
3692 target: "button_image";
3695 program { name: "unfocused";
3696 //signal: "elm,action,unfocus";
3698 action: STATE_SET "default" 0.0;
3699 target: "button_image";
3700 after: "unfocus_text";
3702 program { name: "unfocus_text";
3703 action: STATE_SET "visible" 0.0;
3709 ///////////////////////////////////////////////////////////////////////////////////////
3710 group { name: "elm/button/base/multiline";
3711 alias: "elm/button/base/text_only/multiline";
3712 inherit: "elm/button/base/default";
3714 style { name: "btn_multiline_style";
3715 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";
3722 part { name: "button_image";
3724 description { state: "default" 0.0;
3725 min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3727 normal: "00_button_01.png";
3728 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3732 description { state: "clicked" 0.0;
3733 inherit: "default" 0.0;
3734 image.normal: "00_button_01_press.png";
3736 description { state: "disabled" 0.0;
3737 inherit: "default" 0.0;
3738 image.normal: "00_button_01_dim.png";
3740 description { state: "focused" 0.0;
3741 inherit: "default" 0.0;
3742 image.normal: "00_button_01_press.png";
3745 part { name: "padding_left_top";
3749 description { state: "default" 0.0;
3751 rel2.relative: 0.0 0.0;
3752 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3757 part { name: "padding_right_bottom";
3761 description { state: "default" 0.0;
3763 rel1.relative: 1.0 1.0;
3764 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3769 part { name: "elm.text";
3774 description { state: "default" 0.0;
3778 to_x: "padding_icon_text";
3779 to_y: "padding_left_top";
3783 to: "padding_right_bottom";
3785 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3787 style: "btn_multiline_style";
3790 description { state: "visible" 0.0;
3791 inherit: "default" 0.0;
3795 description { state: "clicked" 0.0;
3796 inherit: "default" 0.0;
3799 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3801 description { state: "disabled" 0.0;
3802 inherit: "default" 0.0;
3804 description { state: "disabled_visible" 0.0;
3805 inherit: "default" 0.0;
3806 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3810 description { state: "focused" 0.0;
3811 inherit: "default" 0.0;
3814 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3820 ///////////////////////////////////////////////////////////////////////////////////////
3821 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
3822 group { name: "elm/button/base/"style_name; \
3824 image: image_normal COMP; \
3825 image: image_press COMP; \
3826 image: image_dim COMP; \
3827 image: "00_button_01.png" COMP; \
3828 image: "00_button_01_press.png" COMP; \
3831 part { name: "button_image"; \
3833 description { state: "default" 0.0; \
3834 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3835 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3837 normal: "00_button_01.png"; \
3838 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3843 state: "clicked" 0.0; \
3844 inherit: "default" 0.0; \
3845 image.normal: "00_button_01_press.png"; \
3848 state: "disabled" 0.0; \
3849 inherit: "default" 0.0; \
3850 image.normal: "00_button_01_dim.png"; \
3853 state: "focused" 0.0; \
3854 inherit: "default" 0.0; \
3855 image.normal: "00_button_01_press.png"; \
3858 part { name: "button_center_part"; \
3860 clip_to: "icon_clipper"; \
3861 description { state: "default" 0.0; \
3862 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3863 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3864 image.normal: image_normal; \
3867 state: "clicked" 0.0; \
3868 inherit: "default" 0.0; \
3869 image.normal: image_press; \
3872 state: "disabled" 0.0; \
3873 inherit: "default" 0.0; \
3876 part { name: "icon_clipper"; \
3879 description { state: "default" 0.0; \
3880 color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
3882 description { state: "clicked" 0.0; \
3883 color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
3885 description { state: "disabled" 0.0; \
3886 color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
3889 part { name: "over1"; \
3891 ignore_flags: ON_HOLD; \
3892 description { state: "default" 0.0; \
3896 part { name: "over2"; \
3899 description { state: "default" 0.0; \
3903 part { name: "disabler"; \
3905 description { state: "default" 0.0; \
3909 description { state: "disabled" 0.0; \
3910 inherit: "default" 0.0; \
3916 program { name: "button_click"; \
3917 signal: "mouse,down,1"; \
3919 action: SIGNAL_EMIT "elm,action,press" ""; \
3920 after: "button_click_anim"; \
3922 program { name: "button_click_anim"; \
3923 action: STATE_SET "clicked" 0.0; \
3924 target: "button_image"; \
3925 target: "button_center_part"; \
3926 target: ""icon_clipper""; \
3928 program { name: "button_double_click"; \
3929 signal: "mouse,down,1,double"; \
3931 after: "button_click_anim"; \
3933 program { name: "button_unclick"; \
3934 signal: "mouse,up,1"; \
3936 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3937 after: "button_unclick_anim"; \
3939 program { name: "button_unclick_anim"; \
3940 action: STATE_SET "default" 0.0; \
3941 target: "button_image"; \
3942 target: "button_center_part"; \
3943 target: ""icon_clipper""; \
3945 program { name: "touch_snd"; \
3946 signal: "mouse,clicked,1"; \
3948 action: PLAY_SAMPLE "touch_sound" 1.0; \
3949 after: button_unclick3; \
3951 program { name: "button_unclick3"; \
3952 action: SIGNAL_EMIT "elm,action,click" ""; \
3954 program { name: "disable"; \
3955 signal: "elm,state,disabled"; \
3957 action: STATE_SET "disabled" 0.0; \
3958 target: "disabler"; \
3959 target: "button_image"; \
3960 target: "button_center_part"; \
3961 target: ""icon_clipper""; \
3963 program { name: "enable"; \
3964 signal: "elm,state,enabled"; \
3966 action: STATE_SET "default" 0.0; \
3967 target: "disabler"; \
3968 target: "button_image"; \
3969 target: "button_center_part"; \
3970 target: ""icon_clipper""; \
3974 ///////////////////////////////////////////////////////////////////////////////////////
3975 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
3976 ///////////////////////////////////////////////////////////////////////////////////////
3977 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
3978 ///////////////////////////////////////////////////////////////////////////////////////
3980 group { name: "elm/button/base/multibuttonentry";
3981 alias: "elm/button/base/text_only/multibuttonentry";
3983 image: "00_contacts_button.png" COMP;
3984 image: "00_contacts_button_press.png" COMP;
3987 public button_state = BUTTON_STATE_ENABLED;
3990 part { name: "button_image";
3992 description { state: "default" 0.0;
3994 to_x: "padding.left";
3998 to_x: "padding.right";
4001 min: BUTTON_CONTACT_BG_MIN_INC;
4003 normal: "00_contacts_button.png";
4004 border: BUTTON_CONTACT_BG_BORDER_INC;
4008 description { state: "clicked" 0.0;
4009 inherit: "default" 0.0;
4010 image.normal: "00_contacts_button_press.png";
4012 description { state: "disabled" 0.0;
4013 inherit: "default" 0.0;
4015 description { state: "focused" 0.0;
4016 inherit: "default" 0.0;
4017 image.normal: "00_contacts_button_press.png";
4020 part { name: "padding.left";
4023 description { state: "default" 0.0;
4025 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
4035 part { name: "padding.right";
4038 description { state: "default" 0.0;
4040 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
4050 part { name: "elm.text";
4054 description { state: "default" 0.0;
4057 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
4059 font: "Tizen:style=Regular";
4060 size: BUTTON_CONTACT_FONT_SIZE_INC;
4062 text_class: "tizen";
4065 description { state: "visible" 0.0;
4066 inherit: "default" 0.0;
4070 description { state: "clicked" 0.0;
4071 inherit: "default" 0.0;
4074 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
4076 description { state: "disabled" 0.0;
4077 inherit: "default" 0.0;
4079 description { state: "disabled_visible" 0.0;
4080 inherit: "default" 0.0;
4081 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
4085 description { state: "focused" 0.0;
4086 inherit: "default" 0.0;
4089 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
4092 part { name: "over1";
4095 description { state: "default" 0.0;
4096 rel2.relative: 1.0 0.5;
4100 part { name: "over2";
4103 ignore_flags: ON_HOLD;
4104 description { state: "default" 0.0;
4105 rel1.to: "button_image";
4106 rel2.to: "button_image";
4110 part { name: "over3";
4113 description { state: "default" 0.0;
4114 rel1.to: "button_image";
4115 rel2.to: "button_image";
4119 part { name: "disabler";
4121 description { state: "default" 0.0;
4122 rel1.to: "button_image";
4123 rel2.to: "button_image";
4127 description { state: "disabled" 0.0;
4128 inherit: "default" 0.0;
4134 program { name: "button_click";
4135 signal: "mouse,down,1";
4137 action: SIGNAL_EMIT "elm,action,press" "";
4138 after: "button_click_anim";
4140 program { name: "button_click_anim";
4141 action: STATE_SET "clicked" 0.0;
4142 target: "button_image";
4145 program { name: "button_double_click";
4146 signal: "mouse,down,1,double";
4148 after: "button_click_anim";
4150 program { name: "button_unpress";
4151 action: SIGNAL_EMIT "elm,action,unpress" "";
4153 program { name: "button_mouseout_clicked";
4154 signal: "mouse,up,1";
4159 get_state(PART:"elm.text", st, 30, vl);
4160 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4162 emit("elm,action,default,text,set", "");
4163 set_state(PART:"elm.text", "visible", 0.0);
4165 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4166 set_state(PART:"button_image", "default", 0.0);
4168 after: button_unpress;
4170 program { name: "touch_snd";
4171 signal: "mouse,clicked,1";
4173 action: PLAY_SAMPLE "touch_sound" 1.0;
4174 after: button_unclick3;
4176 program { name: "button_unclick3";
4177 action: SIGNAL_EMIT "elm,action,click" "";
4179 program { name: "text_show";
4180 signal: "elm,state,text,visible";
4183 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4184 set_state(PART:"elm.text", "visible", 0.0);
4186 set_state(PART:"elm.text", "disabled_visible", 0.0);
4189 program { name: "text_hide";
4190 signal: "elm,state,text,hidden";
4192 action: STATE_SET "default" 0.0;
4195 program { name: "disable";
4196 signal: "elm,state,disabled";
4198 action: STATE_SET "disabled" 0.0;
4199 target: "button_image";
4201 after: "disable_text";
4203 program { name: "disable_text";
4207 get_state(PART:"elm.text", st, 30, vl);
4208 if (!strcmp(st, "visible"))
4209 set_state(PART:"elm.text", "disabled_visible", 0.0);
4211 set_state(PART:"elm.text", "disabled", 0.0);
4212 set_int(button_state, BUTTON_STATE_DISABLED);
4215 program { name: "enable";
4216 signal: "elm,state,enabled";
4218 action: STATE_SET "default" 0.0;
4219 target: "button_image";
4221 after: "enable_text";
4223 program { name: "enable_text";
4227 get_state(PART:"elm.text", st, 30, vl);
4228 if (!strcmp(st, "disabled_visible"))
4229 set_state(PART:"elm.text", "visible", 0.0);
4231 set_state(PART:"elm.text", "default", 0.0);
4232 set_int(button_state, BUTTON_STATE_ENABLED);
4235 program { name: "focused";
4236 //signal: "elm,action,focus";
4238 action: STATE_SET "focused" 0.0;
4239 target: "button_image";
4242 program { name: "unfocused";
4243 //signal: "elm,action,unfocus";
4245 action: STATE_SET "default" 0.0;
4246 target: "button_image";
4247 action: STATE_SET "visible" 0.0;
4253 ///////////////////////////////////////////////////////////////////////////////////////
4254 group { name: "elm/button/base/naviframe/back_btn/default";
4255 alias: "elm/button/base/naviframe/prev_btn/default";
4256 alias: "elm/button/base/naviframe/end_btn/default";
4258 image: "00_icon_back.png" COMP;
4259 image: "00_icon_SIP_close.png" COMP;
4262 part { name: "button_image";
4265 description { state: "default" 0.0;
4266 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4267 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4270 description { state: "landscape" 0.0;
4271 min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4272 max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4276 part { name: "back_button";
4279 clip_to: "back_button.clipper";
4280 description { state: "default" 0.0;
4281 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4282 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4284 rel1.to: "button_image";
4285 rel2.to: "button_image";
4286 image.normal: "00_icon_back.png";
4288 description { state: "compress" 0.0;
4289 inherit: "default" 0.0;
4290 image.normal: "00_icon_SIP_close.png";
4293 part { name: "back_button.clipper";
4295 description { state: "default" 0.0;
4296 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4298 description { state: "clicked" 0.0;
4299 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4301 description { state: "disabled" 0.0;
4302 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4305 part { name: "over2";
4307 ignore_flags: ON_HOLD;
4308 description { state: "default" 0.0;
4312 part { name: "over3";
4315 description { state: "default" 0.0;
4319 part { name: "disabler";
4321 description { state: "default" 0.0;
4325 description { state: "disabled" 0.0;
4326 inherit: "default" 0.0;
4332 program { name: "button_click";
4333 signal: "mouse,down,1";
4335 action: SIGNAL_EMIT "elm,action,press" "";
4336 after: "button_click_anim";
4338 program { name: "button_click_anim";
4340 set_state(PART:"back_button.clipper", "clicked", 0.0);
4343 program { name: "button_double_click";
4344 signal: "mouse,down,1,double";
4346 after: "button_click_anim";
4348 program { name: "button_unclick";
4349 signal: "mouse,up,1";
4351 action: SIGNAL_EMIT "elm,action,unpress" "";
4352 after: "button_unclick_anim";
4354 program { name: "button_unclick_anim";
4356 set_state(PART:"back_button.clipper", "default", 0.0);
4359 program { name: "touch_snd";
4360 signal: "mouse,clicked,1";
4362 action: PLAY_SAMPLE "touch_sound" 1.0;
4363 after: button_unclick3;
4365 program { name: "button_unclick3";
4366 action: SIGNAL_EMIT "elm,action,click" "";
4368 program { name: "disable";
4369 signal: "elm,state,disabled";
4372 set_state(PART:"back_button.clipper", "disabled", 0.0);
4375 program { name: "enable";
4376 signal: "elm,state,enabled";
4379 set_state(PART:"back_button.clipper", "default", 0.0);
4382 program { name: "change_to_landscape";
4383 signal: "elm,state,landscape";
4385 action: STATE_SET "landscape" 0.0;
4386 target: "button_image";
4388 program { name: "change_to_portrait";
4389 signal: "elm,state,portrait";
4391 action: STATE_SET "default" 0.0;
4392 target: "button_image";
4394 program { name: "landscape_mode";
4396 signal: "elm,state,orient,90";
4397 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4399 program { name: "landscape_mode2";
4401 signal: "elm,state,orient,270";
4402 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4404 program { name: "portrait_mode";
4406 signal: "elm,state,orient,0";
4407 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4409 program { name: "portrait_mode2";
4411 signal: "elm,state,orient,180";
4412 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4414 program { name: "display_compress_mode";
4415 signal: "elm,state,display,compress";
4417 action: STATE_SET "compress" 0.0;
4418 target: "back_button";
4420 program { name: "display_default_mode";
4421 signal: "elm,state,display,default";
4423 action: STATE_SET "default" 0.0;
4424 target: "back_button";
4429 //////////////////////////////////////////////////////////////
4430 group { name: "elm/button/base/naviframe/toolbar/default";
4431 alias: "elm/button/base/naviframe/title/default";
4433 image: "00_toolbar_button.png" COMP;
4434 image: "00_toolbar_button_press.png" COMP;
4435 image: "00_toolbar_button_dim.png" COMP;
4438 style { name: "btn_naviframe_toolbar";
4439 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_NORMAL_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4444 style { name: "btn_naviframe_toolbar_pressed";
4445 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_PRESSED_COLOR_INC" style=shadow,top shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4450 style { name: "btn_naviframe_toolbar_disabled";
4451 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_DISABLED_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4458 public button_state = BUTTON_STATE_ENABLED;
4459 public landscape_state = BUTTON_LANDSCAPE_DISABLED;
4462 part { name: "button_bg";
4465 description { state: "default" 0.0;
4466 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4467 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4469 rel1.to: "padding_text_left_top";
4470 rel2.to: "padding_text_right_bottom";
4472 description { state: "landscape" 0.0;
4473 inherit: "default" 0.0;
4474 min: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
4475 max: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
4478 part { name: "button_image";
4480 description { state: "default" 0.0;
4481 rel1.to: "button_bg";
4482 rel2.to: "button_bg";
4484 normal: "00_toolbar_button.png";
4485 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4489 description { state: "clicked" 0.0;
4490 inherit: "default" 0.0;
4491 image.normal: "00_toolbar_button_press.png";
4493 description { state: "disabled" 0.0;
4494 inherit: "default" 0.0;
4495 image.normal: "00_toolbar_button_dim.png";
4497 description { state: "focused" 0.0;
4498 inherit: "default" 0.0;
4499 image.normal: "00_toolbar_button_press.png";
4502 part { name: "padding_left_top";
4506 description { state: "default" 0.0;
4509 rel2.relative: 0.0 0.0;
4510 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4514 part { name: "padding_right_bottom";
4518 description { state: "default" 0.0;
4520 rel1.relative: 1.0 1.0;
4521 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4526 part { name: "padding_text_left_top";
4530 description { state: "default" 0.0;
4532 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4534 rel1.to: "elm.text";
4542 part { name: "padding_text_right_bottom";
4546 description { state: "default" 0.0;
4547 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4554 rel2.to: "elm.text";
4558 part { name: "elm.text";
4563 description { state: "default" 0.0;
4566 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4569 to: "padding_left_top";
4573 to: "padding_right_bottom";
4579 style: "btn_naviframe_toolbar";
4582 description { state: "landscape" 0.0;
4583 inherit: "default" 0.0;
4584 min: BUTTON_NAVIFRAME_TITLE_LANDSCAPE_TEXTBLOCK_MIN_INC;
4586 description { state: "visible" 0.0;
4587 inherit: "default" 0.0;
4590 description { state: "landscape_visible" 0.0;
4591 inherit: "landscape" 0.0;
4594 description { state: "clicked" 0.0;
4595 inherit: "default" 0.0;
4598 style: "btn_naviframe_toolbar_pressed";
4601 description { state: "landscape_clicked" 0.0;
4602 inherit: "landscape" 0.0;
4605 style: "btn_naviframe_toolbar_pressed";
4608 description { state: "disabled" 0.0;
4609 inherit: "default" 0.0;
4611 description { state: "landscape_disabled" 0.0;
4612 inherit: "landscape" 0.0;
4614 description { state: "disabled_visible" 0.0;
4615 inherit: "default" 0.0;
4618 style: "btn_naviframe_toolbar_disabled";
4621 description { state: "landscape_disabled_visible" 0.0;
4622 inherit: "landscape" 0.0;
4625 style: "btn_naviframe_toolbar_disabled";
4628 description { state: "focused" 0.0;
4629 inherit: "default" 0.0;
4632 style: "btn_naviframe_toolbar_pressed";
4635 description { state: "landscape_focused" 0.0;
4636 inherit: "landscape" 0.0;
4639 style: "btn_naviframe_toolbar_pressed";
4643 part { name: "disclip";
4645 description { state: "default" 0.0;
4646 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4648 description { state: "disabled" 0.0;
4649 inherit: "default" 0.0;
4650 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4653 part { name: "over2";
4656 ignore_flags: ON_HOLD;
4657 description { state: "default" 0.0;
4658 rel1.to: "button_image";
4659 rel2.to: "button_image";
4663 part { name: "over3";
4666 description { state: "default" 0.0;
4667 rel1.to: "button_image";
4668 rel2.to: "button_image";
4672 part { name: "disabler";
4674 description { state: "default" 0.0;
4675 rel1.to: "button_image";
4676 rel2.to: "button_image";
4680 description { state: "disabled" 0.0;
4681 inherit: "default" 0.0;
4687 program { name: "button_click";
4688 signal: "mouse,down,1";
4690 action: SIGNAL_EMIT "elm,action,press" "";
4691 after: "button_click_anim";
4693 program { name: "button_click_anim";
4695 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4696 set_state(PART:"elm.text", "landscape_clicked", 0.0);
4698 set_state(PART:"elm.text", "clicked", 0.0);
4699 set_state(PART:"button_image", "clicked", 0.0);
4702 program { name: "button_double_click";
4703 signal: "mouse,down,1,double";
4705 after: "button_click_anim";
4707 program { name: "button_unpress";
4708 action: SIGNAL_EMIT "elm,action,unpress" "";
4710 program { name: "button_mouseout_clicked";
4711 signal: "mouse,up,1";
4716 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4718 get_state(PART:"elm.text", st, 30, vl);
4719 if (!strcmp(st, "landscape_clicked") || !strcmp(st, "landscape_focused"))
4721 emit("elm,action,default,text,set", "");
4722 set_state(PART:"elm.text", "landscape_visible", 0.0);
4727 get_state(PART:"elm.text", st, 30, vl);
4728 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4730 emit("elm,action,default,text,set", "");
4731 set_state(PART:"elm.text", "visible", 0.0);
4734 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4735 set_state(PART:"button_image", "default", 0.0);
4737 after: button_unpress;
4739 program { name: "touch_snd";
4740 signal: "mouse,clicked,1";
4742 action: PLAY_SAMPLE "touch_sound" 1.0;
4743 after: button_unclick3;
4745 program { name: "button_unclick3";
4746 action: SIGNAL_EMIT "elm,action,click" "";
4748 program { name: "text_show";
4749 signal: "elm,state,text,visible";
4752 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4754 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4755 set_state(PART:"elm.text", "landscape_visible", 0.0);
4757 set_state(PART:"elm.text", "visible", 0.0);
4761 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4762 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
4764 set_state(PART:"elm.text", "disabled_visible", 0.0);
4768 program { name: "text_hide";
4769 signal: "elm,state,text,hidden";
4772 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4773 set_state(PART:"elm.text", "landscape", 0.0);
4775 set_state(PART:"elm.text", "default", 0.0);
4778 program { name: "disable";
4779 signal: "elm,state,disabled";
4781 action: STATE_SET "disabled" 0.0;
4782 target: "button_image";
4785 after: "disable_text";
4787 program { name: "disable_text";
4791 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4793 get_state(PART:"elm.text", st, 30, vl);
4794 if (!strcmp(st, "landscape_visible"))
4795 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
4797 set_state(PART:"elm.text", "landscape_disabled", 0.0);
4801 get_state(PART:"elm.text", st, 30, vl);
4802 if (!strcmp(st, "visible"))
4803 set_state(PART:"elm.text", "disabled_visible", 0.0);
4805 set_state(PART:"elm.text", "disabled", 0.0);
4807 set_int(button_state, BUTTON_STATE_DISABLED);
4810 program { name: "enable";
4811 signal: "elm,state,enabled";
4813 action: STATE_SET "default" 0.0;
4814 target: "button_image";
4817 after: "enable_text";
4819 program { name: "enable_text";
4823 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4825 get_state(PART:"elm.text", st, 30, vl);
4826 if (!strcmp(st, "landscape_disabled"))
4827 set_state(PART:"elm.text", "landscape", 0.0);
4829 set_state(PART:"elm.text", "landscape_visible", 0.0);
4833 get_state(PART:"elm.text", st, 30, vl);
4834 if (!strcmp(st, "disabled"))
4835 set_state(PART:"elm.text", "default", 0.0);
4837 set_state(PART:"elm.text", "visible", 0.0);
4839 set_int(button_state, BUTTON_STATE_ENABLED);
4842 program { name: "change_to_landscape";
4843 signal: "elm,state,landscape";
4848 set_int(landscape_state, BUTTON_LANDSCAPE_ENABLED);
4849 get_state(PART:"elm.text", st, 30, vl);
4850 if (!strcmp(st, "default"))
4851 set_state(PART:"elm.text", "landscape", 0.0);
4852 else if (!strcmp(st, "clicked"))
4853 set_state(PART:"elm.text", "landscape_clicked", 0.0);
4854 else if (!strcmp(st, "disabled"))
4855 set_state(PART:"elm.text", "landscape_disabled", 0.0);
4856 else if (!strcmp(st, "disabled_visible"))
4857 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
4859 set_state(PART:"elm.text", "landscape_visible", 0.0);
4860 set_state(PART:"button_bg", "landscape", 0.0);
4863 program { name: "change_to_portrait";
4864 signal: "elm,state,portrait";
4869 set_int(landscape_state, BUTTON_LANDSCAPE_DISABLED);
4870 get_state(PART:"elm.text", st, 30, vl);
4871 if (!strcmp(st, "landscape"))
4872 set_state(PART:"elm.text", "default", 0.0);
4873 else if (!strcmp(st, "landscape_clicked"))
4874 set_state(PART:"elm.text", "clicked", 0.0);
4875 else if (!strcmp(st, "landscape_disabled"))
4876 set_state(PART:"elm.text", "disabled", 0.0);
4877 else if (!strcmp(st, "landscape_disabled_visible"))
4878 set_state(PART:"elm.text", "disabled_visible", 0.0);
4880 set_state(PART:"elm.text", "visible", 0.0);
4881 set_state(PART:"button_bg", "default", 0.0);
4884 program { name: "landscape_mode";
4886 signal: "elm,state,orient,90";
4887 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4889 program { name: "landscape_mode2";
4891 signal: "elm,state,orient,270";
4892 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4894 program { name: "portrait_mode";
4896 signal: "elm,state,orient,0";
4897 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4899 program { name: "portrait_mode2";
4901 signal: "elm,state,orient,180";
4902 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4904 program { name: "focused";
4905 //signal: "elm,action,focus";
4907 action: STATE_SET "focused" 0.0;
4908 target: "button_image";
4911 program { name: "unfocused";
4912 //signal: "elm,action,unfocus";
4914 action: STATE_SET "default" 0.0;
4915 target: "button_image";
4916 action: STATE_SET "visible" 0.0;
4922 //////////////////////////////////////////////////////////////
4923 group { name: "elm/button/base/naviframe/toolbar/left";
4924 inherit: "elm/button/base/naviframe/toolbar/default";
4926 part { name: "button_bg";
4929 description { state: "default" 0.0;
4930 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4931 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4933 rel1.to: "padding_text_left_top";
4934 rel2.to: "padding_text_right_bottom";
4937 description { state: "landscape" 0.0;
4938 inherit: "default" 0.0;
4939 min: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
4940 max: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
4943 part { name: "elm.text";
4948 description { state: "default" 0.0;
4951 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4954 to: "padding_left_top";
4958 to: "padding_right_bottom";
4965 style: "btn_naviframe_toolbar";
4968 description { state: "landscape" 0.0;
4969 inherit: "default" 0.0;
4970 min: BUTTON_NAVIFRAME_TITLE_LANDSCAPE_TEXTBLOCK_MIN_INC;
4972 description { state: "visible" 0.0;
4973 inherit: "default" 0.0;
4976 description { state: "landscape_visible" 0.0;
4977 inherit: "landscape" 0.0;
4980 description { state: "clicked" 0.0;
4981 inherit: "default" 0.0;
4984 style: "btn_naviframe_toolbar_pressed";
4987 description { state: "landscape_clicked" 0.0;
4988 inherit: "landscape" 0.0;
4991 style: "btn_naviframe_toolbar_pressed";
4994 description { state: "disabled" 0.0;
4995 inherit: "default" 0.0;
4997 description { state: "landscape_disabled" 0.0;
4998 inherit: "landscape" 0.0;
5000 description { state: "disabled_visible" 0.0;
5001 inherit: "default" 0.0;
5004 style: "btn_naviframe_toolbar_disabled";
5007 description { state: "landscape_disabled_visible" 0.0;
5008 inherit: "landscape" 0.0;
5011 style: "btn_naviframe_toolbar_disabled";
5014 description { state: "focused" 0.0;
5015 inherit: "default" 0.0;
5018 style: "btn_naviframe_toolbar_pressed";
5021 description { state: "landscape_focused" 0.0;
5022 inherit: "landscape" 0.0;
5025 style: "btn_naviframe_toolbar_pressed";
5032 //////////////////////////////////////////////////////////////
5033 group { name: "elm/button/base/naviframe/toolbar/right";
5034 inherit: "elm/button/base/naviframe/toolbar/default";
5036 part { name: "button_bg";
5039 description { state: "default" 0.0;
5040 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
5041 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
5043 rel1.to: "padding_text_left_top";
5044 rel2.to: "padding_text_right_bottom";
5047 description { state: "landscape" 0.0;
5048 inherit: "default" 0.0;
5049 min: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5050 max: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
5053 part { name: "elm.text";
5058 description { state: "default" 0.0;
5061 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
5064 to: "padding_left_top";
5068 to: "padding_right_bottom";
5075 style: "btn_naviframe_toolbar";
5078 description { state: "landscape" 0.0;
5079 inherit: "default" 0.0;
5080 min: BUTTON_NAVIFRAME_TITLE_LANDSCAPE_TEXTBLOCK_MIN_INC;
5082 description { state: "visible" 0.0;
5083 inherit: "default" 0.0;
5086 description { state: "landscape_visible" 0.0;
5087 inherit: "landscape" 0.0;
5090 description { state: "clicked" 0.0;
5091 inherit: "default" 0.0;
5094 style: "btn_naviframe_toolbar_pressed";
5097 description { state: "landscape_clicked" 0.0;
5098 inherit: "landscape" 0.0;
5101 style: "btn_naviframe_toolbar_pressed";
5104 description { state: "disabled" 0.0;
5105 inherit: "default" 0.0;
5107 description { state: "landscape_disabled" 0.0;
5108 inherit: "landscape" 0.0;
5110 description { state: "disabled_visible" 0.0;
5111 inherit: "default" 0.0;
5114 style: "btn_naviframe_toolbar_disabled";
5117 description { state: "landscape_disabled_visible" 0.0;
5118 inherit: "landscape" 0.0;
5121 style: "btn_naviframe_toolbar_disabled";
5124 description { state: "focused" 0.0;
5125 inherit: "default" 0.0;
5128 style: "btn_naviframe_toolbar_pressed";
5131 description { state: "landscape_focused" 0.0;
5132 inherit: "landscape" 0.0;
5135 style: "btn_naviframe_toolbar_pressed";
5142 ////////////////////////////////////////////////////////////////////
5143 group { name: "elm/button/base/toolbar/segmentedcontrol";
5145 image: "00_toolbar_button.png" COMP;
5146 image: "00_toolbar_button_press.png" COMP;
5147 image: "00_toolbar_button_dim.png" COMP;
5148 image: "00_button_icon_arrow.png" COMP;
5149 image: "00_button_icon_arrow_press.png" COMP;
5152 style { name: "btn_toolbar_segmentedcontrol";
5153 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";
5160 public button_state = BUTTON_STATE_ENABLED;
5163 part { name: "button_image";
5165 description { state: "default" 0.0;
5166 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
5167 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
5169 rel1.to: "padding_text_left_top";
5170 rel2.to: "padding_text_right_bottom";
5172 normal: "00_toolbar_button.png";
5173 border: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_BORDER_INC;
5177 description { state: "clicked" 0.0;
5178 inherit: "default" 0.0;
5179 image.normal: "00_toolbar_button_press.png";
5181 description { state: "disabled" 0.0;
5182 inherit: "default" 0.0;
5183 image.normal: "00_toolbar_button_dim.png";
5185 description { state: "focused" 0.0;
5186 inherit: "default" 0.0;
5187 image.normal: "00_toolbar_button_press.png";
5190 part { name: "padding_left_top";
5194 description { state: "default" 0.0;
5197 rel2.relative: 0.0 0.0;
5198 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
5202 part { name: "padding_right_bottom";
5206 description { state: "default" 0.0;
5208 rel1.relative: 1.0 1.0;
5209 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
5214 part { name: "padding_text_left_top";
5218 description { state: "default" 0.0;
5220 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
5222 rel1.to: "elm.text";
5230 part { name: "padding_text_right_bottom";
5234 description { state: "default" 0.0;
5235 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
5251 part { name: "elm.text";
5255 effect: FAR_SHADOW BOTTOM;
5257 description { state: "default" 0.0;
5260 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXTBLOCK_MIN_INC;
5263 to: "padding_left_top";
5267 to: "padding_right_bottom";
5269 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
5270 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5274 style: "btn_toolbar_segmentedcontrol";
5277 description { state: "visible" 0.0;
5278 inherit: "default" 0.0;
5281 description { state: "clicked" 0.0;
5282 inherit: "default" 0.0;
5284 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
5286 description { state: "disabled" 0.0;
5287 inherit: "default" 0.0;
5289 description { state: "disabled_visible" 0.0;
5290 inherit: "default" 0.0;
5291 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
5292 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5295 description { state: "focused" 0.0;
5296 inherit: "default" 0.0;
5298 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
5301 part { name: "icon_padding";
5304 description { state: "default" 0.0;
5313 rel2.to: "elm.text";
5316 part { name: "icon";
5318 clip_to: "icon_clipper";
5319 description { state: "default" 0.0;
5320 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5321 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5326 to_x: "icon_padding";
5332 to_x: "icon_padding";
5335 image.normal: "00_button_icon_arrow.png";
5337 description { state: "clicked" 0.0;
5338 inherit: "default" 0.0;
5339 image.normal: "00_button_icon_arrow_press.png";
5342 part { name: "icon_clipper";
5344 description { state: "default" 0.0;
5345 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_NORMAL_COLOR_INC;
5347 description { state: "clicked" 0.0;
5348 inherit: "default" 0.0;
5349 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_PRESSED_COLOR_INC;
5352 part { name: "disclip";
5354 description { state: "default" 0.0;
5355 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5357 description { state: "disabled" 0.0;
5358 inherit: "default" 0.0;
5359 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5362 part { name: "over2";
5365 ignore_flags: ON_HOLD;
5366 description { state: "default" 0.0;
5367 rel1.to: "button_image";
5368 rel2.to: "button_image";
5372 part { name: "over3";
5375 description { state: "default" 0.0;
5376 rel1.to: "button_image";
5377 rel2.to: "button_image";
5381 part { name: "disabler";
5383 description { state: "default" 0.0;
5384 rel1.to: "button_image";
5385 rel2.to: "button_image";
5389 description { state: "disabled" 0.0;
5390 inherit: "default" 0.0;
5396 program { name: "button_click";
5397 signal: "mouse,down,1";
5399 action: SIGNAL_EMIT "elm,action,press" "";
5400 after: "button_click_anim";
5402 program { name: "button_click_anim";
5403 action: STATE_SET "clicked" 0.0;
5404 target: "button_image";
5407 target: "icon_clipper";
5409 program { name: "button_double_click";
5410 signal: "mouse,down,1,double";
5412 after: "button_click_anim";
5414 program { name: "button_unpress";
5415 action: SIGNAL_EMIT "elm,action,unpress" "";
5417 program { name: "button_mouseout_clicked";
5418 signal: "mouse,up,1";
5423 get_state(PART:"elm.text", st, 30, vl);
5424 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5426 emit("elm,action,default,text,set", "");
5427 set_state(PART:"elm.text", "visible", 0.0);
5429 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5430 set_state(PART:"button_image", "default", 0.0);
5431 set_state(PART:"icon", "default", 0.0);
5432 set_state(PART:"icon_clipper", "default", 0.0);
5434 after: button_unpress;
5436 program { name: "touch_snd";
5437 signal: "mouse,clicked,1";
5439 action: PLAY_SAMPLE "touch_sound" 1.0;
5440 after: button_unclick3;
5442 program { name: "button_unclick3";
5443 action: SIGNAL_EMIT "elm,action,click" "";
5445 program { name: "text_show";
5446 signal: "elm,state,text,visible";
5449 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5450 set_state(PART:"elm.text", "visible", 0.0);
5452 set_state(PART:"elm.text", "disabled_visible", 0.0);
5455 program { name: "text_hide";
5456 signal: "elm,state,text,hidden";
5458 action: STATE_SET "default" 0.0;
5461 program { name: "disable";
5462 signal: "elm,state,disabled";
5464 action: STATE_SET "disabled" 0.0;
5465 target: "button_image";
5468 after: "disable_text";
5470 program { name: "disable_text";
5474 get_state(PART:"elm.text", st, 30, vl);
5475 if (!strcmp(st, "visible"))
5476 set_state(PART:"elm.text", "disabled_visible", 0.0);
5478 set_state(PART:"elm.text", "disabled", 0.0);
5479 set_int(button_state, BUTTON_STATE_DISABLED);
5482 program { name: "enable";
5483 signal: "elm,state,enabled";
5485 action: STATE_SET "default" 0.0;
5486 target: "button_image";
5489 after: "enable_text";
5491 program { name: "enable_text";
5495 get_state(PART:"elm.text", st, 30, vl);
5496 if (!strcmp(st, "disabled_visible"))
5497 set_state(PART:"elm.text", "visible", 0.0);
5499 set_state(PART:"elm.text", "default", 0.0);
5500 set_int(button_state, BUTTON_STATE_ENABLED);
5503 program { name: "focused";
5504 //signal: "elm,action,focus";
5506 action: STATE_SET "focused" 0.0;
5507 target: "button_image";
5510 program { name: "unfocused";
5511 //signal: "elm,action,unfocus";
5513 action: STATE_SET "default" 0.0;
5514 target: "button_image";
5515 action: STATE_SET "visible" 0.0;
5521 ////////////////////////////////////////////////////////////////////
5522 group { name: "elm/button/base/naviframe/title_icon";
5524 part { name: "button_image";
5527 description { state: "default" 0.0;
5529 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5530 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5532 description { state: "landscape" 0.0;
5534 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5535 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5538 part { name: "top_padding";
5541 description { state: "default" 0.0;
5543 min: BUTTON_NAVIFRAME_TITLE_ICON_TOP_PADDING_INC;
5546 rel1 { relative: 0.0 0.0; to: "button_image"; }
5547 rel2 { relative: 1.0 0.0; to: "button_image"; }
5549 description { state: "landscape" 0.0;
5550 inherit: "default" 0.0;
5551 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_TOP_PADDING_INC;
5554 part { name: "elm.swallow.content";
5557 clip_to: "elm.icon.clipper";
5558 description { state: "default" 0.0;
5560 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5563 rel1 { relative: 0.0 1.0; to: "top_padding"; }
5564 rel2 { relative: 1.0 1.0; to: "button_image"; }
5566 description { state: "visible" 0.0;
5567 inherit: "default" 0.0;
5571 part { name: "elm.swallow.icon.proxy";
5574 clip_to: "elm.icon.proxy.clipper";
5575 description { state: "default" 0.0;
5576 source: "elm.swallow.content";
5577 rel1.to: "elm.swallow.content";
5579 rel2.to: "elm.swallow.content";
5583 part { name: "elm.icon.proxy.clipper";
5585 description { state: "default" 0.0;
5586 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5588 description { state: "clicked" 0.0;
5589 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5591 description { state: "disabled" 0.0;
5592 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5595 part { name: "elm.icon.clipper";
5597 description { state: "default" 0.0;
5598 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5600 description { state: "clicked" 0.0;
5601 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5603 description { state: "disabled" 0.0;
5604 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5607 part { name: "over2";
5609 ignore_flags: ON_HOLD;
5610 description { state: "default" 0.0;
5614 part { name: "over3";
5617 description { state: "default" 0.0;
5621 part { name: "disabler";
5623 description { state: "default" 0.0;
5627 description { state: "disabled" 0.0;
5628 inherit: "default" 0.0;
5634 program { name: "button_click";
5635 signal: "mouse,down,1";
5637 action: SIGNAL_EMIT "elm,action,press" "";
5638 after: "button_click_anim";
5640 program { name: "button_click_anim";
5642 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5643 set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0);
5646 program { name: "button_double_click";
5647 signal: "mouse,down,1,double";
5649 after: "button_click_anim";
5651 program { name: "button_unpress";
5652 action: SIGNAL_EMIT "elm,action,unpress" "";
5654 program { name: "button_mouseout_clicked";
5655 signal: "mouse,up,1";
5657 action: STATE_SET "default" 0.0;
5658 target: "elm.icon.clipper";
5659 target: "elm.icon.proxy.clipper";
5660 after: button_unpress;
5662 program { name: "touch_snd";
5663 signal: "mouse,clicked,1";
5665 action: PLAY_SAMPLE "touch_sound" 1.0;
5666 after: button_unclick3;
5668 program { name: "button_unclick3";
5669 action: SIGNAL_EMIT "elm,action,click" "";
5671 program { name: "icon_show";
5672 signal: "elm,state,icon,visible";
5674 action: STATE_SET "visible" 0.0;
5675 target: "elm.swallow.content";
5677 program { name: "icon_hide";
5678 signal: "elm,state,icon,hidden";
5680 action: STATE_SET "default" 0.0;
5681 target: "elm.swallow.content";
5683 program { name: "disable";
5684 signal: "elm,state,disabled";
5687 set_state(PART:"disabler", "disabled", 0.0);
5688 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5689 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
5692 program { name: "enable";
5693 signal: "elm,state,enabled";
5696 set_state(PART:"disabler", "default", 0.0);
5697 set_state(PART:"elm.icon.clipper", "default", 0.0);
5698 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
5701 program { name: "change_to_landscape";
5702 signal: "elm,state,landscape";
5704 action: STATE_SET "landscape" 0.0;
5705 target: "button_image";
5706 target: "top_padding";
5708 program { name: "change_to_portrait";
5709 signal: "elm,state,portrait";
5711 action: STATE_SET "default" 0.0;
5712 target: "button_image";
5713 target: "top_padding";
5715 /* program { name: "landscape_mode";
5717 signal: "elm,state,orient,90";
5718 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5720 program { name: "landscape_mode2";
5722 signal: "elm,state,orient,270";
5723 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5725 program { name: "portrait_mode";
5727 signal: "elm,state,orient,0";
5728 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5730 program { name: "portrait_mode2";
5732 signal: "elm,state,orient,180";
5733 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5738 /////////////////////////////////////////////////////////////////////////////////////////
5739 group { name: "elm/button/base/naviframe/more/default";
5741 image: "00_icon_more.png" COMP;
5744 part { name: "button_image";
5747 description { state: "default" 0.0;
5748 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5749 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5752 description { state: "landscape" 0.0;
5753 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5754 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5758 part { name: "more_image";
5761 clip_to: "more_image.clipper";
5762 description { state: "default" 0.0;
5763 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5764 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5766 rel1.to: "button_image";
5767 rel2.to: "button_image";
5768 image.normal: "00_icon_more.png";
5771 part { name: "more_image.clipper";
5773 description { state: "default" 0.0;
5774 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5776 description { state: "clicked" 0.0;
5777 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5779 description { state: "disabled" 0.0;
5780 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5783 part { name: "over2";
5785 ignore_flags: ON_HOLD;
5786 description { state: "default" 0.0;
5790 part { name: "over3";
5793 description { state: "default" 0.0;
5797 part { name: "disabler";
5799 description { state: "default" 0.0;
5803 description { state: "disabled" 0.0;
5804 inherit: "default" 0.0;
5810 program { name: "button_click";
5811 signal: "mouse,down,1";
5813 action: SIGNAL_EMIT "elm,action,press" "";
5814 after: "button_click_anim";
5816 program { name: "button_click_anim";
5818 set_state(PART:"more_image.clipper", "clicked", 0.0);
5821 program { name: "button_double_click";
5822 signal: "mouse,down,1,double";
5824 after: "button_click_anim";
5826 program { name: "button_unclick";
5827 signal: "mouse,up,1";
5829 action: SIGNAL_EMIT "elm,action,unpress" "";
5830 after: "button_unclick_anim";
5832 program { name: "button_unclick_anim";
5834 set_state(PART:"more_image.clipper", "default", 0.0);
5837 program { name: "touch_snd";
5838 signal: "mouse,clicked,1";
5840 action: PLAY_SAMPLE "touch_sound" 1.0;
5841 after: button_unclick3;
5843 program { name: "button_unclick3";
5844 action: SIGNAL_EMIT "elm,action,click" "";
5846 program { name: "disable";
5847 signal: "elm,state,disabled";
5850 set_state(PART:"disabler", "disabled", 0.0);
5851 set_state(PART:"more_image.clipper", "disabled", 0.0);
5854 program { name: "enable";
5855 signal: "elm,state,enabled";
5858 set_state(PART:"disabler", "default", 0.0);
5859 set_state(PART:"more_image.clipper", "default", 0.0);
5862 program { name: "change_to_landscape";
5863 signal: "elm,state,landscape";
5865 action: STATE_SET "landscape" 0.0;
5866 target: "button_image";
5868 program { name: "change_to_portrait";
5869 signal: "elm,state,portrait";
5871 action: STATE_SET "default" 0.0;
5872 target: "button_image";
5874 program { name: "landscape_mode";
5876 signal: "elm,state,orient,90";
5877 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5879 program { name: "landscape_mode2";
5881 signal: "elm,state,orient,270";
5882 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5884 program { name: "portrait_mode";
5886 signal: "elm,state,orient,0";
5887 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5889 program { name: "portrait_mode2";
5891 signal: "elm,state,orient,180";
5892 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5897 ///////////////////////////////////////////////////////////////////////////////////////
5898 group { name: "elm/button/base/tickernoti";
5900 image: "00_notification_button.png" COMP;
5901 image: "00_notification_button_press.png" COMP;
5902 image: "00_notification_button_dim.png" COMP;
5905 public button_state = BUTTON_STATE_ENABLED;
5908 part { name: "button_image";
5910 description { state: "default" 0.0;
5911 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5912 max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5914 normal: "00_notification_button.png";
5915 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
5919 description { state: "clicked" 0.0;
5920 inherit: "default" 0.0;
5921 image.normal: "00_notification_button_press.png";
5923 description { state: "disabled" 0.0;
5924 inherit: "default" 0.0;
5925 image.normal: "00_notification_button_dim.png";
5927 description { state: "focused" 0.0;
5928 inherit: "default" 0.0;
5929 image.normal: "00_notification_button_press.png";
5932 part { name: "padding_left_top";
5936 description { state: "default" 0.0;
5939 rel2.relative: 0.0 0.0;
5940 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5948 description { state: "default" 0.0;
5949 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5952 description { state: "visible" 0.0;
5953 inherit: "default" 0.0;
5955 description { state: "icononly" 0.0;
5956 inherit: "default" 0.0;
5959 part { name: "padding_right_bottom";
5963 description { state: "default" 0.0;
5965 rel1.relative: 1.0 1.0;
5966 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5971 part { name: "icon_rect";
5975 description { state: "default" 0.0;
5981 to: "padding_left_top";
5985 to_x: "padding_left_top";
5986 to_y: "padding_right_bottom";
5990 description { state: "visible" 0.0;
5991 inherit: "default" 0.0;
5992 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5993 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5995 description { state: "icononly" 0.0;
5996 inherit: "default" 0.0;
5999 part { name: "padding_after_icon";
6003 description { state: "default" 0.0; //when only icon or no icon is there
6012 rel2.to: "icon_rect";
6014 description { state: "visible" 0.0;
6015 inherit: "default" 0.0;
6016 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6018 description { state: "icononly" 0.0;
6019 inherit: "default" 0.0;
6022 part { name: "padding_before_text";
6026 description { state: "default" 0.0; //when only icon or no icon is there
6030 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6034 to_y: "padding_left_top";
6039 to_y: "padding_right_bottom";
6043 part { name: "elm.swallow.content";
6047 description { state: "default" 0.0;
6053 to: "padding_left_top";
6057 to_x: "padding_left_top";
6058 to_y: "padding_right_bottom";
6061 description { state: "visible" 0.0;
6063 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6064 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6068 to_x: "padding_before_text";
6069 to_y: "padding_left_top";
6073 to_x: "padding_before_text";
6074 to_y: "padding_right_bottom";
6077 description { state: "icononly" 0.0;
6078 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6079 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6082 part { name: "elm.text";
6085 effect: FAR_SHADOW BOTTOM;
6088 description { state: "default" 0.0;
6092 to_x: "padding_after_icon";
6093 to_y: "padding_left_top";
6097 to: "padding_right_bottom";
6099 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
6100 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6102 font: "Tizen:style=Regular";
6103 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
6104 text_class: "tizen";
6107 description { state: "visible" 0.0;
6108 inherit: "default" 0.0;
6111 description { state: "clicked" 0.0;
6112 inherit: "default" 0.0;
6114 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6116 description { state: "disabled" 0.0;
6117 inherit: "default" 0.0;
6119 description { state: "disabled_visible" 0.0;
6120 inherit: "default" 0.0;
6121 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
6122 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6125 description { state: "focused" 0.0;
6126 inherit: "default" 0.0;
6128 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6131 part { name: "over2";
6134 ignore_flags: ON_HOLD;
6135 description { state: "default" 0.0;
6139 part { name: "over3";
6142 description { state: "default" 0.0;
6146 part { name: "clipper";
6148 description { state: "default" 0.0;
6149 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
6151 description { state: "disabled" 0.0;
6152 inherit: "default" 0.0;
6153 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
6156 part { name: "disabler";
6158 description { state: "default" 0.0;
6162 description { state: "disabled" 0.0;
6163 inherit: "default" 0.0;
6169 program { name: "button_click";
6170 signal: "mouse,down,1";
6172 action: SIGNAL_EMIT "elm,action,press" "";
6173 after: "button_click_anim";
6175 program { name: "button_click_anim";
6176 action: STATE_SET "clicked" 0.0;
6177 target: "button_image";
6178 after: "text_clicked";
6180 program { name: "text_clicked";
6184 get_state(PART:"elm.text", st, 30, vl);
6185 if (!strcmp(st, "visible"))
6186 set_state(PART:"elm.text", "clicked", 0.0);
6189 program { name: "button_double_click";
6190 signal: "mouse,down,1,double";
6192 after: "button_click_anim";
6194 program { name: "button_unpress";
6195 action: SIGNAL_EMIT "elm,action,unpress" "";
6197 program { name: "button_mouseout_clicked";
6198 signal: "mouse,up,1";
6203 get_state(PART:"elm.swallow.content", st, 30, vl);
6204 if (strcmp(st, "icononly"))
6206 emit("elm,action,default,text,set", "");
6207 set_state(PART:"elm.text", "visible", 0.0);
6209 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6210 set_state(PART:"button_image", "default", 0.0);
6212 after: button_unpress;
6214 program { name: "touch_snd";
6215 signal: "mouse,clicked,1";
6217 action: PLAY_SAMPLE "touch_sound" 1.0;
6218 after: button_unclick3;
6220 program { name: "button_unclick3";
6221 action: SIGNAL_EMIT "elm,action,click" "";
6223 program { name: "text_show";
6224 signal: "elm,state,text,visible";
6229 get_state(PART:"elm.swallow.content", st, 30, vl);
6230 if (!strcmp(st, "icononly"))
6232 set_state(PART:"elm.swallow.content", "visible", 0.0);
6233 set_state(PART:"icon_rect", "visible", 0.0);
6234 set_state(PART:"padding_after_icon", "visible", 0.0);
6235 set_state(PART:"bg", "visible", 0.0);
6237 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6238 set_state(PART:"elm.text", "visible", 0.0);
6240 set_state(PART:"elm.text", "disabled_visible", 0.0);
6243 program { name: "text_hide";
6244 signal: "elm,state,text,hidden";
6249 get_state(PART:"elm.swallow.content", st, 30, vl);
6250 if (!strcmp(st, "visible"))
6252 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6253 set_state(PART:"icon_rect", "icononly", 0.0);
6254 set_state(PART:"padding_after_icon", "icononly", 0.0);
6255 set_state(PART:"bg", "icononly", 0.0);
6257 set_state(PART:"elm.text", "default", 0.0);
6260 program { name: "icon_show";
6261 signal: "elm,state,icon,visible";
6266 get_state(PART:"elm.text", st, 30, vl);
6267 if (!strcmp(st, "visible"))
6269 set_state(PART:"elm.swallow.content", "visible", 0.0);
6270 set_state(PART:"icon_rect", "visible", 0.0);
6271 set_state(PART:"padding_after_icon", "visible", 0.0);
6272 set_state(PART:"bg", "visible", 0.0);
6276 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6277 set_state(PART:"icon_rect", "icononly", 0.0);
6278 set_state(PART:"padding_after_icon", "icononly", 0.0);
6279 set_state(PART:"bg", "icononly", 0.0);
6283 program { name: "icon_hide";
6284 signal: "elm,state,icon,hidden";
6286 action: STATE_SET "default" 0.0;
6287 target: "elm.swallow.content";
6288 target: "padding_after_icon";
6289 target: "icon_rect";
6292 program { name: "disable";
6293 signal: "elm,state,disabled";
6295 action: STATE_SET "disabled" 0.0;
6296 target: "button_image";
6299 after: "disable_text";
6301 program { name: "disable_text";
6305 get_state(PART:"elm.text", st, 30, vl);
6306 if (!strcmp(st, "visible"))
6307 set_state(PART:"elm.text", "disabled_visible", 0.0);
6309 set_state(PART:"elm.text", "disabled", 0.0);
6310 set_int(button_state, BUTTON_STATE_DISABLED);
6313 program { name: "enable";
6314 signal: "elm,state,enabled";
6316 action: STATE_SET "default" 0.0;
6317 target: "button_image";
6320 after: "enable_text";
6322 program { name: "enable_text";
6326 get_state(PART:"elm.text", st, 30, vl);
6327 if (!strcmp(st, "disabled_visible"))
6328 set_state(PART:"elm.text", "visible", 0.0);
6330 set_state(PART:"elm.text", "default", 0.0);
6331 set_int(button_state, BUTTON_STATE_ENABLED);
6334 program { name: "focused";
6335 //signal: "elm,action,focus";
6337 action: STATE_SET "focused" 0.0;
6338 target: "button_image";
6341 program { name: "unfocused";
6342 //signal: "elm,action,unfocus";
6344 action: STATE_SET "default" 0.0;
6345 target: "button_image";
6346 after: "unfocus_text";
6348 program { name: "unfocus_text";
6349 action: STATE_SET "visible" 0.0;
6355 ///////////////////////////////////////////////////////////////////////////////////////
6356 group { name: "elm/button/base/expandable_number";
6357 alias: "elm/button/base/text_only/expandable_number";
6359 image: "00_button_01.png" COMP;
6360 image: "00_button_01_press.png" COMP;
6361 image: "00_button_01_dim.png" COMP;
6362 image: "00_arrow_expand.png" COMP;
6365 public button_state = BUTTON_STATE_ENABLED;
6368 part { name: "button_image";
6370 description { state: "default" 0.0;
6371 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6372 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6374 normal: "00_button_01.png";
6375 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6379 description { state: "clicked" 0.0;
6380 inherit: "default" 0.0;
6381 image.normal: "00_button_01_press.png";
6383 description { state: "disabled" 0.0;
6384 inherit: "default" 0.0;
6385 image.normal: "00_button_01_dim.png";
6387 description { state: "focused" 0.0;
6388 inherit: "default" 0.0;
6389 image.normal: "00_button_01_press.png";
6392 part { name: "padding_left_top";
6396 description { state: "default" 0.0;
6399 rel2.relative: 0.0 0.0;
6400 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6404 part { name: "padding_right_bottom";
6408 description { state: "default" 0.0;
6411 rel1.relative: 1.0 1.0;
6412 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6416 part { name: "icon_rect";
6420 description { state: "default" 0.0;
6422 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6423 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6427 to_x: "padding_right_bottom";
6428 to_y: "padding_left_top";
6432 to: "padding_right_bottom";
6437 part { name: "arrow_expand";
6439 clip_to: "icon_clipper";
6441 description { state: "default" 0.0;
6443 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6444 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6446 rel1.to: "icon_rect";
6447 rel2.to: "icon_rect";
6448 image.normal:"00_arrow_expand.png";
6451 part { name: "elm.text";
6454 effect: SHADOW BOTTOM;
6456 description { state: "default" 0.0;
6457 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6458 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6462 to: "padding_left_top";
6466 to_x:"padding_left_top";
6467 to_y:"padding_right_bottom";
6470 color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6471 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6473 font: "Tizen:style=Regular";
6474 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6478 text_class: "tizen";
6481 description { state: "visible" 0.0;
6482 inherit: "default" 0.0;
6484 description { state: "clicked" 0.0;
6485 inherit: "default" 0.0;
6486 color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
6488 description { state: "disabled" 0.0;
6489 inherit: "default" 0.0;
6491 description { state: "disabled_visible" 0.0;
6492 inherit: "default" 0.0;
6493 color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6494 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
6496 description { state: "focused" 0.0;
6497 inherit: "default" 0.0;
6498 color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6501 part { name: "icon_clipper";
6504 description { state: "default" 0.0;
6505 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6507 description { state: "clicked" 0.0;
6508 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6510 description { state: "disabled" 0.0;
6511 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6514 part { name: "over2";
6517 ignore_flags: ON_HOLD;
6518 description { state: "default" 0.0;
6522 part { name: "over3";
6525 description { state: "default" 0.0;
6529 part { name: "disabler";
6531 description { state: "default" 0.0;
6535 description { state: "disabled" 0.0;
6536 inherit: "default" 0.0;
6542 program { name: "button_click";
6543 signal: "mouse,down,1";
6545 action: SIGNAL_EMIT "elm,action,press" "";
6546 after: "button_click_anim";
6548 program { name: "button_click_anim";
6549 action: STATE_SET "clicked" 0.0;
6550 target: "button_image";
6551 target: "icon_clipper";
6552 after: "text_clicked";
6554 program { name: "text_clicked";
6558 get_state(PART:"elm.text", st, 30, vl);
6559 if (!strcmp(st, "visible"))
6560 set_state(PART:"elm.text", "clicked", 0.0);
6563 program { name: "button_double_click";
6564 signal: "mouse,down,1,double";
6566 after: "button_click_anim";
6568 program { name: "button_unpress";
6569 action: SIGNAL_EMIT "elm,action,unpress" "";
6571 program { name: "button_mouseout_clicked";
6572 signal: "mouse,up,1";
6575 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6577 set_state(PART:"button_image", "default", 0.0);
6578 set_state(PART:"elm.text", "visible", 0.0);
6579 set_state(PART:"icon_clipper", "default", 0.0);
6582 after: button_unpress;
6584 program { name: "touch_snd";
6585 signal: "mouse,clicked,1";
6587 action: PLAY_SAMPLE "touch_sound" 1.0;
6588 after: button_unclick3;
6590 program { name: "button_unclick3";
6591 action: SIGNAL_EMIT "elm,action,click" "";
6593 program { name: "text_show";
6594 signal: "elm,state,text,visible";
6597 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6598 set_state(PART:"elm.text", "visible", 0.0);
6600 set_state(PART:"elm.text", "disabled_visible", 0.0);
6603 program { name: "text_hide";
6604 signal: "elm,state,text,hidden";
6607 set_state(PART:"elm.text", "default", 0.0);
6610 program { name: "disable";
6611 signal: "elm,state,disabled";
6613 action: STATE_SET "disabled" 0.0;
6614 target: "button_image";
6616 target: "icon_clipper";
6617 after: "disable_text";
6619 program { name: "disable_text";
6623 get_state(PART:"elm.text", st, 30, vl);
6624 if (!strcmp(st, "visible"))
6625 set_state(PART:"elm.text", "disabled_visible", 0.0);
6627 set_state(PART:"elm.text", "disabled", 0.0);
6628 set_int(button_state, BUTTON_STATE_DISABLED);
6631 program { name: "enable";
6632 signal: "elm,state,enabled";
6634 action: STATE_SET "default" 0.0;
6635 target: "button_image";
6637 target: "icon_clipper";
6638 after: "enable_text";
6640 program { name: "enable_text";
6644 get_state(PART:"elm.text", st, 30, vl);
6645 if (!strcmp(st, "disabled_visible"))
6646 set_state(PART:"elm.text", "visible", 0.0);
6648 set_state(PART:"elm.text", "default", 0.0);
6649 set_int(button_state, BUTTON_STATE_ENABLED);
6652 program { name: "focused";
6653 //signal: "elm,action,focus";
6655 action: STATE_SET "focused" 0.0;
6656 target: "button_image";
6659 program { name: "unfocused";
6660 //signal: "elm,action,unfocus";
6662 action: STATE_SET "default" 0.0;
6663 target: "button_image";
6664 after: "unfocus_text";
6666 program { name: "unfocus_text";
6667 action: STATE_SET "visible" 0.0;
6673 ////////////////////////////////////////////////////////////////////////
6674 group { name: "elm/button/base/bubble_sent";
6675 inherit: "elm/button/base/style1";
6677 image: "00_messagebubble_button_sent.png" COMP;
6678 image: "00_messagebubble_button_sent_press.png" COMP;
6679 image: "00_messagebubble_button_sent_dim.png" COMP;
6682 part { name: "button_image";
6684 description { state: "default" 0.0;
6686 normal: "00_messagebubble_button_sent.png";
6687 border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
6691 description { state: "clicked" 0.0;
6692 inherit: "default" 0.0;
6693 image.normal: "00_messagebubble_button_sent_press.png";
6695 description { state: "disabled" 0.0;
6696 inherit: "default" 0.0;
6697 image.normal: "00_messagebubble_button_sent_dim.png";
6699 description { state: "focused" 0.0;
6700 inherit: "default" 0.0;
6701 image.normal: "00_messagebubble_button_sent_press.png";
6704 part { name: "elm.text";
6707 effect: FAR_SHADOW BOTTOM;
6710 description { state: "default" 0.0;
6714 to_x: "padding_after_icon";
6715 to_y: "padding_left_top";
6719 to: "padding_right_bottom";
6721 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6722 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6724 font: "Tizen:style=Regular";
6725 size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
6728 text_class: "tizen";
6731 description { state: "visible" 0.0;
6732 inherit: "default" 0.0;
6735 description { state: "clicked" 0.0;
6736 inherit: "default" 0.0;
6738 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6740 description { state: "disabled" 0.0;
6741 inherit: "default" 0.0;
6743 description { state: "disabled_visible" 0.0;
6744 inherit: "default" 0.0;
6745 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6748 description { state: "focused" 0.0;
6749 inherit: "default" 0.0;
6751 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6757 ////////////////////////////////////////////////////////////////////////
6758 group { name: "elm/button/base/bubble_sent/multiline";
6759 inherit: "elm/button/base/bubble_sent";
6761 style { name: "bubble_sent_multiline";
6762 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";
6769 part { name: "elm.text";
6772 effect: FAR_SHADOW BOTTOM;
6775 description { state: "default" 0.0;
6780 to_x: "padding_after_icon";
6781 to_y: "padding_left_top";
6785 to: "padding_right_bottom";
6787 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6788 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6790 style: "bubble_sent_multiline";
6793 description { state: "visible" 0.0;
6794 inherit: "default" 0.0;
6797 description { state: "clicked" 0.0;
6798 inherit: "default" 0.0;
6800 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6802 description { state: "disabled" 0.0;
6803 inherit: "default" 0.0;
6805 description { state: "disabled_visible" 0.0;
6806 inherit: "default" 0.0;
6807 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6810 description { state: "focused" 0.0;
6811 inherit: "default" 0.0;
6813 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6819 ///////////////////////////////////////////////////////////////////////
6820 group { name: "elm/button/base/bubble_receive";
6821 inherit: "elm/button/base/style1";
6823 image: "00_messagebubble_button_receive.png" COMP;
6824 image: "00_messagebubble_button_receive_press.png" COMP;
6825 image: "00_messagebubble_button_receive_dim.png" COMP;
6828 part { name: "button_image";
6830 description { state: "default" 0.0;
6832 normal: "00_messagebubble_button_receive.png";
6833 border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
6837 description { state: "clicked" 0.0;
6838 inherit: "default" 0.0;
6839 image.normal: "00_messagebubble_button_receive_press.png";
6841 description { state: "disabled" 0.0;
6842 inherit: "default" 0.0;
6843 image.normal: "00_messagebubble_button_receive_dim.png";
6845 description { state: "focused" 0.0;
6846 inherit: "default" 0.0;
6847 image.normal: "00_messagebubble_button_receive_press.png";
6850 part { name: "elm.text";
6853 effect: SHADOW BOTTOM;
6856 description { state: "default" 0.0;
6860 to_x: "padding_after_icon";
6861 to_y: "padding_left_top";
6865 to: "padding_right_bottom";
6867 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6868 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6870 font: "Tizen:style=Regular";
6871 size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
6874 text_class: "tizen";
6877 description { state: "visible" 0.0;
6878 inherit: "default" 0.0;
6881 description { state: "clicked" 0.0;
6882 inherit: "default" 0.0;
6884 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6886 description { state: "disabled" 0.0;
6887 inherit: "default" 0.0;
6889 description { state: "disabled_visible" 0.0;
6890 inherit: "default" 0.0;
6891 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6894 description { state: "focused" 0.0;
6895 inherit: "default" 0.0;
6897 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6903 ///////////////////////////////////////////////////////////////////////
6904 group { name: "elm/button/base/bubble_receive/multiline";
6905 inherit: "elm/button/base/bubble_receive";
6907 style { name: "bubble_receive_multiline";
6908 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";
6915 part { name: "elm.text";
6918 effect: SHADOW BOTTOM;
6921 description { state: "default" 0.0;
6926 to_x: "padding_after_icon";
6927 to_y: "padding_left_top";
6931 to: "padding_right_bottom";
6933 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6934 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6936 style: "btn_style1_multiline";
6939 description { state: "visible" 0.0;
6940 inherit: "default" 0.0;
6943 description { state: "clicked" 0.0;
6944 inherit: "default" 0.0;
6946 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6948 description { state: "disabled" 0.0;
6949 inherit: "default" 0.0;
6951 description { state: "disabled_visible" 0.0;
6952 inherit: "default" 0.0;
6953 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6956 description { state: "focused" 0.0;
6957 inherit: "default" 0.0;
6959 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6965 ///////////////////////////////////////////////////////////////////////
6966 group { name: "elm/button/base/bubble_circle/receive";
6968 image: "00_messagebubble_circle_receive.png" COMP;
6969 image: "00_messagebubble_circle_receive_press.png" COMP;
6970 image: "00_messagebubble_circle_receive_dim.png" COMP;
6971 image: "00_button_right.png" COMP;
6972 image: "00_button_right_press.png" COMP;
6975 part { name: "button_image";
6977 description { state: "default" 0.0;
6978 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6979 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6980 image.normal: "00_messagebubble_circle_receive.png";
6983 state: "clicked" 0.0;
6984 inherit: "default" 0.0;
6985 image.normal: "00_messagebubble_circle_receive_press.png";
6988 state: "disabled" 0.0;
6989 inherit: "default" 0.0;
6990 image.normal: "00_messagebubble_circle_receive_dim.png";
6993 part { name: "image";
6995 clip_to: "icon_clipper";
6996 description { state: "default" 0.0;
6997 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6998 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6999 image.normal: "00_button_right.png";
7002 state: "clicked" 0.0;
7003 inherit: "default" 0.0;
7004 image.normal: "00_button_right_press.png";
7007 state: "disabled" 0.0;
7008 inherit: "default" 0.0;
7011 part { name: "icon_clipper";
7014 description { state: "default" 0.0;
7015 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
7017 description { state: "clicked" 0.0;
7018 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
7020 description { state: "disabled" 0.0;
7021 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
7024 part { name: "over1";
7026 ignore_flags: ON_HOLD;
7027 description { state: "default" 0.0;
7031 part { name: "over2";
7034 description { state: "default" 0.0;
7038 part { name: "disabler";
7040 description { state: "default" 0.0;
7044 description { state: "disabled" 0.0;
7045 inherit: "default" 0.0;
7051 program { name: "button_click";
7052 signal: "mouse,down,1";
7054 action: SIGNAL_EMIT "elm,action,press" "";
7055 after: "button_click_anim";
7057 program { name: "button_click_anim";
7058 action: STATE_SET "clicked" 0.0;
7059 target: "button_image";
7061 target: "icon_clipper";
7063 program { name: "button_double_click";
7064 signal: "mouse,down,1,double";
7066 after: "button_click_anim";
7068 program { name: "button_unclick";
7069 signal: "mouse,up,1";
7071 action: SIGNAL_EMIT "elm,action,unpress" "";
7072 after: "button_unclick_anim";
7074 program { name: "button_unclick_anim";
7075 action: STATE_SET "default" 0.0;
7076 target: "button_image";
7078 target: "icon_clipper";
7080 program { name: "touch_snd";
7081 signal: "mouse,clicked,1";
7083 action: PLAY_SAMPLE "touch_sound" 1.0;
7084 after: button_unclick3;
7086 program { name: "button_unclick3";
7087 action: SIGNAL_EMIT "elm,action,click" "";
7089 program { name: "disable";
7090 signal: "elm,state,disabled";
7092 action: STATE_SET "disabled" 0.0;
7094 target: "button_image";
7095 target: "icon_clipper";
7098 program { name: "enable";
7099 signal: "elm,state,enabled";
7101 action: STATE_SET "default" 0.0;
7103 target: "button_image";
7104 target: "icon_clipper";
7109 ///////////////////////////////////////////////////////////////////////
7110 group { name: "elm/button/base/bubble_circle/sent";
7112 image: "00_messagebubble_circle_sent.png" COMP;
7113 image: "00_messagebubble_circle_sent_press.png" COMP;
7114 image: "00_messagebubble_circle_sent_dim.png" COMP;
7115 image: "00_button_right.png" COMP;
7116 image: "00_button_right_press.png" COMP;
7119 part { name: "button_image";
7121 description { state: "default" 0.0;
7122 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7123 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7124 image.normal: "00_messagebubble_circle_sent.png";
7127 state: "clicked" 0.0;
7128 inherit: "default" 0.0;
7129 image.normal: "00_messagebubble_circle_sent_press.png";
7132 state: "disabled" 0.0;
7133 inherit: "default" 0.0;
7134 image.normal: "00_messagebubble_circle_sent_dim.png";
7137 part { name: "image";
7139 clip_to: "icon_clipper";
7140 description { state: "default" 0.0;
7141 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7142 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7143 image.normal: "00_button_right.png";
7146 state: "clicked" 0.0;
7147 inherit: "default" 0.0;
7148 image.normal: "00_button_right_press.png";
7151 state: "disabled" 0.0;
7152 inherit: "default" 0.0;
7155 part { name: "icon_clipper";
7158 description { state: "default" 0.0;
7159 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
7161 description { state: "clicked" 0.0;
7162 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
7164 description { state: "disabled" 0.0;
7165 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
7168 part { name: "over1";
7170 ignore_flags: ON_HOLD;
7171 description { state: "default" 0.0;
7175 part { name: "over2";
7178 description { state: "default" 0.0;
7182 part { name: "disabler";
7184 description { state: "default" 0.0;
7188 description { state: "disabled" 0.0;
7189 inherit: "default" 0.0;
7195 program { name: "button_click";
7196 signal: "mouse,down,1";
7198 action: SIGNAL_EMIT "elm,action,press" "";
7199 after: "button_click_anim";
7201 program { name: "button_click_anim";
7202 action: STATE_SET "clicked" 0.0;
7203 target: "button_image";
7205 target: "icon_clipper";
7207 program { name: "button_double_click";
7208 signal: "mouse,down,1,double";
7210 after: "button_click_anim";
7212 program { name: "button_unclick";
7213 signal: "mouse,up,1";
7215 action: SIGNAL_EMIT "elm,action,unpress" "";
7216 after: "button_unclick_anim";
7218 program { name: "button_unclick_anim";
7219 action: STATE_SET "default" 0.0;
7220 target: "button_image";
7222 target: "icon_clipper";
7224 program { name: "touch_snd";
7225 signal: "mouse,clicked,1";
7227 action: PLAY_SAMPLE "touch_sound" 1.0;
7228 after: button_unclick3;
7230 program { name: "button_unclick3";
7231 action: SIGNAL_EMIT "elm,action,click" "";
7233 program { name: "disable";
7234 signal: "elm,state,disabled";
7236 action: STATE_SET "disabled" 0.0;
7238 target: "button_image";
7239 target: "icon_clipper";
7241 program { name: "enable";
7242 signal: "elm,state,enabled";
7244 action: STATE_SET "default" 0.0;
7246 target: "button_image";
7247 target: "icon_clipper";
7252 //////////////////////////////////////////////////////////////////////////////////////
7253 group { name: "elm/button/base/editfield_rename";
7255 image: "00_edit_field_rename.png" COMP;
7258 part { name: "button_image";
7261 description { state: "default" 0.0;
7264 description { state: "clicked" 0.0;
7265 inherit: "default" 0.0;
7267 description { state: "disabled" 0.0;
7268 inherit: "default" 0.0;
7270 description { state: "focused" 0.0;
7271 inherit: "default" 0.0;
7274 part { name: "rename_button";
7277 clip_to: "rename_button.clipper";
7278 description { state: "default" 0.0;
7279 min: BUTTON_EDITFIELD_RENAME_BUTTON_MIN_MAX_INC;
7280 max: BUTTON_EDITFIELD_RENAME_BUTTON_MIN_MAX_INC;
7283 image.normal: "00_edit_field_rename.png";
7286 part { name: "rename_button.clipper";
7288 description { state: "default" 0.0;
7289 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7291 description { state: "clicked" 0.0;
7292 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7294 description { state: "disabled" 0.0;
7295 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7298 part { name: "over2";
7300 ignore_flags: ON_HOLD;
7301 description { state: "default" 0.0;
7305 part { name: "over3";
7308 description { state: "default" 0.0;
7312 part { name: "disabler";
7314 description { state: "default" 0.0;
7318 description { state: "disabled" 0.0;
7319 inherit: "default" 0.0;
7325 program { name: "button_click";
7326 signal: "mouse,down,1";
7328 action: SIGNAL_EMIT "elm,action,press" "";
7329 after: "button_click_anim";
7331 program { name: "button_click_anim";
7332 action: STATE_SET "clicked" 0.0;
7333 target: "button_image";
7334 target: "rename_button.clipper";
7336 program { name: "button_double_click";
7337 signal: "mouse,down,1,double";
7339 after: "button_click_anim";
7341 program { name: "button_unclick";
7342 signal: "mouse,up,1";
7344 action: SIGNAL_EMIT "elm,action,unpress" "";
7345 after: "button_unclick_anim";
7347 program { name: "button_unclick_anim";
7348 action: STATE_SET "default" 0.0;
7349 target: "button_image";
7350 target: "rename_button.clipper";
7352 program { name: "touch_snd";
7353 signal: "mouse,clicked,1";
7355 action: PLAY_SAMPLE "touch_sound" 1.0;
7356 after: "button_unclick3";
7358 program { name: "button_unclick3";
7359 action: SIGNAL_EMIT "elm,action,click" "";
7361 program { name: "disable";
7362 signal: "elm,state,disabled";
7364 action: STATE_SET "disabled" 0.0;
7365 target: "button_image";
7367 target: "rename_button.clipper";
7369 program { name: "enable";
7370 signal: "elm,state,enabled";
7372 action: STATE_SET "default" 0.0;
7373 target: "button_image";
7375 target: "rename_button.clipper";
7379 group { name: "elm/button/base/editfield_clear";
7381 image: "00_edit_field_clear.png" COMP;
7384 part { name: "button_image";
7387 description { state: "default" 0.0;
7390 description { state: "clicked" 0.0;
7391 inherit: "default" 0.0;
7393 description { state: "disabled" 0.0;
7394 inherit: "default" 0.0;
7396 description { state: "focused" 0.0;
7397 inherit: "default" 0.0;
7400 part { name: "clear_button";
7403 clip_to: "clear_button.clipper";
7404 description { state: "default" 0.0;
7405 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7406 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7409 image.normal: "00_edit_field_clear.png";
7412 part { name: "clear_button.clipper";
7414 description { state: "default" 0.0;
7415 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7417 description { state: "clicked" 0.0;
7418 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7420 description { state: "disabled" 0.0;
7421 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7424 part { name: "over2";
7426 ignore_flags: ON_HOLD;
7427 description { state: "default" 0.0;
7431 part { name: "over3";
7434 description { state: "default" 0.0;
7438 part { name: "disabler";
7440 description { state: "default" 0.0;
7444 description { state: "disabled" 0.0;
7445 inherit: "default" 0.0;
7451 program { name: "button_click";
7452 signal: "mouse,down,1";
7454 action: SIGNAL_EMIT "elm,action,press" "";
7455 after: "button_click_anim";
7457 program { name: "button_click_anim";
7458 action: STATE_SET "clicked" 0.0;
7459 target: "button_image";
7460 target: "clear_button.clipper";
7462 program { name: "button_double_click";
7463 signal: "mouse,down,1,double";
7465 after: "button_click_anim";
7467 program { name: "button_unclick";
7468 signal: "mouse,up,1";
7470 action: SIGNAL_EMIT "elm,action,unpress" "";
7471 after: "button_unclick_anim";
7473 program { name: "button_unclick_anim";
7474 action: STATE_SET "default" 0.0;
7475 target: "button_image";
7476 target: "clear_button.clipper";
7478 program { name: "touch_snd";
7479 signal: "mouse,clicked,1";
7481 action: PLAY_SAMPLE "touch_sound" 1.0;
7482 after: button_unclick3;
7484 program { name: "button_unclick3";
7485 action: SIGNAL_EMIT "elm,action,click" "";
7487 program { name: "disable";
7488 signal: "elm,state,disabled";
7490 action: STATE_SET "disabled" 0.0;
7491 target: "button_image";
7493 target: "clear_button.clipper";
7495 program { name: "enable";
7496 signal: "elm,state,enabled";
7498 action: STATE_SET "default" 0.0;
7499 target: "button_image";
7501 target: "clear_button.clipper";
7506 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
7507 group { name: "elm/button/base/"style_name; \
7509 item: "focus_highlight" "on"; \
7512 image: image_normal COMP; \
7515 part { name: "elm.swallow.content"; \
7518 description { state: "default" 0.0; \
7521 part { name: "focus_image"; \
7525 description { state: "default" 0.0; \
7528 normal: image_normal; \
7533 description { state: "focused" 0.0; \
7534 inherit: "default" 0.0; \
7538 part { name: "over2"; \
7541 ignore_flags: ON_HOLD; \
7542 description { state: "default" 0.0; \
7546 part { name: "over3"; \
7549 description { state: "default" 0.0; \
7555 program { name: "button_click"; \
7556 signal: "mouse,down,1"; \
7558 action: SIGNAL_EMIT "elm,action,press" ""; \
7560 program { name: "button_unclick"; \
7561 signal: "mouse,up,1"; \
7563 action: SIGNAL_EMIT "elm,action,unpress" ""; \
7565 program { name: "button_click3"; \
7566 signal: "mouse,clicked,1"; \
7568 action: SIGNAL_EMIT "elm,action,click" ""; \
7570 program { name: "action_focus"; \
7571 signal: "elm,action,focus_highlight,show"; \
7573 action: STATE_SET "focused" 0.0; \
7574 target: "focus_image"; \
7576 program { name: "action_unfocus"; \
7577 signal: "elm,action,focus_highlight,hide"; \
7579 action: STATE_SET "default" 0.0; \
7580 target: "focus_image"; \
7585 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
7586 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
7587 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
7588 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
7590 group { name: "elm/button/base/search_icon";
7592 image: "00_search_icon.png" COMP;
7595 part { name: "search_icon";
7598 clip_to: "search_icon.clipper";
7599 description { state: "default" 0.0;
7600 min: BUTTON_SEARCH_ICON_MIN_MAX_INC;
7601 max: BUTTON_SEARCH_ICON_MIN_MAX_INC;
7604 image.normal: "00_search_icon.png";
7607 part { name: "search_icon.clipper";
7609 description { state: "default" 0.0;
7610 color: BUTTON_SEARCH_ICON_CLIPPER_DEFAULT_COLOR_INC;
7612 description { state: "disabled" 0.0;
7613 color: BUTTON_SEARCH_ICON_CLIPPER_DISABLED_COLOR_INC;
7616 part { name: "over2";
7618 ignore_flags: ON_HOLD;
7619 description { state: "default" 0.0;
7623 part { name: "over3";
7626 description { state: "default" 0.0;
7630 part { name: "disabler";
7632 description { state: "default" 0.0;
7636 description { state: "disabled" 0.0;
7637 inherit: "default" 0.0;
7643 program { name: "button_click";
7644 signal: "mouse,down,1";
7646 action: SIGNAL_EMIT "elm,action,press" "";
7648 program { name: "button_double_click";
7649 signal: "mouse,down,1,double";
7652 program { name: "button_unclick";
7653 signal: "mouse,up,1";
7655 action: SIGNAL_EMIT "elm,action,unpress" "";
7657 program { name: "touch_snd";
7658 signal: "mouse,clicked,1";
7660 action: PLAY_SAMPLE "touch_sound" 1.0;
7661 after: "button_unclick3";
7663 program { name: "button_unclick3";
7664 action: SIGNAL_EMIT "elm,action,click" "";
7666 program { name: "disable";
7667 signal: "elm,state,disabled";
7669 action: STATE_SET "disabled" 0.0;
7671 target: "search_icon.clipper";
7673 program { name: "enable";
7674 signal: "elm,state,enabled";
7676 action: STATE_SET "default" 0.0;
7678 target: "search_icon.clipper";
7682 group { name: "elm/button/base/search_rename";
7683 inherit: "elm/button/base/editfield_rename";
7685 part { name: "rename_button";
7688 clip_to: "rename_button.clipper";
7689 description { state: "default" 0.0;
7690 min: BUTTON_SEARCH_RENAME_BUTTON_MIN_MAX_INC;
7691 max: BUTTON_SEARCH_RENAME_BUTTON_MIN_MAX_INC;
7694 image.normal: "00_edit_field_rename.png";
7700 group { name: "elm/button/base/search_clear";
7701 inherit: "elm/button/base/editfield_clear";
7703 part { name: "clear_button";
7706 clip_to: "clear_button.clipper";
7707 description { state: "default" 0.0;
7708 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7709 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7712 image.normal: "00_edit_field_clear.png";
7718 #undef BUTTON_STATE_ENABLED
7719 #undef BUTTON_STATE_DISABLED
7720 #undef BUTTON_LANDSCAPE_DISABLED
7721 #undef BUTTON_LANDSCAPE_ENABLED