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";
33 item: "focus_highlight" "on";
36 image: "00_button_01.png" COMP;
37 image: "00_button_01_press.png" COMP;
38 image: "00_button_01_dim.png" COMP;
39 image: "00_button_01_focus.png" COMP;
42 public button_state = BUTTON_STATE_ENABLED;
45 part { name: "button_image";
47 description { state: "default" 0.0;
49 normal: "00_button_01.png";
50 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
54 description { state: "clicked" 0.0;
55 inherit: "default" 0.0;
56 image.normal: "00_button_01_press.png";
58 description { state: "disabled" 0.0;
59 inherit: "default" 0.0;
60 image.normal: "00_button_01_dim.png";
62 description { state: "focused" 0.0;
63 inherit: "default" 0.0;
64 image.normal: "00_button_01_press.png";
67 part { name: "focus_image";
71 description { state: "default" 0.0;
73 rel1.to : "button_image";
74 rel2.to : "button_image";
76 normal: "00_button_01_focus.png";
77 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
81 description { state: "focused" 0.0;
82 inherit: "default" 0.0;
86 part { name: "padding_left_top";
90 description { state: "default" 0.0;
92 rel2.relative: 0.0 0.0;
93 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
102 description { state: "default" 0.0;
103 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
106 description { state: "visible" 0.0;
107 inherit: "default" 0.0;
108 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
110 description { state: "icononly" 0.0;
111 inherit: "default" 0.0;
112 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
115 part { name: "padding_right_bottom";
119 description { state: "default" 0.0;
121 rel1.relative: 1.0 1.0;
122 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
127 part { name: "icon_rect";
131 description { state: "default" 0.0;
137 to: "padding_left_top";
141 to_x: "padding_left_top";
142 to_y: "padding_right_bottom";
146 description { state: "visible" 0.0;
147 inherit: "default" 0.0;
148 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
149 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
151 description { state: "icononly" 0.0;
152 inherit: "default" 0.0;
155 part { name: "padding_after_icon";
159 description { state: "default" 0.0; //when only icon or no icon is there
165 rel2.to: "icon_rect";
170 description { state: "visible" 0.0;
171 inherit: "default" 0.0;
172 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
174 description { state: "icononly" 0.0;
175 inherit: "default" 0.0;
178 part { name: "padding_before_text";
182 description { state: "default" 0.0; //when only icon or no icon is there
187 to_y: "padding_left_top";
192 to_y: "padding_right_bottom";
195 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
199 part { name: "elm.swallow.content";
203 description { state: "default" 0.0;
208 to: "padding_left_top";
212 to_x: "padding_left_top";
213 to_y: "padding_right_bottom";
217 description { state: "visible" 0.0;
219 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
220 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
224 to_x: "padding_before_text";
225 to_y: "padding_left_top";
229 to_x: "padding_before_text";
230 to_y: "padding_right_bottom";
233 description { state: "icononly" 0.0;
234 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
235 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
238 part { name: "elm.text";
241 effect: SHADOW BOTTOM;
244 description { state: "default" 0.0;
248 to_x: "padding_after_icon";
249 to_y: "padding_left_top";
253 to: "padding_right_bottom";
255 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
256 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
258 font: "Tizen:style=Regular";
259 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
265 description { state: "visible" 0.0;
266 inherit: "default" 0.0;
269 description { state: "clicked" 0.0;
270 inherit: "default" 0.0;
272 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
274 description { state: "disabled" 0.0;
275 inherit: "default" 0.0;
277 description { state: "disabled_visible" 0.0;
278 inherit: "default" 0.0;
279 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
282 description { state: "focused" 0.0;
283 inherit: "default" 0.0;
285 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
288 part { name: "over2";
291 ignore_flags: ON_HOLD;
292 description { state: "default" 0.0;
296 part { name: "over3";
299 description { state: "default" 0.0;
303 part { name: "clipper";
305 description { state: "default" 0.0;
306 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
308 description { state: "disabled" 0.0;
309 inherit: "default" 0.0;
310 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
313 part { name: "disabler";
315 description { state: "default" 0.0;
319 description { state: "disabled" 0.0;
320 inherit: "default" 0.0;
326 program { name: "button_click";
327 signal: "mouse,down,1";
329 action: SIGNAL_EMIT "elm,action,press" "";
330 after: "button_click_anim";
332 program { name: "button_click_anim";
333 action: STATE_SET "clicked" 0.0;
334 target: "button_image";
335 after: "text_clicked";
337 program { name: "text_clicked";
341 get_state(PART:"elm.text", st, 30, vl);
342 if (!strcmp(st, "visible"))
343 set_state(PART:"elm.text", "clicked", 0.0);
346 program { name: "button_double_click";
347 signal: "mouse,down,1,double";
349 after: "button_click_anim";
351 program { name: "button_unpress";
352 action: SIGNAL_EMIT "elm,action,unpress" "";
354 program { name: "button_mouseout_clicked";
355 signal: "mouse,up,1";
360 get_state(PART:"elm.swallow.content", st, 30, vl);
361 if (strcmp(st, "icononly"))
363 emit("elm,action,default,text,set", "");
364 set_state(PART:"elm.text", "visible", 0.0);
366 if (get_int(button_state) != BUTTON_STATE_DISABLED)
367 set_state(PART:"button_image", "default", 0.0);
369 after: button_unpress;
371 program { name: "touch_snd";
372 signal: "mouse,clicked,1";
374 action: PLAY_SAMPLE "touch_sound" 1.0;
375 after: button_unclick3;
377 program { name: "button_unclick3";
378 action: SIGNAL_EMIT "elm,action,click" "";
380 program { name: "text_show";
381 signal: "elm,state,text,visible";
386 get_state(PART:"elm.swallow.content", st, 30, vl);
387 if (!strcmp(st, "icononly"))
389 set_state(PART:"elm.swallow.content", "visible", 0.0);
390 set_state(PART:"icon_rect", "visible", 0.0);
391 set_state(PART:"padding_after_icon", "visible", 0.0);
392 set_state(PART:"bg", "visible", 0.0);
394 if (get_int(button_state) != BUTTON_STATE_DISABLED)
395 set_state(PART:"elm.text", "visible", 0.0);
397 set_state(PART:"elm.text", "disabled_visible", 0.0);
400 program { name: "text_hide";
401 signal: "elm,state,text,hidden";
406 get_state(PART:"elm.swallow.content", st, 30, vl);
407 if (!strcmp(st, "visible"))
409 set_state(PART:"elm.swallow.content", "icononly", 0.0);
410 set_state(PART:"icon_rect", "icononly", 0.0);
411 set_state(PART:"padding_after_icon", "icononly", 0.0);
412 set_state(PART:"bg", "icononly", 0.0);
414 set_state(PART:"elm.text", "default", 0.0);
417 program { name: "icon_show";
418 signal: "elm,state,icon,visible";
423 get_state(PART:"elm.text", st, 30, vl);
424 if (!strcmp(st, "visible"))
426 set_state(PART:"elm.swallow.content", "visible", 0.0);
427 set_state(PART:"icon_rect", "visible", 0.0);
428 set_state(PART:"padding_after_icon", "visible", 0.0);
429 set_state(PART:"bg", "visible", 0.0);
433 set_state(PART:"elm.swallow.content", "icononly", 0.0);
434 set_state(PART:"icon_rect", "icononly", 0.0);
435 set_state(PART:"padding_after_icon", "icononly", 0.0);
436 set_state(PART:"bg", "icononly", 0.0);
440 program { name: "icon_hide";
441 signal: "elm,state,icon,hidden";
443 action: STATE_SET "default" 0.0;
444 target: "elm.swallow.content";
445 target: "padding_after_icon";
449 program { name: "disable";
450 signal: "elm,state,disabled";
452 action: STATE_SET "disabled" 0.0;
453 target: "button_image";
456 after: "disable_text";
458 program { name: "disable_text";
462 get_state(PART:"elm.text", st, 30, vl);
463 if (!strcmp(st, "visible"))
464 set_state(PART:"elm.text", "disabled_visible", 0.0);
466 set_state(PART:"elm.text", "disabled", 0.0);
467 set_int(button_state, BUTTON_STATE_DISABLED);
470 program { name: "enable";
471 signal: "elm,state,enabled";
473 action: STATE_SET "default" 0.0;
474 target: "button_image";
477 after: "enable_text";
479 program { name: "enable_text";
483 get_state(PART:"elm.text", st, 30, vl);
484 if (!strcmp(st, "disabled_visible"))
485 set_state(PART:"elm.text", "visible", 0.0);
487 set_state(PART:"elm.text", "default", 0.0);
488 set_int(button_state, BUTTON_STATE_ENABLED);
491 program { name: "action_focus";
492 signal: "elm,action,focus_highlight,show";
494 action: STATE_SET "focused" 0.0;
495 target: "focus_image";
497 program { name: "action_unfocus";
498 signal: "elm,action,focus_highlight,hide";
500 action: STATE_SET "default" 0.0;
501 target: "focus_image";
506 //////////////////////////////////////////////////////////////
507 group { name: "elm/button/base/style1/auto_expand";
508 inherit: "elm/button/base/style1";
510 part { name: "elm.text";
513 effect: SHADOW BOTTOM;
516 description { state: "default" 0.0;
520 to_x: "padding_after_icon";
521 to_y: "padding_left_top";
525 to: "padding_right_bottom";
527 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
528 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
530 font: "Tizen:style=Regular";
531 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
537 description { state: "visible" 0.0;
538 inherit: "default" 0.0;
541 description { state: "clicked" 0.0;
542 inherit: "default" 0.0;
544 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
546 description { state: "disabled" 0.0;
547 inherit: "default" 0.0;
549 description { state: "disabled_visible" 0.0;
550 inherit: "default" 0.0;
551 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
554 description { state: "focused" 0.0;
555 inherit: "default" 0.0;
557 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
563 //////////////////////////////////////////////////////////////////////////////////////
564 group { name: "elm/button/base/datetime/ampm/default";
565 alias: "elm/button/base/datetime_ampm/default";
566 inherit: "elm/button/base/style1/auto_expand";
568 part { name: "button_image";
570 description { state: "default" 0.0;
572 normal: "00_button_01.png";
573 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
576 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
577 max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
579 description { state: "clicked" 0.0;
580 inherit: "default" 0.0;
581 image.normal: "00_button_01_press.png";
583 description { state: "disabled" 0.0;
584 inherit: "default" 0.0;
585 image.normal: "00_button_01_dim.png";
587 description { state: "focused" 0.0;
588 inherit: "default" 0.0;
589 image.normal: "00_button_01_press.png";
596 description { state: "default" 0.0;
600 description { state: "visible" 0.0;
601 inherit: "default" 0.0;
602 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
604 description { state: "icononly" 0.0;
605 inherit: "default" 0.0;
608 part { name: "elm.text";
611 effect: SHADOW BOTTOM;
614 description { state: "default" 0.0;
617 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
618 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
619 text.size: BUTTON_DATETIME_AMPM_TEXT_FONT_SIZE_INC;
622 description { state: "visible" 0.0;
623 inherit: "default" 0.0;
626 description { state: "clicked" 0.0;
627 inherit: "default" 0.0;
629 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
631 description { state: "disabled" 0.0;
632 inherit: "default" 0.0;
634 description { state: "disabled_visible" 0.0;
635 inherit: "default" 0.0;
636 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
639 description { state: "focused" 0.0;
640 inherit: "default" 0.0;
642 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
648 ///////////////////////////////////////////////////////////////////////////////////////
649 group { name: "elm/button/base/style1/delete";
650 inherit: "elm/button/base/style1";
652 image: "00_button_01_delete.png" COMP;
653 image: "00_button_01_delete_dim.png" COMP;
654 image: "00_button_01_delete_press.png" COMP;
657 part { name: "button_image";
659 description { state: "default" 0.0;
661 normal: "00_button_01_delete.png";
662 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
666 description { state: "clicked" 0.0;
667 inherit: "default" 0.0;
668 image.normal: "00_button_01_delete_press.png";
670 description { state: "disabled" 0.0;
671 inherit: "default" 0.0;
672 image.normal: "00_button_01_delete_dim.png";
674 description { state: "focused" 0.0;
675 inherit: "default" 0.0;
676 image.normal: "00_button_01_delete_press.png";
679 part { name: "elm.text";
682 effect: SHADOW BOTTOM;
685 description { state: "default" 0.0;
689 to_x: "padding_after_icon";
690 to_y: "padding_left_top";
694 to: "padding_right_bottom";
696 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
697 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
699 font: "Tizen:style=Regular";
700 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
706 description { state: "visible" 0.0;
707 inherit: "default" 0.0;
710 description { state: "clicked" 0.0;
711 inherit: "default" 0.0;
713 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
715 description { state: "disabled" 0.0;
716 inherit: "default" 0.0;
718 description { state: "disabled_visible" 0.0;
719 inherit: "default" 0.0;
720 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
723 description { state: "focused" 0.0;
724 inherit: "default" 0.0;
726 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
732 ///////////////////////////////////////////////////////////////////////////////////////
733 group { name: "elm/button/base/search_button/text";
734 alias: "elm/button/base/searchbar/default";
735 inherit: "elm/button/base/style1";
737 image: "00_button_01.png" COMP;
738 image: "00_button_01_dim.png" COMP;
739 image: "00_button_01_press.png" COMP;
742 part { name: "button_image";
744 description { state: "default" 0.0;
746 normal: "00_button_01.png";
747 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
751 description { state: "clicked" 0.0;
752 inherit: "default" 0.0;
753 image.normal: "00_button_01_press.png";
755 description { state: "disabled" 0.0;
756 inherit: "default" 0.0;
757 image.normal: "00_button_01_dim.png";
759 description { state: "focused" 0.0;
760 inherit: "default" 0.0;
761 image.normal: "00_button_01_press.png";
768 description { state: "default" 0.0;
769 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
772 description { state: "visible" 0.0;
773 inherit: "default" 0.0;
774 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
776 description { state: "icononly" 0.0;
777 inherit: "default" 0.0;
778 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
781 part { name: "elm.text";
784 effect: SHADOW BOTTOM;
787 description { state: "default" 0.0;
791 to_x: "padding_after_icon";
792 to_y: "padding_left_top";
796 to: "padding_right_bottom";
798 color: BUTTON_SEARCH_BUTTON_TEXT_NORMAL_COLOR_INC;
800 font: "Tizen:style=Regular";
801 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
807 description { state: "visible" 0.0;
808 inherit: "default" 0.0;
811 description { state: "clicked" 0.0;
812 inherit: "default" 0.0;
814 color: BUTTON_SEARCH_BUTTON_TEXT_PRESSED_COLOR_INC;
815 color2: BUTTON_SEARCH_BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
817 description { state: "disabled" 0.0;
818 inherit: "default" 0.0;
820 description { state: "disabled_visible" 0.0;
821 inherit: "default" 0.0;
822 color: BUTTON_SEARCH_BUTTON_TEXT_DISABLED_COLOR_INC;
825 description { state: "focused" 0.0;
826 inherit: "default" 0.0;
828 color: BUTTON_SEARCH_BUTTON_TEXT_FOCUSED_COLOR_INC;
834 ///////////////////////////////////////////////////////////////////////////////////////
835 group { name: "elm/button/base/search_button/send";
836 inherit: "elm/button/base/style1";
838 image: "00_button_01_send.png" COMP;
839 image: "00_button_01_send_dim.png" COMP;
840 image: "00_button_01_send_press.png" COMP;
843 part { name: "button_image";
845 description { state: "default" 0.0;
847 normal: "00_button_01_send.png";
848 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
852 description { state: "clicked" 0.0;
853 inherit: "default" 0.0;
854 image.normal: "00_button_01_send_press.png";
856 description { state: "disabled" 0.0;
857 inherit: "default" 0.0;
858 image.normal: "00_button_01_send_dim.png";
860 description { state: "focused" 0.0;
861 inherit: "default" 0.0;
862 image.normal: "00_button_01_send_press.png";
869 description { state: "default" 0.0;
870 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
873 description { state: "visible" 0.0;
874 inherit: "default" 0.0;
875 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
877 description { state: "icononly" 0.0;
878 inherit: "default" 0.0;
879 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
882 part { name: "elm.text";
885 effect: SHADOW BOTTOM;
888 description { state: "default" 0.0;
892 to_x: "padding_after_icon";
893 to_y: "padding_left_top";
897 to: "padding_right_bottom";
899 color: BUTTON_SEARCH_BUTTON_SEND_NORMAL_COLOR_INC;
900 color2: BUTTON_SEARCH_BUTTON_SEND_SHADOW_NORMAL_COLOR_INC;
902 font: "Tizen:style=Regular";
903 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
909 description { state: "visible" 0.0;
910 inherit: "default" 0.0;
913 description { state: "clicked" 0.0;
914 inherit: "default" 0.0;
916 color: BUTTON_SEARCH_BUTTON_SEND_PRESSED_COLOR_INC;
918 description { state: "disabled" 0.0;
919 inherit: "default" 0.0;
921 description { state: "disabled_visible" 0.0;
922 inherit: "default" 0.0;
923 color: BUTTON_SEARCH_BUTTON_SEND_DISABLED_COLOR_INC;
926 description { state: "focused" 0.0;
927 inherit: "default" 0.0;
929 color: BUTTON_SEARCH_BUTTON_SEND_FOCUSED_COLOR_INC;
935 ///////////////////////////////////////////////////////////////////////////////////////
936 group { name: "elm/button/base/search_button/cancel";
937 inherit: "elm/button/base/style1";
939 image: "00_button_01_delete.png" COMP;
940 image: "00_button_01_delete_dim.png" COMP;
941 image: "00_button_01_delete_press.png" COMP;
944 part { name: "button_image";
946 description { state: "default" 0.0;
948 normal: "00_button_01_delete.png";
949 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
953 description { state: "clicked" 0.0;
954 inherit: "default" 0.0;
955 image.normal: "00_button_01_delete_press.png";
957 description { state: "disabled" 0.0;
958 inherit: "default" 0.0;
959 image.normal: "00_button_01_delete_dim.png";
961 description { state: "focused" 0.0;
962 inherit: "default" 0.0;
963 image.normal: "00_button_01_delete_press.png";
970 description { state: "default" 0.0;
971 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
974 description { state: "visible" 0.0;
975 inherit: "default" 0.0;
976 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
978 description { state: "icononly" 0.0;
979 inherit: "default" 0.0;
980 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
983 part { name: "elm.text";
986 effect: SHADOW BOTTOM;
989 description { state: "default" 0.0;
993 to_x: "padding_after_icon";
994 to_y: "padding_left_top";
998 to: "padding_right_bottom";
1000 color: BUTTON_SEARCH_BUTTON_CANCEL_NORMAL_COLOR_INC;
1001 color2: BUTTON_SEARCH_BUTTON_CANCEL_SHADOW_NORMAL_COLOR_INC;
1003 font: "Tizen:style=Regular";
1004 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
1007 text_class: "tizen";
1010 description { state: "visible" 0.0;
1011 inherit: "default" 0.0;
1014 description { state: "clicked" 0.0;
1015 inherit: "default" 0.0;
1017 color: BUTTON_SEARCH_BUTTON_CANCEL_PRESSED_COLOR_INC;
1019 description { state: "disabled" 0.0;
1020 inherit: "default" 0.0;
1022 description { state: "disabled_visible" 0.0;
1023 inherit: "default" 0.0;
1024 color: BUTTON_SEARCH_BUTTON_CANCEL_DISABLED_COLOR_INC;
1027 description { state: "focused" 0.0;
1028 inherit: "default" 0.0;
1030 color: BUTTON_SEARCH_BUTTON_CANCEL_FOCUSED_COLOR_INC;
1036 ///////////////////////////////////////////////////////////////////////////////////////
1037 group { name: "elm/button/base/style2";
1038 alias: "elm/button/base/text_only/style2";
1039 alias: "elm/button/base/style2/multiline";
1041 item: "focus_highlight" "on";
1044 image: "00_button_01.png" COMP;
1045 image: "00_button_01_press.png" COMP;
1046 image: "00_button_01_dim.png" COMP;
1047 image: "00_button_01_focus.png" COMP;
1050 public button_state = BUTTON_STATE_ENABLED;
1053 part { name: "button_image";
1055 description { state: "default" 0.0;
1057 normal: "00_button_01.png";
1058 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1062 description { state: "clicked" 0.0;
1063 inherit: "default" 0.0;
1064 image.normal: "00_button_01_press.png";
1066 description { state: "disabled" 0.0;
1067 inherit: "default" 0.0;
1068 image.normal: "00_button_01_dim.png";
1070 description { state: "focused" 0.0;
1071 inherit: "default" 0.0;
1072 image.normal: "00_button_01_press.png";
1075 part { name: "focus_image";
1079 description { state: "default" 0.0;
1081 rel1.to : "button_image";
1082 rel2.to : "button_image";
1084 normal: "00_button_01_focus.png";
1085 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1089 description { state: "focused" 0.0;
1090 inherit: "default" 0.0;
1094 part { name: "padding_left_top";
1098 description { state: "default" 0.0;
1100 rel2.relative: 0.0 0.0;
1101 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1110 description { state: "default" 0.0;
1111 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1114 description { state: "visible" 0.0;
1115 inherit: "default" 0.0;
1116 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1118 description { state: "icononly" 0.0;
1119 inherit: "default" 0.0;
1120 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1123 part { name: "padding_right_bottom";
1127 description { state: "default" 0.0;
1129 rel1.relative: 1.0 1.0;
1130 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1135 part { name: "icon_rect";
1139 description { state: "default" 0.0;
1145 to: "padding_left_top";
1149 to_x: "padding_left_top";
1150 to_y: "padding_right_bottom";
1154 description { state: "visible" 0.0;
1155 inherit: "default" 0.0;
1156 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1157 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1159 description { state: "icononly" 0.0;
1160 inherit: "default" 0.0;
1163 part { name: "padding_after_icon";
1167 description { state: "default" 0.0; //when only icon or no icon is there
1175 rel2.to: "icon_rect";
1178 description { state: "visible" 0.0;
1179 inherit: "default" 0.0;
1180 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1182 description { state: "icononly" 0.0;
1183 inherit: "default" 0.0;
1186 part { name: "padding_before_text";
1190 description { state: "default" 0.0; //when only icon or no icon is there
1195 to_y: "padding_left_top";
1200 to_y: "padding_right_bottom";
1203 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1207 part { name: "elm.swallow.content";
1211 description { state: "default" 0.0;
1216 to: "padding_left_top";
1220 to_x: "padding_left_top";
1221 to_y: "padding_right_bottom";
1225 description { state: "visible" 0.0;
1227 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1228 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1232 to_x: "padding_before_text";
1233 to_y: "padding_left_top";
1237 to_x: "padding_before_text";
1238 to_y: "padding_right_bottom";
1241 description { state: "icononly" 0.0;
1242 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1243 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1246 part { name: "elm.text";
1251 effect: SHADOW BOTTOM;
1252 description { state: "default" 0.0;
1256 to_x: "padding_after_icon";
1257 to_y: "padding_left_top";
1261 to: "padding_right_bottom";
1263 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1264 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1266 font: "Tizen:style=Regular";
1267 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1270 text_class: "tizen";
1273 description { state: "visible" 0.0;
1274 inherit: "default" 0.0;
1277 description { state: "clicked" 0.0;
1278 inherit: "default" 0.0;
1280 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1282 description { state: "disabled" 0.0;
1283 inherit: "default" 0.0;
1285 description { state: "disabled_visible" 0.0;
1286 inherit: "default" 0.0;
1287 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1290 description { state: "focused" 0.0;
1291 inherit: "default" 0.0;
1293 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1296 part { name: "over2";
1299 ignore_flags: ON_HOLD;
1300 description { state: "default" 0.0;
1304 part { name: "over3";
1307 description { state: "default" 0.0;
1311 part { name: "clipper";
1313 description { state: "default" 0.0;
1314 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1316 description { state: "disabled" 0.0;
1317 inherit: "default" 0.0;
1318 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1321 part { name: "disabler";
1323 description { state: "default" 0.0;
1327 description { state: "disabled" 0.0;
1328 inherit: "default" 0.0;
1334 program { name: "button_click";
1335 signal: "mouse,down,1";
1337 action: SIGNAL_EMIT "elm,action,press" "";
1338 after: "button_click_anim";
1340 program { name: "button_click_anim";
1341 action: STATE_SET "clicked" 0.0;
1342 target: "button_image";
1343 after: "text_clicked";
1345 program { name: "text_clicked";
1349 get_state(PART:"elm.text", st, 30, vl);
1350 if (!strcmp(st, "visible"))
1351 set_state(PART:"elm.text", "clicked", 0.0);
1354 program { name: "button_double_click";
1355 signal: "mouse,down,1,double";
1357 after: "button_click_anim";
1359 program { name: "button_unpress";
1360 action: SIGNAL_EMIT "elm,action,unpress" "";
1362 program { name: "button_mouseout_clicked";
1363 signal: "mouse,up,1";
1368 get_state(PART:"elm.swallow.content", st, 30, vl);
1369 if (strcmp(st, "icononly"))
1371 emit("elm,action,default,text,set", "");
1372 set_state(PART:"elm.text", "visible", 0.0);
1374 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1375 set_state(PART:"button_image", "default", 0.0);
1377 after: button_unpress;
1379 program { name: "touch_snd";
1380 signal: "mouse,clicked,1";
1382 action: PLAY_SAMPLE "touch_sound" 1.0;
1383 after: button_unclick3;
1385 program { name: "button_unclick3";
1386 action: SIGNAL_EMIT "elm,action,click" "";
1388 program { name: "text_show";
1389 signal: "elm,state,text,visible";
1394 get_state(PART:"elm.swallow.content", st, 30, vl);
1395 if (!strcmp(st, "icononly"))
1397 set_state(PART:"elm.swallow.content", "visible", 0.0);
1398 set_state(PART:"icon_rect", "visible", 0.0);
1399 set_state(PART:"padding_after_icon", "visible", 0.0);
1400 set_state(PART:"bg", "visible", 0.0);
1402 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1403 set_state(PART:"elm.text", "visible", 0.0);
1405 set_state(PART:"elm.text", "disabled_visible", 0.0);
1408 program { name: "text_hide";
1409 signal: "elm,state,text,hidden";
1414 get_state(PART:"elm.swallow.content", st, 30, vl);
1415 if (!strcmp(st, "visible"))
1417 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1418 set_state(PART:"icon_rect", "icononly", 0.0);
1419 set_state(PART:"padding_after_icon", "icononly", 0.0);
1420 set_state(PART:"bg", "icononly", 0.0);
1422 set_state(PART:"elm.text", "default", 0.0);
1425 program { name: "icon_show";
1426 signal: "elm,state,icon,visible";
1431 get_state(PART:"elm.text", st, 30, vl);
1432 if (!strcmp(st, "visible"))
1434 set_state(PART:"elm.swallow.content", "visible", 0.0);
1435 set_state(PART:"icon_rect", "visible", 0.0);
1436 set_state(PART:"padding_after_icon", "visible", 0.0);
1437 set_state(PART:"bg", "visible", 0.0);
1441 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1442 set_state(PART:"icon_rect", "icononly", 0.0);
1443 set_state(PART:"padding_after_icon", "icononly", 0.0);
1444 set_state(PART:"bg", "icononly", 0.0);
1448 program { name: "icon_hide";
1449 signal: "elm,state,icon,hidden";
1451 action: STATE_SET "default" 0.0;
1452 target: "elm.swallow.content";
1453 target: "padding_after_icon";
1454 target: "icon_rect";
1457 program { name: "disable";
1458 signal: "elm,state,disabled";
1460 action: STATE_SET "disabled" 0.0;
1461 target: "button_image";
1464 after: "disable_text";
1466 program { name: "disable_text";
1470 get_state(PART:"elm.text", st, 30, vl);
1471 if (!strcmp(st, "visible"))
1472 set_state(PART:"elm.text", "disabled_visible", 0.0);
1474 set_state(PART:"elm.text", "disabled", 0.0);
1475 set_int(button_state, BUTTON_STATE_DISABLED);
1478 program { name: "enable";
1479 signal: "elm,state,enabled";
1481 action: STATE_SET "default" 0.0;
1482 target: "button_image";
1485 after: "enable_text";
1487 program { name: "enable_text";
1491 get_state(PART:"elm.text", st, 30, vl);
1492 if (!strcmp(st, "disabled_visible"))
1493 set_state(PART:"elm.text", "visible", 0.0);
1495 set_state(PART:"elm.text", "default", 0.0);
1496 set_int(button_state, BUTTON_STATE_ENABLED);
1499 program { name: "action_focus";
1500 signal: "elm,action,focus_highlight,show";
1502 action: STATE_SET "focused" 0.0;
1503 target: "focus_image";
1505 program { name: "action_unfocus";
1506 signal: "elm,action,focus_highlight,hide";
1508 action: STATE_SET "default" 0.0;
1509 target: "focus_image";
1514 ///////////////////////////////////////////////////////////////////////////////////////
1515 group { name: "elm/button/base/popup_button/default";
1516 alias: "elm/button/base/popup_button/menustyle";
1517 alias: "elm/button/base/popup_button/liststyle";
1518 alias: "elm/button/base/popup_button/volumebarstyle";
1519 alias: "elm/button/base/popup_button/customstyle";
1520 alias: "elm/button/base/popup_button/verticalbuttonstyle";
1521 alias: "elm/button/base/popup_button/default/multiline";
1523 item: "focus_highlight" "on";
1526 image: "00_popup_button.png" COMP;
1527 image: "00_popup_button_dim.png" COMP;
1528 image: "00_popup_button_press.png" COMP;
1529 image: "00_popup_button_focus.png" COMP;
1532 public button_state = BUTTON_STATE_ENABLED;
1535 part { name: "button_image";
1537 description { state: "default" 0.0;
1538 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
1540 normal: "00_popup_button.png";
1541 border: BUTTON_POPUP_BG_BORDER_INC;
1545 description { state: "clicked" 0.0;
1546 inherit: "default" 0.0;
1547 image.normal: "00_popup_button_press.png";
1549 description { state: "disabled" 0.0;
1550 inherit: "default" 0.0;
1551 image.normal: "00_popup_button_dim.png";
1553 description { state: "focused" 0.0;
1554 inherit: "default" 0.0;
1555 image.normal: "00_popup_button_focus.png";
1558 part { name: "focus_image";
1562 description { state: "default" 0.0;
1564 rel1.to : "button_image";
1565 rel2.to : "button_image";
1567 normal: "00_popup_button_focus.png";
1568 border: BUTTON_POPUP_BG_BORDER_INC;
1572 description { state: "focused" 0.0;
1573 inherit: "default" 0.0;
1577 part { name: "padding_left_top";
1581 description { state: "default" 0.0;
1583 rel2.relative: 0.0 0.0;
1584 min: BUTTON_POPUP_PADDING_MIN_INC;
1589 part { name: "padding_right_bottom";
1592 description { state: "default" 0.0;
1594 rel1.relative: 1.0 1.0;
1595 min: BUTTON_POPUP_PADDING_MIN_INC;
1600 part { name: "padding_icon_text";
1603 description { state: "default" 0.0; //when only icon or no icon is there
1607 to: "elm.swallow.content";
1609 rel2.to: "elm.swallow.content";
1614 description { state: "icononly" 0.0;
1615 inherit: "default" 0.0;
1617 description { state: "visible" 0.0; //when icon is visible
1618 inherit: "default" 0.0;
1619 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1622 part { name: "elm.swallow.content";
1626 description { state: "default" 0.0;
1631 to: "padding_left_top";
1635 to_x: "padding_left_top";
1636 to_y: "padding_right_bottom";
1640 description { state: "visible" 0.0;
1641 inherit: "default" 0.0;
1645 aspect_preference: VERTICAL;
1647 description { state: "icononly" 0.0;
1648 inherit: "default" 0.0;
1649 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
1654 part { name: "elm.text";
1659 effect: SHADOW BOTTOM;
1660 description { state: "default" 0.0;
1664 to_x: "padding_icon_text";
1665 to_y: "padding_left_top";
1669 to: "padding_right_bottom";
1671 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
1672 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1674 font: "Tizen:style=Bold";
1675 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
1677 text_class: "tizen";
1680 description { state: "visible" 0.0;
1681 inherit: "default" 0.0;
1683 min: BUTTON_POPUP_TEXT_MIN_INC;
1685 description { state: "clicked" 0.0;
1686 inherit: "default" 0.0;
1689 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
1691 description { state: "disabled" 0.0;
1692 inherit: "default" 0.0;
1694 description { state: "disabled_visible" 0.0;
1695 inherit: "default" 0.0;
1696 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
1698 min: BUTTON_POPUP_TEXT_MIN_INC;
1700 description { state: "focused" 0.0;
1701 inherit: "default" 0.0;
1704 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1707 part { name: "over2";
1710 ignore_flags: ON_HOLD;
1711 description { state: "default" 0.0;
1715 part { name: "over3";
1718 description { state: "default" 0.0;
1722 part { name: "clipper";
1724 description { state: "default" 0.0;
1725 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1727 description { state: "disabled" 0.0;
1728 inherit: "default" 0.0;
1729 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1732 part { name: "disabler";
1734 description { state: "default" 0.0;
1738 description { state: "disabled" 0.0;
1739 inherit: "default" 0.0;
1745 program { name: "button_click";
1746 signal: "mouse,down,1";
1748 action: SIGNAL_EMIT "elm,action,press" "";
1749 after: "button_click_anim";
1751 program { name: "button_click_anim";
1752 action: STATE_SET "clicked" 0.0;
1753 target: "button_image";
1754 after: "text_clicked";
1756 program { name: "text_clicked";
1760 get_state(PART:"elm.text", st, 30, vl);
1761 if (!strcmp(st, "visible"))
1762 set_state(PART:"elm.text", "clicked", 0.0);
1765 program { name: "button_double_click";
1766 signal: "mouse,down,1,double";
1768 after: "button_click_anim";
1770 program { name: "button_unpress";
1771 action: SIGNAL_EMIT "elm,action,unpress" "";
1773 program { name: "button_mouseout_clicked";
1774 signal: "mouse,up,1";
1779 get_state(PART:"elm.swallow.content", st, 30, vl);
1780 if (strcmp(st, "icononly"))
1782 emit("elm,action,default,text,set", "");
1783 set_state(PART:"elm.text", "visible", 0.0);
1785 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1786 set_state(PART:"button_image", "default", 0.0);
1788 after: button_unpress;
1790 program { name: "touch_snd";
1791 signal: "mouse,clicked,1";
1793 action: PLAY_SAMPLE "touch_sound" 1.0;
1794 after: button_unclick3;
1796 program { name: "button_unclick3";
1797 action: SIGNAL_EMIT "elm,action,click" "";
1799 program { name: "text_show";
1800 signal: "elm,state,text,visible";
1805 get_state(PART:"elm.swallow.content", st, 30, vl);
1806 if (!strcmp(st, "icononly"))
1808 set_state(PART:"elm.swallow.content", "visible", 0.0);
1809 set_state(PART:"padding_icon_text", "visible", 0.0);
1811 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1812 set_state(PART:"elm.text", "visible", 0.0);
1814 set_state(PART:"elm.text", "disabled_visible", 0.0);
1817 program { name: "text_hide";
1818 signal: "elm,state,text,hidden";
1823 get_state(PART:"elm.swallow.content", st, 30, vl);
1824 if (!strcmp(st, "visible"))
1826 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1827 set_state(PART:"padding_icon_text", "icononly", 0.0);
1829 set_state(PART:"elm.text", "default", 0.0);
1832 program { name: "icon_show";
1833 signal: "elm,state,icon,visible";
1838 get_state(PART:"elm.text", st, 30, vl);
1839 if (!strcmp(st, "visible"))
1841 set_state(PART:"elm.swallow.content", "visible", 0.0);
1842 set_state(PART:"padding_icon_text", "visible", 0.0);
1846 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1847 set_state(PART:"padding_icon_text", "icononly", 0.0);
1851 program { name: "icon_hide";
1852 signal: "elm,state,icon,hidden";
1854 action: STATE_SET "default" 0.0;
1855 target: "elm.swallow.content";
1856 target: "padding_icon_text";
1858 program { name: "disable";
1859 signal: "elm,state,disabled";
1861 action: STATE_SET "disabled" 0.0;
1862 target: "button_image";
1865 after: "disable_text";
1867 program { name: "disable_text";
1871 get_state(PART:"elm.text", st, 30, vl);
1872 if (!strcmp(st, "visible"))
1873 set_state(PART:"elm.text", "disabled_visible", 0.0);
1875 set_state(PART:"elm.text", "disabled", 0.0);
1876 set_int(button_state, BUTTON_STATE_DISABLED);
1879 program { name: "enable";
1880 signal: "elm,state,enabled";
1882 action: STATE_SET "default" 0.0;
1883 target: "button_image";
1886 after: "enable_text";
1888 program { name: "enable_text";
1892 get_state(PART:"elm.text", st, 30, vl);
1893 if (!strcmp(st, "disabled_visible"))
1894 set_state(PART:"elm.text", "visible", 0.0);
1896 set_state(PART:"elm.text", "default", 0.0);
1897 set_int(button_state, BUTTON_STATE_ENABLED);
1900 program { name: "action_focus";
1901 signal: "elm,action,focus_highlight,show";
1903 action: STATE_SET "focused" 0.0;
1904 target: "focus_image";
1906 program { name: "action_unfocus";
1907 signal: "elm,action,focus_highlight,hide";
1909 action: STATE_SET "default" 0.0;
1910 target: "focus_image";
1915 ///////////////////////////////////////////////////////////////////////////////////////
1916 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
1917 group { name: "elm/button/base/"style_name; \
1919 item: "focus_highlight" "on"; \
1922 image: "00_circle_button.png" COMP; \
1923 image: "00_circle_button_press.png" COMP; \
1924 image: "00_circle_button_dim.png" COMP; \
1925 image: image_normal COMP; \
1926 image: image_press COMP; \
1927 image: 00_circle_button_focus.png COMP; \
1930 part { name: "button_image"; \
1932 description { state: "default" 0.0; \
1933 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1934 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1935 image.normal: "00_circle_button.png"; \
1938 state: "clicked" 0.0; \
1939 inherit: "default" 0.0; \
1940 image.normal: "00_circle_button_press.png"; \
1943 state: "disabled" 0.0; \
1944 inherit: "default" 0.0; \
1945 image.normal: "00_circle_button_dim.png"; \
1948 part { name: "left_top_padding"; \
1951 description { state: "default" 0.0; \
1952 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
1953 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
1956 rel1.to: "button_image"; \
1957 rel2.to: "button_image"; \
1960 part { name: "right_bottom_padding"; \
1963 description { state: "default" 0.0; \
1964 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
1965 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
1969 relative: 1.0 1.0; \
1970 to: "button_image"; \
1972 rel2.to: "button_image"; \
1975 part { name: "button_center_part"; \
1977 clip_to: "icon_clipper"; \
1978 description { state: "default" 0.0; \
1979 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
1980 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
1981 image.normal: image_normal; \
1983 relative: 1.0 1.0; \
1984 to: "left_top_padding"; \
1987 relative: 0.0 0.0; \
1988 to: "right_bottom_padding"; \
1991 description { state: "clicked" 0.0; \
1992 inherit: "default"; \
1993 image.normal: image_press; \
1995 description { state: "disabled" 0.0; \
1996 inherit: "default"; \
1999 part { name: "icon_clipper"; \
2002 description { state: "default" 0.0; \
2003 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2005 description { state: "clicked" 0.0; \
2006 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2008 description { state: "disabled" 0.0; \
2009 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2012 part { name: "focus_image"; \
2016 description { state: "default" 0.0; \
2017 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2018 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2020 rel1.to : "button_image"; \
2021 rel2.to : "button_image"; \
2023 normal: "00_circle_button_focus.png"; \
2027 description { state: "focused" 0.0; \
2028 inherit: "default" 0.0; \
2032 part { name: "over1"; \
2034 ignore_flags: ON_HOLD; \
2035 description { state: "default" 0.0; \
2037 min: min_width min_height; \
2040 part { name: "over2"; \
2043 description { state: "default" 0.0; \
2047 part { name: "disabler"; \
2049 description { state: "default" 0.0; \
2053 description { state: "disabled" 0.0; \
2054 inherit: "default" 0.0; \
2060 program { name: "button_click"; \
2061 signal: "mouse,down,1"; \
2063 action: SIGNAL_EMIT "elm,action,press" ""; \
2064 after: "button_click_anim"; \
2066 program { name: "button_click_anim"; \
2067 action: STATE_SET "clicked" 0.0; \
2068 target: "button_image"; \
2069 target: "button_center_part"; \
2070 target: "icon_clipper"; \
2072 program { name: "button_double_click"; \
2073 signal: "mouse,down,1,double"; \
2075 after: "button_click_anim"; \
2077 program { name: "button_unclick"; \
2078 signal: "mouse,up,1"; \
2080 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2081 after: "button_unclick_anim"; \
2083 program { name: "button_unclick_anim"; \
2084 action: STATE_SET "default" 0.0; \
2085 target: "button_image"; \
2086 target: "button_center_part"; \
2087 target: "icon_clipper"; \
2089 program { name: "touch_snd"; \
2090 signal: "mouse,clicked,1"; \
2092 action: PLAY_SAMPLE "touch_sound" 1.0; \
2093 after: button_unclick3; \
2095 program { name: "button_unclick3"; \
2096 action: SIGNAL_EMIT "elm,action,click" ""; \
2098 program { name: "disable"; \
2099 signal: "elm,state,disabled"; \
2101 action: STATE_SET "disabled" 0.0; \
2102 target: "disabler"; \
2103 target: "button_image"; \
2104 target: "button_center_part"; \
2105 target: "icon_clipper"; \
2107 program { name: "enable"; \
2108 signal: "elm,state,enabled"; \
2110 action: STATE_SET "default" 0.0; \
2111 target: "disabler"; \
2112 target: "button_image"; \
2113 target: "button_center_part"; \
2114 target: "icon_clipper"; \
2116 program { name: "action_focus"; \
2117 signal: "elm,action,focus_highlight,show"; \
2119 action: STATE_SET "focused" 0.0; \
2120 target: "focus_image"; \
2122 program { name: "action_unfocus"; \
2123 signal: "elm,action,focus_highlight,hide"; \
2125 action: STATE_SET "default" 0.0; \
2126 target: "focus_image"; \
2131 ///////////////////////////////////////////////////////////////////////////////////////
2132 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)
2134 ///////////////////////////////////////////////////////////////////////////////////////
2135 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)
2137 ///////////////////////////////////////////////////////////////////////////////////////
2138 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)
2140 ///////////////////////////////////////////////////////////////////////////////////////
2141 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)
2143 ///////////////////////////////////////////////////////////////////////////////////////
2144 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)
2146 ///////////////////////////////////////////////////////////////////////////////////////
2147 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)
2149 ///////////////////////////////////////////////////////////////////////////////////////
2150 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)
2152 ///////////////////////////////////////////////////////////////////////////////////////
2153 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)
2155 ///////////////////////////////////////////////////////////////////////////////////////
2156 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)
2158 ///////////////////////////////////////////////////////////////////////////////////////
2159 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)
2161 ///////////////////////////////////////////////////////////////////////////////////////
2162 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)
2164 ///////////////////////////////////////////////////////////////////////////////////////
2165 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)
2167 ///////////////////////////////////////////////////////////////////////////////////////
2168 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)
2170 ///////////////////////////////////////////////////////////////////////////////////////
2171 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)
2173 ///////////////////////////////////////////////////////////////////////////////////////
2174 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)
2176 ///////////////////////////////////////////////////////////////////////////////////////
2177 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)
2179 ///////////////////////////////////////////////////////////////////////////////////////
2180 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)
2182 ///////////////////////////////////////////////////////////////////////////////////////
2183 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)
2185 ///////////////////////////////////////////////////////////////////////////////////////
2186 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)
2188 ///////////////////////////////////////////////////////////////////////////////////////
2189 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)
2190 ///////////////////////////////////////////////////////////////////////////////////////
2192 ///////////////////////////////////////////////////////////////////////////////////////
2193 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)
2194 ///////////////////////////////////////////////////////////////////////////////////////
2196 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2197 group { name: "elm/button/base/"style_name; \
2198 inherit: "elm/button/base/info"; \
2200 image: "00_circle_button_delete.png" COMP; \
2201 image: "00_circle_button_delete_press.png" COMP; \
2202 image: "00_circle_button_delete_dim.png" COMP; \
2203 image: "00_button_warning.png" COMP; \
2204 image: "00_button_warning_press.png" COMP; \
2207 part { name: "button_image"; \
2209 description { state: "default" 0.0; \
2210 image.normal: "00_circle_button_delete.png"; \
2213 state: "clicked" 0.0; \
2214 inherit: "default" 0.0; \
2215 image.normal: "00_circle_button_delete_press.png"; \
2218 state: "disabled" 0.0; \
2219 inherit: "default" 0.0; \
2220 image.normal: "00_circle_button_delete_dim.png"; \
2223 part { name: "button_center_part"; \
2225 clip_to: "icon_clipper"; \
2226 description { state: "default" 0.0; \
2227 image.normal: "00_button_warning.png"; \
2229 description { state: "clicked" 0.0; \
2230 inherit: "default"; \
2231 image.normal: "00_button_warning_press.png"; \
2233 description { state: "disabled" 0.0; \
2234 inherit: "default"; \
2237 part { name: "icon_clipper"; \
2240 description { state: "default" 0.0; \
2241 color: BUTTON_CIRCLE_STYLE_WARNING_NORMAL_COLOR_INC; \
2243 description { state: "clicked" 0.0; \
2244 color: BUTTON_CIRCLE_STYLE_WARNING_PRESSED_COLOR_INC; \
2246 description { state: "disabled" 0.0; \
2247 color: BUTTON_CIRCLE_STYLE_WARNING_DISABLED_COLOR_INC; \
2250 part { name: "over1"; \
2252 ignore_flags: ON_HOLD; \
2253 description { state: "default" 0.0; \
2255 min: min_width min_height; \
2261 ///////////////////////////////////////////////////////////////////////////////////////
2262 BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2264 ///////////////////////////////////////////////////////////////////////////////////////
2265 BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2267 ///////////////////////////////////////////////////////////////////////////////////////
2268 group { name: "elm/button/base/circle/empty";
2270 item: "focus_highlight" "on";
2273 image: "00_circle_button.png" COMP;
2274 image: "00_circle_button_press.png" COMP;
2275 image: "00_circle_button_dim.png" COMP;
2276 image: 00_circle_button_focus.png COMP;
2279 part { name: "button_image";
2281 description { state: "default" 0.0;
2282 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2283 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2285 image.normal: "00_circle_button.png";
2287 description { state: "clicked" 0.0;
2288 inherit: "default" 0.0;
2289 image.normal: "00_circle_button_press.png";
2291 description { state: "disabled" 0.0;
2292 inherit: "default" 0.0;
2293 image.normal: "00_circle_button_dim.png";
2296 part { name: "left_top_padding";
2299 description { state: "default" 0.0;
2300 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2301 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2304 rel1.to: "button_image";
2305 rel2.to: "button_image";
2308 part { name: "right_bottom_padding";
2311 description { state: "default" 0.0;
2312 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2313 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2320 rel2.to: "button_image";
2323 part { name: "elm.swallow.content";
2325 clip_to: "icon_clipper";
2327 description { state: "default" 0.0;
2331 to: "left_top_padding";
2335 to: "right_bottom_padding";
2339 description { state: "visible" 0.0;
2340 inherit: "default" 0.0;
2342 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2343 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2346 part { name: "icon_clipper";
2349 description { state: "default" 0.0;
2350 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2352 description { state: "clicked" 0.0;
2353 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2355 description { state: "disabled" 0.0;
2356 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2359 part { name: "focus_image";
2363 description { state: "default" 0.0;
2364 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2365 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2367 rel1.to : "button_image";
2368 rel2.to : "button_image";
2370 normal: "00_circle_button_focus.png";
2374 description { state: "focused" 0.0;
2375 inherit: "default" 0.0;
2379 part { name: "over1";
2381 ignore_flags: ON_HOLD;
2382 description { state: "default" 0.0;
2386 part { name: "over2";
2389 description { state: "default" 0.0;
2393 part { name: "disabler";
2395 description { state: "default" 0.0;
2399 description { state: "disabled" 0.0;
2400 inherit: "default" 0.0;
2406 program { name: "button_click";
2407 signal: "mouse,down,1";
2409 action: SIGNAL_EMIT "elm,action,press" "";
2410 after: "button_click_anim";
2412 program { name: "button_click_anim";
2413 action: STATE_SET "clicked" 0.0;
2414 target: "button_image";
2415 target: "icon_clipper";
2417 program { name: "button_double_click";
2418 signal: "mouse,down,1,double";
2420 after: "button_click_anim";
2422 program { name: "touch_snd";
2423 signal: "mouse,clicked,1";
2425 action: PLAY_SAMPLE "touch_sound" 1.0;
2426 after: button_unclick2;
2428 program { name: "button_unclick2";
2429 action: SIGNAL_EMIT "elm,action,click" "";
2431 program { name: "button_unclick";
2432 signal: "mouse,up,1";
2434 action: SIGNAL_EMIT "elm,action,unpress" "";
2435 after: "button_unclick_anim";
2437 program { name: "button_unclick_anim";
2438 action: STATE_SET "default" 0.0;
2439 target: "button_image";
2440 target: "icon_clipper";
2442 program { name: "disable";
2443 signal: "elm,state,disabled";
2445 action: STATE_SET "disabled" 0.0;
2447 target: "button_image";
2448 target: "icon_clipper";
2450 program { name: "enable";
2451 signal: "elm,state,enabled";
2453 action: STATE_SET "default" 0.0;
2455 target: "button_image";
2456 target: "icon_clipper";
2458 program { name: "icon_show";
2459 signal: "elm,state,icon,visible";
2461 action: STATE_SET "visible" 0.0;
2462 target: "elm.swallow.content";
2464 program { name: "icon_hide";
2465 signal: "elm,state,icon,hidden";
2467 action: STATE_SET "default" 0.0;
2468 target: "elm.swallow.content";
2470 program { name: "action_focus";
2471 signal: "elm,action,focus_highlight,show";
2473 action: STATE_SET "focused" 0.0;
2474 target: "focus_image";
2476 program { name: "action_unfocus";
2477 signal: "elm,action,focus_highlight,hide";
2479 action: STATE_SET "default" 0.0;
2480 target: "focus_image";
2485 ///////////////////////////////////////////////////////////////////////////////////////
2486 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2487 group { name: "elm/button/base/contacts/"style_name; \
2488 alias: "elm/button/base/"style_name; \
2490 item: "focus_highlight" "on"; \
2493 image: "00_circle_button.png" COMP; \
2494 image: "00_circle_button_press.png" COMP; \
2495 image: "00_circle_button_dim.png" COMP; \
2496 image: image_normal COMP; \
2497 image: image_press COMP; \
2498 image: 00_circle_button_focus.png COMP;\
2501 part { name: "button_image"; \
2503 description { state: "default" 0.0; \
2504 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2505 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2506 image.normal: "00_circle_button.png"; \
2508 description { state: "clicked" 0.0; \
2509 inherit: "default" 0.0; \
2510 image.normal: "00_circle_button_press.png"; \
2512 description { state: "disabled" 0.0; \
2513 inherit: "default" 0.0; \
2514 image.normal: "00_circle_button_dim.png"; \
2517 part { name: "button_center_part"; \
2520 clip_to: "icon_clipper"; \
2521 description { state: "default" 0.0; \
2522 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2523 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2524 image.normal: image_normal; \
2527 state: "clicked" 0.0; \
2528 inherit: "default" 0.0; \
2529 image.normal: image_press; \
2531 description { state: "disabled" 0.0; \
2532 inherit: "default" 0.0; \
2535 part { name: "focus_image"; \
2539 description { state: "default" 0.0; \
2540 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2541 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2543 rel1.to : "button_image"; \
2544 rel2.to : "button_image"; \
2546 normal: "00_circle_button_focus.png"; \
2550 description { state: "focused" 0.0; \
2551 inherit: "default" 0.0; \
2555 part { name: "icon_clipper"; \
2558 description { state: "default" 0.0; \
2559 color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
2561 description { state: "clicked" 0.0; \
2562 color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
2564 description { state: "disabled" 0.0; \
2565 color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
2568 part { name: "over1"; \
2571 ignore_flags: ON_HOLD; \
2572 description { state: "default" 0.0; \
2574 min: min_width min_height; \
2577 part { name: "over2"; \
2580 description { state: "default" 0.0; \
2584 part { name: "disabler"; \
2586 description { state: "default" 0.0; \
2590 description { state: "disabled" 0.0; \
2591 inherit: "default" 0.0; \
2597 program { name: "button_click"; \
2598 signal: "mouse,down,1"; \
2600 action: SIGNAL_EMIT "elm,action,press" ""; \
2601 after: "button_click_anim"; \
2603 program { name: "button_click_anim"; \
2604 action: STATE_SET "clicked" 0.0; \
2605 target: "button_image"; \
2606 target: "button_center_part"; \
2607 target: "icon_clipper"; \
2609 program { name: "button_double_click"; \
2610 signal: "mouse,down,1,double"; \
2612 after: "button_click_anim"; \
2614 program { name: "button_unclick"; \
2615 signal: "mouse,up,1"; \
2617 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2618 after: "button_unclick_anim"; \
2620 program { name: "button_unclick_anim"; \
2621 action: STATE_SET "default" 0.0; \
2622 target: "button_image"; \
2623 target: "button_center_part"; \
2624 target: "icon_clipper"; \
2626 program { name: "touch_snd"; \
2627 signal: "mouse,clicked,1"; \
2629 action: PLAY_SAMPLE "touch_sound" 1.0; \
2630 after: button_unclick3; \
2632 program { name: "button_unclick3"; \
2633 action: SIGNAL_EMIT "elm,action,click" ""; \
2635 program { name: "disable"; \
2636 signal: "elm,state,disabled"; \
2638 action: STATE_SET "disabled" 0.0; \
2639 target: "disabler"; \
2640 target: "button_image"; \
2641 target: "button_center_part"; \
2642 target: "icon_clipper"; \
2644 program { name: "enable"; \
2645 signal: "elm,state,enabled"; \
2647 action: STATE_SET "default" 0.0; \
2648 target: "disabler"; \
2649 target: "button_image"; \
2650 target: "button_center_part"; \
2651 target: "icon_clipper"; \
2653 program { name: "action_focus"; \
2654 signal: "elm,action,focus_highlight,show"; \
2656 action: STATE_SET "focused" 0.0; \
2657 target: "focus_image"; \
2659 program { name: "action_unfocus"; \
2660 signal: "elm,action,focus_highlight,hide"; \
2662 action: STATE_SET "default" 0.0; \
2663 target: "focus_image"; \
2667 ///////////////////////////////////////////////////////////////////////////////////////
2668 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)
2670 ///////////////////////////////////////////////////////////////////////////////////////
2671 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)
2673 ///////////////////////////////////////////////////////////////////////////////////////
2674 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)
2676 ///////////////////////////////////////////////////////////////////////////////////////
2677 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)
2679 ///////////////////////////////////////////////////////////////////////////////////////
2680 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)
2682 ///////////////////////////////////////////////////////////////////////////////////////
2683 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)
2685 ///////////////////////////////////////////////////////////////////////////////////////
2687 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
2688 group { name: "elm/button/base/contacts/"style_name; \
2689 alias: "elm/button/base/"style_name; \
2690 inherit: "elm/button/base/contacts/icon_plus"; \
2692 image: "00_circle_button_delete.png" COMP; \
2693 image: "00_circle_button_delete_press.png" COMP; \
2694 image: "00_circle_button_delete_dim.png" COMP; \
2695 image: "00_button_delete.png" COMP; \
2696 image: "00_button_delete_press.png" COMP; \
2699 part { name: "button_image"; \
2701 description { state: "default" 0.0; \
2702 image.normal: "00_circle_button_delete.png"; \
2704 description { state: "clicked" 0.0; \
2705 inherit: "default" 0.0; \
2706 image.normal: "00_circle_button_delete_press.png"; \
2708 description { state: "disabled" 0.0; \
2709 inherit: "default" 0.0; \
2710 image.normal: "00_circle_button_delete_dim.png"; \
2713 part { name: "button_center_part"; \
2716 clip_to: "icon_clipper"; \
2717 description { state: "default" 0.0; \
2718 image.normal: "00_button_delete.png"; \
2721 state: "clicked" 0.0; \
2722 inherit: "default" 0.0; \
2723 image.normal: "00_button_delete_press.png"; \
2725 description { state: "disabled" 0.0; \
2726 inherit: "default" 0.0; \
2729 part { name: "icon_clipper"; \
2732 description { state: "default" 0.0; \
2733 color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
2735 description { state: "clicked" 0.0; \
2736 color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
2738 description { state: "disabled" 0.0; \
2739 color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
2742 part { name: "over1"; \
2745 ignore_flags: ON_HOLD; \
2746 description { state: "default" 0.0; \
2748 min: min_width min_height; \
2754 ///////////////////////////////////////////////////////////////////////////////////////
2755 BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2757 ///////////////////////////////////////////////////////////////////////////////////////
2758 BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2760 ///////////////////////////////////////////////////////////////////////////////////////
2761 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
2762 group { name: "elm/button/base/"style_name; \
2764 item: "focus_highlight" "on"; \
2767 image: "00_button_01.png" COMP; \
2768 image: "00_button_01_press.png" COMP; \
2769 image: "00_button_01_dim.png" COMP; \
2770 image: image_normal COMP; \
2771 image: "00_button_01_focus.png" COMP; \
2774 part { name: "button_image";\
2777 description { state: "default" 0.0; \
2778 min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
2780 normal: "00_button_01.png"; \
2781 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
2785 description { state: "clicked" 0.0; \
2786 inherit: "default" 0.0; \
2787 image.normal: "00_button_01_press.png"; \
2789 description { state: "disabled" 0.0; \
2790 inherit: "default" 0.0; \
2791 image.normal: "00_button_01_dim.png"; \
2794 part { name: "focus_image"; \
2798 description { state: "default" 0.0; \
2800 rel1.to : "button_image"; \
2801 rel2.to : "button_image"; \
2803 normal: "00_button_01_focus.png"; \
2804 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
2808 description { state: "focused" 0.0; \
2809 inherit: "default" 0.0; \
2813 part { name: "padding_left_top"; \
2816 description { state: "default" 0.0; \
2818 rel2.relative: 0.0 0.0; \
2819 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
2823 part { name: "padding_right_bottom"; \
2826 description { state: "default" 0.0; \
2828 rel1.relative: 1.0 1.0; \
2829 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
2833 part { name: "jump_image"; \
2836 description { state: "default" 0.0; \
2837 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
2838 max: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
2840 relative: 1.0 0.0; \
2841 to_x: "padding_left_top"; \
2844 relative: 0.0 1.0; \
2845 to_x: "padding_right_bottom"; \
2847 image.normal: image_normal; \
2849 aspect_preference: VERTICAL; \
2850 color: BUTTON_JUMP_ICON_NORMAL_COLOR_INC; \
2852 description { state: "clicked" 0.0; \
2853 inherit: "default" 0.0; \
2854 color: BUTTON_JUMP_ICON_PRESSED_COLOR_INC; \
2856 description { state: "disabled" 0.0; \
2857 inherit: "default" 0.0; \
2858 color: BUTTON_JUMP_ICON_DIM_COLOR_INC; \
2861 part { name: "over1"; \
2864 ignore_flags: ON_HOLD; \
2865 description { state: "default" 0.0; \
2867 rel1.relative: 0.0 0.0; \
2868 rel2.relative: 1.0 1.0; \
2871 part { name: "over2"; \
2874 description { state: "default" 0.0; \
2880 program { name: "button_click"; \
2881 signal: "mouse,down,1"; \
2883 action: SIGNAL_EMIT "elm,action,press" ""; \
2884 after: "button_click_anim"; \
2886 program { name: "button_click_anim"; \
2887 action: STATE_SET "clicked" 0.0; \
2888 target: "button_image"; \
2889 target: "jump_image"; \
2891 program { name: "button_double_click"; \
2892 signal: "mouse,down,1,double"; \
2894 after: "button_click_anim"; \
2896 program { name: "button_unclick"; \
2897 signal: "mouse,up,1"; \
2899 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2900 after: "button_unclick_anim"; \
2902 program { name: "button_unclick_anim"; \
2903 action: STATE_SET "default" 0.0; \
2904 target: "button_image"; \
2905 target: "jump_image"; \
2907 program { name: "touch_snd"; \
2908 signal: "mouse,clicked,1"; \
2910 action: PLAY_SAMPLE "touch_sound" 1.0; \
2911 after: button_unclick3; \
2913 program { name: "button_unclick3"; \
2914 action: SIGNAL_EMIT "elm,action,click" ""; \
2916 program { name: "disable"; \
2917 signal: "elm,state,disabled"; \
2919 action: STATE_SET "disabled" 0.0; \
2920 target: "button_image"; \
2921 target: "jump_image"; \
2923 program { name: "enable"; \
2924 signal: "elm,state,enabled"; \
2926 action: STATE_SET "default" 0.0; \
2927 target: "button_image"; \
2928 target: "jump_image"; \
2930 program { name: "action_focus"; \
2931 signal: "elm,action,focus_highlight,show"; \
2933 action: STATE_SET "focused" 0.0; \
2934 target: "focus_image"; \
2936 program { name: "action_unfocus"; \
2937 signal: "elm,action,focus_highlight,hide"; \
2939 action: STATE_SET "default" 0.0; \
2940 target: "focus_image"; \
2945 ////////////////////////////////////////////////////////////////////////
2946 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
2947 ////////////////////////////////////////////////////////////////////////
2948 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
2950 ////////////////////////////////////////////////////////////////////////
2951 group { name: "elm/button/base/default";
2953 item: "focus_highlight" "on";
2956 image: "00_button_01.png" COMP;
2957 image: "00_button_01_press.png" COMP;
2958 image: "00_button_01_dim.png" COMP;
2959 image: "00_button_01_focus.png" COMP;
2962 public button_state = BUTTON_STATE_ENABLED;
2965 part { name: "button_image";
2967 description { state: "default" 0.0;
2968 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
2970 normal: "00_button_01.png";
2971 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
2975 description { state: "clicked" 0.0;
2976 inherit: "default" 0.0;
2977 image.normal: "00_button_01_press.png";
2979 description { state: "disabled" 0.0;
2980 inherit: "default" 0.0;
2981 image.normal: "00_button_01_dim.png";
2983 description { state: "focused" 0.0;
2984 inherit: "default" 0.0;
2985 image.normal: "00_button_01_press.png";
2988 part { name: "focus_image";
2992 description { state: "default" 0.0;
2994 rel1.to : "button_image";
2995 rel2.to : "button_image";
2997 normal: "00_button_01_focus.png";
2998 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3002 description { state: "focused" 0.0;
3003 inherit: "default" 0.0;
3007 part { name: "padding_left_top";
3011 description { state: "default" 0.0;
3013 rel2.relative: 0.0 0.0;
3014 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3019 part { name: "padding_right_bottom";
3023 description { state: "default" 0.0;
3025 rel1.relative: 1.0 1.0;
3026 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3031 part { name: "padding_icon_text";
3035 description { state: "default" 0.0; //when only icon or no icon is there
3041 to: "elm.swallow.content";
3043 rel2.to: "elm.swallow.content";
3046 description { state: "icononly" 0.0;
3047 inherit: "default" 0.0;
3049 description { state: "visible" 0.0; //when icon is visible
3050 inherit: "default" 0.0;
3051 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3054 part { name: "elm.swallow.content";
3058 description { state: "default" 0.0;
3064 to: "padding_left_top";
3068 to_x: "padding_left_top";
3069 to_y: "padding_right_bottom";
3072 description { state: "visible" 0.0;
3073 inherit: "default" 0.0;
3076 aspect_preference: VERTICAL;
3078 description { state: "icononly" 0.0;
3079 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3082 to_x: "padding_left_top";
3086 to_x: "padding_right_bottom";
3089 aspect_preference: VERTICAL;
3092 part { name: "elm.text";
3097 effect: SHADOW BOTTOM;
3098 description { state: "default" 0.0;
3103 to_x: "padding_icon_text";
3104 to_y: "padding_left_top";
3108 to: "padding_right_bottom";
3110 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3111 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
3113 font: "Tizen:style=Regular";
3114 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3116 text_class: "tizen";
3119 description { state: "visible" 0.0;
3120 inherit: "default" 0.0;
3122 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3124 description { state: "clicked" 0.0;
3125 inherit: "default" 0.0;
3127 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3128 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3130 description { state: "disabled" 0.0;
3131 inherit: "default" 0.0;
3133 description { state: "disabled_visible" 0.0;
3134 inherit: "default" 0.0;
3135 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3137 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3139 description { state: "focused" 0.0;
3140 inherit: "default" 0.0;
3143 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3146 part { name: "over2";
3149 ignore_flags: ON_HOLD;
3150 description { state: "default" 0.0;
3154 part { name: "over3";
3157 description { state: "default" 0.0;
3161 part { name: "disclip";
3163 description { state: "default" 0.0;
3164 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3166 description { state: "disabled" 0.0;
3167 inherit: "default" 0.0;
3168 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3171 part { name: "disabler";
3173 description { state: "default" 0.0;
3177 description { state: "disabled" 0.0;
3178 inherit: "default" 0.0;
3184 program { name: "button_click";
3185 signal: "mouse,down,1";
3187 action: SIGNAL_EMIT "elm,action,press" "";
3188 after: "button_click_anim";
3190 program { name: "button_click_anim";
3191 action: STATE_SET "clicked" 0.0;
3192 target: "button_image";
3193 after: "text_clicked";
3195 program { name: "text_clicked";
3199 get_state(PART:"elm.text", st, 30, vl);
3200 if (!strcmp(st, "visible"))
3201 set_state(PART:"elm.text", "clicked", 0.0);
3204 program { name: "button_double_click";
3205 signal: "mouse,down,1,double";
3207 after: "button_click_anim";
3209 program { name: "button_unpress";
3210 action: SIGNAL_EMIT "elm,action,unpress" "";
3212 program { name: "button_mouseout_clicked";
3213 signal: "mouse,up,1";
3218 get_state(PART:"elm.swallow.content", st, 30, vl);
3219 if (strcmp(st, "icononly"))
3221 emit("elm,action,default,text,set", "");
3222 set_state(PART:"elm.text", "visible", 0.0);
3224 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3225 set_state(PART:"button_image", "default", 0.0);
3227 after: button_unpress;
3229 program { name: "touch_snd";
3230 signal: "mouse,clicked,1";
3232 action: PLAY_SAMPLE "touch_sound" 1.0;
3233 after: button_unclick3;
3235 program { name: "button_unclick3";
3236 action: SIGNAL_EMIT "elm,action,click" "";
3238 program { name: "text_show";
3239 signal: "elm,state,text,visible";
3244 get_state(PART:"elm.swallow.content", st, 30, vl);
3245 if (!strcmp(st, "icononly"))
3247 set_state(PART:"elm.swallow.content", "visible", 0.0);
3248 set_state(PART:"padding_icon_text", "visible", 0.0);
3250 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3251 set_state(PART:"elm.text", "visible", 0.0);
3253 set_state(PART:"elm.text", "disabled_visible", 0.0);
3256 program { name: "text_hide";
3257 signal: "elm,state,text,hidden";
3262 get_state(PART:"elm.swallow.content", st, 30, vl);
3263 if (!strcmp(st, "visible"))
3265 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3266 set_state(PART:"padding_icon_text", "icononly", 0.0);
3268 set_state(PART:"elm.text", "default", 0.0);
3271 program { name: "icon_show";
3272 signal: "elm,state,icon,visible";
3277 get_state(PART:"elm.text", st, 30, vl);
3278 if (!strcmp(st, "visible"))
3280 set_state(PART:"elm.swallow.content", "visible", 0.0);
3281 set_state(PART:"padding_icon_text", "visible", 0.0);
3285 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3286 set_state(PART:"padding_icon_text", "icononly", 0.0);
3290 program { name: "icon_hide";
3291 signal: "elm,state,icon,hidden";
3293 action: STATE_SET "default" 0.0;
3294 target: "elm.swallow.content";
3295 target: "padding_icon_text";
3297 program { name: "disable";
3298 signal: "elm,state,disabled";
3300 action: STATE_SET "disabled" 0.0;
3301 target: "button_image";
3304 after: "disable_text";
3306 program { name: "disable_text";
3310 get_state(PART:"elm.text", st, 30, vl);
3311 if (!strcmp(st, "visible"))
3312 set_state(PART:"elm.text", "disabled_visible", 0.0);
3314 set_state(PART:"elm.text", "disabled", 0.0);
3315 set_int(button_state, BUTTON_STATE_DISABLED);
3318 program { name: "enable";
3319 signal: "elm,state,enabled";
3321 action: STATE_SET "default" 0.0;
3322 target: "button_image";
3325 after: "enable_text";
3327 program { name: "enable_text";
3331 get_state(PART:"elm.text", st, 30, vl);
3332 if (!strcmp(st, "disabled_visible"))
3333 set_state(PART:"elm.text", "visible", 0.0);
3335 set_state(PART:"elm.text", "default", 0.0);
3336 set_int(button_state, BUTTON_STATE_ENABLED);
3339 program { name: "action_focus";
3340 signal: "elm,action,focus_highlight,show";
3342 action: STATE_SET "focused" 0.0;
3343 target: "focus_image";
3345 program { name: "action_unfocus";
3346 signal: "elm,action,focus_highlight,hide";
3348 action: STATE_SET "default" 0.0;
3349 target: "focus_image";
3354 ///////////////////////////////////////////////////////////////////////////////////////
3355 group { name: "elm/button/base/multiline";
3356 alias: "elm/button/base/text_only/multiline";
3357 inherit: "elm/button/base/default";
3359 style { name: "btn_multiline_style";
3360 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";
3367 part { name: "button_image";
3369 description { state: "default" 0.0;
3370 min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3372 normal: "00_button_01.png";
3373 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3377 description { state: "clicked" 0.0;
3378 inherit: "default" 0.0;
3379 image.normal: "00_button_01_press.png";
3381 description { state: "disabled" 0.0;
3382 inherit: "default" 0.0;
3383 image.normal: "00_button_01_dim.png";
3385 description { state: "focused" 0.0;
3386 inherit: "default" 0.0;
3387 image.normal: "00_button_01_press.png";
3390 part { name: "padding_left_top";
3394 description { state: "default" 0.0;
3396 rel2.relative: 0.0 0.0;
3397 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3402 part { name: "padding_right_bottom";
3406 description { state: "default" 0.0;
3408 rel1.relative: 1.0 1.0;
3409 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3414 part { name: "elm.text";
3419 description { state: "default" 0.0;
3423 to_x: "padding_icon_text";
3424 to_y: "padding_left_top";
3428 to: "padding_right_bottom";
3430 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3432 style: "btn_multiline_style";
3435 description { state: "visible" 0.0;
3436 inherit: "default" 0.0;
3440 description { state: "clicked" 0.0;
3441 inherit: "default" 0.0;
3444 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3446 description { state: "disabled" 0.0;
3447 inherit: "default" 0.0;
3449 description { state: "disabled_visible" 0.0;
3450 inherit: "default" 0.0;
3451 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3455 description { state: "focused" 0.0;
3456 inherit: "default" 0.0;
3459 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3465 ///////////////////////////////////////////////////////////////////////////////////////
3466 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
3467 group { name: "elm/button/base/"style_name; \
3469 item: "focus_highlight" "on"; \
3472 image: image_normal COMP; \
3473 image: image_press COMP; \
3474 image: image_dim COMP; \
3475 image: "00_button_01.png" COMP; \
3476 image: "00_button_01_press.png" COMP; \
3477 image: "00_button_01_focus.png" COMP; \
3480 part { name: "button_image"; \
3482 description { state: "default" 0.0; \
3483 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3484 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3486 normal: "00_button_01.png"; \
3487 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3492 state: "clicked" 0.0; \
3493 inherit: "default" 0.0; \
3494 image.normal: "00_button_01_press.png"; \
3497 state: "disabled" 0.0; \
3498 inherit: "default" 0.0; \
3499 image.normal: "00_button_01_dim.png"; \
3502 state: "focused" 0.0; \
3503 inherit: "default" 0.0; \
3504 image.normal: "00_button_01_press.png"; \
3507 part { name: "focus_image"; \
3511 description { state: "default" 0.0; \
3512 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3513 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3515 rel1.to : "button_image"; \
3516 rel2.to : "button_image"; \
3518 normal: "00_button_01_focus.png"; \
3519 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3523 description { state: "focused" 0.0; \
3524 inherit: "default" 0.0; \
3528 part { name: "button_center_part"; \
3530 clip_to: "icon_clipper"; \
3531 description { state: "default" 0.0; \
3532 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3533 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3534 image.normal: image_normal; \
3537 state: "clicked" 0.0; \
3538 inherit: "default" 0.0; \
3539 image.normal: image_press; \
3542 state: "disabled" 0.0; \
3543 inherit: "default" 0.0; \
3546 part { name: "icon_clipper"; \
3549 description { state: "default" 0.0; \
3550 color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
3552 description { state: "clicked" 0.0; \
3553 color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
3555 description { state: "disabled" 0.0; \
3556 color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
3559 part { name: "over1"; \
3561 ignore_flags: ON_HOLD; \
3562 description { state: "default" 0.0; \
3566 part { name: "over2"; \
3569 description { state: "default" 0.0; \
3573 part { name: "disabler"; \
3575 description { state: "default" 0.0; \
3579 description { state: "disabled" 0.0; \
3580 inherit: "default" 0.0; \
3586 program { name: "button_click"; \
3587 signal: "mouse,down,1"; \
3589 action: SIGNAL_EMIT "elm,action,press" ""; \
3590 after: "button_click_anim"; \
3592 program { name: "button_click_anim"; \
3593 action: STATE_SET "clicked" 0.0; \
3594 target: "button_image"; \
3595 target: "button_center_part"; \
3596 target: ""icon_clipper""; \
3598 program { name: "button_double_click"; \
3599 signal: "mouse,down,1,double"; \
3601 after: "button_click_anim"; \
3603 program { name: "button_unclick"; \
3604 signal: "mouse,up,1"; \
3606 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3607 after: "button_unclick_anim"; \
3609 program { name: "button_unclick_anim"; \
3610 action: STATE_SET "default" 0.0; \
3611 target: "button_image"; \
3612 target: "button_center_part"; \
3613 target: ""icon_clipper""; \
3615 program { name: "touch_snd"; \
3616 signal: "mouse,clicked,1"; \
3618 action: PLAY_SAMPLE "touch_sound" 1.0; \
3619 after: button_unclick3; \
3621 program { name: "button_unclick3"; \
3622 action: SIGNAL_EMIT "elm,action,click" ""; \
3624 program { name: "disable"; \
3625 signal: "elm,state,disabled"; \
3627 action: STATE_SET "disabled" 0.0; \
3628 target: "disabler"; \
3629 target: "button_image"; \
3630 target: "button_center_part"; \
3631 target: ""icon_clipper""; \
3633 program { name: "enable"; \
3634 signal: "elm,state,enabled"; \
3636 action: STATE_SET "default" 0.0; \
3637 target: "disabler"; \
3638 target: "button_image"; \
3639 target: "button_center_part"; \
3640 target: ""icon_clipper""; \
3642 program { name: "action_focus"; \
3643 signal: "elm,action,focus_highlight,show"; \
3645 action: STATE_SET "focused" 0.0; \
3646 target: "focus_image"; \
3648 program { name: "action_unfocus"; \
3649 signal: "elm,action,focus_highlight,hide"; \
3651 action: STATE_SET "default" 0.0; \
3652 target: "focus_image"; \
3656 ///////////////////////////////////////////////////////////////////////////////////////
3657 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
3658 ///////////////////////////////////////////////////////////////////////////////////////
3659 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
3660 ///////////////////////////////////////////////////////////////////////////////////////
3662 group { name: "elm/button/base/multibuttonentry";
3663 alias: "elm/button/base/text_only/multibuttonentry";
3665 item: "focus_highlight" "on";
3668 image: "00_contacts_button.png" COMP;
3669 image: "00_contacts_button_press.png" COMP;
3670 image: "00_contacts_button_focus.png" COMP;
3673 public button_state = BUTTON_STATE_ENABLED;
3676 part { name: "button_image";
3678 description { state: "default" 0.0;
3680 to_x: "padding.left";
3684 to_x: "padding.right";
3687 min: BUTTON_CONTACT_BG_MIN_INC;
3689 normal: "00_contacts_button.png";
3690 border: BUTTON_CONTACT_BG_BORDER_INC;
3694 description { state: "clicked" 0.0;
3695 inherit: "default" 0.0;
3696 image.normal: "00_contacts_button_press.png";
3698 description { state: "disabled" 0.0;
3699 inherit: "default" 0.0;
3701 description { state: "focused" 0.0;
3702 inherit: "default" 0.0;
3703 image.normal: "00_contacts_button_press.png";
3706 part { name: "focus_image";
3710 description { state: "default" 0.0;
3712 rel1.to : "button_image";
3713 rel2.to : "button_image";
3715 normal: "00_contacts_button_focus.png";
3716 border: BUTTON_CONTACT_BG_BORDER_INC;
3720 description { state: "focused" 0.0;
3721 inherit: "default" 0.0;
3725 part { name: "padding.left";
3728 description { state: "default" 0.0;
3730 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
3740 part { name: "padding.right";
3743 description { state: "default" 0.0;
3745 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
3755 part { name: "elm.text";
3759 description { state: "default" 0.0;
3762 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
3764 font: "Tizen:style=Regular";
3765 size: BUTTON_CONTACT_FONT_SIZE_INC;
3767 text_class: "tizen";
3770 description { state: "visible" 0.0;
3771 inherit: "default" 0.0;
3775 description { state: "clicked" 0.0;
3776 inherit: "default" 0.0;
3779 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
3781 description { state: "disabled" 0.0;
3782 inherit: "default" 0.0;
3784 description { state: "disabled_visible" 0.0;
3785 inherit: "default" 0.0;
3786 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
3790 description { state: "focused" 0.0;
3791 inherit: "default" 0.0;
3794 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
3797 part { name: "over1";
3800 description { state: "default" 0.0;
3801 rel2.relative: 1.0 0.5;
3805 part { name: "over2";
3808 ignore_flags: ON_HOLD;
3809 description { state: "default" 0.0;
3810 rel1.to: "button_image";
3811 rel2.to: "button_image";
3815 part { name: "over3";
3818 description { state: "default" 0.0;
3819 rel1.to: "button_image";
3820 rel2.to: "button_image";
3824 part { name: "disabler";
3826 description { state: "default" 0.0;
3827 rel1.to: "button_image";
3828 rel2.to: "button_image";
3832 description { state: "disabled" 0.0;
3833 inherit: "default" 0.0;
3839 program { name: "button_click";
3840 signal: "mouse,down,1";
3842 action: SIGNAL_EMIT "elm,action,press" "";
3843 after: "button_click_anim";
3845 program { name: "button_click_anim";
3846 action: STATE_SET "clicked" 0.0;
3847 target: "button_image";
3850 program { name: "button_double_click";
3851 signal: "mouse,down,1,double";
3853 after: "button_click_anim";
3855 program { name: "button_unpress";
3856 action: SIGNAL_EMIT "elm,action,unpress" "";
3858 program { name: "button_mouseout_clicked";
3859 signal: "mouse,up,1";
3864 get_state(PART:"elm.text", st, 30, vl);
3865 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
3867 emit("elm,action,default,text,set", "");
3868 set_state(PART:"elm.text", "visible", 0.0);
3870 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3871 set_state(PART:"button_image", "default", 0.0);
3873 after: button_unpress;
3875 program { name: "touch_snd";
3876 signal: "mouse,clicked,1";
3878 action: PLAY_SAMPLE "touch_sound" 1.0;
3879 after: button_unclick3;
3881 program { name: "button_unclick3";
3882 action: SIGNAL_EMIT "elm,action,click" "";
3884 program { name: "text_show";
3885 signal: "elm,state,text,visible";
3888 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3889 set_state(PART:"elm.text", "visible", 0.0);
3891 set_state(PART:"elm.text", "disabled_visible", 0.0);
3894 program { name: "text_hide";
3895 signal: "elm,state,text,hidden";
3897 action: STATE_SET "default" 0.0;
3900 program { name: "disable";
3901 signal: "elm,state,disabled";
3903 action: STATE_SET "disabled" 0.0;
3904 target: "button_image";
3906 after: "disable_text";
3908 program { name: "disable_text";
3912 get_state(PART:"elm.text", st, 30, vl);
3913 if (!strcmp(st, "visible"))
3914 set_state(PART:"elm.text", "disabled_visible", 0.0);
3916 set_state(PART:"elm.text", "disabled", 0.0);
3917 set_int(button_state, BUTTON_STATE_DISABLED);
3920 program { name: "enable";
3921 signal: "elm,state,enabled";
3923 action: STATE_SET "default" 0.0;
3924 target: "button_image";
3926 after: "enable_text";
3928 program { name: "enable_text";
3932 get_state(PART:"elm.text", st, 30, vl);
3933 if (!strcmp(st, "disabled_visible"))
3934 set_state(PART:"elm.text", "visible", 0.0);
3936 set_state(PART:"elm.text", "default", 0.0);
3937 set_int(button_state, BUTTON_STATE_ENABLED);
3940 program { name: "action_focus";
3941 signal: "elm,action,focus_highlight,show";
3943 action: STATE_SET "focused" 0.0;
3944 target: "focus_image";
3946 program { name: "action_unfocus";
3947 signal: "elm,action,focus_highlight,hide";
3949 action: STATE_SET "default" 0.0;
3950 target: "focus_image";
3955 ///////////////////////////////////////////////////////////////////////////////////////
3956 group { name: "elm/button/base/naviframe/back_btn/default";
3957 alias: "elm/button/base/naviframe/prev_btn/default";
3958 alias: "elm/button/base/naviframe/end_btn/default";
3960 item: "focus_highlight" "on";
3963 image: "00_icon_back.png" COMP;
3964 image: "00_icon_SIP_close.png" COMP;
3965 image: "00_icon_focus.png" COMP;
3968 part { name: "button_image";
3971 description { state: "default" 0.0;
3972 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
3973 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
3976 description { state: "landscape" 0.0;
3977 min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
3978 max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
3982 part { name: "focus_image";
3986 description { state: "default" 0.0;
3988 rel1.to : "button_image";
3989 rel2.to : "button_image";
3991 normal: "00_icon_focus.png";
3995 description { state: "focused" 0.0;
3996 inherit: "default" 0.0;
4000 part { name: "back_button";
4003 clip_to: "back_button.clipper";
4004 description { state: "default" 0.0;
4005 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4006 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4008 rel1.to: "button_image";
4009 rel2.to: "button_image";
4010 image.normal: "00_icon_back.png";
4012 description { state: "compress" 0.0;
4013 inherit: "default" 0.0;
4014 image.normal: "00_icon_SIP_close.png";
4017 part { name: "back_button.clipper";
4019 description { state: "default" 0.0;
4020 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4022 description { state: "clicked" 0.0;
4023 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4025 description { state: "disabled" 0.0;
4026 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4029 part { name: "over2";
4031 ignore_flags: ON_HOLD;
4032 description { state: "default" 0.0;
4036 part { name: "over3";
4039 description { state: "default" 0.0;
4043 part { name: "disabler";
4045 description { state: "default" 0.0;
4049 description { state: "disabled" 0.0;
4050 inherit: "default" 0.0;
4056 program { name: "button_click";
4057 signal: "mouse,down,1";
4059 action: SIGNAL_EMIT "elm,action,press" "";
4060 after: "button_click_anim";
4062 program { name: "button_click_anim";
4064 set_state(PART:"back_button.clipper", "clicked", 0.0);
4067 program { name: "button_double_click";
4068 signal: "mouse,down,1,double";
4070 after: "button_click_anim";
4072 program { name: "button_unclick";
4073 signal: "mouse,up,1";
4075 action: SIGNAL_EMIT "elm,action,unpress" "";
4076 after: "button_unclick_anim";
4078 program { name: "button_unclick_anim";
4080 set_state(PART:"back_button.clipper", "default", 0.0);
4083 program { name: "touch_snd";
4084 signal: "mouse,clicked,1";
4086 action: PLAY_SAMPLE "touch_sound" 1.0;
4087 after: button_unclick3;
4089 program { name: "button_unclick3";
4090 action: SIGNAL_EMIT "elm,action,click" "";
4092 program { name: "disable";
4093 signal: "elm,state,disabled";
4096 set_state(PART:"back_button.clipper", "disabled", 0.0);
4099 program { name: "enable";
4100 signal: "elm,state,enabled";
4103 set_state(PART:"back_button.clipper", "default", 0.0);
4106 program { name: "change_to_landscape";
4107 signal: "elm,state,landscape";
4109 action: STATE_SET "landscape" 0.0;
4110 target: "button_image";
4112 program { name: "change_to_portrait";
4113 signal: "elm,state,portrait";
4115 action: STATE_SET "default" 0.0;
4116 target: "button_image";
4118 program { name: "landscape_mode";
4120 signal: "elm,state,orient,90";
4121 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4123 program { name: "landscape_mode2";
4125 signal: "elm,state,orient,270";
4126 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4128 program { name: "portrait_mode";
4130 signal: "elm,state,orient,0";
4131 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4133 program { name: "portrait_mode2";
4135 signal: "elm,state,orient,180";
4136 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4138 program { name: "display_compress_mode";
4139 signal: "elm,state,display,compress";
4141 action: STATE_SET "compress" 0.0;
4142 target: "back_button";
4144 program { name: "display_default_mode";
4145 signal: "elm,state,display,default";
4147 action: STATE_SET "default" 0.0;
4148 target: "back_button";
4150 program { name: "action_focus";
4151 signal: "elm,action,focus_highlight,show";
4153 action: STATE_SET "focused" 0.0;
4154 target: "focus_image";
4156 program { name: "action_unfocus";
4157 signal: "elm,action,focus_highlight,hide";
4159 action: STATE_SET "default" 0.0;
4160 target: "focus_image";
4165 //////////////////////////////////////////////////////////////
4166 group { name: "elm/button/base/naviframe/toolbar/default";
4167 alias: "elm/button/base/naviframe/title/default";
4169 item: "focus_highlight" "on";
4172 image: "00_toolbar_button.png" COMP;
4173 image: "00_toolbar_button_press.png" COMP;
4174 image: "00_toolbar_button_dim.png" COMP;
4175 image: "00_toolbar_button_focus.png" COMP;
4178 style { name: "btn_naviframe_toolbar";
4179 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";
4184 style { name: "btn_naviframe_toolbar_pressed";
4185 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";
4190 style { name: "btn_naviframe_toolbar_disabled";
4191 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";
4198 public button_state = BUTTON_STATE_ENABLED;
4199 public landscape_state = BUTTON_LANDSCAPE_DISABLED;
4202 part { name: "button_bg";
4205 description { state: "default" 0.0;
4206 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
4207 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MAX_INC;
4209 rel1.to: "padding_text_left_top";
4210 rel2.to: "padding_text_right_bottom";
4212 description { state: "landscape" 0.0;
4213 inherit: "default" 0.0;
4214 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
4215 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
4218 part { name: "button_image";
4220 description { state: "default" 0.0;
4221 rel1.to: "button_bg";
4222 rel2.to: "button_bg";
4224 normal: "00_toolbar_button.png";
4225 border: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_PRESSED_BORDER_INC;
4229 description { state: "clicked" 0.0;
4230 inherit: "default" 0.0;
4231 image.normal: "00_toolbar_button_press.png";
4233 description { state: "disabled" 0.0;
4234 inherit: "default" 0.0;
4235 image.normal: "00_toolbar_button_dim.png";
4237 description { state: "focused" 0.0;
4238 inherit: "default" 0.0;
4239 image.normal: "00_toolbar_button_press.png";
4242 part { name: "focus_image";
4246 description { state: "default" 0.0;
4248 rel1.to : "button_image";
4249 rel2.to : "button_image";
4251 normal: "00_toolbar_button_focus.png";
4252 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4256 description { state: "focused" 0.0;
4257 inherit: "default" 0.0;
4261 part { name: "padding_left_top";
4265 description { state: "default" 0.0;
4268 rel2.relative: 0.0 0.0;
4269 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4273 part { name: "padding_right_bottom";
4277 description { state: "default" 0.0;
4279 rel1.relative: 1.0 1.0;
4280 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4285 part { name: "padding_text_left_top";
4289 description { state: "default" 0.0;
4291 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4293 rel1.to: "elm.text";
4301 part { name: "padding_text_right_bottom";
4305 description { state: "default" 0.0;
4306 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4313 rel2.to: "elm.text";
4317 part { name: "elm.text";
4322 description { state: "default" 0.0;
4325 min: BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_MIN_INC;
4328 to: "padding_left_top";
4332 to: "padding_right_bottom";
4338 style: "btn_naviframe_toolbar";
4341 description { state: "landscape" 0.0;
4342 inherit: "default" 0.0;
4343 min: BUTTON_NAVIFRAME_TOOLBAR_LANDSCAPE_TEXTBLOCK_MIN_INC;
4345 description { state: "visible" 0.0;
4346 inherit: "default" 0.0;
4349 description { state: "landscape_visible" 0.0;
4350 inherit: "landscape" 0.0;
4353 description { state: "clicked" 0.0;
4354 inherit: "default" 0.0;
4357 style: "btn_naviframe_toolbar_pressed";
4360 description { state: "landscape_clicked" 0.0;
4361 inherit: "landscape" 0.0;
4364 style: "btn_naviframe_toolbar_pressed";
4367 description { state: "disabled" 0.0;
4368 inherit: "default" 0.0;
4370 description { state: "landscape_disabled" 0.0;
4371 inherit: "landscape" 0.0;
4373 description { state: "disabled_visible" 0.0;
4374 inherit: "default" 0.0;
4377 style: "btn_naviframe_toolbar_disabled";
4380 description { state: "landscape_disabled_visible" 0.0;
4381 inherit: "landscape" 0.0;
4384 style: "btn_naviframe_toolbar_disabled";
4387 description { state: "focused" 0.0;
4388 inherit: "default" 0.0;
4391 style: "btn_naviframe_toolbar_pressed";
4394 description { state: "landscape_focused" 0.0;
4395 inherit: "landscape" 0.0;
4398 style: "btn_naviframe_toolbar_pressed";
4402 part { name: "disclip";
4404 description { state: "default" 0.0;
4405 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4407 description { state: "disabled" 0.0;
4408 inherit: "default" 0.0;
4409 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4412 part { name: "over2";
4415 ignore_flags: ON_HOLD;
4416 description { state: "default" 0.0;
4417 rel1.to: "button_image";
4418 rel2.to: "button_image";
4422 part { name: "over3";
4425 description { state: "default" 0.0;
4426 rel1.to: "button_image";
4427 rel2.to: "button_image";
4431 part { name: "disabler";
4433 description { state: "default" 0.0;
4434 rel1.to: "button_image";
4435 rel2.to: "button_image";
4439 description { state: "disabled" 0.0;
4440 inherit: "default" 0.0;
4446 program { name: "button_click";
4447 signal: "mouse,down,1";
4449 action: SIGNAL_EMIT "elm,action,press" "";
4450 after: "button_click_anim";
4452 program { name: "button_click_anim";
4454 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4455 set_state(PART:"elm.text", "landscape_clicked", 0.0);
4457 set_state(PART:"elm.text", "clicked", 0.0);
4458 set_state(PART:"button_image", "clicked", 0.0);
4461 program { name: "button_double_click";
4462 signal: "mouse,down,1,double";
4464 after: "button_click_anim";
4466 program { name: "button_unpress";
4467 action: SIGNAL_EMIT "elm,action,unpress" "";
4469 program { name: "button_mouseout_clicked";
4470 signal: "mouse,up,1";
4475 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4477 get_state(PART:"elm.text", st, 30, vl);
4478 if (!strcmp(st, "landscape_clicked") || !strcmp(st, "landscape_focused"))
4480 emit("elm,action,default,text,set", "");
4481 set_state(PART:"elm.text", "landscape_visible", 0.0);
4486 get_state(PART:"elm.text", st, 30, vl);
4487 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4489 emit("elm,action,default,text,set", "");
4490 set_state(PART:"elm.text", "visible", 0.0);
4493 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4494 set_state(PART:"button_image", "default", 0.0);
4496 after: button_unpress;
4498 program { name: "touch_snd";
4499 signal: "mouse,clicked,1";
4501 action: PLAY_SAMPLE "touch_sound" 1.0;
4502 after: button_unclick3;
4504 program { name: "button_unclick3";
4505 action: SIGNAL_EMIT "elm,action,click" "";
4507 program { name: "text_show";
4508 signal: "elm,state,text,visible";
4511 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4513 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4514 set_state(PART:"elm.text", "landscape_visible", 0.0);
4516 set_state(PART:"elm.text", "visible", 0.0);
4520 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4521 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
4523 set_state(PART:"elm.text", "disabled_visible", 0.0);
4527 program { name: "text_hide";
4528 signal: "elm,state,text,hidden";
4531 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4532 set_state(PART:"elm.text", "landscape", 0.0);
4534 set_state(PART:"elm.text", "default", 0.0);
4537 program { name: "disable";
4538 signal: "elm,state,disabled";
4540 action: STATE_SET "disabled" 0.0;
4541 target: "button_image";
4544 after: "disable_text";
4546 program { name: "disable_text";
4550 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4552 get_state(PART:"elm.text", st, 30, vl);
4553 if (!strcmp(st, "landscape_visible"))
4554 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
4556 set_state(PART:"elm.text", "landscape_disabled", 0.0);
4560 get_state(PART:"elm.text", st, 30, vl);
4561 if (!strcmp(st, "visible"))
4562 set_state(PART:"elm.text", "disabled_visible", 0.0);
4564 set_state(PART:"elm.text", "disabled", 0.0);
4566 set_int(button_state, BUTTON_STATE_DISABLED);
4569 program { name: "enable";
4570 signal: "elm,state,enabled";
4572 action: STATE_SET "default" 0.0;
4573 target: "button_image";
4576 after: "enable_text";
4578 program { name: "enable_text";
4582 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4584 get_state(PART:"elm.text", st, 30, vl);
4585 if (!strcmp(st, "landscape_disabled"))
4586 set_state(PART:"elm.text", "landscape", 0.0);
4588 set_state(PART:"elm.text", "landscape_visible", 0.0);
4592 get_state(PART:"elm.text", st, 30, vl);
4593 if (!strcmp(st, "disabled"))
4594 set_state(PART:"elm.text", "default", 0.0);
4596 set_state(PART:"elm.text", "visible", 0.0);
4598 set_int(button_state, BUTTON_STATE_ENABLED);
4601 program { name: "change_to_landscape";
4602 signal: "elm,state,landscape";
4607 set_int(landscape_state, BUTTON_LANDSCAPE_ENABLED);
4608 get_state(PART:"elm.text", st, 30, vl);
4609 if (!strcmp(st, "default"))
4610 set_state(PART:"elm.text", "landscape", 0.0);
4611 else if (!strcmp(st, "clicked"))
4612 set_state(PART:"elm.text", "landscape_clicked", 0.0);
4613 else if (!strcmp(st, "disabled"))
4614 set_state(PART:"elm.text", "landscape_disabled", 0.0);
4615 else if (!strcmp(st, "disabled_visible"))
4616 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
4618 set_state(PART:"elm.text", "landscape_visible", 0.0);
4619 set_state(PART:"button_bg", "landscape", 0.0);
4622 program { name: "change_to_portrait";
4623 signal: "elm,state,portrait";
4628 set_int(landscape_state, BUTTON_LANDSCAPE_DISABLED);
4629 get_state(PART:"elm.text", st, 30, vl);
4630 if (!strcmp(st, "landscape"))
4631 set_state(PART:"elm.text", "default", 0.0);
4632 else if (!strcmp(st, "landscape_clicked"))
4633 set_state(PART:"elm.text", "clicked", 0.0);
4634 else if (!strcmp(st, "landscape_disabled"))
4635 set_state(PART:"elm.text", "disabled", 0.0);
4636 else if (!strcmp(st, "landscape_disabled_visible"))
4637 set_state(PART:"elm.text", "disabled_visible", 0.0);
4639 set_state(PART:"elm.text", "visible", 0.0);
4640 set_state(PART:"button_bg", "default", 0.0);
4643 program { name: "landscape_mode";
4645 signal: "elm,state,orient,90";
4646 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4648 program { name: "landscape_mode2";
4650 signal: "elm,state,orient,270";
4651 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4653 program { name: "portrait_mode";
4655 signal: "elm,state,orient,0";
4656 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4658 program { name: "portrait_mode2";
4660 signal: "elm,state,orient,180";
4661 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4663 program { name: "action_focus";
4664 signal: "elm,action,focus_highlight,show";
4666 action: STATE_SET "focused" 0.0;
4667 target: "focus_image";
4669 program { name: "action_unfocus";
4670 signal: "elm,action,focus_highlight,hide";
4672 action: STATE_SET "default" 0.0;
4673 target: "focus_image";
4678 //////////////////////////////////////////////////////////////
4679 group { name: "elm/button/base/naviframe/toolbar/left";
4680 inherit: "elm/button/base/naviframe/toolbar/default";
4682 part { name: "button_bg";
4685 description { state: "default" 0.0;
4686 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
4687 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MAX_INC;
4689 rel1.to: "padding_text_left_top";
4690 rel2.to: "padding_text_right_bottom";
4693 description { state: "landscape" 0.0;
4694 inherit: "default" 0.0;
4695 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
4696 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
4699 part { name: "elm.text";
4704 description { state: "default" 0.0;
4707 min: BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_MIN_INC;
4710 to: "padding_left_top";
4714 to: "padding_right_bottom";
4721 style: "btn_naviframe_toolbar";
4724 description { state: "landscape" 0.0;
4725 inherit: "default" 0.0;
4726 min: BUTTON_NAVIFRAME_TOOLBAR_LANDSCAPE_TEXTBLOCK_MIN_INC;
4728 description { state: "visible" 0.0;
4729 inherit: "default" 0.0;
4732 description { state: "landscape_visible" 0.0;
4733 inherit: "landscape" 0.0;
4736 description { state: "clicked" 0.0;
4737 inherit: "default" 0.0;
4740 style: "btn_naviframe_toolbar_pressed";
4743 description { state: "landscape_clicked" 0.0;
4744 inherit: "landscape" 0.0;
4747 style: "btn_naviframe_toolbar_pressed";
4750 description { state: "disabled" 0.0;
4751 inherit: "default" 0.0;
4753 description { state: "landscape_disabled" 0.0;
4754 inherit: "landscape" 0.0;
4756 description { state: "disabled_visible" 0.0;
4757 inherit: "default" 0.0;
4760 style: "btn_naviframe_toolbar_disabled";
4763 description { state: "landscape_disabled_visible" 0.0;
4764 inherit: "landscape" 0.0;
4767 style: "btn_naviframe_toolbar_disabled";
4770 description { state: "focused" 0.0;
4771 inherit: "default" 0.0;
4774 style: "btn_naviframe_toolbar_pressed";
4777 description { state: "landscape_focused" 0.0;
4778 inherit: "landscape" 0.0;
4781 style: "btn_naviframe_toolbar_pressed";
4788 //////////////////////////////////////////////////////////////
4789 group { name: "elm/button/base/naviframe/toolbar/right";
4790 inherit: "elm/button/base/naviframe/toolbar/default";
4792 part { name: "button_bg";
4795 description { state: "default" 0.0;
4796 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
4797 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MAX_INC;
4799 rel1.to: "padding_text_left_top";
4800 rel2.to: "padding_text_right_bottom";
4803 description { state: "landscape" 0.0;
4804 inherit: "default" 0.0;
4805 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
4806 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
4809 part { name: "elm.text";
4814 description { state: "default" 0.0;
4817 min: BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_MIN_INC;
4820 to: "padding_left_top";
4824 to: "padding_right_bottom";
4831 style: "btn_naviframe_toolbar";
4834 description { state: "landscape" 0.0;
4835 inherit: "default" 0.0;
4836 min: BUTTON_NAVIFRAME_TOOLBAR_LANDSCAPE_TEXTBLOCK_MIN_INC;
4838 description { state: "visible" 0.0;
4839 inherit: "default" 0.0;
4842 description { state: "landscape_visible" 0.0;
4843 inherit: "landscape" 0.0;
4846 description { state: "clicked" 0.0;
4847 inherit: "default" 0.0;
4850 style: "btn_naviframe_toolbar_pressed";
4853 description { state: "landscape_clicked" 0.0;
4854 inherit: "landscape" 0.0;
4857 style: "btn_naviframe_toolbar_pressed";
4860 description { state: "disabled" 0.0;
4861 inherit: "default" 0.0;
4863 description { state: "landscape_disabled" 0.0;
4864 inherit: "landscape" 0.0;
4866 description { state: "disabled_visible" 0.0;
4867 inherit: "default" 0.0;
4870 style: "btn_naviframe_toolbar_disabled";
4873 description { state: "landscape_disabled_visible" 0.0;
4874 inherit: "landscape" 0.0;
4877 style: "btn_naviframe_toolbar_disabled";
4880 description { state: "focused" 0.0;
4881 inherit: "default" 0.0;
4884 style: "btn_naviframe_toolbar_pressed";
4887 description { state: "landscape_focused" 0.0;
4888 inherit: "landscape" 0.0;
4891 style: "btn_naviframe_toolbar_pressed";
4898 ////////////////////////////////////////////////////////////////////
4899 group { name: "elm/button/base/toolbar/segmentedcontrol";
4901 image: "00_toolbar_button.png" COMP;
4902 image: "00_toolbar_button_press.png" COMP;
4903 image: "00_toolbar_button_dim.png" COMP;
4904 image: "00_button_icon_arrow.png" COMP;
4905 image: "00_button_icon_arrow_press.png" COMP;
4906 image: "00_toolbar_button_focus.png" COMP;
4909 item: "focus_highlight" "on";
4912 item: "focus_highlight" "on";
4915 style { name: "btn_toolbar_segmentedcontrol";
4916 base: "font=Tizen:style=Bold font_size="BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXT_FONT_SIZE_INC" align=center color=#ffffff ellipsis=1.0 wrap=none text_class=tizen";
4923 public button_state = BUTTON_STATE_ENABLED;
4926 part { name: "button_image";
4928 description { state: "default" 0.0;
4929 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
4930 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
4932 rel1.to: "padding_text_left_top";
4933 rel2.to: "padding_text_right_bottom";
4935 normal: "00_toolbar_button.png";
4936 border: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_BORDER_INC;
4940 description { state: "clicked" 0.0;
4941 inherit: "default" 0.0;
4942 image.normal: "00_toolbar_button_press.png";
4944 description { state: "disabled" 0.0;
4945 inherit: "default" 0.0;
4946 image.normal: "00_toolbar_button_dim.png";
4948 description { state: "focused" 0.0;
4949 inherit: "default" 0.0;
4950 image.normal: "00_toolbar_button_press.png";
4953 part { name: "focus_image";
4957 description { state: "default" 0.0;
4958 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
4959 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
4961 rel1.to : "button_image";
4962 rel2.to : "button_image";
4964 normal: "00_toolbar_button_focus.png";
4965 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4969 description { state: "focused" 0.0;
4970 inherit: "default" 0.0;
4974 part { name: "padding_left_top";
4978 description { state: "default" 0.0;
4981 rel2.relative: 0.0 0.0;
4982 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4986 part { name: "padding_right_bottom";
4990 description { state: "default" 0.0;
4992 rel1.relative: 1.0 1.0;
4993 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
4998 part { name: "padding_text_left_top";
5002 description { state: "default" 0.0;
5004 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
5006 rel1.to: "elm.text";
5014 part { name: "padding_text_right_bottom";
5018 description { state: "default" 0.0;
5019 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
5035 part { name: "elm.text";
5039 effect: FAR_SHADOW BOTTOM;
5041 description { state: "default" 0.0;
5044 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXTBLOCK_MIN_INC;
5047 to: "padding_left_top";
5051 to: "padding_right_bottom";
5053 color: BUTTON_NAVIFRAME_TOOLBAR_TEXT_NORMAL_COLOR_INC;
5054 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5058 style: "btn_toolbar_segmentedcontrol";
5061 description { state: "visible" 0.0;
5062 inherit: "default" 0.0;
5065 description { state: "clicked" 0.0;
5066 inherit: "default" 0.0;
5068 color: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PRESSED_COLOR_INC;
5070 description { state: "disabled" 0.0;
5071 inherit: "default" 0.0;
5073 description { state: "disabled_visible" 0.0;
5074 inherit: "default" 0.0;
5075 color: BUTTON_NAVIFRAME_TOOLBAR_TEXT_DISABLED_COLOR_INC;
5078 description { state: "focused" 0.0;
5079 inherit: "default" 0.0;
5081 color: BUTTON_NAVIFRAME_TOOLBAR_TEXT_FOCUSED_COLOR_INC;
5084 part { name: "icon_padding";
5087 description { state: "default" 0.0;
5096 rel2.to: "elm.text";
5099 part { name: "icon";
5101 clip_to: "icon_clipper";
5102 description { state: "default" 0.0;
5103 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5104 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5109 to_x: "icon_padding";
5115 to_x: "icon_padding";
5118 image.normal: "00_button_icon_arrow.png";
5120 description { state: "clicked" 0.0;
5121 inherit: "default" 0.0;
5122 image.normal: "00_button_icon_arrow_press.png";
5125 part { name: "icon_clipper";
5127 description { state: "default" 0.0;
5128 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_NORMAL_COLOR_INC;
5130 description { state: "clicked" 0.0;
5131 inherit: "default" 0.0;
5132 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_PRESSED_COLOR_INC;
5135 part { name: "disclip";
5137 description { state: "default" 0.0;
5138 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5140 description { state: "disabled" 0.0;
5141 inherit: "default" 0.0;
5142 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5145 part { name: "over2";
5148 ignore_flags: ON_HOLD;
5149 description { state: "default" 0.0;
5150 rel1.to: "button_image";
5151 rel2.to: "button_image";
5155 part { name: "over3";
5158 description { state: "default" 0.0;
5159 rel1.to: "button_image";
5160 rel2.to: "button_image";
5164 part { name: "disabler";
5166 description { state: "default" 0.0;
5167 rel1.to: "button_image";
5168 rel2.to: "button_image";
5172 description { state: "disabled" 0.0;
5173 inherit: "default" 0.0;
5179 program { name: "button_click";
5180 signal: "mouse,down,1";
5182 action: SIGNAL_EMIT "elm,action,press" "";
5183 after: "button_click_anim";
5185 program { name: "button_click_anim";
5186 action: STATE_SET "clicked" 0.0;
5187 target: "button_image";
5190 target: "icon_clipper";
5192 program { name: "button_double_click";
5193 signal: "mouse,down,1,double";
5195 after: "button_click_anim";
5197 program { name: "button_unpress";
5198 action: SIGNAL_EMIT "elm,action,unpress" "";
5200 program { name: "button_mouseout_clicked";
5201 signal: "mouse,up,1";
5206 get_state(PART:"elm.text", st, 30, vl);
5207 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5209 emit("elm,action,default,text,set", "");
5210 set_state(PART:"elm.text", "visible", 0.0);
5212 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5213 set_state(PART:"button_image", "default", 0.0);
5214 set_state(PART:"icon", "default", 0.0);
5215 set_state(PART:"icon_clipper", "default", 0.0);
5217 after: button_unpress;
5219 program { name: "touch_snd";
5220 signal: "mouse,clicked,1";
5222 action: PLAY_SAMPLE "touch_sound" 1.0;
5223 after: button_unclick3;
5225 program { name: "button_unclick3";
5226 action: SIGNAL_EMIT "elm,action,click" "";
5228 program { name: "text_show";
5229 signal: "elm,state,text,visible";
5232 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5233 set_state(PART:"elm.text", "visible", 0.0);
5235 set_state(PART:"elm.text", "disabled_visible", 0.0);
5238 program { name: "text_hide";
5239 signal: "elm,state,text,hidden";
5241 action: STATE_SET "default" 0.0;
5244 program { name: "disable";
5245 signal: "elm,state,disabled";
5247 action: STATE_SET "disabled" 0.0;
5248 target: "button_image";
5251 after: "disable_text";
5253 program { name: "disable_text";
5257 get_state(PART:"elm.text", st, 30, vl);
5258 if (!strcmp(st, "visible"))
5259 set_state(PART:"elm.text", "disabled_visible", 0.0);
5261 set_state(PART:"elm.text", "disabled", 0.0);
5262 set_int(button_state, BUTTON_STATE_DISABLED);
5265 program { name: "enable";
5266 signal: "elm,state,enabled";
5268 action: STATE_SET "default" 0.0;
5269 target: "button_image";
5272 after: "enable_text";
5274 program { name: "enable_text";
5278 get_state(PART:"elm.text", st, 30, vl);
5279 if (!strcmp(st, "disabled_visible"))
5280 set_state(PART:"elm.text", "visible", 0.0);
5282 set_state(PART:"elm.text", "default", 0.0);
5283 set_int(button_state, BUTTON_STATE_ENABLED);
5286 program { name: "action_focus";
5287 signal: "elm,action,focus_highlight,show";
5289 action: STATE_SET "focused" 0.0;
5290 target: "focus_image";
5292 program { name: "action_unfocus";
5293 signal: "elm,action,focus_highlight,hide";
5295 action: STATE_SET "default" 0.0;
5296 target: "focus_image";
5301 ////////////////////////////////////////////////////////////////////
5302 group { name: "elm/button/base/naviframe/title_icon";
5304 item: "focus_highlight" "on";
5307 image: "00_icon_focus.png" COMP;
5310 part { name: "button_image";
5313 description { state: "default" 0.0;
5315 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5316 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5318 description { state: "landscape" 0.0;
5320 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5321 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5324 part { name: "focus_image";
5328 description { state: "default" 0.0;
5330 rel1.to : "button_image";
5331 rel2.to : "button_image";
5333 normal: "00_icon_focus.png";
5337 description { state: "focused" 0.0;
5338 inherit: "default" 0.0;
5342 part { name: "elm.swallow.content";
5345 clip_to: "elm.icon.clipper";
5346 description { state: "default" 0.0;
5348 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5350 rel1 { to: "button_image"; }
5351 rel2 { to: "button_image"; }
5353 description { state: "visible" 0.0;
5354 inherit: "default" 0.0;
5358 part { name: "elm.icon.clipper";
5360 description { state: "default" 0.0;
5361 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5363 description { state: "clicked" 0.0;
5364 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5366 description { state: "disabled" 0.0;
5367 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5370 part { name: "over2";
5372 ignore_flags: ON_HOLD;
5373 description { state: "default" 0.0;
5377 part { name: "over3";
5380 description { state: "default" 0.0;
5384 part { name: "disabler";
5386 description { state: "default" 0.0;
5390 description { state: "disabled" 0.0;
5391 inherit: "default" 0.0;
5397 program { name: "button_click";
5398 signal: "mouse,down,1";
5400 action: SIGNAL_EMIT "elm,action,press" "";
5401 after: "button_click_anim";
5403 program { name: "button_click_anim";
5405 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5408 program { name: "button_double_click";
5409 signal: "mouse,down,1,double";
5411 after: "button_click_anim";
5413 program { name: "button_unpress";
5414 action: SIGNAL_EMIT "elm,action,unpress" "";
5416 program { name: "button_mouseout_clicked";
5417 signal: "mouse,up,1";
5419 action: STATE_SET "default" 0.0;
5420 target: "elm.icon.clipper";
5421 after: button_unpress;
5423 program { name: "touch_snd";
5424 signal: "mouse,clicked,1";
5426 action: PLAY_SAMPLE "touch_sound" 1.0;
5427 after: button_unclick3;
5429 program { name: "button_unclick3";
5430 action: SIGNAL_EMIT "elm,action,click" "";
5432 program { name: "icon_show";
5433 signal: "elm,state,icon,visible";
5435 action: STATE_SET "visible" 0.0;
5436 target: "elm.swallow.content";
5438 program { name: "icon_hide";
5439 signal: "elm,state,icon,hidden";
5441 action: STATE_SET "default" 0.0;
5442 target: "elm.swallow.content";
5444 program { name: "disable";
5445 signal: "elm,state,disabled";
5448 set_state(PART:"disabler", "disabled", 0.0);
5449 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5452 program { name: "enable";
5453 signal: "elm,state,enabled";
5456 set_state(PART:"disabler", "default", 0.0);
5457 set_state(PART:"elm.icon.clipper", "default", 0.0);
5460 program { name: "change_to_landscape";
5461 signal: "elm,state,landscape";
5463 action: STATE_SET "landscape" 0.0;
5464 target: "button_image";
5466 program { name: "change_to_portrait";
5467 signal: "elm,state,portrait";
5469 action: STATE_SET "default" 0.0;
5470 target: "button_image";
5472 program { name: "landscape_mode";
5474 signal: "elm,state,orient,90";
5475 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5477 program { name: "landscape_mode2";
5479 signal: "elm,state,orient,270";
5480 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5482 program { name: "portrait_mode";
5484 signal: "elm,state,orient,0";
5485 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5487 program { name: "portrait_mode2";
5489 signal: "elm,state,orient,180";
5490 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5492 program { name: "action_focus";
5493 signal: "elm,action,focus_highlight,show";
5495 action: STATE_SET "focused" 0.0;
5496 target: "focus_image";
5498 program { name: "action_unfocus";
5499 signal: "elm,action,focus_highlight,hide";
5501 action: STATE_SET "default" 0.0;
5502 target: "focus_image";
5507 ////////////////////////////////////////////////////////////////////
5508 group { name: "elm/button/base/naviframe/title_text";
5510 image: "00_title_press.png" COMP;
5513 style { name: "btn_naviframe_title_text";
5514 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";
5521 part { name: "button_bg";
5524 description { state: "default" 0.0;
5525 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_INC;
5526 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MAX_INC;
5528 description { state: "landscape" 0.0;
5529 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_INC;
5530 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MAX_INC;
5533 part { name: "button_image";
5536 description { state: "default" 0.0;
5538 rel1 { to: "button_bg"; }
5539 rel2 { to: "button_bg"; }
5541 description { state: "clicked" 0.0;
5542 inherit: "default" 0.0;
5545 normal: "00_title_press.png";
5546 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
5551 part { name: "left_padding";
5554 description { state: "default" 0.0;
5556 min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
5557 max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
5560 rel1 { relative: 0.0 0.0; to: "button_bg"; }
5561 rel2 { relative: 0.0 1.0; to: "button_bg"; }
5564 part { name: "right_padding";
5567 description { state: "default" 0.0;
5569 min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
5570 max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
5573 rel1 { relative: 1.0 0.0; to: "button_bg"; }
5574 rel2 { relative: 1.0 1.0; to: "button_bg"; }
5577 part { name: "elm.text";
5581 clip_to: "button_bg";
5582 description { state: "default" 0.0;
5583 min: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MIN_INC;
5584 max: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MAX_INC;
5585 rel1 { relative: 1.0 0.0; to: "left_padding"; }
5586 rel2 { relative: 0.0 1.0; to: "right_padding"; }
5588 style: "btn_naviframe_title_text";
5589 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
5593 description { state: "landscape" 0.0;
5594 inherit: "default" 0.0;
5595 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MIN_INC;
5596 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MAX_INC;
5599 part { name: "over2";
5601 ignore_flags: ON_HOLD;
5602 description { state: "default" 0.0;
5606 part { name: "over3";
5609 description { state: "default" 0.0;
5613 part { name: "disabler";
5615 description { state: "default" 0.0;
5619 description { state: "disabled" 0.0;
5620 inherit: "default" 0.0;
5626 program { name: "button_click";
5627 signal: "mouse,down,1";
5629 action: SIGNAL_EMIT "elm,action,press" "";
5630 after: "button_click_anim";
5632 program { name: "button_click_anim";
5634 set_state(PART:"button_image", "clicked", 0.0);
5637 program { name: "button_double_click";
5638 signal: "mouse,down,1,double";
5640 after: "button_click_anim";
5642 program { name: "button_unclick";
5643 signal: "mouse,up,1";
5645 action: SIGNAL_EMIT "elm,action,unpress" "";
5646 after: "button_unclick_anim";
5648 program { name: "button_unclick_anim";
5650 set_state(PART:"button_image", "default", 0.0);
5653 program { name: "touch_snd";
5654 signal: "mouse,clicked,1";
5656 action: PLAY_SAMPLE "touch_sound" 1.0;
5657 after: "button_unclick3";
5659 program { name: "button_unclick3";
5660 action: SIGNAL_EMIT "elm,action,click" "";
5662 program { name: "change_to_landscape";
5663 signal: "elm,state,landscape";
5666 set_state(PART:"button_bg", "landscape", 0.0);
5667 set_state(PART:"elm.text", "landscape", 0.0);
5670 program { name: "change_to_portrait";
5671 signal: "elm,state,portrait";
5674 set_state(PART:"button_bg", "default", 0.0);
5675 set_state(PART:"elm.text", "default", 0.0);
5678 program { name: "landscape_mode";
5680 signal: "elm,state,orient,90";
5681 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5683 program { name: "landscape_mode2";
5685 signal: "elm,state,orient,270";
5686 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5688 program { name: "portrait_mode";
5690 signal: "elm,state,orient,0";
5691 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5693 program { name: "portrait_mode2";
5695 signal: "elm,state,orient,180";
5696 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5701 /////////////////////////////////////////////////////////////////////////////////////////
5702 group { name: "elm/button/base/naviframe/more/default";
5704 item: "focus_highlight" "on";
5707 image: "00_icon_more.png" COMP;
5708 image: "00_icon_focus.png" COMP;
5711 part { name: "button_image";
5714 description { state: "default" 0.0;
5715 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5716 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5719 description { state: "landscape" 0.0;
5720 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5721 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5725 part { name: "focus_image";
5729 description { state: "default" 0.0;
5731 rel1.to : "button_image";
5732 rel2.to : "button_image";
5734 normal: "00_icon_focus.png";
5738 description { state: "focused" 0.0;
5739 inherit: "default" 0.0;
5743 part { name: "more_image";
5746 clip_to: "more_image.clipper";
5747 description { state: "default" 0.0;
5748 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5749 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5751 rel1.to: "button_image";
5752 rel2.to: "button_image";
5753 image.normal: "00_icon_more.png";
5756 part { name: "more_image.clipper";
5758 description { state: "default" 0.0;
5759 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5761 description { state: "clicked" 0.0;
5762 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5764 description { state: "disabled" 0.0;
5765 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5768 part { name: "over2";
5770 ignore_flags: ON_HOLD;
5771 description { state: "default" 0.0;
5775 part { name: "over3";
5778 description { state: "default" 0.0;
5782 part { name: "disabler";
5784 description { state: "default" 0.0;
5788 description { state: "disabled" 0.0;
5789 inherit: "default" 0.0;
5795 program { name: "button_click";
5796 signal: "mouse,down,1";
5798 action: SIGNAL_EMIT "elm,action,press" "";
5799 after: "button_click_anim";
5801 program { name: "button_click_anim";
5803 set_state(PART:"more_image.clipper", "clicked", 0.0);
5806 program { name: "button_double_click";
5807 signal: "mouse,down,1,double";
5809 after: "button_click_anim";
5811 program { name: "button_unclick";
5812 signal: "mouse,up,1";
5814 action: SIGNAL_EMIT "elm,action,unpress" "";
5815 after: "button_unclick_anim";
5817 program { name: "button_unclick_anim";
5819 set_state(PART:"more_image.clipper", "default", 0.0);
5822 program { name: "touch_snd";
5823 signal: "mouse,clicked,1";
5825 action: PLAY_SAMPLE "touch_sound" 1.0;
5826 after: button_unclick3;
5828 program { name: "button_unclick3";
5829 action: SIGNAL_EMIT "elm,action,click" "";
5831 program { name: "disable";
5832 signal: "elm,state,disabled";
5835 set_state(PART:"disabler", "disabled", 0.0);
5836 set_state(PART:"more_image.clipper", "disabled", 0.0);
5839 program { name: "enable";
5840 signal: "elm,state,enabled";
5843 set_state(PART:"disabler", "default", 0.0);
5844 set_state(PART:"more_image.clipper", "default", 0.0);
5847 program { name: "change_to_landscape";
5848 signal: "elm,state,landscape";
5850 action: STATE_SET "landscape" 0.0;
5851 target: "button_image";
5853 program { name: "change_to_portrait";
5854 signal: "elm,state,portrait";
5856 action: STATE_SET "default" 0.0;
5857 target: "button_image";
5859 program { name: "landscape_mode";
5861 signal: "elm,state,orient,90";
5862 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5864 program { name: "landscape_mode2";
5866 signal: "elm,state,orient,270";
5867 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5869 program { name: "portrait_mode";
5871 signal: "elm,state,orient,0";
5872 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5874 program { name: "portrait_mode2";
5876 signal: "elm,state,orient,180";
5877 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5879 program { name: "action_focus";
5880 signal: "elm,action,focus_highlight,show";
5882 action: STATE_SET "focused" 0.0;
5883 target: "focus_image";
5885 program { name: "action_unfocus";
5886 signal: "elm,action,focus_highlight,hide";
5888 action: STATE_SET "default" 0.0;
5889 target: "focus_image";
5894 ///////////////////////////////////////////////////////////////////////////////////////
5895 group { name: "elm/button/base/tickernoti";
5897 image: "00_notification_button.png" COMP;
5898 image: "00_notification_button_press.png" COMP;
5899 image: "00_notification_button_dim.png" COMP;
5902 public button_state = BUTTON_STATE_ENABLED;
5905 part { name: "button_image";
5907 description { state: "default" 0.0;
5908 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5909 max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5911 normal: "00_notification_button.png";
5912 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
5916 description { state: "clicked" 0.0;
5917 inherit: "default" 0.0;
5918 image.normal: "00_notification_button_press.png";
5920 description { state: "disabled" 0.0;
5921 inherit: "default" 0.0;
5922 image.normal: "00_notification_button_dim.png";
5924 description { state: "focused" 0.0;
5925 inherit: "default" 0.0;
5926 image.normal: "00_notification_button_press.png";
5929 part { name: "padding_left_top";
5933 description { state: "default" 0.0;
5936 rel2.relative: 0.0 0.0;
5937 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5945 description { state: "default" 0.0;
5946 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5949 description { state: "visible" 0.0;
5950 inherit: "default" 0.0;
5952 description { state: "icononly" 0.0;
5953 inherit: "default" 0.0;
5956 part { name: "padding_right_bottom";
5960 description { state: "default" 0.0;
5962 rel1.relative: 1.0 1.0;
5963 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5968 part { name: "icon_rect";
5972 description { state: "default" 0.0;
5978 to: "padding_left_top";
5982 to_x: "padding_left_top";
5983 to_y: "padding_right_bottom";
5987 description { state: "visible" 0.0;
5988 inherit: "default" 0.0;
5989 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5990 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5992 description { state: "icononly" 0.0;
5993 inherit: "default" 0.0;
5996 part { name: "padding_after_icon";
6000 description { state: "default" 0.0; //when only icon or no icon is there
6009 rel2.to: "icon_rect";
6011 description { state: "visible" 0.0;
6012 inherit: "default" 0.0;
6013 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6015 description { state: "icononly" 0.0;
6016 inherit: "default" 0.0;
6019 part { name: "padding_before_text";
6023 description { state: "default" 0.0; //when only icon or no icon is there
6027 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6031 to_y: "padding_left_top";
6036 to_y: "padding_right_bottom";
6040 part { name: "elm.swallow.content";
6044 description { state: "default" 0.0;
6050 to: "padding_left_top";
6054 to_x: "padding_left_top";
6055 to_y: "padding_right_bottom";
6058 description { state: "visible" 0.0;
6060 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6061 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6065 to_x: "padding_before_text";
6066 to_y: "padding_left_top";
6070 to_x: "padding_before_text";
6071 to_y: "padding_right_bottom";
6074 description { state: "icononly" 0.0;
6075 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6076 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6079 part { name: "elm.text";
6082 effect: FAR_SHADOW BOTTOM;
6085 description { state: "default" 0.0;
6089 to_x: "padding_after_icon";
6090 to_y: "padding_left_top";
6094 to: "padding_right_bottom";
6096 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
6097 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6099 font: "Tizen:style=Regular";
6100 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
6101 text_class: "tizen";
6104 description { state: "visible" 0.0;
6105 inherit: "default" 0.0;
6108 description { state: "clicked" 0.0;
6109 inherit: "default" 0.0;
6111 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6113 description { state: "disabled" 0.0;
6114 inherit: "default" 0.0;
6116 description { state: "disabled_visible" 0.0;
6117 inherit: "default" 0.0;
6118 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
6119 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6122 description { state: "focused" 0.0;
6123 inherit: "default" 0.0;
6125 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6128 part { name: "over2";
6131 ignore_flags: ON_HOLD;
6132 description { state: "default" 0.0;
6136 part { name: "over3";
6139 description { state: "default" 0.0;
6143 part { name: "clipper";
6145 description { state: "default" 0.0;
6146 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
6148 description { state: "disabled" 0.0;
6149 inherit: "default" 0.0;
6150 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
6153 part { name: "disabler";
6155 description { state: "default" 0.0;
6159 description { state: "disabled" 0.0;
6160 inherit: "default" 0.0;
6166 program { name: "button_click";
6167 signal: "mouse,down,1";
6169 action: SIGNAL_EMIT "elm,action,press" "";
6170 after: "button_click_anim";
6172 program { name: "button_click_anim";
6173 action: STATE_SET "clicked" 0.0;
6174 target: "button_image";
6175 after: "text_clicked";
6177 program { name: "text_clicked";
6181 get_state(PART:"elm.text", st, 30, vl);
6182 if (!strcmp(st, "visible"))
6183 set_state(PART:"elm.text", "clicked", 0.0);
6186 program { name: "button_double_click";
6187 signal: "mouse,down,1,double";
6189 after: "button_click_anim";
6191 program { name: "button_unpress";
6192 action: SIGNAL_EMIT "elm,action,unpress" "";
6194 program { name: "button_mouseout_clicked";
6195 signal: "mouse,up,1";
6200 get_state(PART:"elm.swallow.content", st, 30, vl);
6201 if (strcmp(st, "icononly"))
6203 emit("elm,action,default,text,set", "");
6204 set_state(PART:"elm.text", "visible", 0.0);
6206 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6207 set_state(PART:"button_image", "default", 0.0);
6209 after: button_unpress;
6211 program { name: "touch_snd";
6212 signal: "mouse,clicked,1";
6214 action: PLAY_SAMPLE "touch_sound" 1.0;
6215 after: button_unclick3;
6217 program { name: "button_unclick3";
6218 action: SIGNAL_EMIT "elm,action,click" "";
6220 program { name: "text_show";
6221 signal: "elm,state,text,visible";
6226 get_state(PART:"elm.swallow.content", st, 30, vl);
6227 if (!strcmp(st, "icononly"))
6229 set_state(PART:"elm.swallow.content", "visible", 0.0);
6230 set_state(PART:"icon_rect", "visible", 0.0);
6231 set_state(PART:"padding_after_icon", "visible", 0.0);
6232 set_state(PART:"bg", "visible", 0.0);
6234 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6235 set_state(PART:"elm.text", "visible", 0.0);
6237 set_state(PART:"elm.text", "disabled_visible", 0.0);
6240 program { name: "text_hide";
6241 signal: "elm,state,text,hidden";
6246 get_state(PART:"elm.swallow.content", st, 30, vl);
6247 if (!strcmp(st, "visible"))
6249 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6250 set_state(PART:"icon_rect", "icononly", 0.0);
6251 set_state(PART:"padding_after_icon", "icononly", 0.0);
6252 set_state(PART:"bg", "icononly", 0.0);
6254 set_state(PART:"elm.text", "default", 0.0);
6257 program { name: "icon_show";
6258 signal: "elm,state,icon,visible";
6263 get_state(PART:"elm.text", st, 30, vl);
6264 if (!strcmp(st, "visible"))
6266 set_state(PART:"elm.swallow.content", "visible", 0.0);
6267 set_state(PART:"icon_rect", "visible", 0.0);
6268 set_state(PART:"padding_after_icon", "visible", 0.0);
6269 set_state(PART:"bg", "visible", 0.0);
6273 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6274 set_state(PART:"icon_rect", "icononly", 0.0);
6275 set_state(PART:"padding_after_icon", "icononly", 0.0);
6276 set_state(PART:"bg", "icononly", 0.0);
6280 program { name: "icon_hide";
6281 signal: "elm,state,icon,hidden";
6283 action: STATE_SET "default" 0.0;
6284 target: "elm.swallow.content";
6285 target: "padding_after_icon";
6286 target: "icon_rect";
6289 program { name: "disable";
6290 signal: "elm,state,disabled";
6292 action: STATE_SET "disabled" 0.0;
6293 target: "button_image";
6296 after: "disable_text";
6298 program { name: "disable_text";
6302 get_state(PART:"elm.text", st, 30, vl);
6303 if (!strcmp(st, "visible"))
6304 set_state(PART:"elm.text", "disabled_visible", 0.0);
6306 set_state(PART:"elm.text", "disabled", 0.0);
6307 set_int(button_state, BUTTON_STATE_DISABLED);
6310 program { name: "enable";
6311 signal: "elm,state,enabled";
6313 action: STATE_SET "default" 0.0;
6314 target: "button_image";
6317 after: "enable_text";
6319 program { name: "enable_text";
6323 get_state(PART:"elm.text", st, 30, vl);
6324 if (!strcmp(st, "disabled_visible"))
6325 set_state(PART:"elm.text", "visible", 0.0);
6327 set_state(PART:"elm.text", "default", 0.0);
6328 set_int(button_state, BUTTON_STATE_ENABLED);
6331 program { name: "focused";
6332 //signal: "elm,action,focus";
6334 action: STATE_SET "focused" 0.0;
6335 target: "button_image";
6338 program { name: "unfocused";
6339 //signal: "elm,action,unfocus";
6341 action: STATE_SET "default" 0.0;
6342 target: "button_image";
6343 after: "unfocus_text";
6345 program { name: "unfocus_text";
6346 action: STATE_SET "visible" 0.0;
6352 ///////////////////////////////////////////////////////////////////////////////////////
6353 group { name: "elm/button/base/expandable_number";
6354 alias: "elm/button/base/text_only/expandable_number";
6356 item: "focus_highlight" "on";
6359 image: "00_button_01.png" COMP;
6360 image: "00_button_01_press.png" COMP;
6361 image: "00_button_01_dim.png" COMP;
6362 image: "00_arrow_expand.png" COMP;
6363 image: "00_button_01_focus.png" COMP;
6366 public button_state = BUTTON_STATE_ENABLED;
6369 part { name: "button_image";
6371 description { state: "default" 0.0;
6372 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6373 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6375 normal: "00_button_01.png";
6376 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6380 description { state: "clicked" 0.0;
6381 inherit: "default" 0.0;
6382 image.normal: "00_button_01_press.png";
6384 description { state: "disabled" 0.0;
6385 inherit: "default" 0.0;
6386 image.normal: "00_button_01_dim.png";
6388 description { state: "focused" 0.0;
6389 inherit: "default" 0.0;
6390 image.normal: "00_button_01_press.png";
6393 part { name: "focus_image";
6397 description { state: "default" 0.0;
6398 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6399 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6401 rel1.to : "button_image";
6402 rel2.to : "button_image";
6404 normal: "00_button_01_focus.png";
6405 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6409 description { state: "focused" 0.0;
6410 inherit: "default" 0.0;
6414 part { name: "padding_left_top";
6418 description { state: "default" 0.0;
6421 rel2.relative: 0.0 0.0;
6422 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6426 part { name: "padding_right_bottom";
6430 description { state: "default" 0.0;
6433 rel1.relative: 1.0 1.0;
6434 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6438 part { name: "icon_rect";
6442 description { state: "default" 0.0;
6444 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6445 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6449 to_x: "padding_right_bottom";
6450 to_y: "padding_left_top";
6454 to: "padding_right_bottom";
6459 part { name: "arrow_expand";
6461 clip_to: "icon_clipper";
6463 description { state: "default" 0.0;
6465 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6466 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6468 rel1.to: "icon_rect";
6469 rel2.to: "icon_rect";
6470 image.normal:"00_arrow_expand.png";
6473 part { name: "elm.text";
6476 effect: SHADOW BOTTOM;
6478 description { state: "default" 0.0;
6479 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6480 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6484 to: "padding_left_top";
6488 to_x:"padding_left_top";
6489 to_y:"padding_right_bottom";
6492 color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6493 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6495 font: "Tizen:style=Regular";
6496 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6500 text_class: "tizen";
6503 description { state: "visible" 0.0;
6504 inherit: "default" 0.0;
6506 description { state: "clicked" 0.0;
6507 inherit: "default" 0.0;
6508 color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
6510 description { state: "disabled" 0.0;
6511 inherit: "default" 0.0;
6513 description { state: "disabled_visible" 0.0;
6514 inherit: "default" 0.0;
6515 color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6517 description { state: "focused" 0.0;
6518 inherit: "default" 0.0;
6519 color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6522 part { name: "icon_clipper";
6525 description { state: "default" 0.0;
6526 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6528 description { state: "clicked" 0.0;
6529 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6531 description { state: "disabled" 0.0;
6532 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6535 part { name: "over2";
6538 ignore_flags: ON_HOLD;
6539 description { state: "default" 0.0;
6543 part { name: "over3";
6546 description { state: "default" 0.0;
6550 part { name: "disabler";
6552 description { state: "default" 0.0;
6556 description { state: "disabled" 0.0;
6557 inherit: "default" 0.0;
6563 program { name: "button_click";
6564 signal: "mouse,down,1";
6566 action: SIGNAL_EMIT "elm,action,press" "";
6567 after: "button_click_anim";
6569 program { name: "button_click_anim";
6570 action: STATE_SET "clicked" 0.0;
6571 target: "button_image";
6572 target: "icon_clipper";
6573 after: "text_clicked";
6575 program { name: "text_clicked";
6579 get_state(PART:"elm.text", st, 30, vl);
6580 if (!strcmp(st, "visible"))
6581 set_state(PART:"elm.text", "clicked", 0.0);
6584 program { name: "button_double_click";
6585 signal: "mouse,down,1,double";
6587 after: "button_click_anim";
6589 program { name: "button_unpress";
6590 action: SIGNAL_EMIT "elm,action,unpress" "";
6592 program { name: "button_mouseout_clicked";
6593 signal: "mouse,up,1";
6596 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6598 set_state(PART:"button_image", "default", 0.0);
6599 set_state(PART:"elm.text", "visible", 0.0);
6600 set_state(PART:"icon_clipper", "default", 0.0);
6603 after: button_unpress;
6605 program { name: "touch_snd";
6606 signal: "mouse,clicked,1";
6608 action: PLAY_SAMPLE "touch_sound" 1.0;
6609 after: button_unclick3;
6611 program { name: "button_unclick3";
6612 action: SIGNAL_EMIT "elm,action,click" "";
6614 program { name: "text_show";
6615 signal: "elm,state,text,visible";
6618 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6619 set_state(PART:"elm.text", "visible", 0.0);
6621 set_state(PART:"elm.text", "disabled_visible", 0.0);
6624 program { name: "text_hide";
6625 signal: "elm,state,text,hidden";
6628 set_state(PART:"elm.text", "default", 0.0);
6631 program { name: "disable";
6632 signal: "elm,state,disabled";
6634 action: STATE_SET "disabled" 0.0;
6635 target: "button_image";
6637 target: "icon_clipper";
6638 after: "disable_text";
6640 program { name: "disable_text";
6644 get_state(PART:"elm.text", st, 30, vl);
6645 if (!strcmp(st, "visible"))
6646 set_state(PART:"elm.text", "disabled_visible", 0.0);
6648 set_state(PART:"elm.text", "disabled", 0.0);
6649 set_int(button_state, BUTTON_STATE_DISABLED);
6652 program { name: "enable";
6653 signal: "elm,state,enabled";
6655 action: STATE_SET "default" 0.0;
6656 target: "button_image";
6658 target: "icon_clipper";
6659 after: "enable_text";
6661 program { name: "enable_text";
6665 get_state(PART:"elm.text", st, 30, vl);
6666 if (!strcmp(st, "disabled_visible"))
6667 set_state(PART:"elm.text", "visible", 0.0);
6669 set_state(PART:"elm.text", "default", 0.0);
6670 set_int(button_state, BUTTON_STATE_ENABLED);
6673 program { name: "action_focus";
6674 signal: "elm,action,focus_highlight,show";
6676 action: STATE_SET "focused" 0.0;
6677 target: "focus_image";
6679 program { name: "action_unfocus";
6680 signal: "elm,action,focus_highlight,hide";
6682 action: STATE_SET "default" 0.0;
6683 target: "focus_image";
6688 ////////////////////////////////////////////////////////////////////////
6689 group { name: "elm/button/base/bubble_sent";
6690 inherit: "elm/button/base/style1";
6692 image: "00_messagebubble_button_sent.png" COMP;
6693 image: "00_messagebubble_button_sent_press.png" COMP;
6694 image: "00_messagebubble_button_sent_dim.png" COMP;
6697 part { name: "button_image";
6699 description { state: "default" 0.0;
6701 normal: "00_messagebubble_button_sent.png";
6702 border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
6706 description { state: "clicked" 0.0;
6707 inherit: "default" 0.0;
6708 image.normal: "00_messagebubble_button_sent_press.png";
6710 description { state: "disabled" 0.0;
6711 inherit: "default" 0.0;
6712 image.normal: "00_messagebubble_button_sent_dim.png";
6714 description { state: "focused" 0.0;
6715 inherit: "default" 0.0;
6716 image.normal: "00_messagebubble_button_sent_press.png";
6719 part { name: "elm.text";
6722 effect: FAR_SHADOW BOTTOM;
6725 description { state: "default" 0.0;
6729 to_x: "padding_after_icon";
6730 to_y: "padding_left_top";
6734 to: "padding_right_bottom";
6736 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6737 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6739 font: "Tizen:style=Regular";
6740 size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
6743 text_class: "tizen";
6746 description { state: "visible" 0.0;
6747 inherit: "default" 0.0;
6750 description { state: "clicked" 0.0;
6751 inherit: "default" 0.0;
6753 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6755 description { state: "disabled" 0.0;
6756 inherit: "default" 0.0;
6758 description { state: "disabled_visible" 0.0;
6759 inherit: "default" 0.0;
6760 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6763 description { state: "focused" 0.0;
6764 inherit: "default" 0.0;
6766 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6772 ////////////////////////////////////////////////////////////////////////
6773 group { name: "elm/button/base/bubble_sent/multiline";
6774 inherit: "elm/button/base/bubble_sent";
6776 style { name: "bubble_sent_multiline";
6777 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";
6784 part { name: "elm.text";
6787 effect: FAR_SHADOW BOTTOM;
6790 description { state: "default" 0.0;
6795 to_x: "padding_after_icon";
6796 to_y: "padding_left_top";
6800 to: "padding_right_bottom";
6802 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6803 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6805 style: "bubble_sent_multiline";
6808 description { state: "visible" 0.0;
6809 inherit: "default" 0.0;
6812 description { state: "clicked" 0.0;
6813 inherit: "default" 0.0;
6815 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6817 description { state: "disabled" 0.0;
6818 inherit: "default" 0.0;
6820 description { state: "disabled_visible" 0.0;
6821 inherit: "default" 0.0;
6822 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6825 description { state: "focused" 0.0;
6826 inherit: "default" 0.0;
6828 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6834 ///////////////////////////////////////////////////////////////////////
6835 group { name: "elm/button/base/bubble_receive";
6836 inherit: "elm/button/base/style1";
6838 image: "00_messagebubble_button_receive.png" COMP;
6839 image: "00_messagebubble_button_receive_press.png" COMP;
6840 image: "00_messagebubble_button_receive_dim.png" COMP;
6843 part { name: "button_image";
6845 description { state: "default" 0.0;
6847 normal: "00_messagebubble_button_receive.png";
6848 border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
6852 description { state: "clicked" 0.0;
6853 inherit: "default" 0.0;
6854 image.normal: "00_messagebubble_button_receive_press.png";
6856 description { state: "disabled" 0.0;
6857 inherit: "default" 0.0;
6858 image.normal: "00_messagebubble_button_receive_dim.png";
6860 description { state: "focused" 0.0;
6861 inherit: "default" 0.0;
6862 image.normal: "00_messagebubble_button_receive_press.png";
6865 part { name: "elm.text";
6868 effect: SHADOW BOTTOM;
6871 description { state: "default" 0.0;
6875 to_x: "padding_after_icon";
6876 to_y: "padding_left_top";
6880 to: "padding_right_bottom";
6882 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6883 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6885 font: "Tizen:style=Regular";
6886 size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
6889 text_class: "tizen";
6892 description { state: "visible" 0.0;
6893 inherit: "default" 0.0;
6896 description { state: "clicked" 0.0;
6897 inherit: "default" 0.0;
6899 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6901 description { state: "disabled" 0.0;
6902 inherit: "default" 0.0;
6904 description { state: "disabled_visible" 0.0;
6905 inherit: "default" 0.0;
6906 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6909 description { state: "focused" 0.0;
6910 inherit: "default" 0.0;
6912 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6918 ///////////////////////////////////////////////////////////////////////
6919 group { name: "elm/button/base/bubble_receive/multiline";
6920 inherit: "elm/button/base/bubble_receive";
6922 style { name: "bubble_receive_multiline";
6923 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";
6930 part { name: "elm.text";
6933 effect: SHADOW BOTTOM;
6936 description { state: "default" 0.0;
6941 to_x: "padding_after_icon";
6942 to_y: "padding_left_top";
6946 to: "padding_right_bottom";
6948 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6949 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6951 style: "btn_style1_multiline";
6954 description { state: "visible" 0.0;
6955 inherit: "default" 0.0;
6958 description { state: "clicked" 0.0;
6959 inherit: "default" 0.0;
6961 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6963 description { state: "disabled" 0.0;
6964 inherit: "default" 0.0;
6966 description { state: "disabled_visible" 0.0;
6967 inherit: "default" 0.0;
6968 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6971 description { state: "focused" 0.0;
6972 inherit: "default" 0.0;
6974 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6980 ///////////////////////////////////////////////////////////////////////
6981 group { name: "elm/button/base/bubble_circle/receive";
6983 image: "00_messagebubble_circle_receive.png" COMP;
6984 image: "00_messagebubble_circle_receive_press.png" COMP;
6985 image: "00_messagebubble_circle_receive_dim.png" COMP;
6986 image: "00_button_right.png" COMP;
6987 image: "00_button_right_press.png" COMP;
6990 part { name: "button_image";
6992 description { state: "default" 0.0;
6993 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6994 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6995 image.normal: "00_messagebubble_circle_receive.png";
6998 state: "clicked" 0.0;
6999 inherit: "default" 0.0;
7000 image.normal: "00_messagebubble_circle_receive_press.png";
7003 state: "disabled" 0.0;
7004 inherit: "default" 0.0;
7005 image.normal: "00_messagebubble_circle_receive_dim.png";
7008 part { name: "image";
7010 clip_to: "icon_clipper";
7011 description { state: "default" 0.0;
7012 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7013 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7014 image.normal: "00_button_right.png";
7017 state: "clicked" 0.0;
7018 inherit: "default" 0.0;
7019 image.normal: "00_button_right_press.png";
7022 state: "disabled" 0.0;
7023 inherit: "default" 0.0;
7026 part { name: "icon_clipper";
7029 description { state: "default" 0.0;
7030 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
7032 description { state: "clicked" 0.0;
7033 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
7035 description { state: "disabled" 0.0;
7036 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
7039 part { name: "over1";
7041 ignore_flags: ON_HOLD;
7042 description { state: "default" 0.0;
7046 part { name: "over2";
7049 description { state: "default" 0.0;
7053 part { name: "disabler";
7055 description { state: "default" 0.0;
7059 description { state: "disabled" 0.0;
7060 inherit: "default" 0.0;
7066 program { name: "button_click";
7067 signal: "mouse,down,1";
7069 action: SIGNAL_EMIT "elm,action,press" "";
7070 after: "button_click_anim";
7072 program { name: "button_click_anim";
7073 action: STATE_SET "clicked" 0.0;
7074 target: "button_image";
7076 target: "icon_clipper";
7078 program { name: "button_double_click";
7079 signal: "mouse,down,1,double";
7081 after: "button_click_anim";
7083 program { name: "button_unclick";
7084 signal: "mouse,up,1";
7086 action: SIGNAL_EMIT "elm,action,unpress" "";
7087 after: "button_unclick_anim";
7089 program { name: "button_unclick_anim";
7090 action: STATE_SET "default" 0.0;
7091 target: "button_image";
7093 target: "icon_clipper";
7095 program { name: "touch_snd";
7096 signal: "mouse,clicked,1";
7098 action: PLAY_SAMPLE "touch_sound" 1.0;
7099 after: button_unclick3;
7101 program { name: "button_unclick3";
7102 action: SIGNAL_EMIT "elm,action,click" "";
7104 program { name: "disable";
7105 signal: "elm,state,disabled";
7107 action: STATE_SET "disabled" 0.0;
7109 target: "button_image";
7110 target: "icon_clipper";
7113 program { name: "enable";
7114 signal: "elm,state,enabled";
7116 action: STATE_SET "default" 0.0;
7118 target: "button_image";
7119 target: "icon_clipper";
7124 ///////////////////////////////////////////////////////////////////////
7125 group { name: "elm/button/base/bubble_circle/sent";
7127 image: "00_messagebubble_circle_sent.png" COMP;
7128 image: "00_messagebubble_circle_sent_press.png" COMP;
7129 image: "00_messagebubble_circle_sent_dim.png" COMP;
7130 image: "00_button_right.png" COMP;
7131 image: "00_button_right_press.png" COMP;
7134 part { name: "button_image";
7136 description { state: "default" 0.0;
7137 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7138 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7139 image.normal: "00_messagebubble_circle_sent.png";
7142 state: "clicked" 0.0;
7143 inherit: "default" 0.0;
7144 image.normal: "00_messagebubble_circle_sent_press.png";
7147 state: "disabled" 0.0;
7148 inherit: "default" 0.0;
7149 image.normal: "00_messagebubble_circle_sent_dim.png";
7152 part { name: "image";
7154 clip_to: "icon_clipper";
7155 description { state: "default" 0.0;
7156 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7157 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7158 image.normal: "00_button_right.png";
7161 state: "clicked" 0.0;
7162 inherit: "default" 0.0;
7163 image.normal: "00_button_right_press.png";
7166 state: "disabled" 0.0;
7167 inherit: "default" 0.0;
7170 part { name: "icon_clipper";
7173 description { state: "default" 0.0;
7174 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
7176 description { state: "clicked" 0.0;
7177 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
7179 description { state: "disabled" 0.0;
7180 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
7183 part { name: "over1";
7185 ignore_flags: ON_HOLD;
7186 description { state: "default" 0.0;
7190 part { name: "over2";
7193 description { state: "default" 0.0;
7197 part { name: "disabler";
7199 description { state: "default" 0.0;
7203 description { state: "disabled" 0.0;
7204 inherit: "default" 0.0;
7210 program { name: "button_click";
7211 signal: "mouse,down,1";
7213 action: SIGNAL_EMIT "elm,action,press" "";
7214 after: "button_click_anim";
7216 program { name: "button_click_anim";
7217 action: STATE_SET "clicked" 0.0;
7218 target: "button_image";
7220 target: "icon_clipper";
7222 program { name: "button_double_click";
7223 signal: "mouse,down,1,double";
7225 after: "button_click_anim";
7227 program { name: "button_unclick";
7228 signal: "mouse,up,1";
7230 action: SIGNAL_EMIT "elm,action,unpress" "";
7231 after: "button_unclick_anim";
7233 program { name: "button_unclick_anim";
7234 action: STATE_SET "default" 0.0;
7235 target: "button_image";
7237 target: "icon_clipper";
7239 program { name: "touch_snd";
7240 signal: "mouse,clicked,1";
7242 action: PLAY_SAMPLE "touch_sound" 1.0;
7243 after: button_unclick3;
7245 program { name: "button_unclick3";
7246 action: SIGNAL_EMIT "elm,action,click" "";
7248 program { name: "disable";
7249 signal: "elm,state,disabled";
7251 action: STATE_SET "disabled" 0.0;
7253 target: "button_image";
7254 target: "icon_clipper";
7256 program { name: "enable";
7257 signal: "elm,state,enabled";
7259 action: STATE_SET "default" 0.0;
7261 target: "button_image";
7262 target: "icon_clipper";
7267 //////////////////////////////////////////////////////////////////////////////////////
7268 group { name: "elm/button/base/editfield_clear";
7270 image: "00_edit_field_clear.png" COMP;
7273 part { name: "button_image";
7276 description { state: "default" 0.0;
7279 description { state: "clicked" 0.0;
7280 inherit: "default" 0.0;
7282 description { state: "disabled" 0.0;
7283 inherit: "default" 0.0;
7285 description { state: "focused" 0.0;
7286 inherit: "default" 0.0;
7289 part { name: "clear_button";
7292 clip_to: "clear_button.clipper";
7293 description { state: "default" 0.0;
7294 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7295 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7298 image.normal: "00_edit_field_clear.png";
7301 part { name: "clear_button.clipper";
7303 description { state: "default" 0.0;
7304 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7306 description { state: "clicked" 0.0;
7307 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7309 description { state: "disabled" 0.0;
7310 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7313 part { name: "over2";
7315 ignore_flags: ON_HOLD;
7316 description { state: "default" 0.0;
7320 part { name: "over3";
7323 description { state: "default" 0.0;
7327 part { name: "disabler";
7329 description { state: "default" 0.0;
7333 description { state: "disabled" 0.0;
7334 inherit: "default" 0.0;
7340 program { name: "button_click";
7341 signal: "mouse,down,1";
7343 action: SIGNAL_EMIT "elm,action,press" "";
7344 after: "button_click_anim";
7346 program { name: "button_click_anim";
7347 action: STATE_SET "clicked" 0.0;
7348 target: "button_image";
7349 target: "clear_button.clipper";
7351 program { name: "button_double_click";
7352 signal: "mouse,down,1,double";
7354 after: "button_click_anim";
7356 program { name: "button_unclick";
7357 signal: "mouse,up,1";
7359 action: SIGNAL_EMIT "elm,action,unpress" "";
7360 after: "button_unclick_anim";
7362 program { name: "button_unclick_anim";
7363 action: STATE_SET "default" 0.0;
7364 target: "button_image";
7365 target: "clear_button.clipper";
7367 program { name: "touch_snd";
7368 signal: "mouse,clicked,1";
7370 action: PLAY_SAMPLE "touch_sound" 1.0;
7371 after: button_unclick3;
7373 program { name: "button_unclick3";
7374 action: SIGNAL_EMIT "elm,action,click" "";
7376 program { name: "disable";
7377 signal: "elm,state,disabled";
7379 action: STATE_SET "disabled" 0.0;
7380 target: "button_image";
7382 target: "clear_button.clipper";
7384 program { name: "enable";
7385 signal: "elm,state,enabled";
7387 action: STATE_SET "default" 0.0;
7388 target: "button_image";
7390 target: "clear_button.clipper";
7395 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
7396 group { name: "elm/button/base/"style_name; \
7398 item: "focus_highlight" "on"; \
7401 image: image_normal COMP; \
7404 part { name: "elm.swallow.content"; \
7407 description { state: "default" 0.0; \
7410 part { name: "focus_image"; \
7414 description { state: "default" 0.0; \
7417 normal: image_normal; \
7422 description { state: "focused" 0.0; \
7423 inherit: "default" 0.0; \
7427 part { name: "over2"; \
7430 ignore_flags: ON_HOLD; \
7431 description { state: "default" 0.0; \
7435 part { name: "over3"; \
7438 description { state: "default" 0.0; \
7444 program { name: "button_click"; \
7445 signal: "mouse,down,1"; \
7447 action: SIGNAL_EMIT "elm,action,press" ""; \
7449 program { name: "button_unclick"; \
7450 signal: "mouse,up,1"; \
7452 action: SIGNAL_EMIT "elm,action,unpress" ""; \
7454 program { name: "button_click3"; \
7455 signal: "mouse,clicked,1"; \
7457 action: SIGNAL_EMIT "elm,action,click" ""; \
7459 program { name: "action_focus"; \
7460 signal: "elm,action,focus_highlight,show"; \
7462 action: STATE_SET "focused" 0.0; \
7463 target: "focus_image"; \
7465 program { name: "action_unfocus"; \
7466 signal: "elm,action,focus_highlight,hide"; \
7468 action: STATE_SET "default" 0.0; \
7469 target: "focus_image"; \
7474 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
7475 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
7476 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
7477 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
7479 group { name: "elm/button/base/search_icon";
7481 image: "00_search_icon.png" COMP;
7484 part { name: "search_icon";
7487 clip_to: "search_icon.clipper";
7488 description { state: "default" 0.0;
7489 min: BUTTON_SEARCH_ICON_MIN_MAX_INC;
7490 max: BUTTON_SEARCH_ICON_MIN_MAX_INC;
7493 image.normal: "00_search_icon.png";
7496 part { name: "search_icon.clipper";
7498 description { state: "default" 0.0;
7499 color: BUTTON_SEARCH_ICON_CLIPPER_DEFAULT_COLOR_INC;
7501 description { state: "disabled" 0.0;
7502 color: BUTTON_SEARCH_ICON_CLIPPER_DISABLED_COLOR_INC;
7505 part { name: "over2";
7507 ignore_flags: ON_HOLD;
7508 description { state: "default" 0.0;
7512 part { name: "over3";
7515 description { state: "default" 0.0;
7519 part { name: "disabler";
7521 description { state: "default" 0.0;
7525 description { state: "disabled" 0.0;
7526 inherit: "default" 0.0;
7532 program { name: "button_click";
7533 signal: "mouse,down,1";
7535 action: SIGNAL_EMIT "elm,action,press" "";
7537 program { name: "button_double_click";
7538 signal: "mouse,down,1,double";
7541 program { name: "button_unclick";
7542 signal: "mouse,up,1";
7544 action: SIGNAL_EMIT "elm,action,unpress" "";
7546 program { name: "touch_snd";
7547 signal: "mouse,clicked,1";
7549 action: PLAY_SAMPLE "touch_sound" 1.0;
7550 after: "button_unclick3";
7552 program { name: "button_unclick3";
7553 action: SIGNAL_EMIT "elm,action,click" "";
7555 program { name: "disable";
7556 signal: "elm,state,disabled";
7558 action: STATE_SET "disabled" 0.0;
7560 target: "search_icon.clipper";
7562 program { name: "enable";
7563 signal: "elm,state,enabled";
7565 action: STATE_SET "default" 0.0;
7567 target: "search_icon.clipper";
7572 group { name: "elm/button/base/search_clear";
7573 inherit: "elm/button/base/editfield_clear";
7575 image: "00_field_btn_clear.png" COMP;
7578 part { name: "clear_button";
7581 clip_to: "clear_button.clipper";
7582 description { state: "default" 0.0;
7583 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7584 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7587 image.normal: "00_field_btn_clear.png";
7590 part { name: "clear_button.clipper";
7592 description { state: "default" 0.0;
7593 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7595 description { state: "clicked" 0.0;
7596 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7598 description { state: "disabled" 0.0;
7599 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7605 #undef BUTTON_STATE_ENABLED
7606 #undef BUTTON_STATE_DISABLED
7607 #undef BUTTON_LANDSCAPE_DISABLED
7608 #undef BUTTON_LANDSCAPE_ENABLED