3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 #define BUTTON_STATE_ENABLED 0
21 #define BUTTON_STATE_DISABLED 1
22 #define BUTTON_LANDSCAPE_DISABLED 0
23 #define BUTTON_LANDSCAPE_ENABLED 1
25 ///////////////////////////////////////////////////////////////////////////////////////
26 group { name: "elm/button/base/style1";
27 alias: "elm/button/base/text_only/style1";
28 alias: "elm/button/base/center";
29 alias: "elm/button/base/icon_and_text/center";
30 alias: "elm/button/base/nocontents/search_button";
31 alias: "elm/button/base/style1/multiline";
32 alias: "elm/button/base/sweep";
33 alias: "elm/button/base/text_only/sweep";
34 alias: "elm/button/base/hidden";
35 alias: "elm/button/base/sweep/multiline";
36 alias: "elm/button/base/style2";
37 alias: "elm/button/base/text_only/style2";
38 alias: "elm/button/base/style2/multiline";
40 item: "focus_highlight" "on";
43 image: "00_button_01.png" COMP;
44 image: "00_button_01_press.png" COMP;
45 image: "00_button_01_dim.png" COMP;
46 image: "00_button_01_focus.png" COMP;
49 style { name: "btn_base_style1";
50 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
55 style { name: "btn_base_style1_pressed";
56 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
63 public button_state = BUTTON_STATE_ENABLED;
66 part { name: "button_image";
68 description { state: "default" 0.0;
70 normal: "00_button_01.png";
71 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
75 description { state: "clicked" 0.0;
76 inherit: "default" 0.0;
77 image.normal: "00_button_01_press.png";
79 description { state: "disabled" 0.0;
80 inherit: "default" 0.0;
81 image.normal: "00_button_01_dim.png";
83 description { state: "focused" 0.0;
84 inherit: "default" 0.0;
85 image.normal: "00_button_01_press.png";
88 part { name: "focus_image";
92 description { state: "default" 0.0;
94 rel1.to : "button_image";
95 rel2.to : "button_image";
97 normal: "00_button_01_focus.png";
98 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
102 description { state: "focused" 0.0;
103 inherit: "default" 0.0;
107 part { name: "padding_left_top";
111 description { state: "default" 0.0;
113 rel2.relative: 0.0 0.0;
114 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
123 description { state: "default" 0.0;
124 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
127 description { state: "visible" 0.0;
128 inherit: "default" 0.0;
129 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
131 description { state: "icononly" 0.0;
132 inherit: "default" 0.0;
133 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
136 part { name: "padding_right_bottom";
140 description { state: "default" 0.0;
142 rel1.relative: 1.0 1.0;
143 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
148 part { name: "icon_rect";
152 description { state: "default" 0.0;
158 to: "padding_left_top";
162 to_x: "padding_left_top";
163 to_y: "padding_right_bottom";
167 description { state: "visible" 0.0;
168 inherit: "default" 0.0;
169 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
170 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
172 description { state: "icononly" 0.0;
173 inherit: "default" 0.0;
176 part { name: "padding_after_icon";
180 description { state: "default" 0.0; //when only icon or no icon is there
186 rel2.to: "icon_rect";
191 description { state: "visible" 0.0;
192 inherit: "default" 0.0;
193 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
195 description { state: "icononly" 0.0;
196 inherit: "default" 0.0;
199 part { name: "padding_before_text";
203 description { state: "default" 0.0; //when only icon or no icon is there
208 to_y: "padding_left_top";
213 to_y: "padding_right_bottom";
216 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
220 part { name: "elm.swallow.content";
224 description { state: "default" 0.0;
229 to: "padding_left_top";
233 to_x: "padding_left_top";
234 to_y: "padding_right_bottom";
238 description { state: "visible" 0.0;
240 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
241 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
245 to_x: "padding_before_text";
246 to_y: "padding_left_top";
250 to_x: "padding_before_text";
251 to_y: "padding_right_bottom";
254 description { state: "icononly" 0.0;
255 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
256 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
259 part { name: "elm.text";
264 description { state: "default" 0.0;
268 to_x: "padding_after_icon";
269 to_y: "padding_left_top";
273 to: "padding_right_bottom";
276 style: "btn_base_style1";
279 description { state: "visible" 0.0;
280 inherit: "default" 0.0;
283 description { state: "clicked" 0.0;
284 inherit: "default" 0.0;
287 style: "btn_base_style1_pressed";
290 description { state: "disabled" 0.0;
291 inherit: "default" 0.0;
293 description { state: "disabled_visible" 0.0;
294 inherit: "default" 0.0;
295 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
298 description { state: "focused" 0.0;
299 inherit: "default" 0.0;
301 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
304 part { name: "over2";
307 ignore_flags: ON_HOLD;
308 description { state: "default" 0.0;
312 part { name: "over3";
315 description { state: "default" 0.0;
319 part { name: "clipper";
321 description { state: "default" 0.0;
322 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
324 description { state: "disabled" 0.0;
325 inherit: "default" 0.0;
326 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
329 part { name: "disabler";
331 description { state: "default" 0.0;
335 description { state: "disabled" 0.0;
336 inherit: "default" 0.0;
342 program { name: "button_click";
343 signal: "mouse,down,1";
345 action: SIGNAL_EMIT "elm,action,press" "";
346 after: "button_click_anim";
348 program { name: "button_click_anim";
349 action: STATE_SET "clicked" 0.0;
350 target: "button_image";
351 after: "text_clicked";
353 program { name: "text_clicked";
357 get_state(PART:"elm.text", st, 30, vl);
358 if (!strcmp(st, "visible"))
359 set_state(PART:"elm.text", "clicked", 0.0);
362 program { name: "button_double_click";
363 signal: "mouse,down,1,double";
365 after: "button_click_anim";
367 program { name: "button_unpress";
368 action: SIGNAL_EMIT "elm,action,unpress" "";
370 program { name: "button_mouseout_clicked";
371 signal: "mouse,up,1";
376 get_state(PART:"elm.swallow.content", st, 30, vl);
377 if (strcmp(st, "icononly"))
379 emit("elm,action,default,text,set", "");
380 set_state(PART:"elm.text", "visible", 0.0);
382 if (get_int(button_state) != BUTTON_STATE_DISABLED)
383 set_state(PART:"button_image", "default", 0.0);
385 after: button_unpress;
387 program { name: "touch_snd";
388 signal: "mouse,clicked,1";
390 action: PLAY_SAMPLE "touch_sound" 1.0;
391 after: button_unclick3;
393 program { name: "button_unclick3";
394 action: SIGNAL_EMIT "elm,action,click" "";
396 program { name: "text_show";
397 signal: "elm,state,text,visible";
402 get_state(PART:"elm.swallow.content", st, 30, vl);
403 if (!strcmp(st, "icononly"))
405 set_state(PART:"elm.swallow.content", "visible", 0.0);
406 set_state(PART:"icon_rect", "visible", 0.0);
407 set_state(PART:"padding_after_icon", "visible", 0.0);
408 set_state(PART:"bg", "visible", 0.0);
410 if (get_int(button_state) != BUTTON_STATE_DISABLED)
411 set_state(PART:"elm.text", "visible", 0.0);
413 set_state(PART:"elm.text", "disabled_visible", 0.0);
416 program { name: "text_hide";
417 signal: "elm,state,text,hidden";
422 get_state(PART:"elm.swallow.content", st, 30, vl);
423 if (!strcmp(st, "visible"))
425 set_state(PART:"elm.swallow.content", "icononly", 0.0);
426 set_state(PART:"icon_rect", "icononly", 0.0);
427 set_state(PART:"padding_after_icon", "icononly", 0.0);
428 set_state(PART:"bg", "icononly", 0.0);
430 set_state(PART:"elm.text", "default", 0.0);
433 program { name: "icon_show";
434 signal: "elm,state,icon,visible";
439 get_state(PART:"elm.text", st, 30, vl);
440 if (!strcmp(st, "visible"))
442 set_state(PART:"elm.swallow.content", "visible", 0.0);
443 set_state(PART:"icon_rect", "visible", 0.0);
444 set_state(PART:"padding_after_icon", "visible", 0.0);
445 set_state(PART:"bg", "visible", 0.0);
449 set_state(PART:"elm.swallow.content", "icononly", 0.0);
450 set_state(PART:"icon_rect", "icononly", 0.0);
451 set_state(PART:"padding_after_icon", "icononly", 0.0);
452 set_state(PART:"bg", "icononly", 0.0);
456 program { name: "icon_hide";
457 signal: "elm,state,icon,hidden";
459 action: STATE_SET "default" 0.0;
460 target: "elm.swallow.content";
461 target: "padding_after_icon";
465 program { name: "disable";
466 signal: "elm,state,disabled";
468 action: STATE_SET "disabled" 0.0;
469 target: "button_image";
472 after: "disable_text";
474 program { name: "disable_text";
478 get_state(PART:"elm.text", st, 30, vl);
479 if (!strcmp(st, "visible"))
480 set_state(PART:"elm.text", "disabled_visible", 0.0);
482 set_state(PART:"elm.text", "disabled", 0.0);
483 set_int(button_state, BUTTON_STATE_DISABLED);
486 program { name: "enable";
487 signal: "elm,state,enabled";
489 action: STATE_SET "default" 0.0;
490 target: "button_image";
493 after: "enable_text";
495 program { name: "enable_text";
499 get_state(PART:"elm.text", st, 30, vl);
500 if (!strcmp(st, "disabled_visible"))
501 set_state(PART:"elm.text", "visible", 0.0);
503 set_state(PART:"elm.text", "default", 0.0);
504 set_int(button_state, BUTTON_STATE_ENABLED);
507 program { name: "action_focus";
508 signal: "elm,action,focus_highlight,show";
510 action: STATE_SET "focused" 0.0;
511 target: "focus_image";
513 program { name: "action_unfocus";
514 signal: "elm,action,focus_highlight,hide";
516 action: STATE_SET "default" 0.0;
517 target: "focus_image";
522 //////////////////////////////////////////////////////////////
523 group { name: "elm/button/base/style1/auto_expand";
524 inherit: "elm/button/base/style1";
526 part { name: "elm.text";
531 description { state: "default" 0.0;
535 to_x: "padding_after_icon";
536 to_y: "padding_left_top";
540 to: "padding_right_bottom";
543 style: "btn_base_style1";
548 description { state: "visible" 0.0;
549 inherit: "default" 0.0;
552 description { state: "clicked" 0.0;
553 inherit: "default" 0.0;
556 style: "btn_base_style1_pressed";
559 description { state: "disabled" 0.0;
560 inherit: "default" 0.0;
562 description { state: "disabled_visible" 0.0;
563 inherit: "default" 0.0;
564 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
567 description { state: "focused" 0.0;
568 inherit: "default" 0.0;
570 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
576 //////////////////////////////////////////////////////////////////////////////////////
577 group { name: "elm/button/base/datetime/ampm/default";
578 alias: "elm/button/base/datetime_ampm/default";
579 inherit: "elm/button/base/style1/auto_expand";
581 part { name: "button_image";
583 description { state: "default" 0.0;
585 normal: "00_button_01.png";
586 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
589 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
590 max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
592 description { state: "clicked" 0.0;
593 inherit: "default" 0.0;
594 image.normal: "00_button_01_press.png";
596 description { state: "disabled" 0.0;
597 inherit: "default" 0.0;
598 image.normal: "00_button_01_dim.png";
600 description { state: "focused" 0.0;
601 inherit: "default" 0.0;
602 image.normal: "00_button_01_press.png";
609 description { state: "default" 0.0;
613 description { state: "visible" 0.0;
614 inherit: "default" 0.0;
615 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
617 description { state: "icononly" 0.0;
618 inherit: "default" 0.0;
621 part { name: "elm.text";
626 description { state: "default" 0.0;
630 style: "btn_base_style1";
631 size: BUTTON_DATETIME_AMPM_TEXT_FONT_SIZE_INC;
635 description { state: "visible" 0.0;
636 inherit: "default" 0.0;
639 description { state: "clicked" 0.0;
640 inherit: "default" 0.0;
643 style: "btn_base_style1_pressed";
646 description { state: "disabled" 0.0;
647 inherit: "default" 0.0;
649 description { state: "disabled_visible" 0.0;
650 inherit: "default" 0.0;
651 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
654 description { state: "focused" 0.0;
655 inherit: "default" 0.0;
657 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
663 ///////////////////////////////////////////////////////////////////////////////////////
664 group { name: "elm/button/base/style1/delete";
665 alias: "elm/button/base/sweep/delete";
666 alias: "elm/button/base/sweep/delete/multiline";
667 inherit: "elm/button/base/style1";
669 image: "00_button_01_delete.png" COMP;
670 image: "00_button_01_delete_dim.png" COMP;
671 image: "00_button_01_delete_press.png" COMP;
674 part { name: "button_image";
676 description { state: "default" 0.0;
678 normal: "00_button_01_delete.png";
679 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
683 description { state: "clicked" 0.0;
684 inherit: "default" 0.0;
685 image.normal: "00_button_01_delete_press.png";
687 description { state: "disabled" 0.0;
688 inherit: "default" 0.0;
689 image.normal: "00_button_01_delete_dim.png";
691 description { state: "focused" 0.0;
692 inherit: "default" 0.0;
693 image.normal: "00_button_01_delete_press.png";
696 part { name: "elm.text";
701 description { state: "default" 0.0;
705 to_x: "padding_after_icon";
706 to_y: "padding_left_top";
710 to: "padding_right_bottom";
713 style: "btn_base_style1";
716 description { state: "visible" 0.0;
717 inherit: "default" 0.0;
720 description { state: "clicked" 0.0;
721 inherit: "default" 0.0;
724 style: "btn_base_style1_pressed";
727 description { state: "disabled" 0.0;
728 inherit: "default" 0.0;
730 description { state: "disabled_visible" 0.0;
731 inherit: "default" 0.0;
732 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
735 description { state: "focused" 0.0;
736 inherit: "default" 0.0;
738 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
744 ///////////////////////////////////////////////////////////////////////////////////////
745 group { name: "elm/button/base/search_button/text";
746 alias: "elm/button/base/searchbar/default";
747 inherit: "elm/button/base/style1";
749 image: "00_button_01.png" COMP;
750 image: "00_button_01_dim.png" COMP;
751 image: "00_button_01_press.png" COMP;
754 part { name: "button_image";
756 description { state: "default" 0.0;
758 normal: "00_button_01.png";
759 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
763 description { state: "clicked" 0.0;
764 inherit: "default" 0.0;
765 image.normal: "00_button_01_press.png";
767 description { state: "disabled" 0.0;
768 inherit: "default" 0.0;
769 image.normal: "00_button_01_dim.png";
771 description { state: "focused" 0.0;
772 inherit: "default" 0.0;
773 image.normal: "00_button_01_press.png";
780 description { state: "default" 0.0;
781 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
784 description { state: "visible" 0.0;
785 inherit: "default" 0.0;
786 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
788 description { state: "icononly" 0.0;
789 inherit: "default" 0.0;
790 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
793 part { name: "elm.text";
796 effect: SHADOW BOTTOM;
799 description { state: "default" 0.0;
803 to_x: "padding_after_icon";
804 to_y: "padding_left_top";
808 to: "padding_right_bottom";
810 color: BUTTON_SEARCH_BUTTON_TEXT_NORMAL_COLOR_INC;
812 font: "Tizen:style=Regular";
813 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
819 description { state: "visible" 0.0;
820 inherit: "default" 0.0;
823 description { state: "clicked" 0.0;
824 inherit: "default" 0.0;
826 color: BUTTON_SEARCH_BUTTON_TEXT_PRESSED_COLOR_INC;
827 color2: BUTTON_SEARCH_BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
829 description { state: "disabled" 0.0;
830 inherit: "default" 0.0;
832 description { state: "disabled_visible" 0.0;
833 inherit: "default" 0.0;
834 color: BUTTON_SEARCH_BUTTON_TEXT_DISABLED_COLOR_INC;
837 description { state: "focused" 0.0;
838 inherit: "default" 0.0;
840 color: BUTTON_SEARCH_BUTTON_TEXT_FOCUSED_COLOR_INC;
846 ///////////////////////////////////////////////////////////////////////////////////////
847 group { name: "elm/button/base/search_button/send";
848 inherit: "elm/button/base/style1";
850 image: "00_button_01_send.png" COMP;
851 image: "00_button_01_send_dim.png" COMP;
852 image: "00_button_01_send_press.png" COMP;
855 part { name: "button_image";
857 description { state: "default" 0.0;
859 normal: "00_button_01_send.png";
860 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
864 description { state: "clicked" 0.0;
865 inherit: "default" 0.0;
866 image.normal: "00_button_01_send_press.png";
868 description { state: "disabled" 0.0;
869 inherit: "default" 0.0;
870 image.normal: "00_button_01_send_dim.png";
872 description { state: "focused" 0.0;
873 inherit: "default" 0.0;
874 image.normal: "00_button_01_send_press.png";
881 description { state: "default" 0.0;
882 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
885 description { state: "visible" 0.0;
886 inherit: "default" 0.0;
887 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
889 description { state: "icononly" 0.0;
890 inherit: "default" 0.0;
891 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
894 part { name: "elm.text";
897 effect: SHADOW BOTTOM;
900 description { state: "default" 0.0;
904 to_x: "padding_after_icon";
905 to_y: "padding_left_top";
909 to: "padding_right_bottom";
911 color: BUTTON_SEARCH_BUTTON_SEND_NORMAL_COLOR_INC;
912 color2: BUTTON_SEARCH_BUTTON_SEND_SHADOW_NORMAL_COLOR_INC;
914 font: "Tizen:style=Regular";
915 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
921 description { state: "visible" 0.0;
922 inherit: "default" 0.0;
925 description { state: "clicked" 0.0;
926 inherit: "default" 0.0;
928 color: BUTTON_SEARCH_BUTTON_SEND_PRESSED_COLOR_INC;
930 description { state: "disabled" 0.0;
931 inherit: "default" 0.0;
933 description { state: "disabled_visible" 0.0;
934 inherit: "default" 0.0;
935 color: BUTTON_SEARCH_BUTTON_SEND_DISABLED_COLOR_INC;
938 description { state: "focused" 0.0;
939 inherit: "default" 0.0;
941 color: BUTTON_SEARCH_BUTTON_SEND_FOCUSED_COLOR_INC;
947 ///////////////////////////////////////////////////////////////////////////////////////
948 group { name: "elm/button/base/search_button/cancel";
949 inherit: "elm/button/base/style1";
951 image: "00_button_01_delete.png" COMP;
952 image: "00_button_01_delete_dim.png" COMP;
953 image: "00_button_01_delete_press.png" COMP;
956 part { name: "button_image";
958 description { state: "default" 0.0;
960 normal: "00_button_01_delete.png";
961 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
965 description { state: "clicked" 0.0;
966 inherit: "default" 0.0;
967 image.normal: "00_button_01_delete_press.png";
969 description { state: "disabled" 0.0;
970 inherit: "default" 0.0;
971 image.normal: "00_button_01_delete_dim.png";
973 description { state: "focused" 0.0;
974 inherit: "default" 0.0;
975 image.normal: "00_button_01_delete_press.png";
982 description { state: "default" 0.0;
983 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
986 description { state: "visible" 0.0;
987 inherit: "default" 0.0;
988 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
990 description { state: "icononly" 0.0;
991 inherit: "default" 0.0;
992 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
995 part { name: "elm.text";
998 effect: SHADOW BOTTOM;
1001 description { state: "default" 0.0;
1005 to_x: "padding_after_icon";
1006 to_y: "padding_left_top";
1010 to: "padding_right_bottom";
1012 color: BUTTON_SEARCH_BUTTON_CANCEL_NORMAL_COLOR_INC;
1013 color2: BUTTON_SEARCH_BUTTON_CANCEL_SHADOW_NORMAL_COLOR_INC;
1015 font: "Tizen:style=Regular";
1016 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
1019 text_class: "tizen";
1022 description { state: "visible" 0.0;
1023 inherit: "default" 0.0;
1026 description { state: "clicked" 0.0;
1027 inherit: "default" 0.0;
1029 color: BUTTON_SEARCH_BUTTON_CANCEL_PRESSED_COLOR_INC;
1031 description { state: "disabled" 0.0;
1032 inherit: "default" 0.0;
1034 description { state: "disabled_visible" 0.0;
1035 inherit: "default" 0.0;
1036 color: BUTTON_SEARCH_BUTTON_CANCEL_DISABLED_COLOR_INC;
1039 description { state: "focused" 0.0;
1040 inherit: "default" 0.0;
1042 color: BUTTON_SEARCH_BUTTON_CANCEL_FOCUSED_COLOR_INC;
1048 ///////////////////////////////////////////////////////////////////////////////////////
1049 /* group { name: "elm/button/base/style2";
1050 alias: "elm/button/base/text_only/style2";
1051 alias: "elm/button/base/style2/multiline";
1053 item: "focus_highlight" "on";
1056 image: "00_button_01.png" COMP;
1057 image: "00_button_01_press.png" COMP;
1058 image: "00_button_01_dim.png" COMP;
1059 image: "00_button_01_focus.png" COMP;
1062 public button_state = BUTTON_STATE_ENABLED;
1065 part { name: "button_image";
1067 description { state: "default" 0.0;
1069 normal: "00_button_01.png";
1070 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1074 description { state: "clicked" 0.0;
1075 inherit: "default" 0.0;
1076 image.normal: "00_button_01_press.png";
1078 description { state: "disabled" 0.0;
1079 inherit: "default" 0.0;
1080 image.normal: "00_button_01_dim.png";
1082 description { state: "focused" 0.0;
1083 inherit: "default" 0.0;
1084 image.normal: "00_button_01_press.png";
1087 part { name: "focus_image";
1091 description { state: "default" 0.0;
1093 rel1.to : "button_image";
1094 rel2.to : "button_image";
1096 normal: "00_button_01_focus.png";
1097 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1101 description { state: "focused" 0.0;
1102 inherit: "default" 0.0;
1106 part { name: "padding_left_top";
1110 description { state: "default" 0.0;
1112 rel2.relative: 0.0 0.0;
1113 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1122 description { state: "default" 0.0;
1123 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1126 description { state: "visible" 0.0;
1127 inherit: "default" 0.0;
1128 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1130 description { state: "icononly" 0.0;
1131 inherit: "default" 0.0;
1132 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1135 part { name: "padding_right_bottom";
1139 description { state: "default" 0.0;
1141 rel1.relative: 1.0 1.0;
1142 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1147 part { name: "icon_rect";
1151 description { state: "default" 0.0;
1157 to: "padding_left_top";
1161 to_x: "padding_left_top";
1162 to_y: "padding_right_bottom";
1166 description { state: "visible" 0.0;
1167 inherit: "default" 0.0;
1168 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1169 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1171 description { state: "icononly" 0.0;
1172 inherit: "default" 0.0;
1175 part { name: "padding_after_icon";
1179 description { state: "default" 0.0; //when only icon or no icon is there
1187 rel2.to: "icon_rect";
1190 description { state: "visible" 0.0;
1191 inherit: "default" 0.0;
1192 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1194 description { state: "icononly" 0.0;
1195 inherit: "default" 0.0;
1198 part { name: "padding_before_text";
1202 description { state: "default" 0.0; //when only icon or no icon is there
1207 to_y: "padding_left_top";
1212 to_y: "padding_right_bottom";
1215 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1219 part { name: "elm.swallow.content";
1223 description { state: "default" 0.0;
1228 to: "padding_left_top";
1232 to_x: "padding_left_top";
1233 to_y: "padding_right_bottom";
1237 description { state: "visible" 0.0;
1239 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1240 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1244 to_x: "padding_before_text";
1245 to_y: "padding_left_top";
1249 to_x: "padding_before_text";
1250 to_y: "padding_right_bottom";
1253 description { state: "icononly" 0.0;
1254 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1255 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1258 part { name: "elm.text";
1263 effect: SHADOW BOTTOM;
1264 description { state: "default" 0.0;
1268 to_x: "padding_after_icon";
1269 to_y: "padding_left_top";
1273 to: "padding_right_bottom";
1275 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1276 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1278 font: "Tizen:style=Regular";
1279 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1282 text_class: "tizen";
1285 description { state: "visible" 0.0;
1286 inherit: "default" 0.0;
1289 description { state: "clicked" 0.0;
1290 inherit: "default" 0.0;
1292 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1294 description { state: "disabled" 0.0;
1295 inherit: "default" 0.0;
1297 description { state: "disabled_visible" 0.0;
1298 inherit: "default" 0.0;
1299 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1302 description { state: "focused" 0.0;
1303 inherit: "default" 0.0;
1305 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1308 part { name: "over2";
1311 ignore_flags: ON_HOLD;
1312 description { state: "default" 0.0;
1316 part { name: "over3";
1319 description { state: "default" 0.0;
1323 part { name: "clipper";
1325 description { state: "default" 0.0;
1326 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1328 description { state: "disabled" 0.0;
1329 inherit: "default" 0.0;
1330 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1333 part { name: "disabler";
1335 description { state: "default" 0.0;
1339 description { state: "disabled" 0.0;
1340 inherit: "default" 0.0;
1346 program { name: "button_click";
1347 signal: "mouse,down,1";
1349 action: SIGNAL_EMIT "elm,action,press" "";
1350 after: "button_click_anim";
1352 program { name: "button_click_anim";
1353 action: STATE_SET "clicked" 0.0;
1354 target: "button_image";
1355 after: "text_clicked";
1357 program { name: "text_clicked";
1361 get_state(PART:"elm.text", st, 30, vl);
1362 if (!strcmp(st, "visible"))
1363 set_state(PART:"elm.text", "clicked", 0.0);
1366 program { name: "button_double_click";
1367 signal: "mouse,down,1,double";
1369 after: "button_click_anim";
1371 program { name: "button_unpress";
1372 action: SIGNAL_EMIT "elm,action,unpress" "";
1374 program { name: "button_mouseout_clicked";
1375 signal: "mouse,up,1";
1380 get_state(PART:"elm.swallow.content", st, 30, vl);
1381 if (strcmp(st, "icononly"))
1383 emit("elm,action,default,text,set", "");
1384 set_state(PART:"elm.text", "visible", 0.0);
1386 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1387 set_state(PART:"button_image", "default", 0.0);
1389 after: button_unpress;
1391 program { name: "touch_snd";
1392 signal: "mouse,clicked,1";
1394 action: PLAY_SAMPLE "touch_sound" 1.0;
1395 after: button_unclick3;
1397 program { name: "button_unclick3";
1398 action: SIGNAL_EMIT "elm,action,click" "";
1400 program { name: "text_show";
1401 signal: "elm,state,text,visible";
1406 get_state(PART:"elm.swallow.content", st, 30, vl);
1407 if (!strcmp(st, "icononly"))
1409 set_state(PART:"elm.swallow.content", "visible", 0.0);
1410 set_state(PART:"icon_rect", "visible", 0.0);
1411 set_state(PART:"padding_after_icon", "visible", 0.0);
1412 set_state(PART:"bg", "visible", 0.0);
1414 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1415 set_state(PART:"elm.text", "visible", 0.0);
1417 set_state(PART:"elm.text", "disabled_visible", 0.0);
1420 program { name: "text_hide";
1421 signal: "elm,state,text,hidden";
1426 get_state(PART:"elm.swallow.content", st, 30, vl);
1427 if (!strcmp(st, "visible"))
1429 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1430 set_state(PART:"icon_rect", "icononly", 0.0);
1431 set_state(PART:"padding_after_icon", "icononly", 0.0);
1432 set_state(PART:"bg", "icononly", 0.0);
1434 set_state(PART:"elm.text", "default", 0.0);
1437 program { name: "icon_show";
1438 signal: "elm,state,icon,visible";
1443 get_state(PART:"elm.text", st, 30, vl);
1444 if (!strcmp(st, "visible"))
1446 set_state(PART:"elm.swallow.content", "visible", 0.0);
1447 set_state(PART:"icon_rect", "visible", 0.0);
1448 set_state(PART:"padding_after_icon", "visible", 0.0);
1449 set_state(PART:"bg", "visible", 0.0);
1453 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1454 set_state(PART:"icon_rect", "icononly", 0.0);
1455 set_state(PART:"padding_after_icon", "icononly", 0.0);
1456 set_state(PART:"bg", "icononly", 0.0);
1460 program { name: "icon_hide";
1461 signal: "elm,state,icon,hidden";
1463 action: STATE_SET "default" 0.0;
1464 target: "elm.swallow.content";
1465 target: "padding_after_icon";
1466 target: "icon_rect";
1469 program { name: "disable";
1470 signal: "elm,state,disabled";
1472 action: STATE_SET "disabled" 0.0;
1473 target: "button_image";
1476 after: "disable_text";
1478 program { name: "disable_text";
1482 get_state(PART:"elm.text", st, 30, vl);
1483 if (!strcmp(st, "visible"))
1484 set_state(PART:"elm.text", "disabled_visible", 0.0);
1486 set_state(PART:"elm.text", "disabled", 0.0);
1487 set_int(button_state, BUTTON_STATE_DISABLED);
1490 program { name: "enable";
1491 signal: "elm,state,enabled";
1493 action: STATE_SET "default" 0.0;
1494 target: "button_image";
1497 after: "enable_text";
1499 program { name: "enable_text";
1503 get_state(PART:"elm.text", st, 30, vl);
1504 if (!strcmp(st, "disabled_visible"))
1505 set_state(PART:"elm.text", "visible", 0.0);
1507 set_state(PART:"elm.text", "default", 0.0);
1508 set_int(button_state, BUTTON_STATE_ENABLED);
1511 program { name: "action_focus";
1512 signal: "elm,action,focus_highlight,show";
1514 action: STATE_SET "focused" 0.0;
1515 target: "focus_image";
1517 program { name: "action_unfocus";
1518 signal: "elm,action,focus_highlight,hide";
1520 action: STATE_SET "default" 0.0;
1521 target: "focus_image";
1526 ///////////////////////////////////////////////////////////////////////////////////////
1527 group { name: "elm/button/base/sweep";
1528 alias: "elm/button/base/text_only/sweep";
1529 alias: "elm/button/base/hidden";
1530 alias: "elm/button/base/sweep/multiline";
1532 item: "focus_highlight" "on";
1535 image: "00_button_01.png" COMP;
1536 image: "00_button_01_press.png" COMP;
1537 image: "00_button_01_dim.png" COMP;
1538 image: "00_button_01_focus.png" COMP;
1541 public button_state = BUTTON_STATE_ENABLED;
1544 style { name: "btn_sweep_multiline";
1545 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";
1552 part { name: "button_image";
1554 description { state: "default" 0.0;
1555 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1557 normal: "00_button_01.png";
1558 border: BUTTON_SWEEP_BG_BORDER_INC;
1562 description { state: "clicked" 0.0;
1563 inherit: "default" 0.0;
1564 image.normal: "00_button_01_press.png";
1566 description { state: "disabled" 0.0;
1567 inherit: "default" 0.0;
1568 image.normal: "00_button_01_dim.png";
1570 description { state: "focused" 0.0;
1571 inherit: "default" 0.0;
1572 image.normal: "00_button_01_press.png";
1575 part { name: "focus_image";
1579 description { state: "default" 0.0;
1581 rel1.to : "button_image";
1582 rel2.to : "button_image";
1584 normal: "00_button_01_focus.png";
1585 border: BUTTON_SWEEP_BG_BORDER_INC;
1589 description { state: "focused" 0.0;
1590 inherit: "default" 0.0;
1594 part { name: "padding_left_top";
1598 description { state: "default" 0.0;
1600 rel2.relative: 0.0 0.0;
1601 min: BUTTON_SWEEP_PADDING_MIN_INC;
1606 part { name: "padding_right_bottom";
1610 description { state: "default" 0.0;
1612 rel1.relative: 1.0 1.0;
1613 min: BUTTON_SWEEP_PADDING_MIN_INC;
1618 part { name: "icon_rect";
1622 description { state: "default" 0.0;
1623 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1627 to_x: "elm.swallow.content";
1628 to_y: "padding_left_top";
1632 to_x: "elm.swallow.content";
1633 to_y: "padding_right_bottom";
1639 part { name: "padding_icon_text";
1643 description { state: "default" 0.0; //when only icon or no icon is there
1651 rel2.to: "icon_rect";
1654 description { state: "visible" 0.0; //when icon is visible
1655 inherit: "default" 0.0;
1656 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1658 description { state: "icononly" 0.0;
1659 inherit: "default" 0.0;
1662 part { name: "elm.swallow.content";
1666 description { state: "default" 0.0;
1671 to: "padding_left_top";
1675 to_x: "padding_left_top";
1676 to_y: "padding_right_bottom";
1680 description { state: "visible" 0.0;
1681 inherit: "default" 0.0;
1682 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1683 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1686 aspect_preference: VERTICAL;
1688 description { state: "icononly" 0.0;
1689 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1690 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1693 part { name: "elm.text";
1696 effect: SHADOW BOTTOM;
1699 description { state: "default" 0.0;
1704 to_x: "padding_icon_text";
1705 to_y: "padding_left_top";
1709 to: "padding_right_bottom";
1711 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1712 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1714 style: "btn_sweep_multiline";
1718 description { state: "visible" 0.0;
1719 inherit: "default" 0.0;
1721 min: BUTTON_SWEEP_TEXT_MIN_INC;
1723 description { state: "clicked" 0.0;
1724 inherit: "default" 0.0;
1727 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1729 description { state: "disabled" 0.0;
1730 inherit: "default" 0.0;
1732 description { state: "disabled_visible" 0.0;
1733 inherit: "default" 0.0;
1734 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1736 min: BUTTON_SWEEP_TEXT_MIN_INC;
1738 description { state: "focused" 0.0;
1739 inherit: "default" 0.0;
1742 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1745 part { name: "over2";
1748 ignore_flags: ON_HOLD;
1749 description { state: "default" 0.0;
1753 part { name: "over3";
1756 description { state: "default" 0.0;
1760 part { name: "clipper";
1762 description { state: "default" 0.0;
1763 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1765 description { state: "disabled" 0.0;
1766 inherit: "default" 0.0;
1767 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1770 part { name: "disabler";
1772 description { state: "default" 0.0;
1776 description { state: "disabled" 0.0;
1777 inherit: "default" 0.0;
1783 program { name: "button_click";
1784 signal: "mouse,down,1";
1786 action: SIGNAL_EMIT "elm,action,press" "";
1787 after: "button_click_anim";
1789 program { name: "button_click_anim";
1790 action: STATE_SET "clicked" 0.0;
1791 target: "button_image";
1792 after: "text_clicked";
1794 program { name: "text_clicked";
1798 get_state(PART:"elm.text", st, 30, vl);
1799 if (!strcmp(st, "visible"))
1800 set_state(PART:"elm.text", "clicked", 0.0);
1803 program { name: "button_double_click";
1804 signal: "mouse,down,1,double";
1806 after: "button_click_anim";
1808 program { name: "button_unpress";
1809 action: SIGNAL_EMIT "elm,action,unpress" "";
1811 program { name: "button_mouseout_clicked";
1812 signal: "mouse,up,1";
1817 get_state(PART:"elm.swallow.content", st, 30, vl);
1818 if (strcmp(st, "icononly"))
1820 emit("elm,action,default,text,set", "");
1821 set_state(PART:"elm.text", "visible", 0.0);
1823 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1824 set_state(PART:"button_image", "default", 0.0);
1826 after: button_unpress;
1828 program { name: "touch_snd";
1829 signal: "mouse,clicked,1";
1831 action: PLAY_SAMPLE "touch_sound" 1.0;
1832 after: button_unclick3;
1834 program { name: "button_unclick3";
1835 action: SIGNAL_EMIT "elm,action,click" "";
1837 program { name: "text_show";
1838 signal: "elm,state,text,visible";
1843 get_state(PART:"elm.swallow.content", st, 30, vl);
1844 if (!strcmp(st, "icononly"))
1846 set_state(PART:"elm.swallow.content", "visible", 0.0);
1847 set_state(PART:"padding_icon_text", "visible", 0.0);
1849 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1850 set_state(PART:"elm.text", "visible", 0.0);
1852 set_state(PART:"elm.text", "disabled_visible", 0.0);
1855 program { name: "text_hide";
1856 signal: "elm,state,text,hidden";
1861 get_state(PART:"elm.swallow.content", st, 30, vl);
1862 if (!strcmp(st, "visible"))
1864 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1865 set_state(PART:"padding_icon_text", "icononly", 0.0);
1867 set_state(PART:"elm.text", "default", 0.0);
1870 program { name: "icon_show";
1871 signal: "elm,state,icon,visible";
1876 get_state(PART:"elm.text", st, 30, vl);
1877 if (!strcmp(st, "visible"))
1879 set_state(PART:"elm.swallow.content", "visible", 0.0);
1880 set_state(PART:"padding_icon_text", "visible", 0.0);
1884 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1885 set_state(PART:"padding_icon_text", "icononly", 0.0);
1889 program { name: "icon_hide";
1890 signal: "elm,state,icon,hidden";
1892 action: STATE_SET "default" 0.0;
1893 target: "elm.swallow.content";
1894 target: "padding_icon_text";
1896 program { name: "disable";
1897 signal: "elm,state,disabled";
1899 action: STATE_SET "disabled" 0.0;
1900 target: "button_image";
1903 after: "disable_text";
1905 program { name: "disable_text";
1909 get_state(PART:"elm.text", st, 30, vl);
1910 if (!strcmp(st, "visible"))
1911 set_state(PART:"elm.text", "disabled_visible", 0.0);
1913 set_state(PART:"elm.text", "disabled", 0.0);
1914 set_int(button_state, BUTTON_STATE_DISABLED);
1917 program { name: "enable";
1918 signal: "elm,state,enabled";
1920 action: STATE_SET "default" 0.0;
1921 target: "button_image";
1924 after: "enable_text";
1926 program { name: "enable_text";
1930 get_state(PART:"elm.text", st, 30, vl);
1931 if (!strcmp(st, "disabled_visible"))
1932 set_state(PART:"elm.text", "visible", 0.0);
1934 set_state(PART:"elm.text", "default", 0.0);
1935 set_int(button_state, BUTTON_STATE_ENABLED);
1938 program { name: "action_focus";
1939 signal: "elm,action,focus_highlight,show";
1941 action: STATE_SET "focused" 0.0;
1942 target: "focus_image";
1944 program { name: "action_unfocus";
1945 signal: "elm,action,focus_highlight,hide";
1947 action: STATE_SET "default" 0.0;
1948 target: "focus_image";
1953 ///////////////////////////////////////////////////////////////////////////////////////
1954 group { name: "elm/button/base/sweep/delete";
1955 inherit: "elm/button/base/sweep";
1956 alias: "elm/button/base/sweep/delete/multiline";
1958 image: "00_button_01_delete_press.png" COMP;
1959 image: "00_button_01_delete.png" COMP;
1960 image: "00_button_01_delete_dim.png" COMP;
1963 style { name: "btn_sweep_delete_multiline";
1964 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";
1971 part { name: "button_image";
1973 description { state: "default" 0.0;
1974 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1976 normal: "00_button_01_delete.png";
1977 border: BUTTON_SWEEP_BG_BORDER_INC;
1981 description { state: "clicked" 0.0;
1982 inherit: "default" 0.0;
1983 image.normal: "00_button_01_delete_press.png";
1985 description { state: "disabled" 0.0;
1986 inherit: "default" 0.0;
1987 image.normal: "00_button_01_delete_dim.png";
1989 description { state: "focused" 0.0;
1990 inherit: "default" 0.0;
1991 image.normal: "00_button_01_delete_press.png";
1994 part { name: "elm.text";
1997 effect: SHADOW BOTTOM;
2000 description { state: "default" 0.0;
2005 to_x: "padding_icon_text";
2006 to_y: "padding_left_top";
2010 to: "padding_right_bottom";
2012 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
2013 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2015 style: "btn_sweep_multiline";
2019 description { state: "visible" 0.0;
2020 inherit: "default" 0.0;
2022 min: BUTTON_SWEEP_TEXT_MIN_INC;
2024 description { state: "clicked" 0.0;
2025 inherit: "default" 0.0;
2028 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
2030 description { state: "disabled" 0.0;
2031 inherit: "default" 0.0;
2033 description { state: "disabled_visible" 0.0;
2034 inherit: "default" 0.0;
2035 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
2037 min: BUTTON_SWEEP_TEXT_MIN_INC;
2039 description { state: "focused" 0.0;
2040 inherit: "default" 0.0;
2043 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
2049 ///////////////////////////////////////////////////////////////////////////////////////
2050 group { name: "elm/button/base/popup_button/default";
2051 alias: "elm/button/base/popup_button/menustyle";
2052 alias: "elm/button/base/popup_button/liststyle";
2053 alias: "elm/button/base/popup_button/volumebarstyle";
2054 alias: "elm/button/base/popup_button/customstyle";
2055 alias: "elm/button/base/popup_button/verticalbuttonstyle";
2056 alias: "elm/button/base/popup_button/default/multiline";
2058 item: "focus_highlight" "on";
2061 image: "00_popup_button.png" COMP;
2062 image: "00_popup_button_dim.png" COMP;
2063 image: "00_popup_button_press.png" COMP;
2064 image: "00_popup_button_focus.png" COMP;
2067 style { name: "btn_base_popup_button";
2068 base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_POPUP_BUTTON_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
2073 style { name: "btn_base_popup_button_pressed";
2074 base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_POPUP_BUTTON_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
2081 public button_state = BUTTON_STATE_ENABLED;
2084 part { name: "button_image";
2086 description { state: "default" 0.0;
2087 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2089 normal: "00_popup_button.png";
2090 border: BUTTON_POPUP_BG_BORDER_INC;
2094 description { state: "clicked" 0.0;
2095 inherit: "default" 0.0;
2096 image.normal: "00_popup_button_press.png";
2098 description { state: "disabled" 0.0;
2099 inherit: "default" 0.0;
2100 image.normal: "00_popup_button_dim.png";
2102 description { state: "focused" 0.0;
2103 inherit: "default" 0.0;
2104 image.normal: "00_popup_button_focus.png";
2107 part { name: "focus_image";
2111 description { state: "default" 0.0;
2113 rel1.to : "button_image";
2114 rel2.to : "button_image";
2116 normal: "00_popup_button_focus.png";
2117 border: BUTTON_POPUP_BG_BORDER_INC;
2121 description { state: "focused" 0.0;
2122 inherit: "default" 0.0;
2126 part { name: "padding_left_top";
2130 description { state: "default" 0.0;
2132 rel2.relative: 0.0 0.0;
2133 min: BUTTON_POPUP_PADDING_MIN_INC;
2138 part { name: "padding_right_bottom";
2141 description { state: "default" 0.0;
2143 rel1.relative: 1.0 1.0;
2144 min: BUTTON_POPUP_PADDING_MIN_INC;
2149 part { name: "padding_icon_text";
2152 description { state: "default" 0.0; //when only icon or no icon is there
2156 to: "elm.swallow.content";
2158 rel2.to: "elm.swallow.content";
2163 description { state: "icononly" 0.0;
2164 inherit: "default" 0.0;
2166 description { state: "visible" 0.0; //when icon is visible
2167 inherit: "default" 0.0;
2168 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2171 part { name: "elm.swallow.content";
2175 description { state: "default" 0.0;
2180 to: "padding_left_top";
2184 to_x: "padding_left_top";
2185 to_y: "padding_right_bottom";
2189 description { state: "visible" 0.0;
2190 inherit: "default" 0.0;
2194 aspect_preference: VERTICAL;
2196 description { state: "icononly" 0.0;
2197 inherit: "default" 0.0;
2198 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2203 part { name: "elm.text";
2208 description { state: "default" 0.0;
2212 to_x: "padding_icon_text";
2213 to_y: "padding_left_top";
2217 to: "padding_right_bottom";
2220 style: "btn_base_popup_button";
2224 description { state: "visible" 0.0;
2225 inherit: "default" 0.0;
2227 min: BUTTON_POPUP_TEXT_MIN_INC;
2229 description { state: "clicked" 0.0;
2230 inherit: "default" 0.0;
2233 style: "btn_base_popup_button_pressed";
2237 description { state: "disabled" 0.0;
2238 inherit: "default" 0.0;
2240 description { state: "disabled_visible" 0.0;
2241 inherit: "default" 0.0;
2242 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
2244 min: BUTTON_POPUP_TEXT_MIN_INC;
2246 description { state: "focused" 0.0;
2247 inherit: "default" 0.0;
2250 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2253 part { name: "over2";
2256 ignore_flags: ON_HOLD;
2257 description { state: "default" 0.0;
2261 part { name: "over3";
2264 description { state: "default" 0.0;
2268 part { name: "clipper";
2270 description { state: "default" 0.0;
2271 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
2273 description { state: "disabled" 0.0;
2274 inherit: "default" 0.0;
2275 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
2278 part { name: "disabler";
2280 description { state: "default" 0.0;
2284 description { state: "disabled" 0.0;
2285 inherit: "default" 0.0;
2291 program { name: "button_click";
2292 signal: "mouse,down,1";
2294 action: SIGNAL_EMIT "elm,action,press" "";
2295 after: "button_click_anim";
2297 program { name: "button_click_anim";
2298 action: STATE_SET "clicked" 0.0;
2299 target: "button_image";
2300 after: "text_clicked";
2302 program { name: "text_clicked";
2306 get_state(PART:"elm.text", st, 30, vl);
2307 if (!strcmp(st, "visible"))
2308 set_state(PART:"elm.text", "clicked", 0.0);
2311 program { name: "button_double_click";
2312 signal: "mouse,down,1,double";
2314 after: "button_click_anim";
2316 program { name: "button_unpress";
2317 action: SIGNAL_EMIT "elm,action,unpress" "";
2319 program { name: "button_mouseout_clicked";
2320 signal: "mouse,up,1";
2325 get_state(PART:"elm.swallow.content", st, 30, vl);
2326 if (strcmp(st, "icononly"))
2328 emit("elm,action,default,text,set", "");
2329 set_state(PART:"elm.text", "visible", 0.0);
2331 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2332 set_state(PART:"button_image", "default", 0.0);
2334 after: button_unpress;
2336 program { name: "touch_snd";
2337 signal: "mouse,clicked,1";
2339 action: PLAY_SAMPLE "touch_sound" 1.0;
2340 after: button_unclick3;
2342 program { name: "button_unclick3";
2343 action: SIGNAL_EMIT "elm,action,click" "";
2345 program { name: "text_show";
2346 signal: "elm,state,text,visible";
2351 get_state(PART:"elm.swallow.content", st, 30, vl);
2352 if (!strcmp(st, "icononly"))
2354 set_state(PART:"elm.swallow.content", "visible", 0.0);
2355 set_state(PART:"padding_icon_text", "visible", 0.0);
2357 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2358 set_state(PART:"elm.text", "visible", 0.0);
2360 set_state(PART:"elm.text", "disabled_visible", 0.0);
2363 program { name: "text_hide";
2364 signal: "elm,state,text,hidden";
2369 get_state(PART:"elm.swallow.content", st, 30, vl);
2370 if (!strcmp(st, "visible"))
2372 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2373 set_state(PART:"padding_icon_text", "icononly", 0.0);
2375 set_state(PART:"elm.text", "default", 0.0);
2378 program { name: "icon_show";
2379 signal: "elm,state,icon,visible";
2384 get_state(PART:"elm.text", st, 30, vl);
2385 if (!strcmp(st, "visible"))
2387 set_state(PART:"elm.swallow.content", "visible", 0.0);
2388 set_state(PART:"padding_icon_text", "visible", 0.0);
2392 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2393 set_state(PART:"padding_icon_text", "icononly", 0.0);
2397 program { name: "icon_hide";
2398 signal: "elm,state,icon,hidden";
2400 action: STATE_SET "default" 0.0;
2401 target: "elm.swallow.content";
2402 target: "padding_icon_text";
2404 program { name: "disable";
2405 signal: "elm,state,disabled";
2407 action: STATE_SET "disabled" 0.0;
2408 target: "button_image";
2411 after: "disable_text";
2413 program { name: "disable_text";
2417 get_state(PART:"elm.text", st, 30, vl);
2418 if (!strcmp(st, "visible"))
2419 set_state(PART:"elm.text", "disabled_visible", 0.0);
2421 set_state(PART:"elm.text", "disabled", 0.0);
2422 set_int(button_state, BUTTON_STATE_DISABLED);
2425 program { name: "enable";
2426 signal: "elm,state,enabled";
2428 action: STATE_SET "default" 0.0;
2429 target: "button_image";
2432 after: "enable_text";
2434 program { name: "enable_text";
2438 get_state(PART:"elm.text", st, 30, vl);
2439 if (!strcmp(st, "disabled_visible"))
2440 set_state(PART:"elm.text", "visible", 0.0);
2442 set_state(PART:"elm.text", "default", 0.0);
2443 set_int(button_state, BUTTON_STATE_ENABLED);
2446 program { name: "action_focus";
2447 signal: "elm,action,focus_highlight,show";
2449 action: STATE_SET "focused" 0.0;
2450 target: "focus_image";
2452 program { name: "action_unfocus";
2453 signal: "elm,action,focus_highlight,hide";
2455 action: STATE_SET "default" 0.0;
2456 target: "focus_image";
2461 ///////////////////////////////////////////////////////////////////////////////////////
2462 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2463 group { name: "elm/button/base/"style_name; \
2465 item: "focus_highlight" "on"; \
2468 image: "00_circle_button.png" COMP; \
2469 image: "00_circle_button_press.png" COMP; \
2470 image: "00_circle_button_dim.png" COMP; \
2471 image: image_normal COMP; \
2472 image: image_press COMP; \
2473 image: 00_circle_button_focus.png COMP; \
2476 part { name: "button_image"; \
2478 description { state: "default" 0.0; \
2479 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2480 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2481 image.normal: "00_circle_button.png"; \
2484 state: "clicked" 0.0; \
2485 inherit: "default" 0.0; \
2486 image.normal: "00_circle_button_press.png"; \
2489 state: "disabled" 0.0; \
2490 inherit: "default" 0.0; \
2491 image.normal: "00_circle_button_dim.png"; \
2494 part { name: "left_top_padding"; \
2497 description { state: "default" 0.0; \
2498 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2499 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2502 rel1.to: "button_image"; \
2503 rel2.to: "button_image"; \
2506 part { name: "right_bottom_padding"; \
2509 description { state: "default" 0.0; \
2510 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2511 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2515 relative: 1.0 1.0; \
2516 to: "button_image"; \
2518 rel2.to: "button_image"; \
2521 part { name: "button_center_part"; \
2523 clip_to: "icon_clipper"; \
2524 description { state: "default" 0.0; \
2525 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2526 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2527 image.normal: image_normal; \
2529 relative: 1.0 1.0; \
2530 to: "left_top_padding"; \
2533 relative: 0.0 0.0; \
2534 to: "right_bottom_padding"; \
2537 description { state: "clicked" 0.0; \
2538 inherit: "default"; \
2539 image.normal: image_press; \
2541 description { state: "disabled" 0.0; \
2542 inherit: "default"; \
2545 part { name: "icon_clipper"; \
2548 description { state: "default" 0.0; \
2549 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2551 description { state: "clicked" 0.0; \
2552 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2554 description { state: "disabled" 0.0; \
2555 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2558 part { name: "focus_image"; \
2562 description { state: "default" 0.0; \
2563 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2564 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2566 rel1.to : "button_image"; \
2567 rel2.to : "button_image"; \
2569 normal: "00_circle_button_focus.png"; \
2573 description { state: "focused" 0.0; \
2574 inherit: "default" 0.0; \
2578 part { name: "over1"; \
2580 ignore_flags: ON_HOLD; \
2581 description { state: "default" 0.0; \
2583 min: min_width min_height; \
2586 part { name: "over2"; \
2589 description { state: "default" 0.0; \
2593 part { name: "disabler"; \
2595 description { state: "default" 0.0; \
2599 description { state: "disabled" 0.0; \
2600 inherit: "default" 0.0; \
2606 program { name: "button_click"; \
2607 signal: "mouse,down,1"; \
2609 action: SIGNAL_EMIT "elm,action,press" ""; \
2610 after: "button_click_anim"; \
2612 program { name: "button_click_anim"; \
2613 action: STATE_SET "clicked" 0.0; \
2614 target: "button_image"; \
2615 target: "button_center_part"; \
2616 target: "icon_clipper"; \
2618 program { name: "button_double_click"; \
2619 signal: "mouse,down,1,double"; \
2621 after: "button_click_anim"; \
2623 program { name: "button_unclick"; \
2624 signal: "mouse,up,1"; \
2626 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2627 after: "button_unclick_anim"; \
2629 program { name: "button_unclick_anim"; \
2630 action: STATE_SET "default" 0.0; \
2631 target: "button_image"; \
2632 target: "button_center_part"; \
2633 target: "icon_clipper"; \
2635 program { name: "touch_snd"; \
2636 signal: "mouse,clicked,1"; \
2638 action: PLAY_SAMPLE "touch_sound" 1.0; \
2639 after: button_unclick3; \
2641 program { name: "button_unclick3"; \
2642 action: SIGNAL_EMIT "elm,action,click" ""; \
2644 program { name: "disable"; \
2645 signal: "elm,state,disabled"; \
2647 action: STATE_SET "disabled" 0.0; \
2648 target: "disabler"; \
2649 target: "button_image"; \
2650 target: "button_center_part"; \
2651 target: "icon_clipper"; \
2653 program { name: "enable"; \
2654 signal: "elm,state,enabled"; \
2656 action: STATE_SET "default" 0.0; \
2657 target: "disabler"; \
2658 target: "button_image"; \
2659 target: "button_center_part"; \
2660 target: "icon_clipper"; \
2662 program { name: "action_focus"; \
2663 signal: "elm,action,focus_highlight,show"; \
2665 action: STATE_SET "focused" 0.0; \
2666 target: "focus_image"; \
2668 program { name: "action_unfocus"; \
2669 signal: "elm,action,focus_highlight,hide"; \
2671 action: STATE_SET "default" 0.0; \
2672 target: "focus_image"; \
2677 ///////////////////////////////////////////////////////////////////////////////////////
2678 BUTTON_CIRCLE_STYLES("reveal","00_button_right.png", "00_button_right_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2680 ///////////////////////////////////////////////////////////////////////////////////////
2681 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_right.png", "00_button_right_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2683 ///////////////////////////////////////////////////////////////////////////////////////
2684 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2686 ///////////////////////////////////////////////////////////////////////////////////////
2687 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2689 ///////////////////////////////////////////////////////////////////////////////////////
2690 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2692 ///////////////////////////////////////////////////////////////////////////////////////
2693 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2695 ///////////////////////////////////////////////////////////////////////////////////////
2696 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2698 ///////////////////////////////////////////////////////////////////////////////////////
2699 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2701 ///////////////////////////////////////////////////////////////////////////////////////
2702 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2704 ///////////////////////////////////////////////////////////////////////////////////////
2705 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2707 ///////////////////////////////////////////////////////////////////////////////////////
2708 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2710 ///////////////////////////////////////////////////////////////////////////////////////
2711 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2713 ///////////////////////////////////////////////////////////////////////////////////////
2714 BUTTON_CIRCLE_STYLES("plus", "00_button_add.png", "00_button_add_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2716 ///////////////////////////////////////////////////////////////////////////////////////
2717 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_add.png", "00_button_add_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2719 ///////////////////////////////////////////////////////////////////////////////////////
2720 BUTTON_CIRCLE_STYLES("minus", "00_button_delete.png", "00_button_delete_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2722 ///////////////////////////////////////////////////////////////////////////////////////
2723 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_delete.png", "00_button_delete_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2725 ///////////////////////////////////////////////////////////////////////////////////////
2726 BUTTON_CIRCLE_STYLES("cancel", "00_button_expand_cancel.png", "00_button_expand_cancel_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2728 ///////////////////////////////////////////////////////////////////////////////////////
2729 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_expand_cancel.png", "00_button_expand_cancel_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2731 ///////////////////////////////////////////////////////////////////////////////////////
2732 BUTTON_CIRCLE_STYLES("send", "00_button_expand_send.png", "00_button_expand_send_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2734 ///////////////////////////////////////////////////////////////////////////////////////
2735 BUTTON_CIRCLE_STYLES("send/extended", "00_button_expand_send.png", "00_button_expand_send_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2736 ///////////////////////////////////////////////////////////////////////////////////////
2738 ///////////////////////////////////////////////////////////////////////////////////////
2739 BUTTON_CIRCLE_STYLES("contact", "00_button_contact.png", "00_button_contact_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2740 ///////////////////////////////////////////////////////////////////////////////////////
2742 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2743 group { name: "elm/button/base/"style_name; \
2744 inherit: "elm/button/base/info"; \
2746 image: "00_circle_button_delete.png" COMP; \
2747 image: "00_circle_button_delete_press.png" COMP; \
2748 image: "00_circle_button_delete_dim.png" COMP; \
2749 image: "00_button_warning.png" COMP; \
2750 image: "00_button_warning_press.png" COMP; \
2753 part { name: "button_image"; \
2755 description { state: "default" 0.0; \
2756 image.normal: "00_circle_button_delete.png"; \
2759 state: "clicked" 0.0; \
2760 inherit: "default" 0.0; \
2761 image.normal: "00_circle_button_delete_press.png"; \
2764 state: "disabled" 0.0; \
2765 inherit: "default" 0.0; \
2766 image.normal: "00_circle_button_delete_dim.png"; \
2769 part { name: "button_center_part"; \
2771 clip_to: "icon_clipper"; \
2772 description { state: "default" 0.0; \
2773 image.normal: "00_button_warning.png"; \
2775 description { state: "clicked" 0.0; \
2776 inherit: "default"; \
2777 image.normal: "00_button_warning_press.png"; \
2779 description { state: "disabled" 0.0; \
2780 inherit: "default"; \
2783 part { name: "icon_clipper"; \
2786 description { state: "default" 0.0; \
2787 color: BUTTON_CIRCLE_STYLE_WARNING_NORMAL_COLOR_INC; \
2789 description { state: "clicked" 0.0; \
2790 color: BUTTON_CIRCLE_STYLE_WARNING_PRESSED_COLOR_INC; \
2792 description { state: "disabled" 0.0; \
2793 color: BUTTON_CIRCLE_STYLE_WARNING_DISABLED_COLOR_INC; \
2796 part { name: "over1"; \
2798 ignore_flags: ON_HOLD; \
2799 description { state: "default" 0.0; \
2801 min: min_width min_height; \
2807 ///////////////////////////////////////////////////////////////////////////////////////
2808 BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2810 ///////////////////////////////////////////////////////////////////////////////////////
2811 BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2813 ///////////////////////////////////////////////////////////////////////////////////////
2814 group { name: "elm/button/base/circle/empty";
2816 item: "focus_highlight" "on";
2819 image: "00_circle_button.png" COMP;
2820 image: "00_circle_button_press.png" COMP;
2821 image: "00_circle_button_dim.png" COMP;
2822 image: 00_circle_button_focus.png COMP;
2825 part { name: "button_image";
2827 description { state: "default" 0.0;
2828 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2829 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2831 image.normal: "00_circle_button.png";
2833 description { state: "clicked" 0.0;
2834 inherit: "default" 0.0;
2835 image.normal: "00_circle_button_press.png";
2837 description { state: "disabled" 0.0;
2838 inherit: "default" 0.0;
2839 image.normal: "00_circle_button_dim.png";
2842 part { name: "left_top_padding";
2845 description { state: "default" 0.0;
2846 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2847 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2850 rel1.to: "button_image";
2851 rel2.to: "button_image";
2854 part { name: "right_bottom_padding";
2857 description { state: "default" 0.0;
2858 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2859 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2866 rel2.to: "button_image";
2869 part { name: "elm.swallow.content";
2871 clip_to: "icon_clipper";
2873 description { state: "default" 0.0;
2877 to: "left_top_padding";
2881 to: "right_bottom_padding";
2885 description { state: "visible" 0.0;
2886 inherit: "default" 0.0;
2888 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2889 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2892 part { name: "icon_clipper";
2895 description { state: "default" 0.0;
2896 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2898 description { state: "clicked" 0.0;
2899 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2901 description { state: "disabled" 0.0;
2902 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2905 part { name: "focus_image";
2909 description { state: "default" 0.0;
2910 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2911 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2913 rel1.to : "button_image";
2914 rel2.to : "button_image";
2916 normal: "00_circle_button_focus.png";
2920 description { state: "focused" 0.0;
2921 inherit: "default" 0.0;
2925 part { name: "over1";
2927 ignore_flags: ON_HOLD;
2928 description { state: "default" 0.0;
2932 part { name: "over2";
2935 description { state: "default" 0.0;
2939 part { name: "disabler";
2941 description { state: "default" 0.0;
2945 description { state: "disabled" 0.0;
2946 inherit: "default" 0.0;
2952 program { name: "button_click";
2953 signal: "mouse,down,1";
2955 action: SIGNAL_EMIT "elm,action,press" "";
2956 after: "button_click_anim";
2958 program { name: "button_click_anim";
2959 action: STATE_SET "clicked" 0.0;
2960 target: "button_image";
2961 target: "icon_clipper";
2963 program { name: "button_double_click";
2964 signal: "mouse,down,1,double";
2966 after: "button_click_anim";
2968 program { name: "touch_snd";
2969 signal: "mouse,clicked,1";
2971 action: PLAY_SAMPLE "touch_sound" 1.0;
2972 after: button_unclick2;
2974 program { name: "button_unclick2";
2975 action: SIGNAL_EMIT "elm,action,click" "";
2977 program { name: "button_unclick";
2978 signal: "mouse,up,1";
2980 action: SIGNAL_EMIT "elm,action,unpress" "";
2981 after: "button_unclick_anim";
2983 program { name: "button_unclick_anim";
2984 action: STATE_SET "default" 0.0;
2985 target: "button_image";
2986 target: "icon_clipper";
2988 program { name: "disable";
2989 signal: "elm,state,disabled";
2991 action: STATE_SET "disabled" 0.0;
2993 target: "button_image";
2994 target: "icon_clipper";
2996 program { name: "enable";
2997 signal: "elm,state,enabled";
2999 action: STATE_SET "default" 0.0;
3001 target: "button_image";
3002 target: "icon_clipper";
3004 program { name: "icon_show";
3005 signal: "elm,state,icon,visible";
3007 action: STATE_SET "visible" 0.0;
3008 target: "elm.swallow.content";
3010 program { name: "icon_hide";
3011 signal: "elm,state,icon,hidden";
3013 action: STATE_SET "default" 0.0;
3014 target: "elm.swallow.content";
3016 program { name: "action_focus";
3017 signal: "elm,action,focus_highlight,show";
3019 action: STATE_SET "focused" 0.0;
3020 target: "focus_image";
3022 program { name: "action_unfocus";
3023 signal: "elm,action,focus_highlight,hide";
3025 action: STATE_SET "default" 0.0;
3026 target: "focus_image";
3031 ///////////////////////////////////////////////////////////////////////////////////////
3032 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
3033 group { name: "elm/button/base/contacts/"style_name; \
3034 alias: "elm/button/base/"style_name; \
3036 item: "focus_highlight" "on"; \
3039 image: "00_circle_button.png" COMP; \
3040 image: "00_circle_button_press.png" COMP; \
3041 image: "00_circle_button_dim.png" COMP; \
3042 image: image_normal COMP; \
3043 image: image_press COMP; \
3044 image: 00_circle_button_focus.png COMP;\
3047 part { name: "button_image"; \
3049 description { state: "default" 0.0; \
3050 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3051 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3052 image.normal: "00_circle_button.png"; \
3054 description { state: "clicked" 0.0; \
3055 inherit: "default" 0.0; \
3056 image.normal: "00_circle_button_press.png"; \
3058 description { state: "disabled" 0.0; \
3059 inherit: "default" 0.0; \
3060 image.normal: "00_circle_button_dim.png"; \
3063 part { name: "button_center_part"; \
3066 clip_to: "icon_clipper"; \
3067 description { state: "default" 0.0; \
3068 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3069 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3070 image.normal: image_normal; \
3073 state: "clicked" 0.0; \
3074 inherit: "default" 0.0; \
3075 image.normal: image_press; \
3077 description { state: "disabled" 0.0; \
3078 inherit: "default" 0.0; \
3081 part { name: "focus_image"; \
3085 description { state: "default" 0.0; \
3086 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3087 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3089 rel1.to : "button_image"; \
3090 rel2.to : "button_image"; \
3092 normal: "00_circle_button_focus.png"; \
3096 description { state: "focused" 0.0; \
3097 inherit: "default" 0.0; \
3101 part { name: "icon_clipper"; \
3104 description { state: "default" 0.0; \
3105 color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
3107 description { state: "clicked" 0.0; \
3108 color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
3110 description { state: "disabled" 0.0; \
3111 color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
3114 part { name: "over1"; \
3117 ignore_flags: ON_HOLD; \
3118 description { state: "default" 0.0; \
3120 min: min_width min_height; \
3123 part { name: "over2"; \
3126 description { state: "default" 0.0; \
3130 part { name: "disabler"; \
3132 description { state: "default" 0.0; \
3136 description { state: "disabled" 0.0; \
3137 inherit: "default" 0.0; \
3143 program { name: "button_click"; \
3144 signal: "mouse,down,1"; \
3146 action: SIGNAL_EMIT "elm,action,press" ""; \
3147 after: "button_click_anim"; \
3149 program { name: "button_click_anim"; \
3150 action: STATE_SET "clicked" 0.0; \
3151 target: "button_image"; \
3152 target: "button_center_part"; \
3153 target: "icon_clipper"; \
3155 program { name: "button_double_click"; \
3156 signal: "mouse,down,1,double"; \
3158 after: "button_click_anim"; \
3160 program { name: "button_unclick"; \
3161 signal: "mouse,up,1"; \
3163 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3164 after: "button_unclick_anim"; \
3166 program { name: "button_unclick_anim"; \
3167 action: STATE_SET "default" 0.0; \
3168 target: "button_image"; \
3169 target: "button_center_part"; \
3170 target: "icon_clipper"; \
3172 program { name: "touch_snd"; \
3173 signal: "mouse,clicked,1"; \
3175 action: PLAY_SAMPLE "touch_sound" 1.0; \
3176 after: button_unclick3; \
3178 program { name: "button_unclick3"; \
3179 action: SIGNAL_EMIT "elm,action,click" ""; \
3181 program { name: "disable"; \
3182 signal: "elm,state,disabled"; \
3184 action: STATE_SET "disabled" 0.0; \
3185 target: "disabler"; \
3186 target: "button_image"; \
3187 target: "button_center_part"; \
3188 target: "icon_clipper"; \
3190 program { name: "enable"; \
3191 signal: "elm,state,enabled"; \
3193 action: STATE_SET "default" 0.0; \
3194 target: "disabler"; \
3195 target: "button_image"; \
3196 target: "button_center_part"; \
3197 target: "icon_clipper"; \
3199 program { name: "action_focus"; \
3200 signal: "elm,action,focus_highlight,show"; \
3202 action: STATE_SET "focused" 0.0; \
3203 target: "focus_image"; \
3205 program { name: "action_unfocus"; \
3206 signal: "elm,action,focus_highlight,hide"; \
3208 action: STATE_SET "default" 0.0; \
3209 target: "focus_image"; \
3213 ///////////////////////////////////////////////////////////////////////////////////////
3214 BUTTON_EDIT_STYLES("icon_plus", "00_button_add.png", "00_button_add_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3216 ///////////////////////////////////////////////////////////////////////////////////////
3217 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_add.png", "00_button_add_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3219 ///////////////////////////////////////////////////////////////////////////////////////
3220 BUTTON_EDIT_STYLES("icon_expand", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3222 ///////////////////////////////////////////////////////////////////////////////////////
3223 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3225 ///////////////////////////////////////////////////////////////////////////////////////
3226 BUTTON_EDIT_STYLES("icon_expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3228 ///////////////////////////////////////////////////////////////////////////////////////
3229 BUTTON_EDIT_STYLES("icon_expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3231 ///////////////////////////////////////////////////////////////////////////////////////
3233 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
3234 group { name: "elm/button/base/contacts/"style_name; \
3235 alias: "elm/button/base/"style_name; \
3236 inherit: "elm/button/base/contacts/icon_plus"; \
3238 image: "00_circle_button_delete.png" COMP; \
3239 image: "00_circle_button_delete_press.png" COMP; \
3240 image: "00_circle_button_delete_dim.png" COMP; \
3241 image: "00_button_delete.png" COMP; \
3242 image: "00_button_delete_press.png" COMP; \
3245 part { name: "button_image"; \
3247 description { state: "default" 0.0; \
3248 image.normal: "00_circle_button_delete.png"; \
3250 description { state: "clicked" 0.0; \
3251 inherit: "default" 0.0; \
3252 image.normal: "00_circle_button_delete_press.png"; \
3254 description { state: "disabled" 0.0; \
3255 inherit: "default" 0.0; \
3256 image.normal: "00_circle_button_delete_dim.png"; \
3259 part { name: "button_center_part"; \
3262 clip_to: "icon_clipper"; \
3263 description { state: "default" 0.0; \
3264 image.normal: "00_button_delete.png"; \
3267 state: "clicked" 0.0; \
3268 inherit: "default" 0.0; \
3269 image.normal: "00_button_delete_press.png"; \
3271 description { state: "disabled" 0.0; \
3272 inherit: "default" 0.0; \
3275 part { name: "icon_clipper"; \
3278 description { state: "default" 0.0; \
3279 color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
3281 description { state: "clicked" 0.0; \
3282 color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
3284 description { state: "disabled" 0.0; \
3285 color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
3288 part { name: "over1"; \
3291 ignore_flags: ON_HOLD; \
3292 description { state: "default" 0.0; \
3294 min: min_width min_height; \
3300 ///////////////////////////////////////////////////////////////////////////////////////
3301 BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3303 ///////////////////////////////////////////////////////////////////////////////////////
3304 BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3306 ///////////////////////////////////////////////////////////////////////////////////////
3307 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
3308 group { name: "elm/button/base/"style_name; \
3310 item: "focus_highlight" "on"; \
3313 image: "00_button_01.png" COMP; \
3314 image: "00_button_01_press.png" COMP; \
3315 image: "00_button_01_dim.png" COMP; \
3316 image: image_normal COMP; \
3317 image: "00_button_01_focus.png" COMP; \
3320 part { name: "button_image";\
3323 description { state: "default" 0.0; \
3324 min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
3326 normal: "00_button_01.png"; \
3327 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3331 description { state: "clicked" 0.0; \
3332 inherit: "default" 0.0; \
3333 image.normal: "00_button_01_press.png"; \
3335 description { state: "disabled" 0.0; \
3336 inherit: "default" 0.0; \
3337 image.normal: "00_button_01_dim.png"; \
3340 part { name: "focus_image"; \
3344 description { state: "default" 0.0; \
3346 rel1.to : "button_image"; \
3347 rel2.to : "button_image"; \
3349 normal: "00_button_01_focus.png"; \
3350 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3354 description { state: "focused" 0.0; \
3355 inherit: "default" 0.0; \
3359 part { name: "padding_left_top"; \
3362 description { state: "default" 0.0; \
3364 rel2.relative: 0.0 0.0; \
3365 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3369 part { name: "padding_right_bottom"; \
3372 description { state: "default" 0.0; \
3374 rel1.relative: 1.0 1.0; \
3375 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3379 part { name: "jump_image"; \
3382 description { state: "default" 0.0; \
3383 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3384 max: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3386 relative: 1.0 0.0; \
3387 to_x: "padding_left_top"; \
3390 relative: 0.0 1.0; \
3391 to_x: "padding_right_bottom"; \
3393 image.normal: image_normal; \
3395 aspect_preference: VERTICAL; \
3396 color: BUTTON_JUMP_ICON_NORMAL_COLOR_INC; \
3398 description { state: "clicked" 0.0; \
3399 inherit: "default" 0.0; \
3400 color: BUTTON_JUMP_ICON_PRESSED_COLOR_INC; \
3402 description { state: "disabled" 0.0; \
3403 inherit: "default" 0.0; \
3404 color: BUTTON_JUMP_ICON_DIM_COLOR_INC; \
3407 part { name: "over1"; \
3410 ignore_flags: ON_HOLD; \
3411 description { state: "default" 0.0; \
3413 rel1.relative: 0.0 0.0; \
3414 rel2.relative: 1.0 1.0; \
3417 part { name: "over2"; \
3420 description { state: "default" 0.0; \
3426 program { name: "button_click"; \
3427 signal: "mouse,down,1"; \
3429 action: SIGNAL_EMIT "elm,action,press" ""; \
3430 after: "button_click_anim"; \
3432 program { name: "button_click_anim"; \
3433 action: STATE_SET "clicked" 0.0; \
3434 target: "button_image"; \
3435 target: "jump_image"; \
3437 program { name: "button_double_click"; \
3438 signal: "mouse,down,1,double"; \
3440 after: "button_click_anim"; \
3442 program { name: "button_unclick"; \
3443 signal: "mouse,up,1"; \
3445 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3446 after: "button_unclick_anim"; \
3448 program { name: "button_unclick_anim"; \
3449 action: STATE_SET "default" 0.0; \
3450 target: "button_image"; \
3451 target: "jump_image"; \
3453 program { name: "touch_snd"; \
3454 signal: "mouse,clicked,1"; \
3456 action: PLAY_SAMPLE "touch_sound" 1.0; \
3457 after: button_unclick3; \
3459 program { name: "button_unclick3"; \
3460 action: SIGNAL_EMIT "elm,action,click" ""; \
3462 program { name: "disable"; \
3463 signal: "elm,state,disabled"; \
3465 action: STATE_SET "disabled" 0.0; \
3466 target: "button_image"; \
3467 target: "jump_image"; \
3469 program { name: "enable"; \
3470 signal: "elm,state,enabled"; \
3472 action: STATE_SET "default" 0.0; \
3473 target: "button_image"; \
3474 target: "jump_image"; \
3476 program { name: "action_focus"; \
3477 signal: "elm,action,focus_highlight,show"; \
3479 action: STATE_SET "focused" 0.0; \
3480 target: "focus_image"; \
3482 program { name: "action_unfocus"; \
3483 signal: "elm,action,focus_highlight,hide"; \
3485 action: STATE_SET "default" 0.0; \
3486 target: "focus_image"; \
3491 ////////////////////////////////////////////////////////////////////////
3492 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3493 ////////////////////////////////////////////////////////////////////////
3494 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3496 ////////////////////////////////////////////////////////////////////////
3497 group { name: "elm/button/base/default";
3499 item: "focus_highlight" "on";
3502 image: "00_button_01.png" COMP;
3503 image: "00_button_01_press.png" COMP;
3504 image: "00_button_01_dim.png" COMP;
3505 image: "00_button_01_focus.png" COMP;
3508 style { name: "btn_base_default";
3509 base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3514 style { name: "btn_base_default_pressed";
3515 base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3522 public button_state = BUTTON_STATE_ENABLED;
3525 part { name: "button_image";
3527 description { state: "default" 0.0;
3528 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3530 normal: "00_button_01.png";
3531 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3535 description { state: "clicked" 0.0;
3536 inherit: "default" 0.0;
3537 image.normal: "00_button_01_press.png";
3539 description { state: "disabled" 0.0;
3540 inherit: "default" 0.0;
3541 image.normal: "00_button_01_dim.png";
3543 description { state: "focused" 0.0;
3544 inherit: "default" 0.0;
3545 image.normal: "00_button_01_press.png";
3548 part { name: "focus_image";
3552 description { state: "default" 0.0;
3554 rel1.to : "button_image";
3555 rel2.to : "button_image";
3557 normal: "00_button_01_focus.png";
3558 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3562 description { state: "focused" 0.0;
3563 inherit: "default" 0.0;
3567 part { name: "padding_left_top";
3571 description { state: "default" 0.0;
3573 rel2.relative: 0.0 0.0;
3574 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3579 part { name: "padding_right_bottom";
3583 description { state: "default" 0.0;
3585 rel1.relative: 1.0 1.0;
3586 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3591 part { name: "padding_icon_text";
3595 description { state: "default" 0.0; //when only icon or no icon is there
3601 to: "elm.swallow.content";
3603 rel2.to: "elm.swallow.content";
3606 description { state: "icononly" 0.0;
3607 inherit: "default" 0.0;
3609 description { state: "visible" 0.0; //when icon is visible
3610 inherit: "default" 0.0;
3611 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3614 part { name: "elm.swallow.content";
3618 description { state: "default" 0.0;
3624 to: "padding_left_top";
3628 to_x: "padding_left_top";
3629 to_y: "padding_right_bottom";
3632 description { state: "visible" 0.0;
3633 inherit: "default" 0.0;
3636 aspect_preference: VERTICAL;
3638 description { state: "icononly" 0.0;
3639 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3642 to_x: "padding_left_top";
3646 to_x: "padding_right_bottom";
3649 aspect_preference: VERTICAL;
3652 part { name: "elm.text";
3657 description { state: "default" 0.0;
3662 to_x: "padding_icon_text";
3663 to_y: "padding_left_top";
3667 to: "padding_right_bottom";
3670 style: "btn_base_default";
3673 description { state: "visible" 0.0;
3674 inherit: "default" 0.0;
3676 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3678 description { state: "clicked" 0.0;
3679 inherit: "default" 0.0;
3681 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3683 style: "btn_base_default_pressed";
3686 description { state: "disabled" 0.0;
3687 inherit: "default" 0.0;
3689 description { state: "disabled_visible" 0.0;
3690 inherit: "default" 0.0;
3691 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3693 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3695 description { state: "focused" 0.0;
3696 inherit: "default" 0.0;
3699 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3702 part { name: "over2";
3705 ignore_flags: ON_HOLD;
3706 description { state: "default" 0.0;
3710 part { name: "over3";
3713 description { state: "default" 0.0;
3717 part { name: "disclip";
3719 description { state: "default" 0.0;
3720 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3722 description { state: "disabled" 0.0;
3723 inherit: "default" 0.0;
3724 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3727 part { name: "disabler";
3729 description { state: "default" 0.0;
3733 description { state: "disabled" 0.0;
3734 inherit: "default" 0.0;
3740 program { name: "button_click";
3741 signal: "mouse,down,1";
3743 action: SIGNAL_EMIT "elm,action,press" "";
3744 after: "button_click_anim";
3746 program { name: "button_click_anim";
3747 action: STATE_SET "clicked" 0.0;
3748 target: "button_image";
3749 after: "text_clicked";
3751 program { name: "text_clicked";
3755 get_state(PART:"elm.text", st, 30, vl);
3756 if (!strcmp(st, "visible"))
3757 set_state(PART:"elm.text", "clicked", 0.0);
3760 program { name: "button_double_click";
3761 signal: "mouse,down,1,double";
3763 after: "button_click_anim";
3765 program { name: "button_unpress";
3766 action: SIGNAL_EMIT "elm,action,unpress" "";
3768 program { name: "button_mouseout_clicked";
3769 signal: "mouse,up,1";
3774 get_state(PART:"elm.swallow.content", st, 30, vl);
3775 if (strcmp(st, "icononly"))
3777 emit("elm,action,default,text,set", "");
3778 set_state(PART:"elm.text", "visible", 0.0);
3780 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3781 set_state(PART:"button_image", "default", 0.0);
3783 after: button_unpress;
3785 program { name: "touch_snd";
3786 signal: "mouse,clicked,1";
3788 action: PLAY_SAMPLE "touch_sound" 1.0;
3789 after: button_unclick3;
3791 program { name: "button_unclick3";
3792 action: SIGNAL_EMIT "elm,action,click" "";
3794 program { name: "text_show";
3795 signal: "elm,state,text,visible";
3800 get_state(PART:"elm.swallow.content", st, 30, vl);
3801 if (!strcmp(st, "icononly"))
3803 set_state(PART:"elm.swallow.content", "visible", 0.0);
3804 set_state(PART:"padding_icon_text", "visible", 0.0);
3806 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3807 set_state(PART:"elm.text", "visible", 0.0);
3809 set_state(PART:"elm.text", "disabled_visible", 0.0);
3812 program { name: "text_hide";
3813 signal: "elm,state,text,hidden";
3818 get_state(PART:"elm.swallow.content", st, 30, vl);
3819 if (!strcmp(st, "visible"))
3821 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3822 set_state(PART:"padding_icon_text", "icononly", 0.0);
3824 set_state(PART:"elm.text", "default", 0.0);
3827 program { name: "icon_show";
3828 signal: "elm,state,icon,visible";
3833 get_state(PART:"elm.text", st, 30, vl);
3834 if (!strcmp(st, "visible"))
3836 set_state(PART:"elm.swallow.content", "visible", 0.0);
3837 set_state(PART:"padding_icon_text", "visible", 0.0);
3841 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3842 set_state(PART:"padding_icon_text", "icononly", 0.0);
3846 program { name: "icon_hide";
3847 signal: "elm,state,icon,hidden";
3849 action: STATE_SET "default" 0.0;
3850 target: "elm.swallow.content";
3851 target: "padding_icon_text";
3853 program { name: "disable";
3854 signal: "elm,state,disabled";
3856 action: STATE_SET "disabled" 0.0;
3857 target: "button_image";
3860 after: "disable_text";
3862 program { name: "disable_text";
3866 get_state(PART:"elm.text", st, 30, vl);
3867 if (!strcmp(st, "visible"))
3868 set_state(PART:"elm.text", "disabled_visible", 0.0);
3870 set_state(PART:"elm.text", "disabled", 0.0);
3871 set_int(button_state, BUTTON_STATE_DISABLED);
3874 program { name: "enable";
3875 signal: "elm,state,enabled";
3877 action: STATE_SET "default" 0.0;
3878 target: "button_image";
3881 after: "enable_text";
3883 program { name: "enable_text";
3887 get_state(PART:"elm.text", st, 30, vl);
3888 if (!strcmp(st, "disabled_visible"))
3889 set_state(PART:"elm.text", "visible", 0.0);
3891 set_state(PART:"elm.text", "default", 0.0);
3892 set_int(button_state, BUTTON_STATE_ENABLED);
3895 program { name: "action_focus";
3896 signal: "elm,action,focus_highlight,show";
3898 action: STATE_SET "focused" 0.0;
3899 target: "focus_image";
3901 program { name: "action_unfocus";
3902 signal: "elm,action,focus_highlight,hide";
3904 action: STATE_SET "default" 0.0;
3905 target: "focus_image";
3910 ///////////////////////////////////////////////////////////////////////////////////////
3911 group { name: "elm/button/base/multiline";
3912 alias: "elm/button/base/text_only/multiline";
3913 inherit: "elm/button/base/default";
3915 style { name: "btn_multiline_style";
3916 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";
3923 part { name: "button_image";
3925 description { state: "default" 0.0;
3926 min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3928 normal: "00_button_01.png";
3929 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3933 description { state: "clicked" 0.0;
3934 inherit: "default" 0.0;
3935 image.normal: "00_button_01_press.png";
3937 description { state: "disabled" 0.0;
3938 inherit: "default" 0.0;
3939 image.normal: "00_button_01_dim.png";
3941 description { state: "focused" 0.0;
3942 inherit: "default" 0.0;
3943 image.normal: "00_button_01_press.png";
3946 part { name: "padding_left_top";
3950 description { state: "default" 0.0;
3952 rel2.relative: 0.0 0.0;
3953 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3958 part { name: "padding_right_bottom";
3962 description { state: "default" 0.0;
3964 rel1.relative: 1.0 1.0;
3965 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3970 part { name: "elm.text";
3975 description { state: "default" 0.0;
3979 to_x: "padding_icon_text";
3980 to_y: "padding_left_top";
3984 to: "padding_right_bottom";
3986 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3988 style: "btn_multiline_style";
3991 description { state: "visible" 0.0;
3992 inherit: "default" 0.0;
3996 description { state: "clicked" 0.0;
3997 inherit: "default" 0.0;
4000 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
4002 description { state: "disabled" 0.0;
4003 inherit: "default" 0.0;
4005 description { state: "disabled_visible" 0.0;
4006 inherit: "default" 0.0;
4007 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4011 description { state: "focused" 0.0;
4012 inherit: "default" 0.0;
4015 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4021 ///////////////////////////////////////////////////////////////////////////////////////
4022 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
4023 group { name: "elm/button/base/"style_name; \
4025 item: "focus_highlight" "on"; \
4028 image: image_normal COMP; \
4029 image: image_press COMP; \
4030 image: image_dim COMP; \
4031 image: "00_button_01.png" COMP; \
4032 image: "00_button_01_press.png" COMP; \
4033 image: "00_button_01_focus.png" COMP; \
4036 part { name: "button_image"; \
4038 description { state: "default" 0.0; \
4039 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4040 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4042 normal: "00_button_01.png"; \
4043 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
4048 state: "clicked" 0.0; \
4049 inherit: "default" 0.0; \
4050 image.normal: "00_button_01_press.png"; \
4053 state: "disabled" 0.0; \
4054 inherit: "default" 0.0; \
4055 image.normal: "00_button_01_dim.png"; \
4058 state: "focused" 0.0; \
4059 inherit: "default" 0.0; \
4060 image.normal: "00_button_01_press.png"; \
4063 part { name: "focus_image"; \
4067 description { state: "default" 0.0; \
4068 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4069 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4071 rel1.to : "button_image"; \
4072 rel2.to : "button_image"; \
4074 normal: "00_button_01_focus.png"; \
4075 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
4079 description { state: "focused" 0.0; \
4080 inherit: "default" 0.0; \
4084 part { name: "button_center_part"; \
4086 clip_to: "icon_clipper"; \
4087 description { state: "default" 0.0; \
4088 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
4089 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
4090 image.normal: image_normal; \
4093 state: "clicked" 0.0; \
4094 inherit: "default" 0.0; \
4095 image.normal: image_press; \
4098 state: "disabled" 0.0; \
4099 inherit: "default" 0.0; \
4102 part { name: "icon_clipper"; \
4105 description { state: "default" 0.0; \
4106 color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
4108 description { state: "clicked" 0.0; \
4109 color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
4111 description { state: "disabled" 0.0; \
4112 color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
4115 part { name: "over1"; \
4117 ignore_flags: ON_HOLD; \
4118 description { state: "default" 0.0; \
4122 part { name: "over2"; \
4125 description { state: "default" 0.0; \
4129 part { name: "disabler"; \
4131 description { state: "default" 0.0; \
4135 description { state: "disabled" 0.0; \
4136 inherit: "default" 0.0; \
4142 program { name: "button_click"; \
4143 signal: "mouse,down,1"; \
4145 action: SIGNAL_EMIT "elm,action,press" ""; \
4146 after: "button_click_anim"; \
4148 program { name: "button_click_anim"; \
4149 action: STATE_SET "clicked" 0.0; \
4150 target: "button_image"; \
4151 target: "button_center_part"; \
4152 target: ""icon_clipper""; \
4154 program { name: "button_double_click"; \
4155 signal: "mouse,down,1,double"; \
4157 after: "button_click_anim"; \
4159 program { name: "button_unclick"; \
4160 signal: "mouse,up,1"; \
4162 action: SIGNAL_EMIT "elm,action,unpress" ""; \
4163 after: "button_unclick_anim"; \
4165 program { name: "button_unclick_anim"; \
4166 action: STATE_SET "default" 0.0; \
4167 target: "button_image"; \
4168 target: "button_center_part"; \
4169 target: ""icon_clipper""; \
4171 program { name: "touch_snd"; \
4172 signal: "mouse,clicked,1"; \
4174 action: PLAY_SAMPLE "touch_sound" 1.0; \
4175 after: button_unclick3; \
4177 program { name: "button_unclick3"; \
4178 action: SIGNAL_EMIT "elm,action,click" ""; \
4180 program { name: "disable"; \
4181 signal: "elm,state,disabled"; \
4183 action: STATE_SET "disabled" 0.0; \
4184 target: "disabler"; \
4185 target: "button_image"; \
4186 target: "button_center_part"; \
4187 target: ""icon_clipper""; \
4189 program { name: "enable"; \
4190 signal: "elm,state,enabled"; \
4192 action: STATE_SET "default" 0.0; \
4193 target: "disabler"; \
4194 target: "button_image"; \
4195 target: "button_center_part"; \
4196 target: ""icon_clipper""; \
4198 program { name: "action_focus"; \
4199 signal: "elm,action,focus_highlight,show"; \
4201 action: STATE_SET "focused" 0.0; \
4202 target: "focus_image"; \
4204 program { name: "action_unfocus"; \
4205 signal: "elm,action,focus_highlight,hide"; \
4207 action: STATE_SET "default" 0.0; \
4208 target: "focus_image"; \
4212 ///////////////////////////////////////////////////////////////////////////////////////
4213 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
4214 ///////////////////////////////////////////////////////////////////////////////////////
4215 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
4216 ///////////////////////////////////////////////////////////////////////////////////////
4218 group { name: "elm/button/base/multibuttonentry";
4219 alias: "elm/button/base/text_only/multibuttonentry";
4221 item: "focus_highlight" "on";
4224 image: "00_contacts_button.png" COMP;
4225 image: "00_contacts_button_press.png" COMP;
4226 image: "00_contacts_button_focus.png" COMP;
4229 style { name: "btn_base_multibuttonentry";
4230 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4235 style { name: "btn_base_multibuttonentry_pressed";
4236 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4243 public button_state = BUTTON_STATE_ENABLED;
4246 part { name: "button_image";
4248 description { state: "default" 0.0;
4250 to_x: "padding.left";
4254 to_x: "padding.right";
4257 min: BUTTON_CONTACT_BG_MIN_INC;
4259 normal: "00_contacts_button.png";
4260 border: BUTTON_CONTACT_BG_BORDER_INC;
4264 description { state: "clicked" 0.0;
4265 inherit: "default" 0.0;
4266 image.normal: "00_contacts_button_press.png";
4268 description { state: "disabled" 0.0;
4269 inherit: "default" 0.0;
4271 description { state: "focused" 0.0;
4272 inherit: "default" 0.0;
4273 image.normal: "00_contacts_button_press.png";
4276 part { name: "focus_image";
4280 description { state: "default" 0.0;
4282 rel1.to : "button_image";
4283 rel2.to : "button_image";
4285 normal: "00_contacts_button_focus.png";
4286 border: BUTTON_CONTACT_BG_BORDER_INC;
4290 description { state: "focused" 0.0;
4291 inherit: "default" 0.0;
4295 part { name: "padding.left";
4298 description { state: "default" 0.0;
4300 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
4310 part { name: "padding.right";
4313 description { state: "default" 0.0;
4315 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
4325 part { name: "elm.text";
4329 description { state: "default" 0.0;
4333 style: "btn_base_multibuttonentry";
4337 description { state: "visible" 0.0;
4338 inherit: "default" 0.0;
4342 description { state: "clicked" 0.0;
4343 inherit: "default" 0.0;
4347 style: "btn_base_multibuttonentry_pressed";
4350 description { state: "disabled" 0.0;
4351 inherit: "default" 0.0;
4353 description { state: "disabled_visible" 0.0;
4354 inherit: "default" 0.0;
4355 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
4359 description { state: "focused" 0.0;
4360 inherit: "default" 0.0;
4363 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
4366 part { name: "over1";
4369 description { state: "default" 0.0;
4370 rel2.relative: 1.0 0.5;
4374 part { name: "over2";
4377 ignore_flags: ON_HOLD;
4378 description { state: "default" 0.0;
4379 rel1.to: "button_image";
4380 rel2.to: "button_image";
4384 part { name: "over3";
4387 description { state: "default" 0.0;
4388 rel1.to: "button_image";
4389 rel2.to: "button_image";
4393 part { name: "disabler";
4395 description { state: "default" 0.0;
4396 rel1.to: "button_image";
4397 rel2.to: "button_image";
4401 description { state: "disabled" 0.0;
4402 inherit: "default" 0.0;
4408 program { name: "button_click";
4409 signal: "mouse,down,1";
4411 action: SIGNAL_EMIT "elm,action,press" "";
4412 after: "button_click_anim";
4414 program { name: "button_click_anim";
4415 action: STATE_SET "clicked" 0.0;
4416 target: "button_image";
4419 program { name: "button_double_click";
4420 signal: "mouse,down,1,double";
4422 after: "button_click_anim";
4424 program { name: "button_unpress";
4425 action: SIGNAL_EMIT "elm,action,unpress" "";
4427 program { name: "button_mouseout_clicked";
4428 signal: "mouse,up,1";
4433 get_state(PART:"elm.text", st, 30, vl);
4434 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4436 emit("elm,action,default,text,set", "");
4437 set_state(PART:"elm.text", "visible", 0.0);
4439 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4440 set_state(PART:"button_image", "default", 0.0);
4442 after: button_unpress;
4444 program { name: "touch_snd";
4445 signal: "mouse,clicked,1";
4447 action: PLAY_SAMPLE "touch_sound" 1.0;
4448 after: button_unclick3;
4450 program { name: "button_unclick3";
4451 action: SIGNAL_EMIT "elm,action,click" "";
4453 program { name: "text_show";
4454 signal: "elm,state,text,visible";
4457 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4458 set_state(PART:"elm.text", "visible", 0.0);
4460 set_state(PART:"elm.text", "disabled_visible", 0.0);
4463 program { name: "text_hide";
4464 signal: "elm,state,text,hidden";
4466 action: STATE_SET "default" 0.0;
4469 program { name: "disable";
4470 signal: "elm,state,disabled";
4472 action: STATE_SET "disabled" 0.0;
4473 target: "button_image";
4475 after: "disable_text";
4477 program { name: "disable_text";
4481 get_state(PART:"elm.text", st, 30, vl);
4482 if (!strcmp(st, "visible"))
4483 set_state(PART:"elm.text", "disabled_visible", 0.0);
4485 set_state(PART:"elm.text", "disabled", 0.0);
4486 set_int(button_state, BUTTON_STATE_DISABLED);
4489 program { name: "enable";
4490 signal: "elm,state,enabled";
4492 action: STATE_SET "default" 0.0;
4493 target: "button_image";
4495 after: "enable_text";
4497 program { name: "enable_text";
4501 get_state(PART:"elm.text", st, 30, vl);
4502 if (!strcmp(st, "disabled_visible"))
4503 set_state(PART:"elm.text", "visible", 0.0);
4505 set_state(PART:"elm.text", "default", 0.0);
4506 set_int(button_state, BUTTON_STATE_ENABLED);
4509 program { name: "action_focus";
4510 signal: "elm,action,focus_highlight,show";
4512 action: STATE_SET "focused" 0.0;
4513 target: "focus_image";
4515 program { name: "action_unfocus";
4516 signal: "elm,action,focus_highlight,hide";
4518 action: STATE_SET "default" 0.0;
4519 target: "focus_image";
4524 ///////////////////////////////////////////////////////////////////////////////////////
4525 group { name: "elm/button/base/naviframe/back_btn/default";
4526 alias: "elm/button/base/naviframe/prev_btn/default";
4527 alias: "elm/button/base/naviframe/end_btn/default";
4529 item: "focus_highlight" "on";
4532 image: "00_icon_back.png" COMP;
4533 image: "00_icon_SIP_close.png" COMP;
4534 image: "00_icon_focus.png" COMP;
4537 part { name: "button_image";
4540 description { state: "default" 0.0;
4541 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4542 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4545 description { state: "landscape" 0.0;
4546 min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4547 max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4551 part { name: "focus_image";
4555 description { state: "default" 0.0;
4557 rel1.to : "button_image";
4558 rel2.to : "button_image";
4560 normal: "00_icon_focus.png";
4564 description { state: "focused" 0.0;
4565 inherit: "default" 0.0;
4569 part { name: "back_button";
4572 clip_to: "back_button.clipper";
4573 description { state: "default" 0.0;
4574 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4575 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4577 rel1.to: "button_image";
4578 rel2.to: "button_image";
4579 image.normal: "00_icon_back.png";
4581 description { state: "compress" 0.0;
4582 inherit: "default" 0.0;
4583 image.normal: "00_icon_SIP_close.png";
4586 part { name: "back_button.clipper";
4588 description { state: "default" 0.0;
4589 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4591 description { state: "clicked" 0.0;
4592 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4594 description { state: "disabled" 0.0;
4595 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4598 part { name: "over2";
4600 ignore_flags: ON_HOLD;
4601 description { state: "default" 0.0;
4605 part { name: "over3";
4608 description { state: "default" 0.0;
4612 part { name: "disabler";
4614 description { state: "default" 0.0;
4618 description { state: "disabled" 0.0;
4619 inherit: "default" 0.0;
4625 program { name: "button_click";
4626 signal: "mouse,down,1";
4628 action: SIGNAL_EMIT "elm,action,press" "";
4629 after: "button_click_anim";
4631 program { name: "button_click_anim";
4633 set_state(PART:"back_button.clipper", "clicked", 0.0);
4636 program { name: "button_double_click";
4637 signal: "mouse,down,1,double";
4639 after: "button_click_anim";
4641 program { name: "button_unclick";
4642 signal: "mouse,up,1";
4644 action: SIGNAL_EMIT "elm,action,unpress" "";
4645 after: "button_unclick_anim";
4647 program { name: "button_unclick_anim";
4649 set_state(PART:"back_button.clipper", "default", 0.0);
4652 program { name: "touch_snd";
4653 signal: "mouse,clicked,1";
4655 action: PLAY_SAMPLE "touch_sound" 1.0;
4656 after: button_unclick3;
4658 program { name: "button_unclick3";
4659 action: SIGNAL_EMIT "elm,action,click" "";
4661 program { name: "disable";
4662 signal: "elm,state,disabled";
4665 set_state(PART:"back_button.clipper", "disabled", 0.0);
4668 program { name: "enable";
4669 signal: "elm,state,enabled";
4672 set_state(PART:"back_button.clipper", "default", 0.0);
4675 program { name: "change_to_landscape";
4676 signal: "elm,state,landscape";
4678 action: STATE_SET "landscape" 0.0;
4679 target: "button_image";
4681 program { name: "change_to_portrait";
4682 signal: "elm,state,portrait";
4684 action: STATE_SET "default" 0.0;
4685 target: "button_image";
4687 program { name: "landscape_mode";
4689 signal: "elm,state,orient,90";
4690 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4692 program { name: "landscape_mode2";
4694 signal: "elm,state,orient,270";
4695 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4697 program { name: "portrait_mode";
4699 signal: "elm,state,orient,0";
4700 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4702 program { name: "portrait_mode2";
4704 signal: "elm,state,orient,180";
4705 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4707 program { name: "display_compress_mode";
4708 signal: "elm,state,display,compress";
4710 action: STATE_SET "compress" 0.0;
4711 target: "back_button";
4713 program { name: "display_default_mode";
4714 signal: "elm,state,display,default";
4716 action: STATE_SET "default" 0.0;
4717 target: "back_button";
4719 program { name: "action_focus";
4720 signal: "elm,action,focus_highlight,show";
4722 action: STATE_SET "focused" 0.0;
4723 target: "focus_image";
4725 program { name: "action_unfocus";
4726 signal: "elm,action,focus_highlight,hide";
4728 action: STATE_SET "default" 0.0;
4729 target: "focus_image";
4734 //////////////////////////////////////////////////////////////
4735 /* group { name: "elm/button/base/naviframe/toolbar/default";
4736 alias: "elm/button/base/naviframe/title/default";
4738 item: "focus_highlight" "on";
4741 image: "00_toolbar_button.png" COMP;
4742 image: "00_toolbar_button_press.png" COMP;
4743 image: "00_toolbar_button_dim.png" COMP;
4744 image: "00_toolbar_button_focus.png" COMP;
4747 style { name: "btn_naviframe_toolbar";
4748 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TOOLBAR_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_NORMAL_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4753 style { name: "btn_naviframe_toolbar_pressed";
4754 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TOOLBAR_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_PRESSED_COLOR_INC" style=shadow,top shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4759 style { name: "btn_naviframe_toolbar_disabled";
4760 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TOOLBAR_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_DISABLED_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4767 public button_state = BUTTON_STATE_ENABLED;
4768 public landscape_state = BUTTON_LANDSCAPE_DISABLED;
4771 part { name: "button_bg";
4774 description { state: "default" 0.0;
4775 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
4776 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MAX_INC;
4778 rel1.to: "padding_text_left_top";
4779 rel2.to: "padding_text_right_bottom";
4781 description { state: "landscape" 0.0;
4782 inherit: "default" 0.0;
4783 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
4784 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
4787 part { name: "button_image";
4789 description { state: "default" 0.0;
4790 rel1.to: "button_bg";
4791 rel2.to: "button_bg";
4793 normal: "00_toolbar_button.png";
4794 border: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_PRESSED_BORDER_INC;
4798 description { state: "clicked" 0.0;
4799 inherit: "default" 0.0;
4800 image.normal: "00_toolbar_button_press.png";
4802 description { state: "disabled" 0.0;
4803 inherit: "default" 0.0;
4804 image.normal: "00_toolbar_button_dim.png";
4806 description { state: "focused" 0.0;
4807 inherit: "default" 0.0;
4808 image.normal: "00_toolbar_button_press.png";
4811 part { name: "focus_image";
4815 description { state: "default" 0.0;
4817 rel1.to : "button_image";
4818 rel2.to : "button_image";
4820 normal: "00_toolbar_button_focus.png";
4821 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4825 description { state: "focused" 0.0;
4826 inherit: "default" 0.0;
4830 part { name: "padding_left_top";
4834 description { state: "default" 0.0;
4837 rel2.relative: 0.0 0.0;
4838 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4842 part { name: "padding_right_bottom";
4846 description { state: "default" 0.0;
4848 rel1.relative: 1.0 1.0;
4849 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4854 part { name: "padding_text_left_top";
4858 description { state: "default" 0.0;
4860 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4862 rel1.to: "elm.text";
4870 part { name: "padding_text_right_bottom";
4874 description { state: "default" 0.0;
4875 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4882 rel2.to: "elm.text";
4886 part { name: "elm.text";
4891 description { state: "default" 0.0;
4894 min: BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_MIN_INC;
4897 to: "padding_left_top";
4901 to: "padding_right_bottom";
4907 style: "btn_naviframe_toolbar";
4910 description { state: "landscape" 0.0;
4911 inherit: "default" 0.0;
4912 min: BUTTON_NAVIFRAME_TOOLBAR_LANDSCAPE_TEXTBLOCK_MIN_INC;
4914 description { state: "visible" 0.0;
4915 inherit: "default" 0.0;
4918 description { state: "landscape_visible" 0.0;
4919 inherit: "landscape" 0.0;
4922 description { state: "clicked" 0.0;
4923 inherit: "default" 0.0;
4926 style: "btn_naviframe_toolbar_pressed";
4929 description { state: "landscape_clicked" 0.0;
4930 inherit: "landscape" 0.0;
4933 style: "btn_naviframe_toolbar_pressed";
4936 description { state: "disabled" 0.0;
4937 inherit: "default" 0.0;
4939 description { state: "landscape_disabled" 0.0;
4940 inherit: "landscape" 0.0;
4942 description { state: "disabled_visible" 0.0;
4943 inherit: "default" 0.0;
4946 style: "btn_naviframe_toolbar_disabled";
4949 description { state: "landscape_disabled_visible" 0.0;
4950 inherit: "landscape" 0.0;
4953 style: "btn_naviframe_toolbar_disabled";
4956 description { state: "focused" 0.0;
4957 inherit: "default" 0.0;
4960 style: "btn_naviframe_toolbar_pressed";
4963 description { state: "landscape_focused" 0.0;
4964 inherit: "landscape" 0.0;
4967 style: "btn_naviframe_toolbar_pressed";
4971 part { name: "disclip";
4973 description { state: "default" 0.0;
4974 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4976 description { state: "disabled" 0.0;
4977 inherit: "default" 0.0;
4978 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4981 part { name: "over2";
4984 ignore_flags: ON_HOLD;
4985 description { state: "default" 0.0;
4986 rel1.to: "button_image";
4987 rel2.to: "button_image";
4991 part { name: "over3";
4994 description { state: "default" 0.0;
4995 rel1.to: "button_image";
4996 rel2.to: "button_image";
5000 part { name: "disabler";
5002 description { state: "default" 0.0;
5003 rel1.to: "button_image";
5004 rel2.to: "button_image";
5008 description { state: "disabled" 0.0;
5009 inherit: "default" 0.0;
5015 program { name: "button_click";
5016 signal: "mouse,down,1";
5018 action: SIGNAL_EMIT "elm,action,press" "";
5019 after: "button_click_anim";
5021 program { name: "button_click_anim";
5023 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5024 set_state(PART:"elm.text", "landscape_clicked", 0.0);
5026 set_state(PART:"elm.text", "clicked", 0.0);
5027 set_state(PART:"button_image", "clicked", 0.0);
5030 program { name: "button_double_click";
5031 signal: "mouse,down,1,double";
5033 after: "button_click_anim";
5035 program { name: "button_unpress";
5036 action: SIGNAL_EMIT "elm,action,unpress" "";
5038 program { name: "button_mouseout_clicked";
5039 signal: "mouse,up,1";
5044 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5046 get_state(PART:"elm.text", st, 30, vl);
5047 if (!strcmp(st, "landscape_clicked") || !strcmp(st, "landscape_focused"))
5049 emit("elm,action,default,text,set", "");
5050 set_state(PART:"elm.text", "landscape_visible", 0.0);
5055 get_state(PART:"elm.text", st, 30, vl);
5056 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5058 emit("elm,action,default,text,set", "");
5059 set_state(PART:"elm.text", "visible", 0.0);
5062 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5063 set_state(PART:"button_image", "default", 0.0);
5065 after: button_unpress;
5067 program { name: "touch_snd";
5068 signal: "mouse,clicked,1";
5070 action: PLAY_SAMPLE "touch_sound" 1.0;
5071 after: button_unclick3;
5073 program { name: "button_unclick3";
5074 action: SIGNAL_EMIT "elm,action,click" "";
5076 program { name: "text_show";
5077 signal: "elm,state,text,visible";
5080 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5082 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5083 set_state(PART:"elm.text", "landscape_visible", 0.0);
5085 set_state(PART:"elm.text", "visible", 0.0);
5089 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5090 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
5092 set_state(PART:"elm.text", "disabled_visible", 0.0);
5096 program { name: "text_hide";
5097 signal: "elm,state,text,hidden";
5100 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5101 set_state(PART:"elm.text", "landscape", 0.0);
5103 set_state(PART:"elm.text", "default", 0.0);
5106 program { name: "disable";
5107 signal: "elm,state,disabled";
5109 action: STATE_SET "disabled" 0.0;
5110 target: "button_image";
5113 after: "disable_text";
5115 program { name: "disable_text";
5119 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5121 get_state(PART:"elm.text", st, 30, vl);
5122 if (!strcmp(st, "landscape_visible"))
5123 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
5125 set_state(PART:"elm.text", "landscape_disabled", 0.0);
5129 get_state(PART:"elm.text", st, 30, vl);
5130 if (!strcmp(st, "visible"))
5131 set_state(PART:"elm.text", "disabled_visible", 0.0);
5133 set_state(PART:"elm.text", "disabled", 0.0);
5135 set_int(button_state, BUTTON_STATE_DISABLED);
5138 program { name: "enable";
5139 signal: "elm,state,enabled";
5141 action: STATE_SET "default" 0.0;
5142 target: "button_image";
5145 after: "enable_text";
5147 program { name: "enable_text";
5151 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5153 get_state(PART:"elm.text", st, 30, vl);
5154 if (!strcmp(st, "landscape_disabled"))
5155 set_state(PART:"elm.text", "landscape", 0.0);
5157 set_state(PART:"elm.text", "landscape_visible", 0.0);
5161 get_state(PART:"elm.text", st, 30, vl);
5162 if (!strcmp(st, "disabled"))
5163 set_state(PART:"elm.text", "default", 0.0);
5165 set_state(PART:"elm.text", "visible", 0.0);
5167 set_int(button_state, BUTTON_STATE_ENABLED);
5170 program { name: "change_to_landscape";
5171 signal: "elm,state,landscape";
5176 set_int(landscape_state, BUTTON_LANDSCAPE_ENABLED);
5177 get_state(PART:"elm.text", st, 30, vl);
5178 if (!strcmp(st, "default"))
5179 set_state(PART:"elm.text", "landscape", 0.0);
5180 else if (!strcmp(st, "clicked"))
5181 set_state(PART:"elm.text", "landscape_clicked", 0.0);
5182 else if (!strcmp(st, "disabled"))
5183 set_state(PART:"elm.text", "landscape_disabled", 0.0);
5184 else if (!strcmp(st, "disabled_visible"))
5185 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
5187 set_state(PART:"elm.text", "landscape_visible", 0.0);
5188 set_state(PART:"button_bg", "landscape", 0.0);
5191 program { name: "change_to_portrait";
5192 signal: "elm,state,portrait";
5197 set_int(landscape_state, BUTTON_LANDSCAPE_DISABLED);
5198 get_state(PART:"elm.text", st, 30, vl);
5199 if (!strcmp(st, "landscape"))
5200 set_state(PART:"elm.text", "default", 0.0);
5201 else if (!strcmp(st, "landscape_clicked"))
5202 set_state(PART:"elm.text", "clicked", 0.0);
5203 else if (!strcmp(st, "landscape_disabled"))
5204 set_state(PART:"elm.text", "disabled", 0.0);
5205 else if (!strcmp(st, "landscape_disabled_visible"))
5206 set_state(PART:"elm.text", "disabled_visible", 0.0);
5208 set_state(PART:"elm.text", "visible", 0.0);
5209 set_state(PART:"button_bg", "default", 0.0);
5212 program { name: "landscape_mode";
5214 signal: "elm,state,orient,90";
5215 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5217 program { name: "landscape_mode2";
5219 signal: "elm,state,orient,270";
5220 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5222 program { name: "portrait_mode";
5224 signal: "elm,state,orient,0";
5225 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5227 program { name: "portrait_mode2";
5229 signal: "elm,state,orient,180";
5230 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5232 program { name: "action_focus";
5233 signal: "elm,action,focus_highlight,show";
5235 action: STATE_SET "focused" 0.0;
5236 target: "focus_image";
5238 program { name: "action_unfocus";
5239 signal: "elm,action,focus_highlight,hide";
5241 action: STATE_SET "default" 0.0;
5242 target: "focus_image";
5247 //////////////////////////////////////////////////////////////
5248 group { name: "elm/button/base/naviframe/toolbar/left";
5249 inherit: "elm/button/base/naviframe/toolbar/default";
5251 part { name: "button_bg";
5254 description { state: "default" 0.0;
5255 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
5256 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MAX_INC;
5258 rel1.to: "padding_text_left_top";
5259 rel2.to: "padding_text_right_bottom";
5262 description { state: "landscape" 0.0;
5263 inherit: "default" 0.0;
5264 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5265 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
5268 part { name: "elm.text";
5273 description { state: "default" 0.0;
5276 min: BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_MIN_INC;
5279 to: "padding_left_top";
5283 to: "padding_right_bottom";
5290 style: "btn_naviframe_toolbar";
5293 description { state: "landscape" 0.0;
5294 inherit: "default" 0.0;
5295 min: BUTTON_NAVIFRAME_TOOLBAR_LANDSCAPE_TEXTBLOCK_MIN_INC;
5297 description { state: "visible" 0.0;
5298 inherit: "default" 0.0;
5301 description { state: "landscape_visible" 0.0;
5302 inherit: "landscape" 0.0;
5305 description { state: "clicked" 0.0;
5306 inherit: "default" 0.0;
5309 style: "btn_naviframe_toolbar_pressed";
5312 description { state: "landscape_clicked" 0.0;
5313 inherit: "landscape" 0.0;
5316 style: "btn_naviframe_toolbar_pressed";
5319 description { state: "disabled" 0.0;
5320 inherit: "default" 0.0;
5322 description { state: "landscape_disabled" 0.0;
5323 inherit: "landscape" 0.0;
5325 description { state: "disabled_visible" 0.0;
5326 inherit: "default" 0.0;
5329 style: "btn_naviframe_toolbar_disabled";
5332 description { state: "landscape_disabled_visible" 0.0;
5333 inherit: "landscape" 0.0;
5336 style: "btn_naviframe_toolbar_disabled";
5339 description { state: "focused" 0.0;
5340 inherit: "default" 0.0;
5343 style: "btn_naviframe_toolbar_pressed";
5346 description { state: "landscape_focused" 0.0;
5347 inherit: "landscape" 0.0;
5350 style: "btn_naviframe_toolbar_pressed";
5357 //////////////////////////////////////////////////////////////
5358 group { name: "elm/button/base/naviframe/toolbar/right";
5359 inherit: "elm/button/base/naviframe/toolbar/default";
5361 part { name: "button_bg";
5364 description { state: "default" 0.0;
5365 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
5366 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MAX_INC;
5368 rel1.to: "padding_text_left_top";
5369 rel2.to: "padding_text_right_bottom";
5372 description { state: "landscape" 0.0;
5373 inherit: "default" 0.0;
5374 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5375 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
5378 part { name: "elm.text";
5383 description { state: "default" 0.0;
5386 min: BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_MIN_INC;
5389 to: "padding_left_top";
5393 to: "padding_right_bottom";
5400 style: "btn_naviframe_toolbar";
5403 description { state: "landscape" 0.0;
5404 inherit: "default" 0.0;
5405 min: BUTTON_NAVIFRAME_TOOLBAR_LANDSCAPE_TEXTBLOCK_MIN_INC;
5407 description { state: "visible" 0.0;
5408 inherit: "default" 0.0;
5411 description { state: "landscape_visible" 0.0;
5412 inherit: "landscape" 0.0;
5415 description { state: "clicked" 0.0;
5416 inherit: "default" 0.0;
5419 style: "btn_naviframe_toolbar_pressed";
5422 description { state: "landscape_clicked" 0.0;
5423 inherit: "landscape" 0.0;
5426 style: "btn_naviframe_toolbar_pressed";
5429 description { state: "disabled" 0.0;
5430 inherit: "default" 0.0;
5432 description { state: "landscape_disabled" 0.0;
5433 inherit: "landscape" 0.0;
5435 description { state: "disabled_visible" 0.0;
5436 inherit: "default" 0.0;
5439 style: "btn_naviframe_toolbar_disabled";
5442 description { state: "landscape_disabled_visible" 0.0;
5443 inherit: "landscape" 0.0;
5446 style: "btn_naviframe_toolbar_disabled";
5449 description { state: "focused" 0.0;
5450 inherit: "default" 0.0;
5453 style: "btn_naviframe_toolbar_pressed";
5456 description { state: "landscape_focused" 0.0;
5457 inherit: "landscape" 0.0;
5460 style: "btn_naviframe_toolbar_pressed";
5467 ////////////////////////////////////////////////////////////////////
5468 group { name: "elm/button/base/naviframe/title_icon";
5470 item: "focus_highlight" "on";
5473 image: "00_icon_focus.png" COMP;
5476 part { name: "button_image";
5479 description { state: "default" 0.0;
5481 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5482 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5484 description { state: "landscape" 0.0;
5486 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5487 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5490 part { name: "focus_image";
5494 description { state: "default" 0.0;
5496 rel1.to : "button_image";
5497 rel2.to : "button_image";
5499 normal: "00_icon_focus.png";
5503 description { state: "focused" 0.0;
5504 inherit: "default" 0.0;
5508 part { name: "elm.swallow.content";
5511 clip_to: "elm.icon.clipper";
5512 description { state: "default" 0.0;
5514 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5516 rel1 { to: "button_image"; }
5517 rel2 { to: "button_image"; }
5519 description { state: "visible" 0.0;
5520 inherit: "default" 0.0;
5524 part { name: "elm.icon.clipper";
5526 description { state: "default" 0.0;
5527 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5529 description { state: "clicked" 0.0;
5530 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5532 description { state: "disabled" 0.0;
5533 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5536 part { name: "over2";
5538 ignore_flags: ON_HOLD;
5539 description { state: "default" 0.0;
5543 part { name: "over3";
5546 description { state: "default" 0.0;
5550 part { name: "disabler";
5552 description { state: "default" 0.0;
5556 description { state: "disabled" 0.0;
5557 inherit: "default" 0.0;
5563 program { name: "button_click";
5564 signal: "mouse,down,1";
5566 action: SIGNAL_EMIT "elm,action,press" "";
5567 after: "button_click_anim";
5569 program { name: "button_click_anim";
5571 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5574 program { name: "button_double_click";
5575 signal: "mouse,down,1,double";
5577 after: "button_click_anim";
5579 program { name: "button_unpress";
5580 action: SIGNAL_EMIT "elm,action,unpress" "";
5582 program { name: "button_mouseout_clicked";
5583 signal: "mouse,up,1";
5585 action: STATE_SET "default" 0.0;
5586 target: "elm.icon.clipper";
5587 after: button_unpress;
5589 program { name: "touch_snd";
5590 signal: "mouse,clicked,1";
5592 action: PLAY_SAMPLE "touch_sound" 1.0;
5593 after: button_unclick3;
5595 program { name: "button_unclick3";
5596 action: SIGNAL_EMIT "elm,action,click" "";
5598 program { name: "icon_show";
5599 signal: "elm,state,icon,visible";
5601 action: STATE_SET "visible" 0.0;
5602 target: "elm.swallow.content";
5604 program { name: "icon_hide";
5605 signal: "elm,state,icon,hidden";
5607 action: STATE_SET "default" 0.0;
5608 target: "elm.swallow.content";
5610 program { name: "disable";
5611 signal: "elm,state,disabled";
5614 set_state(PART:"disabler", "disabled", 0.0);
5615 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5618 program { name: "enable";
5619 signal: "elm,state,enabled";
5622 set_state(PART:"disabler", "default", 0.0);
5623 set_state(PART:"elm.icon.clipper", "default", 0.0);
5626 program { name: "change_to_landscape";
5627 signal: "elm,state,landscape";
5629 action: STATE_SET "landscape" 0.0;
5630 target: "button_image";
5632 program { name: "change_to_portrait";
5633 signal: "elm,state,portrait";
5635 action: STATE_SET "default" 0.0;
5636 target: "button_image";
5638 program { name: "landscape_mode";
5640 signal: "elm,state,orient,90";
5641 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5643 program { name: "landscape_mode2";
5645 signal: "elm,state,orient,270";
5646 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5648 program { name: "portrait_mode";
5650 signal: "elm,state,orient,0";
5651 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5653 program { name: "portrait_mode2";
5655 signal: "elm,state,orient,180";
5656 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5658 program { name: "action_focus";
5659 signal: "elm,action,focus_highlight,show";
5661 action: STATE_SET "focused" 0.0;
5662 target: "focus_image";
5664 program { name: "action_unfocus";
5665 signal: "elm,action,focus_highlight,hide";
5667 action: STATE_SET "default" 0.0;
5668 target: "focus_image";
5673 ////////////////////////////////////////////////////////////////////
5674 group { name: "elm/button/base/naviframe/title_text";
5676 image: "00_title_press.png" COMP;
5679 style { name: "btn_naviframe_title_text";
5680 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5687 part { name: "button_bg";
5690 description { state: "default" 0.0;
5691 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_INC;
5692 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MAX_INC;
5694 description { state: "landscape" 0.0;
5695 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_INC;
5696 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MAX_INC;
5699 part { name: "button_image";
5702 description { state: "default" 0.0;
5704 rel1 { to: "button_bg"; }
5705 rel2 { to: "button_bg"; }
5707 description { state: "clicked" 0.0;
5708 inherit: "default" 0.0;
5711 normal: "00_title_press.png";
5712 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
5717 part { name: "left_padding";
5720 description { state: "default" 0.0;
5722 min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
5723 max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
5726 rel1 { relative: 0.0 0.0; to: "button_bg"; }
5727 rel2 { relative: 0.0 1.0; to: "button_bg"; }
5730 part { name: "right_padding";
5733 description { state: "default" 0.0;
5735 min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
5736 max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
5739 rel1 { relative: 1.0 0.0; to: "button_bg"; }
5740 rel2 { relative: 1.0 1.0; to: "button_bg"; }
5743 part { name: "elm.text";
5747 clip_to: "button_bg";
5748 description { state: "default" 0.0;
5749 min: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MIN_INC;
5750 max: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MAX_INC;
5751 rel1 { relative: 1.0 0.0; to: "left_padding"; }
5752 rel2 { relative: 0.0 1.0; to: "right_padding"; }
5754 style: "btn_naviframe_title_text";
5755 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
5759 description { state: "landscape" 0.0;
5760 inherit: "default" 0.0;
5761 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MIN_INC;
5762 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MAX_INC;
5765 part { name: "over2";
5767 ignore_flags: ON_HOLD;
5768 description { state: "default" 0.0;
5772 part { name: "over3";
5775 description { state: "default" 0.0;
5779 part { name: "disabler";
5781 description { state: "default" 0.0;
5785 description { state: "disabled" 0.0;
5786 inherit: "default" 0.0;
5792 program { name: "button_click";
5793 signal: "mouse,down,1";
5795 action: SIGNAL_EMIT "elm,action,press" "";
5796 after: "button_click_anim";
5798 program { name: "button_click_anim";
5800 set_state(PART:"button_image", "clicked", 0.0);
5803 program { name: "button_double_click";
5804 signal: "mouse,down,1,double";
5806 after: "button_click_anim";
5808 program { name: "button_unclick";
5809 signal: "mouse,up,1";
5811 action: SIGNAL_EMIT "elm,action,unpress" "";
5812 after: "button_unclick_anim";
5814 program { name: "button_unclick_anim";
5816 set_state(PART:"button_image", "default", 0.0);
5819 program { name: "touch_snd";
5820 signal: "mouse,clicked,1";
5822 action: PLAY_SAMPLE "touch_sound" 1.0;
5823 after: "button_unclick3";
5825 program { name: "button_unclick3";
5826 action: SIGNAL_EMIT "elm,action,click" "";
5828 program { name: "change_to_landscape";
5829 signal: "elm,state,landscape";
5832 set_state(PART:"button_bg", "landscape", 0.0);
5833 set_state(PART:"elm.text", "landscape", 0.0);
5836 program { name: "change_to_portrait";
5837 signal: "elm,state,portrait";
5840 set_state(PART:"button_bg", "default", 0.0);
5841 set_state(PART:"elm.text", "default", 0.0);
5844 program { name: "landscape_mode";
5846 signal: "elm,state,orient,90";
5847 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5849 program { name: "landscape_mode2";
5851 signal: "elm,state,orient,270";
5852 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5854 program { name: "portrait_mode";
5856 signal: "elm,state,orient,0";
5857 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5859 program { name: "portrait_mode2";
5861 signal: "elm,state,orient,180";
5862 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5867 /////////////////////////////////////////////////////////////////////////////////////////
5868 group { name: "elm/button/base/naviframe/more/default";
5870 item: "focus_highlight" "on";
5873 image: "00_icon_more.png" COMP;
5874 image: "00_icon_focus.png" COMP;
5877 part { name: "button_image";
5880 description { state: "default" 0.0;
5881 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5882 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5885 description { state: "landscape" 0.0;
5886 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5887 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5891 part { name: "focus_image";
5895 description { state: "default" 0.0;
5897 rel1.to : "button_image";
5898 rel2.to : "button_image";
5900 normal: "00_icon_focus.png";
5904 description { state: "focused" 0.0;
5905 inherit: "default" 0.0;
5909 part { name: "more_image";
5912 clip_to: "more_image.clipper";
5913 description { state: "default" 0.0;
5914 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5915 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5917 rel1.to: "button_image";
5918 rel2.to: "button_image";
5919 image.normal: "00_icon_more.png";
5922 part { name: "more_image.clipper";
5924 description { state: "default" 0.0;
5925 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5927 description { state: "clicked" 0.0;
5928 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5930 description { state: "disabled" 0.0;
5931 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5934 part { name: "over2";
5936 ignore_flags: ON_HOLD;
5937 description { state: "default" 0.0;
5941 part { name: "over3";
5944 description { state: "default" 0.0;
5948 part { name: "disabler";
5950 description { state: "default" 0.0;
5954 description { state: "disabled" 0.0;
5955 inherit: "default" 0.0;
5961 program { name: "button_click";
5962 signal: "mouse,down,1";
5964 action: SIGNAL_EMIT "elm,action,press" "";
5965 after: "button_click_anim";
5967 program { name: "button_click_anim";
5969 set_state(PART:"more_image.clipper", "clicked", 0.0);
5972 program { name: "button_double_click";
5973 signal: "mouse,down,1,double";
5975 after: "button_click_anim";
5977 program { name: "button_unclick";
5978 signal: "mouse,up,1";
5980 action: SIGNAL_EMIT "elm,action,unpress" "";
5981 after: "button_unclick_anim";
5983 program { name: "button_unclick_anim";
5985 set_state(PART:"more_image.clipper", "default", 0.0);
5988 program { name: "touch_snd";
5989 signal: "mouse,clicked,1";
5991 action: PLAY_SAMPLE "touch_sound" 1.0;
5992 after: button_unclick3;
5994 program { name: "button_unclick3";
5995 action: SIGNAL_EMIT "elm,action,click" "";
5997 program { name: "disable";
5998 signal: "elm,state,disabled";
6001 set_state(PART:"disabler", "disabled", 0.0);
6002 set_state(PART:"more_image.clipper", "disabled", 0.0);
6005 program { name: "enable";
6006 signal: "elm,state,enabled";
6009 set_state(PART:"disabler", "default", 0.0);
6010 set_state(PART:"more_image.clipper", "default", 0.0);
6013 program { name: "change_to_landscape";
6014 signal: "elm,state,landscape";
6016 action: STATE_SET "landscape" 0.0;
6017 target: "button_image";
6019 program { name: "change_to_portrait";
6020 signal: "elm,state,portrait";
6022 action: STATE_SET "default" 0.0;
6023 target: "button_image";
6025 program { name: "landscape_mode";
6027 signal: "elm,state,orient,90";
6028 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6030 program { name: "landscape_mode2";
6032 signal: "elm,state,orient,270";
6033 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6035 program { name: "portrait_mode";
6037 signal: "elm,state,orient,0";
6038 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6040 program { name: "portrait_mode2";
6042 signal: "elm,state,orient,180";
6043 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6045 program { name: "action_focus";
6046 signal: "elm,action,focus_highlight,show";
6048 action: STATE_SET "focused" 0.0;
6049 target: "focus_image";
6051 program { name: "action_unfocus";
6052 signal: "elm,action,focus_highlight,hide";
6054 action: STATE_SET "default" 0.0;
6055 target: "focus_image";
6060 ///////////////////////////////////////////////////////////////////////////////////////
6061 group { name: "elm/button/base/tickernoti";
6063 image: "00_notification_button.png" COMP;
6064 image: "00_notification_button_press.png" COMP;
6065 image: "00_notification_button_dim.png" COMP;
6068 public button_state = BUTTON_STATE_ENABLED;
6071 part { name: "button_image";
6073 description { state: "default" 0.0;
6074 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6075 max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6077 normal: "00_notification_button.png";
6078 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
6082 description { state: "clicked" 0.0;
6083 inherit: "default" 0.0;
6084 image.normal: "00_notification_button_press.png";
6086 description { state: "disabled" 0.0;
6087 inherit: "default" 0.0;
6088 image.normal: "00_notification_button_dim.png";
6090 description { state: "focused" 0.0;
6091 inherit: "default" 0.0;
6092 image.normal: "00_notification_button_press.png";
6095 part { name: "padding_left_top";
6099 description { state: "default" 0.0;
6102 rel2.relative: 0.0 0.0;
6103 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
6111 description { state: "default" 0.0;
6112 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6115 description { state: "visible" 0.0;
6116 inherit: "default" 0.0;
6118 description { state: "icononly" 0.0;
6119 inherit: "default" 0.0;
6122 part { name: "padding_right_bottom";
6126 description { state: "default" 0.0;
6128 rel1.relative: 1.0 1.0;
6129 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
6134 part { name: "icon_rect";
6138 description { state: "default" 0.0;
6144 to: "padding_left_top";
6148 to_x: "padding_left_top";
6149 to_y: "padding_right_bottom";
6153 description { state: "visible" 0.0;
6154 inherit: "default" 0.0;
6155 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
6156 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
6158 description { state: "icononly" 0.0;
6159 inherit: "default" 0.0;
6162 part { name: "padding_after_icon";
6166 description { state: "default" 0.0; //when only icon or no icon is there
6175 rel2.to: "icon_rect";
6177 description { state: "visible" 0.0;
6178 inherit: "default" 0.0;
6179 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6181 description { state: "icononly" 0.0;
6182 inherit: "default" 0.0;
6185 part { name: "padding_before_text";
6189 description { state: "default" 0.0; //when only icon or no icon is there
6193 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6197 to_y: "padding_left_top";
6202 to_y: "padding_right_bottom";
6206 part { name: "elm.swallow.content";
6210 description { state: "default" 0.0;
6216 to: "padding_left_top";
6220 to_x: "padding_left_top";
6221 to_y: "padding_right_bottom";
6224 description { state: "visible" 0.0;
6226 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6227 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6231 to_x: "padding_before_text";
6232 to_y: "padding_left_top";
6236 to_x: "padding_before_text";
6237 to_y: "padding_right_bottom";
6240 description { state: "icononly" 0.0;
6241 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6242 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6245 part { name: "elm.text";
6248 effect: FAR_SHADOW BOTTOM;
6251 description { state: "default" 0.0;
6255 to_x: "padding_after_icon";
6256 to_y: "padding_left_top";
6260 to: "padding_right_bottom";
6262 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
6263 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6265 font: "Tizen:style=Regular";
6266 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
6267 text_class: "tizen";
6270 description { state: "visible" 0.0;
6271 inherit: "default" 0.0;
6274 description { state: "clicked" 0.0;
6275 inherit: "default" 0.0;
6277 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6279 description { state: "disabled" 0.0;
6280 inherit: "default" 0.0;
6282 description { state: "disabled_visible" 0.0;
6283 inherit: "default" 0.0;
6284 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
6285 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6288 description { state: "focused" 0.0;
6289 inherit: "default" 0.0;
6291 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6294 part { name: "over2";
6297 ignore_flags: ON_HOLD;
6298 description { state: "default" 0.0;
6302 part { name: "over3";
6305 description { state: "default" 0.0;
6309 part { name: "clipper";
6311 description { state: "default" 0.0;
6312 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
6314 description { state: "disabled" 0.0;
6315 inherit: "default" 0.0;
6316 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
6319 part { name: "disabler";
6321 description { state: "default" 0.0;
6325 description { state: "disabled" 0.0;
6326 inherit: "default" 0.0;
6332 program { name: "button_click";
6333 signal: "mouse,down,1";
6335 action: SIGNAL_EMIT "elm,action,press" "";
6336 after: "button_click_anim";
6338 program { name: "button_click_anim";
6339 action: STATE_SET "clicked" 0.0;
6340 target: "button_image";
6341 after: "text_clicked";
6343 program { name: "text_clicked";
6347 get_state(PART:"elm.text", st, 30, vl);
6348 if (!strcmp(st, "visible"))
6349 set_state(PART:"elm.text", "clicked", 0.0);
6352 program { name: "button_double_click";
6353 signal: "mouse,down,1,double";
6355 after: "button_click_anim";
6357 program { name: "button_unpress";
6358 action: SIGNAL_EMIT "elm,action,unpress" "";
6360 program { name: "button_mouseout_clicked";
6361 signal: "mouse,up,1";
6366 get_state(PART:"elm.swallow.content", st, 30, vl);
6367 if (strcmp(st, "icononly"))
6369 emit("elm,action,default,text,set", "");
6370 set_state(PART:"elm.text", "visible", 0.0);
6372 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6373 set_state(PART:"button_image", "default", 0.0);
6375 after: button_unpress;
6377 program { name: "touch_snd";
6378 signal: "mouse,clicked,1";
6380 action: PLAY_SAMPLE "touch_sound" 1.0;
6381 after: button_unclick3;
6383 program { name: "button_unclick3";
6384 action: SIGNAL_EMIT "elm,action,click" "";
6386 program { name: "text_show";
6387 signal: "elm,state,text,visible";
6392 get_state(PART:"elm.swallow.content", st, 30, vl);
6393 if (!strcmp(st, "icononly"))
6395 set_state(PART:"elm.swallow.content", "visible", 0.0);
6396 set_state(PART:"icon_rect", "visible", 0.0);
6397 set_state(PART:"padding_after_icon", "visible", 0.0);
6398 set_state(PART:"bg", "visible", 0.0);
6400 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6401 set_state(PART:"elm.text", "visible", 0.0);
6403 set_state(PART:"elm.text", "disabled_visible", 0.0);
6406 program { name: "text_hide";
6407 signal: "elm,state,text,hidden";
6412 get_state(PART:"elm.swallow.content", st, 30, vl);
6413 if (!strcmp(st, "visible"))
6415 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6416 set_state(PART:"icon_rect", "icononly", 0.0);
6417 set_state(PART:"padding_after_icon", "icononly", 0.0);
6418 set_state(PART:"bg", "icononly", 0.0);
6420 set_state(PART:"elm.text", "default", 0.0);
6423 program { name: "icon_show";
6424 signal: "elm,state,icon,visible";
6429 get_state(PART:"elm.text", st, 30, vl);
6430 if (!strcmp(st, "visible"))
6432 set_state(PART:"elm.swallow.content", "visible", 0.0);
6433 set_state(PART:"icon_rect", "visible", 0.0);
6434 set_state(PART:"padding_after_icon", "visible", 0.0);
6435 set_state(PART:"bg", "visible", 0.0);
6439 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6440 set_state(PART:"icon_rect", "icononly", 0.0);
6441 set_state(PART:"padding_after_icon", "icononly", 0.0);
6442 set_state(PART:"bg", "icononly", 0.0);
6446 program { name: "icon_hide";
6447 signal: "elm,state,icon,hidden";
6449 action: STATE_SET "default" 0.0;
6450 target: "elm.swallow.content";
6451 target: "padding_after_icon";
6452 target: "icon_rect";
6455 program { name: "disable";
6456 signal: "elm,state,disabled";
6458 action: STATE_SET "disabled" 0.0;
6459 target: "button_image";
6462 after: "disable_text";
6464 program { name: "disable_text";
6468 get_state(PART:"elm.text", st, 30, vl);
6469 if (!strcmp(st, "visible"))
6470 set_state(PART:"elm.text", "disabled_visible", 0.0);
6472 set_state(PART:"elm.text", "disabled", 0.0);
6473 set_int(button_state, BUTTON_STATE_DISABLED);
6476 program { name: "enable";
6477 signal: "elm,state,enabled";
6479 action: STATE_SET "default" 0.0;
6480 target: "button_image";
6483 after: "enable_text";
6485 program { name: "enable_text";
6489 get_state(PART:"elm.text", st, 30, vl);
6490 if (!strcmp(st, "disabled_visible"))
6491 set_state(PART:"elm.text", "visible", 0.0);
6493 set_state(PART:"elm.text", "default", 0.0);
6494 set_int(button_state, BUTTON_STATE_ENABLED);
6497 program { name: "focused";
6498 //signal: "elm,action,focus";
6500 action: STATE_SET "focused" 0.0;
6501 target: "button_image";
6504 program { name: "unfocused";
6505 //signal: "elm,action,unfocus";
6507 action: STATE_SET "default" 0.0;
6508 target: "button_image";
6509 after: "unfocus_text";
6511 program { name: "unfocus_text";
6512 action: STATE_SET "visible" 0.0;
6518 ///////////////////////////////////////////////////////////////////////////////////////
6519 group { name: "elm/button/base/expandable_number";
6520 alias: "elm/button/base/text_only/expandable_number";
6522 item: "focus_highlight" "on";
6525 image: "00_button_01.png" COMP;
6526 image: "00_button_01_press.png" COMP;
6527 image: "00_button_01_dim.png" COMP;
6528 image: "00_arrow_expand.png" COMP;
6529 image: "00_button_01_focus.png" COMP;
6532 style { name: "btn_base_exapandable_number";
6533 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
6538 style { name: "btn_base_exapandable_number_pressed";
6539 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
6546 public button_state = BUTTON_STATE_ENABLED;
6549 part { name: "button_image";
6551 description { state: "default" 0.0;
6552 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6553 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6555 normal: "00_button_01.png";
6556 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6560 description { state: "clicked" 0.0;
6561 inherit: "default" 0.0;
6562 image.normal: "00_button_01_press.png";
6564 description { state: "disabled" 0.0;
6565 inherit: "default" 0.0;
6566 image.normal: "00_button_01_dim.png";
6568 description { state: "focused" 0.0;
6569 inherit: "default" 0.0;
6570 image.normal: "00_button_01_press.png";
6573 part { name: "focus_image";
6577 description { state: "default" 0.0;
6578 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6579 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6581 rel1.to : "button_image";
6582 rel2.to : "button_image";
6584 normal: "00_button_01_focus.png";
6585 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6589 description { state: "focused" 0.0;
6590 inherit: "default" 0.0;
6594 part { name: "padding_left_top";
6598 description { state: "default" 0.0;
6601 rel2.relative: 0.0 0.0;
6602 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6606 part { name: "padding_right_bottom";
6610 description { state: "default" 0.0;
6613 rel1.relative: 1.0 1.0;
6614 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6618 part { name: "icon_rect";
6622 description { state: "default" 0.0;
6624 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6625 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6629 to_x: "padding_right_bottom";
6630 to_y: "padding_left_top";
6634 to: "padding_right_bottom";
6639 part { name: "arrow_expand";
6641 clip_to: "icon_clipper";
6643 description { state: "default" 0.0;
6645 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6646 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6648 rel1.to: "icon_rect";
6649 rel2.to: "icon_rect";
6650 image.normal:"00_arrow_expand.png";
6653 part { name: "elm.text";
6657 description { state: "default" 0.0;
6658 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6659 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6663 to: "padding_left_top";
6667 to_x:"padding_left_top";
6668 to_y:"padding_right_bottom";
6672 style: "btn_base_exapandable_number";
6678 description { state: "visible" 0.0;
6679 inherit: "default" 0.0;
6681 description { state: "clicked" 0.0;
6682 inherit: "default" 0.0;
6684 style: "btn_base_exapandable_number_pressed";
6690 description { state: "disabled" 0.0;
6691 inherit: "default" 0.0;
6693 description { state: "disabled_visible" 0.0;
6694 inherit: "default" 0.0;
6695 color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6697 description { state: "focused" 0.0;
6698 inherit: "default" 0.0;
6699 color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6702 part { name: "icon_clipper";
6705 description { state: "default" 0.0;
6706 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6708 description { state: "clicked" 0.0;
6709 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6711 description { state: "disabled" 0.0;
6712 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6715 part { name: "over2";
6718 ignore_flags: ON_HOLD;
6719 description { state: "default" 0.0;
6723 part { name: "over3";
6726 description { state: "default" 0.0;
6730 part { name: "disabler";
6732 description { state: "default" 0.0;
6736 description { state: "disabled" 0.0;
6737 inherit: "default" 0.0;
6743 program { name: "button_click";
6744 signal: "mouse,down,1";
6746 action: SIGNAL_EMIT "elm,action,press" "";
6747 after: "button_click_anim";
6749 program { name: "button_click_anim";
6750 action: STATE_SET "clicked" 0.0;
6751 target: "button_image";
6752 target: "icon_clipper";
6753 after: "text_clicked";
6755 program { name: "text_clicked";
6759 get_state(PART:"elm.text", st, 30, vl);
6760 if (!strcmp(st, "visible"))
6761 set_state(PART:"elm.text", "clicked", 0.0);
6764 program { name: "button_double_click";
6765 signal: "mouse,down,1,double";
6767 after: "button_click_anim";
6769 program { name: "button_unpress";
6770 action: SIGNAL_EMIT "elm,action,unpress" "";
6772 program { name: "button_mouseout_clicked";
6773 signal: "mouse,up,1";
6776 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6778 set_state(PART:"button_image", "default", 0.0);
6779 set_state(PART:"elm.text", "visible", 0.0);
6780 set_state(PART:"icon_clipper", "default", 0.0);
6783 after: button_unpress;
6785 program { name: "touch_snd";
6786 signal: "mouse,clicked,1";
6788 action: PLAY_SAMPLE "touch_sound" 1.0;
6789 after: button_unclick3;
6791 program { name: "button_unclick3";
6792 action: SIGNAL_EMIT "elm,action,click" "";
6794 program { name: "text_show";
6795 signal: "elm,state,text,visible";
6798 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6799 set_state(PART:"elm.text", "visible", 0.0);
6801 set_state(PART:"elm.text", "disabled_visible", 0.0);
6804 program { name: "text_hide";
6805 signal: "elm,state,text,hidden";
6808 set_state(PART:"elm.text", "default", 0.0);
6811 program { name: "disable";
6812 signal: "elm,state,disabled";
6814 action: STATE_SET "disabled" 0.0;
6815 target: "button_image";
6817 target: "icon_clipper";
6818 after: "disable_text";
6820 program { name: "disable_text";
6824 get_state(PART:"elm.text", st, 30, vl);
6825 if (!strcmp(st, "visible"))
6826 set_state(PART:"elm.text", "disabled_visible", 0.0);
6828 set_state(PART:"elm.text", "disabled", 0.0);
6829 set_int(button_state, BUTTON_STATE_DISABLED);
6832 program { name: "enable";
6833 signal: "elm,state,enabled";
6835 action: STATE_SET "default" 0.0;
6836 target: "button_image";
6838 target: "icon_clipper";
6839 after: "enable_text";
6841 program { name: "enable_text";
6845 get_state(PART:"elm.text", st, 30, vl);
6846 if (!strcmp(st, "disabled_visible"))
6847 set_state(PART:"elm.text", "visible", 0.0);
6849 set_state(PART:"elm.text", "default", 0.0);
6850 set_int(button_state, BUTTON_STATE_ENABLED);
6853 program { name: "action_focus";
6854 signal: "elm,action,focus_highlight,show";
6856 action: STATE_SET "focused" 0.0;
6857 target: "focus_image";
6859 program { name: "action_unfocus";
6860 signal: "elm,action,focus_highlight,hide";
6862 action: STATE_SET "default" 0.0;
6863 target: "focus_image";
6868 ////////////////////////////////////////////////////////////////////////
6869 group { name: "elm/button/base/bubble_sent";
6870 inherit: "elm/button/base/style1";
6872 image: "00_messagebubble_button_sent.png" COMP;
6873 image: "00_messagebubble_button_sent_press.png" COMP;
6874 image: "00_messagebubble_button_sent_dim.png" COMP;
6877 part { name: "button_image";
6879 description { state: "default" 0.0;
6881 normal: "00_messagebubble_button_sent.png";
6882 border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
6886 description { state: "clicked" 0.0;
6887 inherit: "default" 0.0;
6888 image.normal: "00_messagebubble_button_sent_press.png";
6890 description { state: "disabled" 0.0;
6891 inherit: "default" 0.0;
6892 image.normal: "00_messagebubble_button_sent_dim.png";
6894 description { state: "focused" 0.0;
6895 inherit: "default" 0.0;
6896 image.normal: "00_messagebubble_button_sent_press.png";
6899 part { name: "elm.text";
6902 effect: FAR_SHADOW BOTTOM;
6905 description { state: "default" 0.0;
6909 to_x: "padding_after_icon";
6910 to_y: "padding_left_top";
6914 to: "padding_right_bottom";
6916 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6917 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6919 font: "Tizen:style=Regular";
6920 size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
6923 text_class: "tizen";
6926 description { state: "visible" 0.0;
6927 inherit: "default" 0.0;
6930 description { state: "clicked" 0.0;
6931 inherit: "default" 0.0;
6933 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6935 description { state: "disabled" 0.0;
6936 inherit: "default" 0.0;
6938 description { state: "disabled_visible" 0.0;
6939 inherit: "default" 0.0;
6940 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6943 description { state: "focused" 0.0;
6944 inherit: "default" 0.0;
6946 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6952 ////////////////////////////////////////////////////////////////////////
6953 group { name: "elm/button/base/bubble_sent/multiline";
6954 inherit: "elm/button/base/bubble_sent";
6956 style { name: "bubble_sent_multiline";
6957 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";
6964 part { name: "elm.text";
6967 effect: FAR_SHADOW BOTTOM;
6970 description { state: "default" 0.0;
6975 to_x: "padding_after_icon";
6976 to_y: "padding_left_top";
6980 to: "padding_right_bottom";
6982 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6983 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6985 style: "bubble_sent_multiline";
6988 description { state: "visible" 0.0;
6989 inherit: "default" 0.0;
6992 description { state: "clicked" 0.0;
6993 inherit: "default" 0.0;
6995 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6997 description { state: "disabled" 0.0;
6998 inherit: "default" 0.0;
7000 description { state: "disabled_visible" 0.0;
7001 inherit: "default" 0.0;
7002 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
7005 description { state: "focused" 0.0;
7006 inherit: "default" 0.0;
7008 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7014 ///////////////////////////////////////////////////////////////////////
7015 group { name: "elm/button/base/bubble_receive";
7016 inherit: "elm/button/base/style1";
7018 image: "00_messagebubble_button_receive.png" COMP;
7019 image: "00_messagebubble_button_receive_press.png" COMP;
7020 image: "00_messagebubble_button_receive_dim.png" COMP;
7023 part { name: "button_image";
7025 description { state: "default" 0.0;
7027 normal: "00_messagebubble_button_receive.png";
7028 border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
7032 description { state: "clicked" 0.0;
7033 inherit: "default" 0.0;
7034 image.normal: "00_messagebubble_button_receive_press.png";
7036 description { state: "disabled" 0.0;
7037 inherit: "default" 0.0;
7038 image.normal: "00_messagebubble_button_receive_dim.png";
7040 description { state: "focused" 0.0;
7041 inherit: "default" 0.0;
7042 image.normal: "00_messagebubble_button_receive_press.png";
7045 part { name: "elm.text";
7048 effect: SHADOW BOTTOM;
7051 description { state: "default" 0.0;
7055 to_x: "padding_after_icon";
7056 to_y: "padding_left_top";
7060 to: "padding_right_bottom";
7062 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
7063 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7065 font: "Tizen:style=Regular";
7066 size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
7069 text_class: "tizen";
7072 description { state: "visible" 0.0;
7073 inherit: "default" 0.0;
7076 description { state: "clicked" 0.0;
7077 inherit: "default" 0.0;
7079 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
7081 description { state: "disabled" 0.0;
7082 inherit: "default" 0.0;
7084 description { state: "disabled_visible" 0.0;
7085 inherit: "default" 0.0;
7086 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
7089 description { state: "focused" 0.0;
7090 inherit: "default" 0.0;
7092 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7098 ///////////////////////////////////////////////////////////////////////
7099 group { name: "elm/button/base/bubble_receive/multiline";
7100 inherit: "elm/button/base/bubble_receive";
7102 style { name: "bubble_receive_multiline";
7103 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";
7110 part { name: "elm.text";
7113 effect: SHADOW BOTTOM;
7116 description { state: "default" 0.0;
7121 to_x: "padding_after_icon";
7122 to_y: "padding_left_top";
7126 to: "padding_right_bottom";
7128 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
7129 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7131 style: "btn_style1_multiline";
7134 description { state: "visible" 0.0;
7135 inherit: "default" 0.0;
7138 description { state: "clicked" 0.0;
7139 inherit: "default" 0.0;
7141 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
7143 description { state: "disabled" 0.0;
7144 inherit: "default" 0.0;
7146 description { state: "disabled_visible" 0.0;
7147 inherit: "default" 0.0;
7148 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
7151 description { state: "focused" 0.0;
7152 inherit: "default" 0.0;
7154 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7160 ///////////////////////////////////////////////////////////////////////
7161 group { name: "elm/button/base/bubble_circle/receive";
7163 image: "00_messagebubble_circle_receive.png" COMP;
7164 image: "00_messagebubble_circle_receive_press.png" COMP;
7165 image: "00_messagebubble_circle_receive_dim.png" COMP;
7166 image: "00_button_right.png" COMP;
7167 image: "00_button_right_press.png" COMP;
7170 part { name: "button_image";
7172 description { state: "default" 0.0;
7173 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7174 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7175 image.normal: "00_messagebubble_circle_receive.png";
7178 state: "clicked" 0.0;
7179 inherit: "default" 0.0;
7180 image.normal: "00_messagebubble_circle_receive_press.png";
7183 state: "disabled" 0.0;
7184 inherit: "default" 0.0;
7185 image.normal: "00_messagebubble_circle_receive_dim.png";
7188 part { name: "image";
7190 clip_to: "icon_clipper";
7191 description { state: "default" 0.0;
7192 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7193 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7194 image.normal: "00_button_right.png";
7197 state: "clicked" 0.0;
7198 inherit: "default" 0.0;
7199 image.normal: "00_button_right_press.png";
7202 state: "disabled" 0.0;
7203 inherit: "default" 0.0;
7206 part { name: "icon_clipper";
7209 description { state: "default" 0.0;
7210 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
7212 description { state: "clicked" 0.0;
7213 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
7215 description { state: "disabled" 0.0;
7216 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
7219 part { name: "over1";
7221 ignore_flags: ON_HOLD;
7222 description { state: "default" 0.0;
7226 part { name: "over2";
7229 description { state: "default" 0.0;
7233 part { name: "disabler";
7235 description { state: "default" 0.0;
7239 description { state: "disabled" 0.0;
7240 inherit: "default" 0.0;
7246 program { name: "button_click";
7247 signal: "mouse,down,1";
7249 action: SIGNAL_EMIT "elm,action,press" "";
7250 after: "button_click_anim";
7252 program { name: "button_click_anim";
7253 action: STATE_SET "clicked" 0.0;
7254 target: "button_image";
7256 target: "icon_clipper";
7258 program { name: "button_double_click";
7259 signal: "mouse,down,1,double";
7261 after: "button_click_anim";
7263 program { name: "button_unclick";
7264 signal: "mouse,up,1";
7266 action: SIGNAL_EMIT "elm,action,unpress" "";
7267 after: "button_unclick_anim";
7269 program { name: "button_unclick_anim";
7270 action: STATE_SET "default" 0.0;
7271 target: "button_image";
7273 target: "icon_clipper";
7275 program { name: "touch_snd";
7276 signal: "mouse,clicked,1";
7278 action: PLAY_SAMPLE "touch_sound" 1.0;
7279 after: button_unclick3;
7281 program { name: "button_unclick3";
7282 action: SIGNAL_EMIT "elm,action,click" "";
7284 program { name: "disable";
7285 signal: "elm,state,disabled";
7287 action: STATE_SET "disabled" 0.0;
7289 target: "button_image";
7290 target: "icon_clipper";
7293 program { name: "enable";
7294 signal: "elm,state,enabled";
7296 action: STATE_SET "default" 0.0;
7298 target: "button_image";
7299 target: "icon_clipper";
7304 ///////////////////////////////////////////////////////////////////////
7305 group { name: "elm/button/base/bubble_circle/sent";
7307 image: "00_messagebubble_circle_sent.png" COMP;
7308 image: "00_messagebubble_circle_sent_press.png" COMP;
7309 image: "00_messagebubble_circle_sent_dim.png" COMP;
7310 image: "00_button_right.png" COMP;
7311 image: "00_button_right_press.png" COMP;
7314 part { name: "button_image";
7316 description { state: "default" 0.0;
7317 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7318 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7319 image.normal: "00_messagebubble_circle_sent.png";
7322 state: "clicked" 0.0;
7323 inherit: "default" 0.0;
7324 image.normal: "00_messagebubble_circle_sent_press.png";
7327 state: "disabled" 0.0;
7328 inherit: "default" 0.0;
7329 image.normal: "00_messagebubble_circle_sent_dim.png";
7332 part { name: "image";
7334 clip_to: "icon_clipper";
7335 description { state: "default" 0.0;
7336 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7337 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7338 image.normal: "00_button_right.png";
7341 state: "clicked" 0.0;
7342 inherit: "default" 0.0;
7343 image.normal: "00_button_right_press.png";
7346 state: "disabled" 0.0;
7347 inherit: "default" 0.0;
7350 part { name: "icon_clipper";
7353 description { state: "default" 0.0;
7354 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
7356 description { state: "clicked" 0.0;
7357 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
7359 description { state: "disabled" 0.0;
7360 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
7363 part { name: "over1";
7365 ignore_flags: ON_HOLD;
7366 description { state: "default" 0.0;
7370 part { name: "over2";
7373 description { state: "default" 0.0;
7377 part { name: "disabler";
7379 description { state: "default" 0.0;
7383 description { state: "disabled" 0.0;
7384 inherit: "default" 0.0;
7390 program { name: "button_click";
7391 signal: "mouse,down,1";
7393 action: SIGNAL_EMIT "elm,action,press" "";
7394 after: "button_click_anim";
7396 program { name: "button_click_anim";
7397 action: STATE_SET "clicked" 0.0;
7398 target: "button_image";
7400 target: "icon_clipper";
7402 program { name: "button_double_click";
7403 signal: "mouse,down,1,double";
7405 after: "button_click_anim";
7407 program { name: "button_unclick";
7408 signal: "mouse,up,1";
7410 action: SIGNAL_EMIT "elm,action,unpress" "";
7411 after: "button_unclick_anim";
7413 program { name: "button_unclick_anim";
7414 action: STATE_SET "default" 0.0;
7415 target: "button_image";
7417 target: "icon_clipper";
7419 program { name: "touch_snd";
7420 signal: "mouse,clicked,1";
7422 action: PLAY_SAMPLE "touch_sound" 1.0;
7423 after: button_unclick3;
7425 program { name: "button_unclick3";
7426 action: SIGNAL_EMIT "elm,action,click" "";
7428 program { name: "disable";
7429 signal: "elm,state,disabled";
7431 action: STATE_SET "disabled" 0.0;
7433 target: "button_image";
7434 target: "icon_clipper";
7436 program { name: "enable";
7437 signal: "elm,state,enabled";
7439 action: STATE_SET "default" 0.0;
7441 target: "button_image";
7442 target: "icon_clipper";
7447 //////////////////////////////////////////////////////////////////////////////////////
7448 group { name: "elm/button/base/editfield_clear";
7450 image: "00_edit_field_clear.png" COMP;
7453 part { name: "button_image";
7456 description { state: "default" 0.0;
7459 description { state: "clicked" 0.0;
7460 inherit: "default" 0.0;
7462 description { state: "disabled" 0.0;
7463 inherit: "default" 0.0;
7465 description { state: "focused" 0.0;
7466 inherit: "default" 0.0;
7469 part { name: "clear_button";
7472 clip_to: "clear_button.clipper";
7473 description { state: "default" 0.0;
7474 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7475 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7478 image.normal: "00_edit_field_clear.png";
7481 part { name: "clear_button.clipper";
7483 description { state: "default" 0.0;
7484 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7486 description { state: "clicked" 0.0;
7487 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7489 description { state: "disabled" 0.0;
7490 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7493 part { name: "over2";
7495 ignore_flags: ON_HOLD;
7496 description { state: "default" 0.0;
7500 part { name: "over3";
7503 description { state: "default" 0.0;
7507 part { name: "disabler";
7509 description { state: "default" 0.0;
7513 description { state: "disabled" 0.0;
7514 inherit: "default" 0.0;
7520 program { name: "button_click";
7521 signal: "mouse,down,1";
7523 action: SIGNAL_EMIT "elm,action,press" "";
7524 after: "button_click_anim";
7526 program { name: "button_click_anim";
7527 action: STATE_SET "clicked" 0.0;
7528 target: "button_image";
7529 target: "clear_button.clipper";
7531 program { name: "button_double_click";
7532 signal: "mouse,down,1,double";
7534 after: "button_click_anim";
7536 program { name: "button_unclick";
7537 signal: "mouse,up,1";
7539 action: SIGNAL_EMIT "elm,action,unpress" "";
7540 after: "button_unclick_anim";
7542 program { name: "button_unclick_anim";
7543 action: STATE_SET "default" 0.0;
7544 target: "button_image";
7545 target: "clear_button.clipper";
7547 program { name: "touch_snd";
7548 signal: "mouse,clicked,1";
7550 action: PLAY_SAMPLE "touch_sound" 1.0;
7551 after: button_unclick3;
7553 program { name: "button_unclick3";
7554 action: SIGNAL_EMIT "elm,action,click" "";
7556 program { name: "disable";
7557 signal: "elm,state,disabled";
7559 action: STATE_SET "disabled" 0.0;
7560 target: "button_image";
7562 target: "clear_button.clipper";
7564 program { name: "enable";
7565 signal: "elm,state,enabled";
7567 action: STATE_SET "default" 0.0;
7568 target: "button_image";
7570 target: "clear_button.clipper";
7575 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
7576 group { name: "elm/button/base/"style_name; \
7578 item: "focus_highlight" "on"; \
7581 image: image_normal COMP; \
7584 part { name: "elm.swallow.content"; \
7587 description { state: "default" 0.0; \
7590 part { name: "focus_image"; \
7594 description { state: "default" 0.0; \
7597 normal: image_normal; \
7602 description { state: "focused" 0.0; \
7603 inherit: "default" 0.0; \
7607 part { name: "over2"; \
7610 ignore_flags: ON_HOLD; \
7611 description { state: "default" 0.0; \
7615 part { name: "over3"; \
7618 description { state: "default" 0.0; \
7624 program { name: "button_click"; \
7625 signal: "mouse,down,1"; \
7627 action: SIGNAL_EMIT "elm,action,press" ""; \
7629 program { name: "button_unclick"; \
7630 signal: "mouse,up,1"; \
7632 action: SIGNAL_EMIT "elm,action,unpress" ""; \
7634 program { name: "button_click3"; \
7635 signal: "mouse,clicked,1"; \
7637 action: SIGNAL_EMIT "elm,action,click" ""; \
7639 program { name: "action_focus"; \
7640 signal: "elm,action,focus_highlight,show"; \
7642 action: STATE_SET "focused" 0.0; \
7643 target: "focus_image"; \
7645 program { name: "action_unfocus"; \
7646 signal: "elm,action,focus_highlight,hide"; \
7648 action: STATE_SET "default" 0.0; \
7649 target: "focus_image"; \
7654 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
7655 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
7656 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
7657 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
7659 group { name: "elm/button/base/search_icon";
7661 image: "00_search_icon.png" COMP;
7664 part { name: "search_icon";
7667 clip_to: "search_icon.clipper";
7668 description { state: "default" 0.0;
7669 min: BUTTON_SEARCH_ICON_MIN_MAX_INC;
7670 max: BUTTON_SEARCH_ICON_MIN_MAX_INC;
7673 image.normal: "00_search_icon.png";
7676 part { name: "search_icon.clipper";
7678 description { state: "default" 0.0;
7679 color: BUTTON_SEARCH_ICON_CLIPPER_DEFAULT_COLOR_INC;
7681 description { state: "disabled" 0.0;
7682 color: BUTTON_SEARCH_ICON_CLIPPER_DISABLED_COLOR_INC;
7685 part { name: "over2";
7687 ignore_flags: ON_HOLD;
7688 description { state: "default" 0.0;
7692 part { name: "over3";
7695 description { state: "default" 0.0;
7699 part { name: "disabler";
7701 description { state: "default" 0.0;
7705 description { state: "disabled" 0.0;
7706 inherit: "default" 0.0;
7712 program { name: "button_click";
7713 signal: "mouse,down,1";
7715 action: SIGNAL_EMIT "elm,action,press" "";
7717 program { name: "button_double_click";
7718 signal: "mouse,down,1,double";
7721 program { name: "button_unclick";
7722 signal: "mouse,up,1";
7724 action: SIGNAL_EMIT "elm,action,unpress" "";
7726 program { name: "touch_snd";
7727 signal: "mouse,clicked,1";
7729 action: PLAY_SAMPLE "touch_sound" 1.0;
7730 after: "button_unclick3";
7732 program { name: "button_unclick3";
7733 action: SIGNAL_EMIT "elm,action,click" "";
7735 program { name: "disable";
7736 signal: "elm,state,disabled";
7738 action: STATE_SET "disabled" 0.0;
7740 target: "search_icon.clipper";
7742 program { name: "enable";
7743 signal: "elm,state,enabled";
7745 action: STATE_SET "default" 0.0;
7747 target: "search_icon.clipper";
7752 group { name: "elm/button/base/search_clear";
7753 inherit: "elm/button/base/editfield_clear";
7755 image: "00_field_btn_clear.png" COMP;
7758 part { name: "clear_button";
7761 clip_to: "clear_button.clipper";
7762 description { state: "default" 0.0;
7763 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7764 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7767 image.normal: "00_field_btn_clear.png";
7770 part { name: "clear_button.clipper";
7772 description { state: "default" 0.0;
7773 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7775 description { state: "clicked" 0.0;
7776 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7778 description { state: "disabled" 0.0;
7779 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7785 #undef BUTTON_STATE_ENABLED
7786 #undef BUTTON_STATE_DISABLED
7787 #undef BUTTON_LANDSCAPE_DISABLED
7788 #undef BUTTON_LANDSCAPE_ENABLED