3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 #define BUTTON_STATE_ENABLED 0
21 #define BUTTON_STATE_DISABLED 1
22 #define BUTTON_LANDSCAPE_DISABLED 0
23 #define BUTTON_LANDSCAPE_ENABLED 1
25 ///////////////////////////////////////////////////////////////////////////////////////
26 group { name: "elm/button/base/style1";
27 alias: "elm/button/base/text_only/style1";
28 alias: "elm/button/base/center";
29 alias: "elm/button/base/icon_and_text/center";
30 alias: "elm/button/base/nocontents/search_button";
31 alias: "elm/button/base/style1/multiline";
32 alias: "elm/button/base/style2";
33 alias: "elm/button/base/text_only/style2";
34 alias: "elm/button/base/style2/multiline";
36 item: "focus_highlight" "on";
39 image: "00_button_01.png" COMP;
40 image: "00_button_01_press.png" COMP;
41 image: "00_button_01_dim.png" COMP;
42 image: "00_button_01_focus.png" COMP;
45 style { name: "btn_base_style1";
46 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
51 style { name: "btn_base_style1_pressed";
52 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
57 style { name: "btn_base_style1_dim";
58 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
63 style { name: "btn_base_style1_focus";
64 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
71 public button_state = BUTTON_STATE_ENABLED;
74 part { name: "button_image";
76 description { state: "default" 0.0;
78 normal: "00_button_01.png";
79 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
83 description { state: "clicked" 0.0;
84 inherit: "default" 0.0;
85 image.normal: "00_button_01_press.png";
87 description { state: "disabled" 0.0;
88 inherit: "default" 0.0;
89 image.normal: "00_button_01_dim.png";
91 description { state: "focused" 0.0;
92 inherit: "default" 0.0;
93 image.normal: "00_button_01_press.png";
96 part { name: "focus_image";
100 description { state: "default" 0.0;
102 rel1.to : "button_image";
103 rel2.to : "button_image";
105 normal: "00_button_01_focus.png";
106 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
110 description { state: "focused" 0.0;
111 inherit: "default" 0.0;
115 part { name: "padding_left_top";
119 description { state: "default" 0.0;
121 rel2.relative: 0.0 0.0;
122 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
131 description { state: "default" 0.0;
132 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
135 description { state: "visible" 0.0;
136 inherit: "default" 0.0;
137 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
139 description { state: "icononly" 0.0;
140 inherit: "default" 0.0;
141 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
144 part { name: "padding_right_bottom";
148 description { state: "default" 0.0;
150 rel1.relative: 1.0 1.0;
151 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
156 part { name: "icon_rect";
160 description { state: "default" 0.0;
166 to: "padding_left_top";
170 to_x: "padding_left_top";
171 to_y: "padding_right_bottom";
175 description { state: "visible" 0.0;
176 inherit: "default" 0.0;
177 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
178 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
180 description { state: "icononly" 0.0;
181 inherit: "default" 0.0;
184 part { name: "padding_after_icon";
188 description { state: "default" 0.0; //when only icon or no icon is there
194 rel2.to: "icon_rect";
199 description { state: "visible" 0.0;
200 inherit: "default" 0.0;
201 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
203 description { state: "icononly" 0.0;
204 inherit: "default" 0.0;
207 part { name: "padding_before_text";
211 description { state: "default" 0.0; //when only icon or no icon is there
216 to_y: "padding_left_top";
221 to_y: "padding_right_bottom";
224 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
228 part { name: "elm.swallow.content";
231 description { state: "default" 0.0;
236 to: "padding_left_top";
240 to_x: "padding_left_top";
241 to_y: "padding_right_bottom";
245 description { state: "visible" 0.0;
247 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
248 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
252 to_x: "padding_before_text";
253 to_y: "padding_left_top";
257 to_x: "padding_before_text";
258 to_y: "padding_right_bottom";
261 description { state: "icononly" 0.0;
262 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
263 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
266 part { name: "elm.swallow.content.shadow.proxy";
269 clip_to: "elm.swallow.content.shadow.clipper";
270 description { state: "default" 0.0;
271 source: "elm.swallow.content";
273 to: "elm.swallow.content";
274 offset: BUTTON_STYLE1_NORMAL_TOP_OFFSET_INC;
277 to: "elm.swallow.content";
278 offset: BUTTON_STYLE1_NORMAL_BOTTOM_OFFSET_INC;
281 description { state: "clicked" 0.0;
282 inherit: "default" 0.0;
284 to: "elm.swallow.content";
285 offset: BUTTON_STYLE1_PRESSED_TOP_OFFSET_INC;
288 to: "elm.swallow.content";
289 offset: BUTTON_STYLE1_PRESSED_BOTTOM_OFFSET_INC;
292 description { state: "disabled" 0.0;
293 inherit: "default" 0.0;
296 part { name: "elm.swallow.content.proxy";
299 clip_to: "icon_clipper";
300 description { state: "default" 0.0;
301 source: "elm.swallow.content";
302 rel1.to: "elm.swallow.content";
303 rel2.to: "elm.swallow.content";
306 part { name: "elm.swallow.content.shadow.clipper";
309 description { state: "default" 0.0;
310 color: BUTTON_STYLE1_SHADOW_NORMAL_COLOR_INC;
312 description { state: "clicked" 0.0;
313 color: BUTTON_STYLE1_SHADOW_PRESSED_COLOR_INC;
315 description { state: "disabled" 0.0;
316 color: BUTTON_STYLE1_SHADOW_DISABLED_COLOR_INC;
319 part { name: "icon_clipper";
322 description { state: "default" 0.0;
323 color: BUTTON_STYLE1_ICON_NORMAL_COLOR_INC;
325 description { state: "clicked" 0.0;
326 color: BUTTON_STYLE1_ICON_PRESSED_COLOR_INC;
328 description { state: "disabled" 0.0;
329 color: BUTTON_STYLE1_ICON_DISABLED_COLOR_INC;
332 part { name: "elm.text";
336 description { state: "default" 0.0;
340 to_x: "padding_after_icon";
341 to_y: "padding_left_top";
345 to: "padding_right_bottom";
348 style: "btn_base_style1";
351 description { state: "visible" 0.0;
352 inherit: "default" 0.0;
355 description { state: "clicked" 0.0;
356 inherit: "default" 0.0;
359 style: "btn_base_style1_pressed";
362 description { state: "disabled" 0.0;
363 inherit: "default" 0.0;
365 description { state: "disabled_visible" 0.0;
366 inherit: "default" 0.0;
369 style: "btn_base_style1_dim";
372 description { state: "focused" 0.0;
373 inherit: "default" 0.0;
376 style: "btn_base_style1_focus";
380 part { name: "over2";
383 ignore_flags: ON_HOLD;
384 description { state: "default" 0.0;
388 part { name: "over3";
391 description { state: "default" 0.0;
395 part { name: "disabler";
397 description { state: "default" 0.0;
401 description { state: "disabled" 0.0;
402 inherit: "default" 0.0;
408 program { name: "button_click";
409 signal: "mouse,down,1";
411 action: SIGNAL_EMIT "elm,action,press" "";
412 after: "button_click_anim";
414 program { name: "button_click_anim";
415 action: STATE_SET "clicked" 0.0;
416 target: "button_image";
417 target: "elm.swallow.content.shadow.proxy";
418 target: "elm.swallow.content.shadow.clipper";
419 target: "icon_clipper";
420 after: "text_clicked";
422 program { name: "text_clicked";
426 get_state(PART:"elm.text", st, 30, vl);
427 if (!strcmp(st, "visible"))
428 set_state(PART:"elm.text", "clicked", 0.0);
431 program { name: "button_double_click";
432 signal: "mouse,down,1,double";
434 after: "button_click_anim";
436 program { name: "button_unpress";
437 action: SIGNAL_EMIT "elm,action,unpress" "";
439 program { name: "button_mouseout_clicked";
440 signal: "mouse,up,1";
445 get_state(PART:"elm.swallow.content", st, 30, vl);
446 if (strcmp(st, "icononly"))
448 emit("elm,action,default,text,set", "");
449 set_state(PART:"elm.text", "visible", 0.0);
451 if (get_int(button_state) != BUTTON_STATE_DISABLED)
452 set_state(PART:"button_image", "default", 0.0);
453 set_state(PART:"elm.swallow.content.shadow.proxy", "default", 0.0);
454 set_state(PART:"elm.swallow.content.shadow.clipper", "default", 0.0);
455 set_state(PART:"icon_clipper", "default", 0.0);
457 after: button_unpress;
459 program { name: "touch_snd";
460 signal: "mouse,clicked,1";
462 action: PLAY_SAMPLE "touch_sound" 1.0;
463 after: button_unclick3;
465 program { name: "button_unclick3";
466 action: SIGNAL_EMIT "elm,action,click" "";
468 program { name: "text_show";
469 signal: "elm,state,text,visible";
474 get_state(PART:"elm.swallow.content", st, 30, vl);
475 if (!strcmp(st, "icononly"))
477 set_state(PART:"elm.swallow.content", "visible", 0.0);
478 set_state(PART:"icon_rect", "visible", 0.0);
479 set_state(PART:"padding_after_icon", "visible", 0.0);
480 set_state(PART:"bg", "visible", 0.0);
482 if (get_int(button_state) != BUTTON_STATE_DISABLED)
483 set_state(PART:"elm.text", "visible", 0.0);
485 set_state(PART:"elm.text", "disabled_visible", 0.0);
488 program { name: "text_hide";
489 signal: "elm,state,text,hidden";
494 get_state(PART:"elm.swallow.content", st, 30, vl);
495 if (!strcmp(st, "visible"))
497 set_state(PART:"elm.swallow.content", "icononly", 0.0);
498 set_state(PART:"icon_rect", "icononly", 0.0);
499 set_state(PART:"padding_after_icon", "icononly", 0.0);
500 set_state(PART:"bg", "icononly", 0.0);
502 set_state(PART:"elm.text", "default", 0.0);
505 program { name: "icon_show";
506 signal: "elm,state,icon,visible";
511 get_state(PART:"elm.text", st, 30, vl);
512 if (!strcmp(st, "visible"))
514 set_state(PART:"elm.swallow.content", "visible", 0.0);
515 set_state(PART:"icon_rect", "visible", 0.0);
516 set_state(PART:"padding_after_icon", "visible", 0.0);
517 set_state(PART:"bg", "visible", 0.0);
521 set_state(PART:"elm.swallow.content", "icononly", 0.0);
522 set_state(PART:"icon_rect", "icononly", 0.0);
523 set_state(PART:"padding_after_icon", "icononly", 0.0);
524 set_state(PART:"bg", "icononly", 0.0);
528 program { name: "icon_hide";
529 signal: "elm,state,icon,hidden";
531 action: STATE_SET "default" 0.0;
532 target: "elm.swallow.content";
533 target: "padding_after_icon";
537 program { name: "disable";
538 signal: "elm,state,disabled";
540 action: STATE_SET "disabled" 0.0;
541 target: "button_image";
543 target: "elm.swallow.content.shadow.proxy";
544 target: "elm.swallow.content.shadow.clipper";
545 target: "icon_clipper";
546 after: "disable_text";
548 program { name: "disable_text";
552 get_state(PART:"elm.text", st, 30, vl);
553 if (!strcmp(st, "visible"))
554 set_state(PART:"elm.text", "disabled_visible", 0.0);
556 set_state(PART:"elm.text", "disabled", 0.0);
557 set_int(button_state, BUTTON_STATE_DISABLED);
560 program { name: "enable";
561 signal: "elm,state,enabled";
563 action: STATE_SET "default" 0.0;
564 target: "button_image";
565 target: "elm.swallow.content.shadow.proxy";
566 target: "elm.swallow.content.shadow.clipper";
567 target: "icon_clipper";
569 after: "enable_text";
571 program { name: "enable_text";
575 get_state(PART:"elm.text", st, 30, vl);
576 if (!strcmp(st, "disabled_visible"))
577 set_state(PART:"elm.text", "visible", 0.0);
579 set_state(PART:"elm.text", "default", 0.0);
580 set_int(button_state, BUTTON_STATE_ENABLED);
583 program { name: "action_focus";
584 signal: "elm,action,focus_highlight,show";
586 action: STATE_SET "focused" 0.0;
587 target: "focus_image";
589 program { name: "action_unfocus";
590 signal: "elm,action,focus_highlight,hide";
592 action: STATE_SET "default" 0.0;
593 target: "focus_image";
598 //////////////////////////////////////////////////////////////
599 group { name: "elm/button/base/style1/auto_expand";
600 inherit: "elm/button/base/style1";
602 part { name: "elm.text";
606 description { state: "default" 0.0;
610 to_x: "padding_after_icon";
611 to_y: "padding_left_top";
615 to: "padding_right_bottom";
618 style: "btn_base_style1";
623 description { state: "visible" 0.0;
624 inherit: "default" 0.0;
627 description { state: "clicked" 0.0;
628 inherit: "default" 0.0;
631 style: "btn_base_style1_pressed";
634 description { state: "disabled" 0.0;
635 inherit: "default" 0.0;
637 description { state: "disabled_visible" 0.0;
638 inherit: "default" 0.0;
641 style: "btn_base_style1_dim";
644 description { state: "focused" 0.0;
645 inherit: "default" 0.0;
648 style: "btn_base_style1_focus";
655 //////////////////////////////////////////////////////////////////////////////////////
656 group { name: "elm/button/base/datetime/ampm/default";
657 alias: "elm/button/base/datetime_ampm/default";
658 inherit: "elm/button/base/style1/auto_expand";
660 part { name: "button_image";
662 description { state: "default" 0.0;
664 normal: "00_button_01.png";
665 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
668 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
669 max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
671 description { state: "clicked" 0.0;
672 inherit: "default" 0.0;
673 image.normal: "00_button_01_press.png";
675 description { state: "disabled" 0.0;
676 inherit: "default" 0.0;
677 image.normal: "00_button_01_dim.png";
679 description { state: "focused" 0.0;
680 inherit: "default" 0.0;
681 image.normal: "00_button_01_press.png";
688 description { state: "default" 0.0;
692 description { state: "visible" 0.0;
693 inherit: "default" 0.0;
694 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
696 description { state: "icononly" 0.0;
697 inherit: "default" 0.0;
700 part { name: "elm.text";
704 description { state: "default" 0.0;
708 style: "btn_base_style1";
709 size: BUTTON_DATETIME_AMPM_TEXT_FONT_SIZE_INC;
713 description { state: "visible" 0.0;
714 inherit: "default" 0.0;
717 description { state: "clicked" 0.0;
718 inherit: "default" 0.0;
721 style: "btn_base_style1_pressed";
724 description { state: "disabled" 0.0;
725 inherit: "default" 0.0;
727 description { state: "disabled_visible" 0.0;
728 inherit: "default" 0.0;
731 style: "btn_base_style1_dim";
734 description { state: "focused" 0.0;
735 inherit: "default" 0.0;
738 style: "btn_base_style1_focus";
745 //////////////////////////////////////////////////////////////////////////////////////
746 group { name: "elm/button/base/sweep";
747 alias: "elm/button/base/text_only/sweep";
748 alias: "elm/button/base/hidden";
749 alias: "elm/button/base/sweep/multiline";
750 inherit: "elm/button/base/style1";
752 style { name: "btn_base_sweep";
753 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SWEEP_BUTTON_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
758 style { name: "btn_base_sweep_pressed";
759 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SWEEP_BUTTON_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
764 style { name: "btn_base_sweep_dim";
765 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SWEEP_BUTTON_SHADOW_TEXTBLOCK_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
770 style { name: "btn_base_sweep_focus";
771 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
778 part { name: "elm.text";
782 description { state: "default" 0.0;
786 to_x: "padding_after_icon";
787 to_y: "padding_left_top";
791 to: "padding_right_bottom";
794 style: "btn_base_sweep";
797 description { state: "visible" 0.0;
798 inherit: "default" 0.0;
801 description { state: "clicked" 0.0;
802 inherit: "default" 0.0;
805 style: "btn_base_sweep_pressed";
808 description { state: "disabled" 0.0;
809 inherit: "default" 0.0;
811 description { state: "disabled_visible" 0.0;
812 inherit: "default" 0.0;
815 style: "btn_base_sweep_dim";
818 description { state: "focused" 0.0;
819 inherit: "default" 0.0;
822 style: "btn_base_sweep_focus";
829 ///////////////////////////////////////////////////////////////////////////////////////
830 group { name: "elm/button/base/style1/delete";
831 alias: "elm/button/base/sweep/delete";
832 alias: "elm/button/base/sweep/delete/multiline";
833 inherit: "elm/button/base/style1";
835 image: "00_button_01_delete.png" COMP;
836 image: "00_button_01_delete_dim.png" COMP;
837 image: "00_button_01_delete_press.png" COMP;
840 style { name: "btn_base_style1_delete";
841 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_DELETE_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_DELETE_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
846 style { name: "btn_base_style1_delete_pressed";
847 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_DELETE_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_DELETE_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
852 style { name: "btn_base_style1_delete_dim";
853 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_DELETE_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_DELETE_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
858 style { name: "btn_base_style1_delete_focus";
859 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_DELETE_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
866 part { name: "button_image";
868 description { state: "default" 0.0;
870 normal: "00_button_01_delete.png";
871 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
875 description { state: "clicked" 0.0;
876 inherit: "default" 0.0;
877 image.normal: "00_button_01_delete_press.png";
879 description { state: "disabled" 0.0;
880 inherit: "default" 0.0;
881 image.normal: "00_button_01_delete_dim.png";
883 description { state: "focused" 0.0;
884 inherit: "default" 0.0;
885 image.normal: "00_button_01_delete_press.png";
888 part { name: "elm.text";
892 description { state: "default" 0.0;
896 to_x: "padding_after_icon";
897 to_y: "padding_left_top";
901 to: "padding_right_bottom";
904 style: "btn_base_style1_delete";
907 description { state: "visible" 0.0;
908 inherit: "default" 0.0;
911 description { state: "clicked" 0.0;
912 inherit: "default" 0.0;
915 style: "btn_base_style1_delete_pressed";
918 description { state: "disabled" 0.0;
919 inherit: "default" 0.0;
921 description { state: "disabled_visible" 0.0;
922 inherit: "default" 0.0;
925 style: "btn_base_style1_delete_dim";
928 description { state: "focused" 0.0;
929 inherit: "default" 0.0;
932 style: "btn_base_style1_delete_focus";
939 //////////////////////////////////////////////////////////////////////////////////////
940 group { name: "elm/button/base/sweep/delete";
941 alias: "elm/button/base/sweep/delete/multiline";
942 inherit: "elm/button/base/style1/delete";
944 style { name: "btn_base_sweep_delete";
945 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SWEEP_BUTTON_SHADOW_TEXTBLOCK_DELETE_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
950 style { name: "btn_base_sweep_delete_pressed";
951 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SWEEP_BUTTON_SHADOW_TEXTBLOCK_DELETE_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
956 style { name: "btn_base_sweep_delete_dim";
957 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SWEEP_BUTTON_SHADOW_TEXTBLOCK_DELETE_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
962 style { name: "btn_base_sweep_delete_focus";
963 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
970 part { name: "elm.text";
974 description { state: "default" 0.0;
978 to_x: "padding_after_icon";
979 to_y: "padding_left_top";
983 to: "padding_right_bottom";
986 style: "btn_base_sweep_delete";
989 description { state: "visible" 0.0;
990 inherit: "default" 0.0;
993 description { state: "clicked" 0.0;
994 inherit: "default" 0.0;
997 style: "btn_base_sweep_delete_pressed";
1000 description { state: "disabled" 0.0;
1001 inherit: "default" 0.0;
1003 description { state: "disabled_visible" 0.0;
1004 inherit: "default" 0.0;
1007 style: "btn_base_sweep_delete_dim";
1010 description { state: "focused" 0.0;
1011 inherit: "default" 0.0;
1014 style: "btn_base_sweep_delete_focus";
1021 ///////////////////////////////////////////////////////////////////////////////////////
1022 group { name: "elm/button/base/search_button/text";
1023 alias: "elm/button/base/searchbar/default";
1024 inherit: "elm/button/base/style1";
1026 style { name: "btn_base_search";
1027 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1032 style { name: "btn_base_search_pressed";
1033 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1038 style { name: "btn_base_search_dim";
1039 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1044 style { name: "btn_base_search_focus";
1045 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1056 description { state: "default" 0.0;
1057 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
1060 description { state: "visible" 0.0;
1061 inherit: "default" 0.0;
1062 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
1064 description { state: "icononly" 0.0;
1065 inherit: "default" 0.0;
1066 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
1069 part { name: "elm.text";
1073 description { state: "default" 0.0;
1077 to_x: "padding_after_icon";
1078 to_y: "padding_left_top";
1082 to: "padding_right_bottom";
1085 style: "btn_base_search";
1090 description { state: "visible" 0.0;
1091 inherit: "default" 0.0;
1094 description { state: "clicked" 0.0;
1095 inherit: "default" 0.0;
1098 style: "btn_base_search_pressed";
1101 description { state: "disabled" 0.0;
1102 inherit: "default" 0.0;
1104 description { state: "disabled_visible" 0.0;
1105 inherit: "default" 0.0;
1108 style: "btn_base_search_dim";
1111 description { state: "focused" 0.0;
1112 inherit: "default" 0.0;
1115 style: "btn_base_search_focus";
1122 ///////////////////////////////////////////////////////////////////////////////////////
1123 group { name: "elm/button/base/search_button/send";
1124 inherit: "elm/button/base/style1";
1126 image: "00_button_01_send.png" COMP;
1127 image: "00_button_01_send_dim.png" COMP;
1128 image: "00_button_01_send_press.png" COMP;
1131 style { name: "btn_base_search_send";
1132 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1137 style { name: "btn_base_search_send_pressed";
1138 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1143 style { name: "btn_base_search_send_dim";
1144 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1149 style { name: "btn_base_search_send_focus";
1150 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1157 part { name: "button_image";
1159 description { state: "default" 0.0;
1161 normal: "00_button_01_send.png";
1162 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
1166 description { state: "clicked" 0.0;
1167 inherit: "default" 0.0;
1168 image.normal: "00_button_01_send_press.png";
1170 description { state: "disabled" 0.0;
1171 inherit: "default" 0.0;
1172 image.normal: "00_button_01_send_dim.png";
1174 description { state: "focused" 0.0;
1175 inherit: "default" 0.0;
1176 image.normal: "00_button_01_send_press.png";
1183 description { state: "default" 0.0;
1184 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
1187 description { state: "visible" 0.0;
1188 inherit: "default" 0.0;
1189 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
1191 description { state: "icononly" 0.0;
1192 inherit: "default" 0.0;
1193 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
1196 part { name: "elm.text";
1200 description { state: "default" 0.0;
1204 to_x: "padding_after_icon";
1205 to_y: "padding_left_top";
1209 to: "padding_right_bottom";
1212 style: "btn_base_search_send";
1217 description { state: "visible" 0.0;
1218 inherit: "default" 0.0;
1221 description { state: "clicked" 0.0;
1222 inherit: "default" 0.0;
1225 style: "btn_base_search_send_pressed";
1228 description { state: "disabled" 0.0;
1229 inherit: "default" 0.0;
1231 description { state: "disabled_visible" 0.0;
1232 inherit: "default" 0.0;
1235 style: "btn_base_search_send_dim";
1238 description { state: "focused" 0.0;
1239 inherit: "default" 0.0;
1242 style: "btn_base_search_send_focus";
1249 ///////////////////////////////////////////////////////////////////////////////////////
1250 group { name: "elm/button/base/search_button/cancel";
1251 inherit: "elm/button/base/style1";
1253 image: "00_button_01_delete.png" COMP;
1254 image: "00_button_01_delete_dim.png" COMP;
1255 image: "00_button_01_delete_press.png" COMP;
1258 style { name: "btn_base_search_cancel";
1259 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1264 style { name: "btn_base_search_cancel_pressed";
1265 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1270 style { name: "btn_base_search_cancel_dim";
1271 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1276 style { name: "btn_base_search_cancel_focus";
1277 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1284 part { name: "button_image";
1286 description { state: "default" 0.0;
1288 normal: "00_button_01_delete.png";
1289 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
1293 description { state: "clicked" 0.0;
1294 inherit: "default" 0.0;
1295 image.normal: "00_button_01_delete_press.png";
1297 description { state: "disabled" 0.0;
1298 inherit: "default" 0.0;
1299 image.normal: "00_button_01_delete_dim.png";
1301 description { state: "focused" 0.0;
1302 inherit: "default" 0.0;
1303 image.normal: "00_button_01_delete_press.png";
1310 description { state: "default" 0.0;
1311 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
1314 description { state: "visible" 0.0;
1315 inherit: "default" 0.0;
1316 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
1318 description { state: "icononly" 0.0;
1319 inherit: "default" 0.0;
1320 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
1323 part { name: "elm.text";
1327 description { state: "default" 0.0;
1331 to_x: "padding_after_icon";
1332 to_y: "padding_left_top";
1336 to: "padding_right_bottom";
1339 style: "btn_base_search_cancel";
1344 description { state: "visible" 0.0;
1345 inherit: "default" 0.0;
1348 description { state: "clicked" 0.0;
1349 inherit: "default" 0.0;
1352 style: "btn_base_search_cancel_pressed";
1355 description { state: "disabled" 0.0;
1356 inherit: "default" 0.0;
1358 description { state: "disabled_visible" 0.0;
1359 inherit: "default" 0.0;
1362 style: "btn_base_search_cancel_dim";
1365 description { state: "focused" 0.0;
1366 inherit: "default" 0.0;
1369 style: "btn_base_search_cancel_focus";
1376 ///////////////////////////////////////////////////////////////////////////////////////
1377 group { name: "elm/button/base/popup_button/default";
1378 alias: "elm/button/base/popup_button/menustyle";
1379 alias: "elm/button/base/popup_button/liststyle";
1380 alias: "elm/button/base/popup_button/volumebarstyle";
1381 alias: "elm/button/base/popup_button/customstyle";
1382 alias: "elm/button/base/popup_button/verticalbuttonstyle";
1383 alias: "elm/button/base/popup_button/default/multiline";
1385 item: "focus_highlight" "on";
1388 image: "00_popup_button.png" COMP;
1389 image: "00_popup_button_dim.png" COMP;
1390 image: "00_popup_button_press.png" COMP;
1391 image: "00_popup_button_focus.png" COMP;
1394 style { name: "btn_base_popup_button";
1395 base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_POPUP_BUTTON_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1400 style { name: "btn_base_popup_button_pressed";
1401 base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_POPUP_BUTTON_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1406 style { name: "btn_base_popup_button_dim";
1407 base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_POPUP_BUTTON_SHADOW_TEXTBLOCK_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1412 style { name: "btn_base_popup_button_focus";
1413 base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1420 public button_state = BUTTON_STATE_ENABLED;
1423 part { name: "button_image";
1425 description { state: "default" 0.0;
1426 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
1428 normal: "00_popup_button.png";
1429 border: BUTTON_POPUP_BG_BORDER_INC;
1433 description { state: "clicked" 0.0;
1434 inherit: "default" 0.0;
1435 image.normal: "00_popup_button_press.png";
1437 description { state: "disabled" 0.0;
1438 inherit: "default" 0.0;
1439 image.normal: "00_popup_button_dim.png";
1441 description { state: "focused" 0.0;
1442 inherit: "default" 0.0;
1443 image.normal: "00_popup_button_focus.png";
1446 part { name: "focus_image";
1450 description { state: "default" 0.0;
1452 rel1.to : "button_image";
1453 rel2.to : "button_image";
1455 normal: "00_popup_button_focus.png";
1456 border: BUTTON_POPUP_BG_BORDER_INC;
1460 description { state: "focused" 0.0;
1461 inherit: "default" 0.0;
1465 part { name: "padding_left_top";
1469 description { state: "default" 0.0;
1471 rel2.relative: 0.0 0.0;
1472 min: BUTTON_POPUP_PADDING_MIN_INC;
1477 part { name: "padding_right_bottom";
1480 description { state: "default" 0.0;
1482 rel1.relative: 1.0 1.0;
1483 min: BUTTON_POPUP_PADDING_MIN_INC;
1488 part { name: "padding_icon_text";
1491 description { state: "default" 0.0; //when only icon or no icon is there
1495 to: "elm.swallow.content";
1497 rel2.to: "elm.swallow.content";
1502 description { state: "icononly" 0.0;
1503 inherit: "default" 0.0;
1505 description { state: "visible" 0.0; //when icon is visible
1506 inherit: "default" 0.0;
1507 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1510 part { name: "elm.swallow.content";
1513 description { state: "default" 0.0;
1518 to: "padding_left_top";
1522 to_x: "padding_left_top";
1523 to_y: "padding_right_bottom";
1527 description { state: "visible" 0.0;
1528 inherit: "default" 0.0;
1532 aspect_preference: VERTICAL;
1534 description { state: "icononly" 0.0;
1535 inherit: "default" 0.0;
1536 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
1541 part { name: "elm.swallow.content.shadow.proxy";
1544 clip_to: "elm.swallow.content.shadow.clipper";
1545 description { state: "default" 0.0;
1546 source: "elm.swallow.content";
1548 to: "elm.swallow.content";
1549 offset: BUTTON_POPUP_NORMAL_TOP_OFFSET_INC;
1552 to: "elm.swallow.content";
1553 offset: BUTTON_POPUP_NORMAL_BOTTOM_OFFSET_INC;
1556 description { state: "clicked" 0.0;
1557 inherit: "default" 0.0;
1559 to: "elm.swallow.content";
1560 offset: BUTTON_POPUP_PRESSED_TOP_OFFSET_INC;
1563 to: "elm.swallow.content";
1564 offset: BUTTON_POPUP_PRESSED_BOTTOM_OFFSET_INC;
1567 description { state: "disabled" 0.0;
1568 inherit: "default" 0.0;
1571 part { name: "elm.swallow.content.proxy";
1574 clip_to: "icon_clipper";
1575 description { state: "default" 0.0;
1576 source: "elm.swallow.content";
1577 rel1.to: "elm.swallow.content";
1578 rel2.to: "elm.swallow.content";
1581 part { name: "elm.swallow.content.shadow.clipper";
1584 description { state: "default" 0.0;
1585 color: BUTTON_POPUP_SHADOW_NORMAL_COLOR_INC;
1587 description { state: "clicked" 0.0;
1588 color: BUTTON_POPUP_SHADOW_PRESSED_COLOR_INC;
1590 description { state: "disabled" 0.0;
1591 color: BUTTON_POPUP_SHADOW_DISABLED_COLOR_INC;
1594 part { name: "icon_clipper";
1597 description { state: "default" 0.0;
1598 color: BUTTON_POPUP_ICON_NORMAL_COLOR_INC;
1600 description { state: "clicked" 0.0;
1601 color: BUTTON_POPUP_ICON_PRESSED_COLOR_INC;
1603 description { state: "disabled" 0.0;
1604 color: BUTTON_POPUP_ICON_DISABLED_COLOR_INC;
1607 part { name: "elm.text";
1611 description { state: "default" 0.0;
1615 to_x: "padding_icon_text";
1616 to_y: "padding_left_top";
1620 to: "padding_right_bottom";
1623 style: "btn_base_popup_button";
1627 description { state: "visible" 0.0;
1628 inherit: "default" 0.0;
1630 min: BUTTON_POPUP_TEXT_MIN_INC;
1632 description { state: "clicked" 0.0;
1633 inherit: "default" 0.0;
1636 style: "btn_base_popup_button_pressed";
1640 description { state: "disabled" 0.0;
1641 inherit: "default" 0.0;
1643 description { state: "disabled_visible" 0.0;
1644 inherit: "default" 0.0;
1647 style: "btn_base_popup_button_dim";
1649 min: BUTTON_POPUP_TEXT_MIN_INC;
1651 description { state: "focused" 0.0;
1652 inherit: "default" 0.0;
1655 style: "btn_base_popup_button_dim";
1660 part { name: "over2";
1663 ignore_flags: ON_HOLD;
1664 description { state: "default" 0.0;
1668 part { name: "over3";
1671 description { state: "default" 0.0;
1675 part { name: "disabler";
1677 description { state: "default" 0.0;
1681 description { state: "disabled" 0.0;
1682 inherit: "default" 0.0;
1688 program { name: "button_click";
1689 signal: "mouse,down,1";
1691 action: SIGNAL_EMIT "elm,action,press" "";
1692 after: "button_click_anim";
1694 program { name: "button_click_anim";
1695 action: STATE_SET "clicked" 0.0;
1696 target: "button_image";
1697 target: "elm.swallow.content.shadow.proxy";
1698 target: "elm.swallow.content.shadow.clipper";
1699 target: "icon_clipper";
1700 after: "text_clicked";
1702 program { name: "text_clicked";
1706 get_state(PART:"elm.text", st, 30, vl);
1707 if (!strcmp(st, "visible"))
1708 set_state(PART:"elm.text", "clicked", 0.0);
1711 program { name: "button_double_click";
1712 signal: "mouse,down,1,double";
1714 after: "button_click_anim";
1716 program { name: "button_unpress";
1717 action: SIGNAL_EMIT "elm,action,unpress" "";
1719 program { name: "button_mouseout_clicked";
1720 signal: "mouse,up,1";
1725 get_state(PART:"elm.swallow.content", st, 30, vl);
1726 if (strcmp(st, "icononly"))
1728 emit("elm,action,default,text,set", "");
1729 set_state(PART:"elm.text", "visible", 0.0);
1731 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1732 set_state(PART:"button_image", "default", 0.0);
1733 set_state(PART:"elm.swallow.content.shadow.proxy", "default", 0.0);
1734 set_state(PART:"elm.swallow.content.shadow.clipper", "default", 0.0);
1735 set_state(PART:"icon_clipper", "default", 0.0);
1737 after: button_unpress;
1739 program { name: "touch_snd";
1740 signal: "mouse,clicked,1";
1742 action: PLAY_SAMPLE "touch_sound" 1.0;
1743 after: button_unclick3;
1745 program { name: "button_unclick3";
1746 action: SIGNAL_EMIT "elm,action,click" "";
1748 program { name: "text_show";
1749 signal: "elm,state,text,visible";
1754 get_state(PART:"elm.swallow.content", st, 30, vl);
1755 if (!strcmp(st, "icononly"))
1757 set_state(PART:"elm.swallow.content", "visible", 0.0);
1758 set_state(PART:"padding_icon_text", "visible", 0.0);
1760 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1761 set_state(PART:"elm.text", "visible", 0.0);
1763 set_state(PART:"elm.text", "disabled_visible", 0.0);
1766 program { name: "text_hide";
1767 signal: "elm,state,text,hidden";
1772 get_state(PART:"elm.swallow.content", st, 30, vl);
1773 if (!strcmp(st, "visible"))
1775 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1776 set_state(PART:"padding_icon_text", "icononly", 0.0);
1778 set_state(PART:"elm.text", "default", 0.0);
1781 program { name: "icon_show";
1782 signal: "elm,state,icon,visible";
1787 get_state(PART:"elm.text", st, 30, vl);
1788 if (!strcmp(st, "visible"))
1790 set_state(PART:"elm.swallow.content", "visible", 0.0);
1791 set_state(PART:"padding_icon_text", "visible", 0.0);
1795 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1796 set_state(PART:"padding_icon_text", "icononly", 0.0);
1800 program { name: "icon_hide";
1801 signal: "elm,state,icon,hidden";
1803 action: STATE_SET "default" 0.0;
1804 target: "elm.swallow.content";
1805 target: "padding_icon_text";
1807 program { name: "disable";
1808 signal: "elm,state,disabled";
1810 action: STATE_SET "disabled" 0.0;
1811 target: "button_image";
1812 target: "elm.swallow.content.shadow.proxy";
1813 target: "elm.swallow.content.shadow.clipper";
1814 target: "icon_clipper";
1816 after: "disable_text";
1818 program { name: "disable_text";
1822 get_state(PART:"elm.text", st, 30, vl);
1823 if (!strcmp(st, "visible"))
1824 set_state(PART:"elm.text", "disabled_visible", 0.0);
1826 set_state(PART:"elm.text", "disabled", 0.0);
1827 set_int(button_state, BUTTON_STATE_DISABLED);
1830 program { name: "enable";
1831 signal: "elm,state,enabled";
1833 action: STATE_SET "default" 0.0;
1834 target: "button_image";
1835 target: "elm.swallow.content.shadow.proxy";
1836 target: "elm.swallow.content.shadow.clipper";
1837 target: "icon_clipper";
1839 after: "enable_text";
1841 program { name: "enable_text";
1845 get_state(PART:"elm.text", st, 30, vl);
1846 if (!strcmp(st, "disabled_visible"))
1847 set_state(PART:"elm.text", "visible", 0.0);
1849 set_state(PART:"elm.text", "default", 0.0);
1850 set_int(button_state, BUTTON_STATE_ENABLED);
1853 program { name: "action_focus";
1854 signal: "elm,action,focus_highlight,show";
1856 action: STATE_SET "focused" 0.0;
1857 target: "focus_image";
1859 program { name: "action_unfocus";
1860 signal: "elm,action,focus_highlight,hide";
1862 action: STATE_SET "default" 0.0;
1863 target: "focus_image";
1868 ///////////////////////////////////////////////////////////////////////////////////////
1869 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, min_width, min_height) \
1870 group { name: "elm/button/base/"style_name; \
1872 item: "focus_highlight" "on"; \
1875 image: "00_circle_button.png" COMP; \
1876 image: "00_circle_button_press.png" COMP; \
1877 image: "00_circle_button_dim.png" COMP; \
1878 image: image_normal COMP; \
1879 image: 00_circle_button_focus.png COMP; \
1882 part { name: "button_image"; \
1884 description { state: "default" 0.0; \
1885 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1886 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1887 image.normal: "00_circle_button.png"; \
1890 state: "clicked" 0.0; \
1891 inherit: "default" 0.0; \
1892 image.normal: "00_circle_button_press.png"; \
1895 state: "disabled" 0.0; \
1896 inherit: "default" 0.0; \
1897 image.normal: "00_circle_button_dim.png"; \
1900 part { name: "left_top_padding"; \
1903 description { state: "default" 0.0; \
1904 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
1905 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
1908 rel1.to: "button_image"; \
1909 rel2.to: "button_image"; \
1912 part { name: "right_bottom_padding"; \
1915 description { state: "default" 0.0; \
1916 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
1917 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
1921 relative: 1.0 1.0; \
1922 to: "button_image"; \
1924 rel2.to: "button_image"; \
1927 part { name: "button_center_part"; \
1929 description { state: "default" 0.0; \
1930 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
1931 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
1932 image.normal: image_normal; \
1934 relative: 1.0 1.0; \
1935 to: "left_top_padding"; \
1938 relative: 0.0 0.0; \
1939 to: "right_bottom_padding"; \
1943 part { name: "elm.swallow.icon.shadow.proxy"; \
1945 clip_to: "elm.icon.proxy.clipper"; \
1947 description { state: "default" 0.0; \
1948 source: "button_center_part"; \
1950 to: "button_center_part"; \
1951 offset: BUTTON_CIRCLE_STYLE_NORMAL_TOP_OFFSET_INC; \
1954 to: "button_center_part"; \
1955 offset: BUTTON_CIRCLE_STYLE_NORMAL_BOTTOM_OFFSET_INC; \
1958 description { state: "clicked" 0.0; \
1959 inherit: "default" 0.0; \
1961 to: "button_center_part"; \
1962 offset: BUTTON_CIRCLE_STYLE_PRESSED_TOP_OFFSET_INC; \
1965 to: "button_center_part"; \
1966 offset: BUTTON_CIRCLE_STYLE_PRESSED_BOTTOM_OFFSET_INC; \
1969 description { state: "disabled" 0.0; \
1970 inherit: "default" 0.0; \
1973 part { name: "elm.swallow.icon.proxy"; \
1976 clip_to: "icon_clipper"; \
1977 description { state: "default" 0.0; \
1978 source: "button_center_part"; \
1979 rel1.to: "button_center_part"; \
1980 rel2.to: "button_center_part"; \
1983 part { name: "elm.icon.proxy.clipper"; \
1985 description { state: "default" 0.0; \
1986 color: BUTTON_CIRCLE_STYLE_CLIPPER_DEFAULT_COLOR_INC; \
1988 description { state: "clicked" 0.0; \
1989 color: BUTTON_CIRCLE_STYLE_ICON_CLIPPER_PRESSED_COLOR_INC; \
1991 description { state: "disabled" 0.0; \
1992 color: BUTTON_CIRCLE_STYLE_ICON_CLIPPER_DISABLED_COLOR_INC; \
1995 part { name: "icon_clipper"; \
1998 description { state: "default" 0.0; \
1999 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2001 description { state: "clicked" 0.0; \
2002 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2004 description { state: "disabled" 0.0; \
2005 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2008 part { name: "focus_image"; \
2012 description { state: "default" 0.0; \
2013 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2014 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2016 rel1.to : "button_image"; \
2017 rel2.to : "button_image"; \
2019 normal: "00_circle_button_focus.png"; \
2023 description { state: "focused" 0.0; \
2024 inherit: "default" 0.0; \
2028 part { name: "over1"; \
2030 ignore_flags: ON_HOLD; \
2031 description { state: "default" 0.0; \
2033 min: min_width min_height; \
2036 part { name: "over2"; \
2039 description { state: "default" 0.0; \
2043 part { name: "disabler"; \
2045 description { state: "default" 0.0; \
2049 description { state: "disabled" 0.0; \
2050 inherit: "default" 0.0; \
2056 program { name: "button_click"; \
2057 signal: "mouse,down,1"; \
2059 action: SIGNAL_EMIT "elm,action,press" ""; \
2060 after: "button_click_anim"; \
2062 program { name: "button_click_anim"; \
2063 action: STATE_SET "clicked" 0.0; \
2064 target: "button_image"; \
2065 target: "elm.swallow.icon.shadow.proxy"; \
2066 target: "elm.icon.proxy.clipper"; \
2067 target: "icon_clipper"; \
2069 program { name: "button_double_click"; \
2070 signal: "mouse,down,1,double"; \
2072 after: "button_click_anim"; \
2074 program { name: "button_unclick"; \
2075 signal: "mouse,up,1"; \
2077 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2078 after: "button_unclick_anim"; \
2080 program { name: "button_unclick_anim"; \
2081 action: STATE_SET "default" 0.0; \
2082 target: "button_image"; \
2083 target: "elm.swallow.icon.shadow.proxy"; \
2084 target: "elm.icon.proxy.clipper"; \
2085 target: "icon_clipper"; \
2087 program { name: "touch_snd"; \
2088 signal: "mouse,clicked,1"; \
2090 action: PLAY_SAMPLE "touch_sound" 1.0; \
2091 after: button_unclick3; \
2093 program { name: "button_unclick3"; \
2094 action: SIGNAL_EMIT "elm,action,click" ""; \
2096 program { name: "disable"; \
2097 signal: "elm,state,disabled"; \
2099 action: STATE_SET "disabled" 0.0; \
2100 target: "disabler"; \
2101 target: "button_image"; \
2102 target: "elm.swallow.icon.shadow.proxy"; \
2103 target: "elm.icon.proxy.clipper"; \
2104 target: "icon_clipper"; \
2106 program { name: "enable"; \
2107 signal: "elm,state,enabled"; \
2109 action: STATE_SET "default" 0.0; \
2110 target: "disabler"; \
2111 target: "button_image"; \
2112 target: "elm.swallow.icon.shadow.proxy"; \
2113 target: "elm.icon.proxy.clipper"; \
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", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2134 ///////////////////////////////////////////////////////////////////////////////////////
2135 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_right.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", 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", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2143 ///////////////////////////////////////////////////////////////////////////////////////
2144 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.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", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2149 ///////////////////////////////////////////////////////////////////////////////////////
2150 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2152 ///////////////////////////////////////////////////////////////////////////////////////
2153 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2155 ///////////////////////////////////////////////////////////////////////////////////////
2156 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2158 ///////////////////////////////////////////////////////////////////////////////////////
2159 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2161 ///////////////////////////////////////////////////////////////////////////////////////
2162 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2164 ///////////////////////////////////////////////////////////////////////////////////////
2165 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2167 ///////////////////////////////////////////////////////////////////////////////////////
2168 BUTTON_CIRCLE_STYLES("plus", "00_button_add.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2170 ///////////////////////////////////////////////////////////////////////////////////////
2171 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_add.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2173 ///////////////////////////////////////////////////////////////////////////////////////
2174 BUTTON_CIRCLE_STYLES("minus", "00_button_delete.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2176 ///////////////////////////////////////////////////////////////////////////////////////
2177 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_delete.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2179 ///////////////////////////////////////////////////////////////////////////////////////
2180 BUTTON_CIRCLE_STYLES("cancel", "00_button_expand_cancel.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", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2185 ///////////////////////////////////////////////////////////////////////////////////////
2186 BUTTON_CIRCLE_STYLES("send", "00_button_expand_send.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", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2190 ///////////////////////////////////////////////////////////////////////////////////////
2192 ///////////////////////////////////////////////////////////////////////////////////////
2193 BUTTON_CIRCLE_STYLES("contact", "00_button_contact.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; \
2206 part { name: "button_image"; \
2208 description { state: "default" 0.0; \
2209 image.normal: "00_circle_button_delete.png"; \
2212 state: "clicked" 0.0; \
2213 inherit: "default" 0.0; \
2214 image.normal: "00_circle_button_delete_press.png"; \
2217 state: "disabled" 0.0; \
2218 inherit: "default" 0.0; \
2219 image.normal: "00_circle_button_delete_dim.png"; \
2222 part { name: "button_center_part"; \
2224 description { state: "default" 0.0; \
2225 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2226 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2227 image.normal: "00_button_warning.png"; \
2229 relative: 1.0 1.0; \
2230 to: "left_top_padding"; \
2233 relative: 0.0 0.0; \
2234 to: "right_bottom_padding"; \
2238 part { name: "elm.swallow.icon.shadow.proxy"; \
2240 clip_to: "elm.icon.proxy.clipper"; \
2242 description { state: "default" 0.0; \
2243 source: "button_center_part"; \
2245 to: "button_center_part"; \
2246 offset: BUTTON_WARNING_STYLE_NORMAL_TOP_OFFSET_INC; \
2249 to: "button_center_part"; \
2250 offset: BUTTON_WARNING_STYLE_NORMAL_BOTTOM_OFFSET_INC; \
2253 description { state: "clicked" 0.0; \
2254 inherit: "default" 0.0; \
2256 to: "button_center_part"; \
2257 offset: BUTTON_WARNING_STYLE_PRESSED_TOP_OFFSET_INC; \
2260 to: "button_center_part"; \
2261 offset: BUTTON_WARNING_STYLE_PRESSED_BOTTOM_OFFSET_INC; \
2264 description { state: "disabled" 0.0; \
2265 inherit: "default" 0.0; \
2268 part { name: "elm.icon.proxy.clipper"; \
2270 description { state: "default" 0.0; \
2271 color: BUTTON_WARNING_STYLE_CLIPPER_NORMAL_COLOR_INC; \
2273 description { state: "clicked" 0.0; \
2274 color: BUTTON_WARNING_STYLE_CLIPPER_PRESSED_COLOR_INC; \
2276 description { state: "disabled" 0.0; \
2277 color: BUTTON_WARNING_STYLE_CLIPPER_DISABLED_COLOR_INC; \
2280 part { name: "icon_clipper"; \
2283 description { state: "default" 0.0; \
2284 color: BUTTON_WARNING_STYLE_NORMAL_COLOR_INC; \
2286 description { state: "clicked" 0.0; \
2287 color: BUTTON_WARNING_STYLE_PRESSED_COLOR_INC; \
2289 description { state: "disabled" 0.0; \
2290 color: BUTTON_WARNING_STYLE_DISABLED_COLOR_INC; \
2293 part { name: "over1"; \
2295 ignore_flags: ON_HOLD; \
2296 description { state: "default" 0.0; \
2298 min: min_width min_height; \
2304 ///////////////////////////////////////////////////////////////////////////////////////
2305 BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2307 ///////////////////////////////////////////////////////////////////////////////////////
2308 BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2310 ///////////////////////////////////////////////////////////////////////////////////////
2311 group { name: "elm/button/base/circle/empty";
2313 item: "focus_highlight" "on";
2316 image: "00_circle_button.png" COMP;
2317 image: "00_circle_button_press.png" COMP;
2318 image: "00_circle_button_dim.png" COMP;
2319 image: 00_circle_button_focus.png COMP;
2322 part { name: "button_image";
2324 description { state: "default" 0.0;
2325 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2326 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2328 image.normal: "00_circle_button.png";
2330 description { state: "clicked" 0.0;
2331 inherit: "default" 0.0;
2332 image.normal: "00_circle_button_press.png";
2334 description { state: "disabled" 0.0;
2335 inherit: "default" 0.0;
2336 image.normal: "00_circle_button_dim.png";
2339 part { name: "left_top_padding";
2342 description { state: "default" 0.0;
2343 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2344 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2347 rel1.to: "button_image";
2348 rel2.to: "button_image";
2351 part { name: "right_bottom_padding";
2354 description { state: "default" 0.0;
2355 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2356 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2363 rel2.to: "button_image";
2366 part { name: "elm.swallow.content";
2369 description { state: "default" 0.0;
2370 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2371 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2375 to: "left_top_padding";
2379 to: "right_bottom_padding";
2383 part { name: "elm.swallow.icon.shadow.proxy";
2385 clip_to: "elm.icon.proxy.clipper";
2387 description { state: "default" 0.0;
2388 source: "elm.swallow.content";
2390 to: "elm.swallow.content";
2391 offset: BUTTON_CIRCLE_STYLE_NORMAL_TOP_OFFSET_INC;
2394 to: "elm.swallow.content";
2395 offset: BUTTON_CIRCLE_STYLE_NORMAL_BOTTOM_OFFSET_INC;
2398 description { state: "clicked" 0.0;
2399 inherit: "default" 0.0;
2401 to: "elm.swallow.content";
2402 offset: BUTTON_CIRCLE_STYLE_PRESSED_TOP_OFFSET_INC;
2405 to: "elm.swallow.content";
2406 offset: BUTTON_CIRCLE_STYLE_PRESSED_BOTTOM_OFFSET_INC;
2409 description { state: "disabled" 0.0;
2410 inherit: "default" 0.0;
2413 part { name: "elm.swallow.icon.proxy";
2416 clip_to: "icon_clipper";
2417 description { state: "default" 0.0;
2418 source: "elm.swallow.content";
2419 rel1.to: "elm.swallow.content";
2420 rel2.to: "elm.swallow.content";
2423 part { name: "elm.icon.proxy.clipper";
2425 description { state: "default" 0.0;
2426 color: BUTTON_CIRCLE_STYLE_CLIPPER_DEFAULT_COLOR_INC;
2428 description { state: "clicked" 0.0;
2429 color: BUTTON_CIRCLE_STYLE_ICON_CLIPPER_PRESSED_COLOR_INC;
2431 description { state: "disabled" 0.0;
2432 color: BUTTON_CIRCLE_STYLE_ICON_CLIPPER_DISABLED_COLOR_INC;
2435 part { name: "icon_clipper";
2438 description { state: "default" 0.0;
2439 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2441 description { state: "clicked" 0.0;
2442 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2444 description { state: "disabled" 0.0;
2445 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2448 part { name: "focus_image";
2452 description { state: "default" 0.0;
2453 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2454 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2456 rel1.to : "button_image";
2457 rel2.to : "button_image";
2459 normal: "00_circle_button_focus.png";
2463 description { state: "focused" 0.0;
2464 inherit: "default" 0.0;
2468 part { name: "over1";
2470 ignore_flags: ON_HOLD;
2471 description { state: "default" 0.0;
2475 part { name: "over2";
2478 description { state: "default" 0.0;
2482 part { name: "disabler";
2484 description { state: "default" 0.0;
2488 description { state: "disabled" 0.0;
2489 inherit: "default" 0.0;
2495 program { name: "button_click";
2496 signal: "mouse,down,1";
2498 action: SIGNAL_EMIT "elm,action,press" "";
2499 after: "button_click_anim";
2501 program { name: "button_click_anim";
2502 action: STATE_SET "clicked" 0.0;
2503 target: "button_image";
2504 target: "elm.swallow.icon.shadow.proxy";
2505 target: "elm.icon.proxy.clipper";
2506 target: "icon_clipper";
2508 program { name: "button_double_click";
2509 signal: "mouse,down,1,double";
2511 after: "button_click_anim";
2513 program { name: "touch_snd";
2514 signal: "mouse,clicked,1";
2516 action: PLAY_SAMPLE "touch_sound" 1.0;
2517 after: button_unclick2;
2519 program { name: "button_unclick2";
2520 action: SIGNAL_EMIT "elm,action,click" "";
2522 program { name: "button_unclick";
2523 signal: "mouse,up,1";
2525 action: SIGNAL_EMIT "elm,action,unpress" "";
2526 after: "button_unclick_anim";
2528 program { name: "button_unclick_anim";
2529 action: STATE_SET "default" 0.0;
2530 target: "button_image";
2531 target: "elm.swallow.icon.shadow.proxy";
2532 target: "elm.icon.proxy.clipper";
2533 target: "icon_clipper";
2535 program { name: "disable";
2536 signal: "elm,state,disabled";
2538 action: STATE_SET "disabled" 0.0;
2540 target: "button_image";
2541 target: "elm.swallow.icon.shadow.proxy";
2542 target: "elm.icon.proxy.clipper";
2543 target: "icon_clipper";
2545 program { name: "enable";
2546 signal: "elm,state,enabled";
2548 action: STATE_SET "default" 0.0;
2550 target: "button_image";
2551 target: "elm.swallow.icon.shadow.proxy";
2552 target: "elm.icon.proxy.clipper";
2553 target: "icon_clipper";
2555 program { name: "action_focus";
2556 signal: "elm,action,focus_highlight,show";
2558 action: STATE_SET "focused" 0.0;
2559 target: "focus_image";
2561 program { name: "action_unfocus";
2562 signal: "elm,action,focus_highlight,hide";
2564 action: STATE_SET "default" 0.0;
2565 target: "focus_image";
2570 ///////////////////////////////////////////////////////////////////////////////////////
2571 #define BUTTON_EDIT_STYLES(style_name, image_normal, min_width, min_height) \
2572 group { name: "elm/button/base/contacts/"style_name; \
2573 alias: "elm/button/base/"style_name; \
2575 item: "focus_highlight" "on"; \
2578 image: "00_circle_button.png" COMP; \
2579 image: "00_circle_button_press.png" COMP; \
2580 image: "00_circle_button_dim.png" COMP; \
2581 image: image_normal COMP; \
2582 image: 00_circle_button_focus.png COMP;\
2585 part { name: "button_image"; \
2587 description { state: "default" 0.0; \
2588 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2589 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2590 image.normal: "00_circle_button.png"; \
2592 description { state: "clicked" 0.0; \
2593 inherit: "default" 0.0; \
2594 image.normal: "00_circle_button_press.png"; \
2596 description { state: "disabled" 0.0; \
2597 inherit: "default" 0.0; \
2598 image.normal: "00_circle_button_dim.png"; \
2601 part { name: "button_center_part"; \
2604 description { state: "default" 0.0; \
2605 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2606 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2607 image.normal: image_normal; \
2610 part { name: "elm.swallow.icon.shadow.proxy"; \
2612 clip_to: "elm.icon.proxy.clipper"; \
2614 description { state: "default" 0.0; \
2615 source: "button_center_part"; \
2617 to: "button_center_part"; \
2618 offset: BUTTON_EDIT_STYLE_NORMAL_TOP_OFFSET_INC; \
2621 to: "button_center_part"; \
2622 offset: BUTTON_EDIT_STYLE_NORMAL_BOTTOM_OFFSET_INC; \
2625 description { state: "clicked" 0.0; \
2626 inherit: "default" 0.0; \
2628 to: "button_center_part"; \
2629 offset: BUTTON_EDIT_STYLE_PRESSED_TOP_OFFSET_INC; \
2632 to: "button_center_part"; \
2633 offset: BUTTON_EDIT_STYLE_PRESSED_BOTTOM_OFFSET_INC; \
2636 description { state: "disabled" 0.0; \
2637 inherit: "default" 0.0; \
2640 part { name: "elm.swallow.icon.proxy"; \
2643 clip_to: "icon_clipper"; \
2644 description { state: "default" 0.0; \
2645 source: "button_center_part"; \
2646 rel1.to: "button_center_part"; \
2647 rel2.to: "button_center_part"; \
2650 part { name: "elm.icon.proxy.clipper"; \
2652 description { state: "default" 0.0; \
2653 color: BUTTON_EDIT_STYLE_CLIPPER_DEFAULT_COLOR_INC; \
2655 description { state: "clicked" 0.0; \
2656 color: BUTTON_EDIT_STYLE_ICON_CLIPPER_PRESSED_COLOR_INC; \
2658 description { state: "disabled" 0.0; \
2659 color: BUTTON_EDIT_STYLE_ICON_CLIPPER_DISABLED_COLOR_INC; \
2662 part { name: "icon_clipper"; \
2665 description { state: "default" 0.0; \
2666 color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
2668 description { state: "clicked" 0.0; \
2669 color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
2671 description { state: "disabled" 0.0; \
2672 color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
2675 part { name: "focus_image"; \
2679 description { state: "default" 0.0; \
2680 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2681 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2683 rel1.to : "button_image"; \
2684 rel2.to : "button_image"; \
2686 normal: "00_circle_button_focus.png"; \
2690 description { state: "focused" 0.0; \
2691 inherit: "default" 0.0; \
2695 part { name: "over1"; \
2698 ignore_flags: ON_HOLD; \
2699 description { state: "default" 0.0; \
2701 min: min_width min_height; \
2704 part { name: "over2"; \
2707 description { state: "default" 0.0; \
2711 part { name: "disabler"; \
2713 description { state: "default" 0.0; \
2717 description { state: "disabled" 0.0; \
2718 inherit: "default" 0.0; \
2724 program { name: "button_click"; \
2725 signal: "mouse,down,1"; \
2727 action: SIGNAL_EMIT "elm,action,press" ""; \
2728 after: "button_click_anim"; \
2730 program { name: "button_click_anim"; \
2731 action: STATE_SET "clicked" 0.0; \
2732 target: "button_image"; \
2733 target: "elm.swallow.icon.shadow.proxy"; \
2734 target: "elm.icon.proxy.clipper"; \
2735 target: "icon_clipper"; \
2737 program { name: "button_double_click"; \
2738 signal: "mouse,down,1,double"; \
2740 after: "button_click_anim"; \
2742 program { name: "button_unclick"; \
2743 signal: "mouse,up,1"; \
2745 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2746 after: "button_unclick_anim"; \
2748 program { name: "button_unclick_anim"; \
2749 action: STATE_SET "default" 0.0; \
2750 target: "button_image"; \
2751 target: "elm.swallow.icon.shadow.proxy"; \
2752 target: "elm.icon.proxy.clipper"; \
2753 target: "icon_clipper"; \
2755 program { name: "touch_snd"; \
2756 signal: "mouse,clicked,1"; \
2758 action: PLAY_SAMPLE "touch_sound" 1.0; \
2759 after: button_unclick3; \
2761 program { name: "button_unclick3"; \
2762 action: SIGNAL_EMIT "elm,action,click" ""; \
2764 program { name: "disable"; \
2765 signal: "elm,state,disabled"; \
2767 action: STATE_SET "disabled" 0.0; \
2768 target: "disabler"; \
2769 target: "button_image"; \
2770 target: "elm.swallow.icon.shadow.proxy"; \
2771 target: "elm.icon.proxy.clipper"; \
2772 target: "icon_clipper"; \
2774 program { name: "enable"; \
2775 signal: "elm,state,enabled"; \
2777 action: STATE_SET "default" 0.0; \
2778 target: "disabler"; \
2779 target: "button_image"; \
2780 target: "elm.swallow.icon.shadow.proxy"; \
2781 target: "elm.icon.proxy.clipper"; \
2782 target: "icon_clipper"; \
2784 program { name: "action_focus"; \
2785 signal: "elm,action,focus_highlight,show"; \
2787 action: STATE_SET "focused" 0.0; \
2788 target: "focus_image"; \
2790 program { name: "action_unfocus"; \
2791 signal: "elm,action,focus_highlight,hide"; \
2793 action: STATE_SET "default" 0.0; \
2794 target: "focus_image"; \
2798 ///////////////////////////////////////////////////////////////////////////////////////
2799 BUTTON_EDIT_STYLES("icon_plus", "00_button_add.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2801 ///////////////////////////////////////////////////////////////////////////////////////
2802 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_add.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2804 ///////////////////////////////////////////////////////////////////////////////////////
2805 BUTTON_EDIT_STYLES("icon_expand", "00_button_expand_closed.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2807 ///////////////////////////////////////////////////////////////////////////////////////
2808 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_expand_closed.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2810 ///////////////////////////////////////////////////////////////////////////////////////
2811 BUTTON_EDIT_STYLES("icon_expand_closed", "00_button_expand_closed.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2813 ///////////////////////////////////////////////////////////////////////////////////////
2814 BUTTON_EDIT_STYLES("icon_expand_opened", "00_button_expand_opened.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2816 ///////////////////////////////////////////////////////////////////////////////////////
2818 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
2819 group { name: "elm/button/base/contacts/"style_name; \
2820 alias: "elm/button/base/"style_name; \
2821 inherit: "elm/button/base/contacts/icon_plus"; \
2823 image: "00_circle_button_delete.png" COMP; \
2824 image: "00_circle_button_delete_press.png" COMP; \
2825 image: "00_circle_button_delete_dim.png" COMP; \
2826 image: "00_button_delete.png" COMP; \
2829 part { name: "button_image"; \
2831 description { state: "default" 0.0; \
2832 image.normal: "00_circle_button_delete.png"; \
2834 description { state: "clicked" 0.0; \
2835 inherit: "default" 0.0; \
2836 image.normal: "00_circle_button_delete_press.png"; \
2838 description { state: "disabled" 0.0; \
2839 inherit: "default" 0.0; \
2840 image.normal: "00_circle_button_delete_dim.png"; \
2843 part { name: "button_center_part"; \
2846 description { state: "default" 0.0; \
2847 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2848 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2849 image.normal: "00_button_delete.png"; \
2852 part { name: "elm.swallow.icon.shadow.proxy"; \
2854 clip_to: "elm.icon.proxy.clipper"; \
2856 description { state: "default" 0.0; \
2857 source: "button_center_part"; \
2859 to: "button_center_part"; \
2860 offset: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_TOP_OFFSET_INC; \
2863 to: "button_center_part"; \
2864 offset: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_BOTTOM_OFFSET_INC; \
2867 description { state: "clicked" 0.0; \
2868 inherit: "default" 0.0; \
2870 to: "button_center_part"; \
2871 offset: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_TOP_OFFSET_INC; \
2874 to: "button_center_part"; \
2875 offset: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_BOTTOM_OFFSET_INC; \
2878 description { state: "disabled" 0.0; \
2879 inherit: "default" 0.0; \
2882 part { name: "elm.icon.proxy.clipper"; \
2884 description { state: "default" 0.0; \
2885 color: BUTTON_CIRCLE_STYLE_MINUS_SHADOW_NORMAL_COLOR_INC; \
2887 description { state: "clicked" 0.0; \
2888 color: BUTTON_CIRCLE_STYLE_MINUS_SHADOW_PRESSED_COLOR_INC; \
2890 description { state: "disabled" 0.0; \
2891 color: BUTTON_CIRCLE_STYLE_MINUS_SHADOW_DISABLED_COLOR_INC; \
2894 part { name: "icon_clipper"; \
2897 description { state: "default" 0.0; \
2898 color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
2900 description { state: "clicked" 0.0; \
2901 color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
2903 description { state: "disabled" 0.0; \
2904 color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
2907 part { name: "over1"; \
2910 ignore_flags: ON_HOLD; \
2911 description { state: "default" 0.0; \
2913 min: min_width min_height; \
2919 ///////////////////////////////////////////////////////////////////////////////////////
2920 BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2922 ///////////////////////////////////////////////////////////////////////////////////////
2923 BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2925 ///////////////////////////////////////////////////////////////////////////////////////
2926 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
2927 group { name: "elm/button/base/"style_name; \
2929 item: "focus_highlight" "on"; \
2932 image: "00_button_01.png" COMP; \
2933 image: "00_button_01_press.png" COMP; \
2934 image: "00_button_01_dim.png" COMP; \
2935 image: image_normal COMP; \
2936 image: "00_button_01_focus.png" COMP; \
2939 part { name: "button_image";\
2942 description { state: "default" 0.0; \
2943 min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
2945 normal: "00_button_01.png"; \
2946 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
2950 description { state: "clicked" 0.0; \
2951 inherit: "default" 0.0; \
2952 image.normal: "00_button_01_press.png"; \
2954 description { state: "disabled" 0.0; \
2955 inherit: "default" 0.0; \
2956 image.normal: "00_button_01_dim.png"; \
2959 part { name: "focus_image"; \
2963 description { state: "default" 0.0; \
2965 rel1.to : "button_image"; \
2966 rel2.to : "button_image"; \
2968 normal: "00_button_01_focus.png"; \
2969 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
2973 description { state: "focused" 0.0; \
2974 inherit: "default" 0.0; \
2978 part { name: "padding_left_top"; \
2981 description { state: "default" 0.0; \
2983 rel2.relative: 0.0 0.0; \
2984 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
2988 part { name: "padding_right_bottom"; \
2991 description { state: "default" 0.0; \
2993 rel1.relative: 1.0 1.0; \
2994 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
2998 part { name: "jump_image"; \
3000 description { state: "default" 0.0; \
3001 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3002 max: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3004 relative: 1.0 0.0; \
3005 to_x: "padding_left_top"; \
3008 relative: 0.0 1.0; \
3009 to_x: "padding_right_bottom"; \
3011 image.normal: image_normal; \
3013 aspect_preference: VERTICAL; \
3016 part { name: "jump_image.shadow.proxy"; \
3019 clip_to: "elm.swallow.icon.shadow.proxy"; \
3020 description { state: "default" 0.0; \
3021 source: "jump_image"; \
3024 offset: BUTTON_JUMP_TO_NORMAL_TOP_OFFSET_INC; \
3028 offset: BUTTON_JUMP_TO_NORMAL_BOTTOM_OFFSET_INC; \
3031 description { state: "clicked" 0.0; \
3032 inherit: "default" 0.0; \
3035 offset: BUTTON_JUMP_TO_PRESSED_TOP_OFFSET_INC; \
3039 offset: BUTTON_JUMP_TO_PRESSED_BOTTOM_OFFSET_INC; \
3042 description { state: "disabled" 0.0; \
3043 inherit: "default" 0.0; \
3046 part { name: "jump_image.proxy"; \
3049 clip_to: "elm.swallow.icon.proxy"; \
3050 description { state: "default" 0.0; \
3051 source: "jump_image"; \
3052 rel1.to: "jump_image"; \
3053 rel2.to: "jump_image"; \
3056 part { name: "elm.swallow.icon.shadow.proxy"; \
3059 description { state: "default" 0.0; \
3060 color: BUTTON_JUMP_SHADOW_NORMAL_COLOR_INC; \
3062 description { state: "clicked" 0.0; \
3063 color: BUTTON_JUMP_SHADOW_PRESSED_COLOR_INC; \
3065 description { state: "disabled" 0.0; \
3066 color: BUTTON_JUMP_SHADOW_DISABLED_COLOR_INC; \
3069 part { name: "elm.swallow.icon.proxy"; \
3072 description { state: "default" 0.0; \
3073 color: BUTTON_JUMP_NORMAL_COLOR_INC; \
3075 description { state: "clicked" 0.0; \
3076 color: BUTTON_JUMP_PRESSED_COLOR_INC; \
3078 description { state: "disabled" 0.0; \
3079 color: BUTTON_JUMP_DISABLED_COLOR_INC; \
3082 part { name: "over1"; \
3085 ignore_flags: ON_HOLD; \
3086 description { state: "default" 0.0; \
3088 rel1.relative: 0.0 0.0; \
3089 rel2.relative: 1.0 1.0; \
3092 part { name: "over2"; \
3095 description { state: "default" 0.0; \
3101 program { name: "button_click"; \
3102 signal: "mouse,down,1"; \
3104 action: SIGNAL_EMIT "elm,action,press" ""; \
3105 after: "button_click_anim"; \
3107 program { name: "button_click_anim"; \
3108 action: STATE_SET "clicked" 0.0; \
3109 target: "button_image"; \
3110 target: "jump_image.shadow.proxy"; \
3111 target: "elm.swallow.icon.shadow.proxy"; \
3112 target: "elm.swallow.icon.proxy"; \
3114 program { name: "button_double_click"; \
3115 signal: "mouse,down,1,double"; \
3117 after: "button_click_anim"; \
3119 program { name: "button_unclick"; \
3120 signal: "mouse,up,1"; \
3122 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3123 after: "button_unclick_anim"; \
3125 program { name: "button_unclick_anim"; \
3126 action: STATE_SET "default" 0.0; \
3127 target: "button_image"; \
3128 target: "jump_image.shadow.proxy"; \
3129 target: "elm.swallow.icon.shadow.proxy"; \
3130 target: "elm.swallow.icon.proxy"; \
3132 program { name: "touch_snd"; \
3133 signal: "mouse,clicked,1"; \
3135 action: PLAY_SAMPLE "touch_sound" 1.0; \
3136 after: button_unclick3; \
3138 program { name: "button_unclick3"; \
3139 action: SIGNAL_EMIT "elm,action,click" ""; \
3141 program { name: "disable"; \
3142 signal: "elm,state,disabled"; \
3144 action: STATE_SET "disabled" 0.0; \
3145 target: "button_image"; \
3146 target: "jump_image.shadow.proxy"; \
3147 target: "elm.swallow.icon.shadow.proxy"; \
3148 target: "elm.swallow.icon.proxy"; \
3150 program { name: "enable"; \
3151 signal: "elm,state,enabled"; \
3153 action: STATE_SET "default" 0.0; \
3154 target: "button_image"; \
3155 target: "jump_image.shadow.proxy"; \
3156 target: "elm.swallow.icon.shadow.proxy"; \
3157 target: "elm.swallow.icon.proxy"; \
3159 program { name: "action_focus"; \
3160 signal: "elm,action,focus_highlight,show"; \
3162 action: STATE_SET "focused" 0.0; \
3163 target: "focus_image"; \
3165 program { name: "action_unfocus"; \
3166 signal: "elm,action,focus_highlight,hide"; \
3168 action: STATE_SET "default" 0.0; \
3169 target: "focus_image"; \
3174 ////////////////////////////////////////////////////////////////////////
3175 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3176 ////////////////////////////////////////////////////////////////////////
3177 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3179 ////////////////////////////////////////////////////////////////////////
3180 group { name: "elm/button/base/default";
3182 item: "focus_highlight" "on";
3185 image: "00_button_01.png" COMP;
3186 image: "00_button_01_press.png" COMP;
3187 image: "00_button_01_dim.png" COMP;
3188 image: "00_button_01_focus.png" COMP;
3191 style { name: "btn_base_default";
3192 base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3197 style { name: "btn_base_default_pressed";
3198 base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3203 style { name: "btn_base_default_dim";
3204 base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3209 style { name: "btn_base_default_focus";
3210 base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3217 public button_state = BUTTON_STATE_ENABLED;
3220 part { name: "button_image";
3222 description { state: "default" 0.0;
3223 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3225 normal: "00_button_01.png";
3226 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3230 description { state: "clicked" 0.0;
3231 inherit: "default" 0.0;
3232 image.normal: "00_button_01_press.png";
3234 description { state: "disabled" 0.0;
3235 inherit: "default" 0.0;
3236 image.normal: "00_button_01_dim.png";
3238 description { state: "focused" 0.0;
3239 inherit: "default" 0.0;
3240 image.normal: "00_button_01_press.png";
3243 part { name: "focus_image";
3247 description { state: "default" 0.0;
3249 rel1.to : "button_image";
3250 rel2.to : "button_image";
3252 normal: "00_button_01_focus.png";
3253 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3257 description { state: "focused" 0.0;
3258 inherit: "default" 0.0;
3262 part { name: "padding_left_top";
3266 description { state: "default" 0.0;
3268 rel2.relative: 0.0 0.0;
3269 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3274 part { name: "padding_right_bottom";
3278 description { state: "default" 0.0;
3280 rel1.relative: 1.0 1.0;
3281 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3286 part { name: "padding_icon_text";
3290 description { state: "default" 0.0; //when only icon or no icon is there
3296 to: "elm.swallow.content";
3298 rel2.to: "elm.swallow.content";
3301 description { state: "icononly" 0.0;
3302 inherit: "default" 0.0;
3304 description { state: "visible" 0.0; //when icon is visible
3305 inherit: "default" 0.0;
3306 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3309 part { name: "elm.swallow.content";
3313 description { state: "default" 0.0;
3319 to: "padding_left_top";
3323 to_x: "padding_left_top";
3324 to_y: "padding_right_bottom";
3327 description { state: "visible" 0.0;
3328 inherit: "default" 0.0;
3331 aspect_preference: VERTICAL;
3333 description { state: "icononly" 0.0;
3334 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3337 to_x: "padding_left_top";
3341 to_x: "padding_right_bottom";
3344 aspect_preference: VERTICAL;
3347 part { name: "elm.text";
3352 description { state: "default" 0.0;
3357 to_x: "padding_icon_text";
3358 to_y: "padding_left_top";
3362 to: "padding_right_bottom";
3365 style: "btn_base_default";
3368 description { state: "visible" 0.0;
3369 inherit: "default" 0.0;
3371 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3373 description { state: "clicked" 0.0;
3374 inherit: "default" 0.0;
3376 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3378 style: "btn_base_default_pressed";
3381 description { state: "disabled" 0.0;
3382 inherit: "default" 0.0;
3384 description { state: "disabled_visible" 0.0;
3385 inherit: "default" 0.0;
3388 style: "btn_base_default_dim";
3390 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3392 description { state: "focused" 0.0;
3393 inherit: "default" 0.0;
3396 style: "btn_base_default_focus";
3401 part { name: "over2";
3404 ignore_flags: ON_HOLD;
3405 description { state: "default" 0.0;
3409 part { name: "over3";
3412 description { state: "default" 0.0;
3416 part { name: "disclip";
3418 description { state: "default" 0.0;
3419 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3421 description { state: "disabled" 0.0;
3422 inherit: "default" 0.0;
3423 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3426 part { name: "disabler";
3428 description { state: "default" 0.0;
3432 description { state: "disabled" 0.0;
3433 inherit: "default" 0.0;
3439 program { name: "button_click";
3440 signal: "mouse,down,1";
3442 action: SIGNAL_EMIT "elm,action,press" "";
3443 after: "button_click_anim";
3445 program { name: "button_click_anim";
3446 action: STATE_SET "clicked" 0.0;
3447 target: "button_image";
3448 after: "text_clicked";
3450 program { name: "text_clicked";
3454 get_state(PART:"elm.text", st, 30, vl);
3455 if (!strcmp(st, "visible"))
3456 set_state(PART:"elm.text", "clicked", 0.0);
3459 program { name: "button_double_click";
3460 signal: "mouse,down,1,double";
3462 after: "button_click_anim";
3464 program { name: "button_unpress";
3465 action: SIGNAL_EMIT "elm,action,unpress" "";
3467 program { name: "button_mouseout_clicked";
3468 signal: "mouse,up,1";
3473 get_state(PART:"elm.swallow.content", st, 30, vl);
3474 if (strcmp(st, "icononly"))
3476 emit("elm,action,default,text,set", "");
3477 set_state(PART:"elm.text", "visible", 0.0);
3479 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3480 set_state(PART:"button_image", "default", 0.0);
3482 after: button_unpress;
3484 program { name: "touch_snd";
3485 signal: "mouse,clicked,1";
3487 action: PLAY_SAMPLE "touch_sound" 1.0;
3488 after: button_unclick3;
3490 program { name: "button_unclick3";
3491 action: SIGNAL_EMIT "elm,action,click" "";
3493 program { name: "text_show";
3494 signal: "elm,state,text,visible";
3499 get_state(PART:"elm.swallow.content", st, 30, vl);
3500 if (!strcmp(st, "icononly"))
3502 set_state(PART:"elm.swallow.content", "visible", 0.0);
3503 set_state(PART:"padding_icon_text", "visible", 0.0);
3505 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3506 set_state(PART:"elm.text", "visible", 0.0);
3508 set_state(PART:"elm.text", "disabled_visible", 0.0);
3511 program { name: "text_hide";
3512 signal: "elm,state,text,hidden";
3517 get_state(PART:"elm.swallow.content", st, 30, vl);
3518 if (!strcmp(st, "visible"))
3520 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3521 set_state(PART:"padding_icon_text", "icononly", 0.0);
3523 set_state(PART:"elm.text", "default", 0.0);
3526 program { name: "icon_show";
3527 signal: "elm,state,icon,visible";
3532 get_state(PART:"elm.text", st, 30, vl);
3533 if (!strcmp(st, "visible"))
3535 set_state(PART:"elm.swallow.content", "visible", 0.0);
3536 set_state(PART:"padding_icon_text", "visible", 0.0);
3540 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3541 set_state(PART:"padding_icon_text", "icononly", 0.0);
3545 program { name: "icon_hide";
3546 signal: "elm,state,icon,hidden";
3548 action: STATE_SET "default" 0.0;
3549 target: "elm.swallow.content";
3550 target: "padding_icon_text";
3552 program { name: "disable";
3553 signal: "elm,state,disabled";
3555 action: STATE_SET "disabled" 0.0;
3556 target: "button_image";
3559 after: "disable_text";
3561 program { name: "disable_text";
3565 get_state(PART:"elm.text", st, 30, vl);
3566 if (!strcmp(st, "visible"))
3567 set_state(PART:"elm.text", "disabled_visible", 0.0);
3569 set_state(PART:"elm.text", "disabled", 0.0);
3570 set_int(button_state, BUTTON_STATE_DISABLED);
3573 program { name: "enable";
3574 signal: "elm,state,enabled";
3576 action: STATE_SET "default" 0.0;
3577 target: "button_image";
3580 after: "enable_text";
3582 program { name: "enable_text";
3586 get_state(PART:"elm.text", st, 30, vl);
3587 if (!strcmp(st, "disabled_visible"))
3588 set_state(PART:"elm.text", "visible", 0.0);
3590 set_state(PART:"elm.text", "default", 0.0);
3591 set_int(button_state, BUTTON_STATE_ENABLED);
3594 program { name: "action_focus";
3595 signal: "elm,action,focus_highlight,show";
3597 action: STATE_SET "focused" 0.0;
3598 target: "focus_image";
3600 program { name: "action_unfocus";
3601 signal: "elm,action,focus_highlight,hide";
3603 action: STATE_SET "default" 0.0;
3604 target: "focus_image";
3609 ///////////////////////////////////////////////////////////////////////////////////////
3610 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal) \
3611 group { name: "elm/button/base/"style_name; \
3613 item: "focus_highlight" "on"; \
3616 image: image_normal COMP; \
3617 image: image_dim COMP; \
3618 image: "00_button_01.png" COMP; \
3619 image: "00_button_01_press.png" COMP; \
3620 image: "00_button_01_focus.png" COMP; \
3623 part { name: "button_image"; \
3625 description { state: "default" 0.0; \
3626 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3627 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3629 normal: "00_button_01.png"; \
3630 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3635 state: "clicked" 0.0; \
3636 inherit: "default" 0.0; \
3637 image.normal: "00_button_01_press.png"; \
3640 state: "disabled" 0.0; \
3641 inherit: "default" 0.0; \
3642 image.normal: "00_button_01_dim.png"; \
3645 state: "focused" 0.0; \
3646 inherit: "default" 0.0; \
3647 image.normal: "00_button_01_press.png"; \
3650 part { name: "focus_image"; \
3654 description { state: "default" 0.0; \
3655 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3656 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3658 rel1.to : "button_image"; \
3659 rel2.to : "button_image"; \
3661 normal: "00_button_01_focus.png"; \
3662 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3666 description { state: "focused" 0.0; \
3667 inherit: "default" 0.0; \
3671 part { name: "button_center_part"; \
3673 description { state: "default" 0.0; \
3674 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3675 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3676 image.normal: image_normal; \
3679 part { name: "elm.swallow.icon.shadow.proxy"; \
3681 clip_to: "elm.icon.proxy.clipper"; \
3683 description { state: "default" 0.0; \
3684 source: "button_center_part"; \
3686 to: "button_center_part"; \
3687 offset: BUTTON_COLORSELECTOR_NORMAL_TOP_OFFSET_INC; \
3690 to: "button_center_part"; \
3691 offset: BUTTON_COLORSELECTOR_NORMAL_BOTTOM_OFFSET_INC; \
3694 description { state: "clicked" 0.0; \
3695 inherit: "default" 0.0; \
3697 to: "button_center_part"; \
3698 offset: BUTTON_COLORSELECTOR_PRESSED_TOP_OFFSET_INC; \
3701 to: "button_center_part"; \
3702 offset: BUTTON_COLORSELECTOR_PRESSED_BOTTOM_OFFSET_INC; \
3705 description { state: "disabled" 0.0; \
3706 inherit: "default" 0.0; \
3709 part { name: "elm.swallow.icon.proxy"; \
3712 clip_to: "icon_clipper"; \
3713 description { state: "default" 0.0; \
3714 source: "button_center_part"; \
3715 rel1.to: "button_center_part"; \
3716 rel2.to: "button_center_part"; \
3719 part { name: "elm.icon.proxy.clipper"; \
3721 description { state: "default" 0.0; \
3722 color: BUTTON_COLORSELECTOR_SHADOW_NORMAL_COLOR_INC; \
3724 description { state: "clicked" 0.0; \
3725 color: BUTTON_COLORSELECTOR_SHADOW_PRESSED_COLOR_INC; \
3727 description { state: "disabled" 0.0; \
3728 color: BUTTON_COLORSELECTOR_SHADOW_DISABLED_COLOR_INC; \
3731 part { name: "icon_clipper"; \
3734 description { state: "default" 0.0; \
3735 color: BUTTON_COLORSELECTOR_NORMAL_COLOR_INC; \
3737 description { state: "clicked" 0.0; \
3738 color: BUTTON_COLORSELECTOR_PRESSED_COLOR_INC; \
3740 description { state: "disabled" 0.0; \
3741 color: BUTTON_COLORSELECTOR_DISABLED_COLOR_INC; \
3744 part { name: "over1"; \
3746 ignore_flags: ON_HOLD; \
3747 description { state: "default" 0.0; \
3751 part { name: "over2"; \
3754 description { state: "default" 0.0; \
3758 part { name: "disabler"; \
3760 description { state: "default" 0.0; \
3764 description { state: "disabled" 0.0; \
3765 inherit: "default" 0.0; \
3771 program { name: "button_click"; \
3772 signal: "mouse,down,1"; \
3774 action: SIGNAL_EMIT "elm,action,press" ""; \
3775 after: "button_click_anim"; \
3777 program { name: "button_click_anim"; \
3778 action: STATE_SET "clicked" 0.0; \
3779 target: "button_image"; \
3780 target: "elm.swallow.icon.proxy"; \
3781 target: "elm.icon.proxy.clipper"; \
3782 target: ""icon_clipper""; \
3784 program { name: "button_double_click"; \
3785 signal: "mouse,down,1,double"; \
3787 after: "button_click_anim"; \
3789 program { name: "button_unclick"; \
3790 signal: "mouse,up,1"; \
3792 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3793 after: "button_unclick_anim"; \
3795 program { name: "button_unclick_anim"; \
3796 action: STATE_SET "default" 0.0; \
3797 target: "button_image"; \
3798 target: "elm.swallow.icon.proxy"; \
3799 target: "elm.icon.proxy.clipper"; \
3800 target: ""icon_clipper""; \
3802 program { name: "touch_snd"; \
3803 signal: "mouse,clicked,1"; \
3805 action: PLAY_SAMPLE "touch_sound" 1.0; \
3806 after: button_unclick3; \
3808 program { name: "button_unclick3"; \
3809 action: SIGNAL_EMIT "elm,action,click" ""; \
3811 program { name: "disable"; \
3812 signal: "elm,state,disabled"; \
3814 action: STATE_SET "disabled" 0.0; \
3815 target: "disabler"; \
3816 target: "button_image"; \
3817 target: "elm.swallow.icon.proxy"; \
3818 target: "elm.icon.proxy.clipper"; \
3819 target: ""icon_clipper""; \
3821 program { name: "enable"; \
3822 signal: "elm,state,enabled"; \
3824 action: STATE_SET "default" 0.0; \
3825 target: "disabler"; \
3826 target: "button_image"; \
3827 target: "elm.swallow.icon.proxy"; \
3828 target: "elm.icon.proxy.clipper"; \
3829 target: ""icon_clipper""; \
3831 program { name: "action_focus"; \
3832 signal: "elm,action,focus_highlight,show"; \
3834 action: STATE_SET "focused" 0.0; \
3835 target: "focus_image"; \
3837 program { name: "action_unfocus"; \
3838 signal: "elm,action,focus_highlight,hide"; \
3840 action: STATE_SET "default" 0.0; \
3841 target: "focus_image"; \
3845 ///////////////////////////////////////////////////////////////////////////////////////
3846 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png")
3847 ///////////////////////////////////////////////////////////////////////////////////////
3848 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png")
3849 ///////////////////////////////////////////////////////////////////////////////////////
3851 group { name: "elm/button/base/multibuttonentry";
3852 alias: "elm/button/base/text_only/multibuttonentry";
3854 item: "focus_highlight" "on";
3857 image: "00_contacts_button.png" COMP;
3858 image: "00_contacts_button_press.png" COMP;
3859 image: "00_contacts_button_focus.png" COMP;
3860 image: "00_contacts_button_dim.png" COMP;
3863 style { name: "btn_base_multibuttonentry";
3864 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3869 style { name: "btn_base_multibuttonentry_pressed";
3870 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3875 style { name: "btn_base_multibuttonentry_dim";
3876 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3881 style { name: "btn_base_multibuttonentry_focus";
3882 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3889 public button_state = BUTTON_STATE_ENABLED;
3892 part { name: "button_image";
3894 description { state: "default" 0.0;
3896 to_x: "padding.left";
3900 to_x: "padding.right";
3903 min: BUTTON_CONTACT_BG_MIN_INC;
3905 normal: "00_contacts_button.png";
3906 border: BUTTON_CONTACT_BG_BORDER_INC;
3910 description { state: "clicked" 0.0;
3911 inherit: "default" 0.0;
3912 image.normal: "00_contacts_button_press.png";
3914 description { state: "disabled" 0.0;
3915 inherit: "default" 0.0;
3916 image.normal: "00_contacts_button_dim.png";
3918 description { state: "focused" 0.0;
3919 inherit: "default" 0.0;
3920 image.normal: "00_contacts_button_press.png";
3923 part { name: "focus_image";
3927 description { state: "default" 0.0;
3929 rel1.to : "button_image";
3930 rel2.to : "button_image";
3932 normal: "00_contacts_button_focus.png";
3933 border: BUTTON_CONTACT_BG_BORDER_INC;
3937 description { state: "focused" 0.0;
3938 inherit: "default" 0.0;
3942 part { name: "padding.left";
3945 description { state: "default" 0.0;
3947 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
3957 part { name: "padding.right";
3960 description { state: "default" 0.0;
3962 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
3972 part { name: "elm.text";
3976 description { state: "default" 0.0;
3980 style: "btn_base_multibuttonentry";
3984 description { state: "visible" 0.0;
3985 inherit: "default" 0.0;
3989 description { state: "clicked" 0.0;
3990 inherit: "default" 0.0;
3994 style: "btn_base_multibuttonentry_pressed";
3997 description { state: "disabled" 0.0;
3998 inherit: "default" 0.0;
4000 description { state: "disabled_visible" 0.0;
4001 inherit: "default" 0.0;
4004 style: "btn_base_multibuttonentry_dim";
4008 description { state: "focused" 0.0;
4009 inherit: "default" 0.0;
4012 style: "btn_base_multibuttonentry_focus";
4017 part { name: "over1";
4020 description { state: "default" 0.0;
4021 rel2.relative: 1.0 0.5;
4025 part { name: "over2";
4028 ignore_flags: ON_HOLD;
4029 description { state: "default" 0.0;
4030 rel1.to: "button_image";
4031 rel2.to: "button_image";
4035 part { name: "over3";
4038 description { state: "default" 0.0;
4039 rel1.to: "button_image";
4040 rel2.to: "button_image";
4044 part { name: "disabler";
4046 description { state: "default" 0.0;
4047 rel1.to: "button_image";
4048 rel2.to: "button_image";
4052 description { state: "disabled" 0.0;
4053 inherit: "default" 0.0;
4059 program { name: "button_click";
4060 signal: "mouse,down,1";
4062 action: SIGNAL_EMIT "elm,action,press" "";
4063 after: "button_click_anim";
4065 program { name: "button_click_anim";
4066 action: STATE_SET "clicked" 0.0;
4067 target: "button_image";
4070 program { name: "button_double_click";
4071 signal: "mouse,down,1,double";
4073 after: "button_click_anim";
4075 program { name: "button_unpress";
4076 action: SIGNAL_EMIT "elm,action,unpress" "";
4078 program { name: "button_mouseout_clicked";
4079 signal: "mouse,up,1";
4084 get_state(PART:"elm.text", st, 30, vl);
4085 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4087 emit("elm,action,default,text,set", "");
4088 set_state(PART:"elm.text", "visible", 0.0);
4090 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4091 set_state(PART:"button_image", "default", 0.0);
4093 after: button_unpress;
4095 program { name: "touch_snd";
4096 signal: "mouse,clicked,1";
4098 action: PLAY_SAMPLE "touch_sound" 1.0;
4099 after: button_unclick3;
4101 program { name: "button_unclick3";
4102 action: SIGNAL_EMIT "elm,action,click" "";
4104 program { name: "text_show";
4105 signal: "elm,state,text,visible";
4108 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4109 set_state(PART:"elm.text", "visible", 0.0);
4111 set_state(PART:"elm.text", "disabled_visible", 0.0);
4114 program { name: "text_hide";
4115 signal: "elm,state,text,hidden";
4117 action: STATE_SET "default" 0.0;
4120 program { name: "disable";
4121 signal: "elm,state,disabled";
4123 action: STATE_SET "disabled" 0.0;
4124 target: "button_image";
4126 after: "disable_text";
4128 program { name: "disable_text";
4132 get_state(PART:"elm.text", st, 30, vl);
4133 if (!strcmp(st, "visible"))
4134 set_state(PART:"elm.text", "disabled_visible", 0.0);
4136 set_state(PART:"elm.text", "disabled", 0.0);
4137 set_int(button_state, BUTTON_STATE_DISABLED);
4140 program { name: "enable";
4141 signal: "elm,state,enabled";
4143 action: STATE_SET "default" 0.0;
4144 target: "button_image";
4146 after: "enable_text";
4148 program { name: "enable_text";
4152 get_state(PART:"elm.text", st, 30, vl);
4153 if (!strcmp(st, "disabled_visible"))
4154 set_state(PART:"elm.text", "visible", 0.0);
4156 set_state(PART:"elm.text", "default", 0.0);
4157 set_int(button_state, BUTTON_STATE_ENABLED);
4160 program { name: "action_focus";
4161 signal: "elm,action,focus_highlight,show";
4163 action: STATE_SET "focused" 0.0;
4164 target: "focus_image";
4166 program { name: "action_unfocus";
4167 signal: "elm,action,focus_highlight,hide";
4169 action: STATE_SET "default" 0.0;
4170 target: "focus_image";
4175 ///////////////////////////////////////////////////////////////////////////////////////
4176 group { name: "elm/button/base/naviframe/back_btn/default";
4177 alias: "elm/button/base/naviframe/prev_btn/default";
4178 alias: "elm/button/base/naviframe/end_btn/default";
4180 item: "focus_highlight" "on";
4183 image: "00_icon_back.png" COMP;
4184 image: "00_icon_SIP_close.png" COMP;
4185 image: "00_icon_focus.png" COMP;
4188 part { name: "button_image";
4191 description { state: "default" 0.0;
4192 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4193 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4196 description { state: "landscape" 0.0;
4197 min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4198 max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4202 part { name: "focus_image";
4206 description { state: "default" 0.0;
4208 rel1.to : "button_image";
4209 rel2.to : "button_image";
4211 normal: "00_icon_focus.png";
4215 description { state: "focused" 0.0;
4216 inherit: "default" 0.0;
4220 part { name: "back_button";
4223 clip_to: "back_button.clipper";
4224 description { state: "default" 0.0;
4225 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4226 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4228 rel1.to: "button_image";
4229 rel2.to: "button_image";
4230 image.normal: "00_icon_back.png";
4232 description { state: "compress" 0.0;
4233 inherit: "default" 0.0;
4234 image.normal: "00_icon_SIP_close.png";
4237 part { name: "back_button.clipper";
4239 description { state: "default" 0.0;
4240 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4242 description { state: "clicked" 0.0;
4243 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4245 description { state: "disabled" 0.0;
4246 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4249 part { name: "over2";
4251 ignore_flags: ON_HOLD;
4252 description { state: "default" 0.0;
4256 part { name: "over3";
4259 description { state: "default" 0.0;
4263 part { name: "disabler";
4265 description { state: "default" 0.0;
4269 description { state: "disabled" 0.0;
4270 inherit: "default" 0.0;
4276 program { name: "button_click";
4277 signal: "mouse,down,1";
4279 action: SIGNAL_EMIT "elm,action,press" "";
4280 after: "button_click_anim";
4282 program { name: "button_click_anim";
4284 set_state(PART:"back_button.clipper", "clicked", 0.0);
4287 program { name: "button_double_click";
4288 signal: "mouse,down,1,double";
4290 after: "button_click_anim";
4292 program { name: "button_unclick";
4293 signal: "mouse,up,1";
4295 action: SIGNAL_EMIT "elm,action,unpress" "";
4296 after: "button_unclick_anim";
4298 program { name: "button_unclick_anim";
4300 set_state(PART:"back_button.clipper", "default", 0.0);
4303 program { name: "touch_snd";
4304 signal: "mouse,clicked,1";
4306 action: PLAY_SAMPLE "touch_sound" 1.0;
4307 after: button_unclick3;
4309 program { name: "button_unclick3";
4310 action: SIGNAL_EMIT "elm,action,click" "";
4312 program { name: "disable";
4313 signal: "elm,state,disabled";
4316 set_state(PART:"back_button.clipper", "disabled", 0.0);
4319 program { name: "enable";
4320 signal: "elm,state,enabled";
4323 set_state(PART:"back_button.clipper", "default", 0.0);
4326 program { name: "change_to_landscape";
4327 signal: "elm,state,landscape";
4329 action: STATE_SET "landscape" 0.0;
4330 target: "button_image";
4332 program { name: "change_to_portrait";
4333 signal: "elm,state,portrait";
4335 action: STATE_SET "default" 0.0;
4336 target: "button_image";
4338 program { name: "landscape_mode";
4340 signal: "elm,state,orient,90";
4341 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4343 program { name: "landscape_mode2";
4345 signal: "elm,state,orient,270";
4346 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4348 program { name: "portrait_mode";
4350 signal: "elm,state,orient,0";
4351 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4353 program { name: "portrait_mode2";
4355 signal: "elm,state,orient,180";
4356 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4358 program { name: "display_compress_mode";
4359 signal: "elm,state,display,compress";
4361 action: STATE_SET "compress" 0.0;
4362 target: "back_button";
4364 program { name: "display_default_mode";
4365 signal: "elm,state,display,default";
4367 action: STATE_SET "default" 0.0;
4368 target: "back_button";
4370 program { name: "action_focus";
4371 signal: "elm,action,focus_highlight,show";
4373 action: STATE_SET "focused" 0.0;
4374 target: "focus_image";
4376 program { name: "action_unfocus";
4377 signal: "elm,action,focus_highlight,hide";
4379 action: STATE_SET "default" 0.0;
4380 target: "focus_image";
4385 ////////////////////////////////////////////////////////////////////
4386 group { name: "elm/button/base/naviframe/title_icon";
4388 item: "focus_highlight" "on";
4391 image: "00_icon_focus.png" COMP;
4394 part { name: "button_image";
4397 description { state: "default" 0.0;
4399 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
4400 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
4402 description { state: "landscape" 0.0;
4404 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
4405 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
4408 part { name: "focus_image";
4412 description { state: "default" 0.0;
4414 rel1.to : "button_image";
4415 rel2.to : "button_image";
4417 normal: "00_icon_focus.png";
4421 description { state: "focused" 0.0;
4422 inherit: "default" 0.0;
4426 part { name: "elm.swallow.content";
4429 clip_to: "elm.icon.clipper";
4430 description { state: "default" 0.0;
4432 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
4434 rel1 { to: "button_image"; }
4435 rel2 { to: "button_image"; }
4437 description { state: "visible" 0.0;
4438 inherit: "default" 0.0;
4442 part { name: "elm.icon.clipper";
4444 description { state: "default" 0.0;
4446 description { state: "clicked" 0.0;
4448 description { state: "disabled" 0.0;
4449 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4452 part { name: "elm.swallow.content.proxy_shadow";
4455 clip_to: "elm.icon.proxy_shadow.clipper";
4456 description { state: "default" 0.0;
4457 source: "elm.swallow.content";
4458 rel1 { to: "elm.swallow.content"; offset: 0 2; }
4459 rel2 { to: "elm.swallow.content"; offset: -1 1; }
4461 description { state: "clicked" 0.0;
4462 inherit: "default" 0.0;
4466 description { state: "disabled" 0.0;
4470 part { name: "elm.icon.proxy_shadow.clipper";
4472 description { state: "default" 0.0;
4473 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_SHADOW_COLOR_INC;
4475 description { state: "clicked" 0.0;
4476 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_SHADOW_COLOR_INC;
4478 description { state: "disabled" 0.0;
4482 part { name: "elm.swallow.content.proxy";
4485 clip_to: "elm.icon.proxy.clipper";
4486 description { state: "default" 0.0;
4487 source: "elm.swallow.content";
4488 rel1 { to: "elm.swallow.content"; }
4489 rel2 { to: "elm.swallow.content"; }
4492 part { name: "elm.icon.proxy.clipper";
4494 description { state: "default" 0.0;
4495 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4497 description { state: "clicked" 0.0;
4498 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4500 description { state: "disabled" 0.0;
4504 part { name: "over2";
4506 ignore_flags: ON_HOLD;
4507 description { state: "default" 0.0;
4511 part { name: "over3";
4514 description { state: "default" 0.0;
4518 part { name: "disabler";
4520 description { state: "default" 0.0;
4524 description { state: "disabled" 0.0;
4525 inherit: "default" 0.0;
4531 program { name: "button_click";
4532 signal: "mouse,down,1";
4534 action: SIGNAL_EMIT "elm,action,press" "";
4535 after: "button_click_anim";
4537 program { name: "button_click_anim";
4539 set_state(PART:"elm.icon.proxy_shadow.clipper", "clicked", 0.0);
4540 set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0);
4541 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
4542 set_state(PART:"elm.swallow.content.proxy_shadow", "clicked", 0.0);
4545 program { name: "button_double_click";
4546 signal: "mouse,down,1,double";
4548 after: "button_click_anim";
4550 program { name: "button_unpress";
4551 action: SIGNAL_EMIT "elm,action,unpress" "";
4553 program { name: "button_mouseout_clicked";
4554 signal: "mouse,up,1";
4557 set_state(PART:"elm.icon.proxy_shadow.clipper", "default", 0.0);
4558 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
4559 set_state(PART:"elm.icon.clipper", "default", 0.0);
4560 set_state(PART:"elm.swallow.content.proxy_shadow", "default", 0.0);
4562 after: button_unpress;
4564 program { name: "touch_snd";
4565 signal: "mouse,clicked,1";
4567 action: PLAY_SAMPLE "touch_sound" 1.0;
4568 after: button_unclick3;
4570 program { name: "button_unclick3";
4571 action: SIGNAL_EMIT "elm,action,click" "";
4573 program { name: "icon_show";
4574 signal: "elm,state,icon,visible";
4576 action: STATE_SET "visible" 0.0;
4577 target: "elm.swallow.content";
4579 program { name: "icon_hide";
4580 signal: "elm,state,icon,hidden";
4582 action: STATE_SET "default" 0.0;
4583 target: "elm.swallow.content";
4585 program { name: "disable";
4586 signal: "elm,state,disabled";
4589 set_state(PART:"disabler", "disabled", 0.0);
4590 set_state(PART:"elm.icon.proxy_shadow.clipper", "disabled", 0.0);
4591 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
4592 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
4593 set_state(PART:"elm.swallow.content.proxy_shadow", "disabled", 0.0);
4596 program { name: "enable";
4597 signal: "elm,state,enabled";
4600 set_state(PART:"disabler", "default", 0.0);
4601 set_state(PART:"elm.icon.proxy_shadow.clipper", "default", 0.0);
4602 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
4603 set_state(PART:"elm.icon.clipper", "default", 0.0);
4604 set_state(PART:"elm.swallow.content.proxy_shadow", "default", 0.0);
4607 program { name: "change_to_landscape";
4608 signal: "elm,state,landscape";
4610 action: STATE_SET "landscape" 0.0;
4611 target: "button_image";
4613 program { name: "change_to_portrait";
4614 signal: "elm,state,portrait";
4616 action: STATE_SET "default" 0.0;
4617 target: "button_image";
4619 program { name: "landscape_mode";
4621 signal: "elm,state,orient,90";
4622 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4624 program { name: "landscape_mode2";
4626 signal: "elm,state,orient,270";
4627 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4629 program { name: "portrait_mode";
4631 signal: "elm,state,orient,0";
4632 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4634 program { name: "portrait_mode2";
4636 signal: "elm,state,orient,180";
4637 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4639 program { name: "action_focus";
4640 signal: "elm,action,focus_highlight,show";
4642 action: STATE_SET "focused" 0.0;
4643 target: "focus_image";
4645 program { name: "action_unfocus";
4646 signal: "elm,action,focus_highlight,hide";
4648 action: STATE_SET "default" 0.0;
4649 target: "focus_image";
4654 ////////////////////////////////////////////////////////////////////
4655 group { name: "elm/button/base/naviframe/title_text";
4657 image: "00_title_press.png" COMP;
4660 public landscape = 0;
4661 public disabled = 0;
4664 style { name: "btn_naviframe_title_text";
4665 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=far_shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4670 style { name: "btn_naviframe_title_text_disabled";
4671 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4676 style { name: "btn_naviframe_title_text_pressed";
4677 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4684 part { name: "button_bg";
4687 description { state: "default" 0.0;
4689 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_INC;
4690 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MAX_INC;
4692 description { state: "landscape" 0.0;
4694 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_INC;
4695 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MAX_INC;
4698 part { name: "button_image";
4701 description { state: "default" 0.0;
4703 rel1 { to: "button_bg"; }
4704 rel2 { to: "button_bg"; }
4706 description { state: "clicked" 0.0;
4707 inherit: "default" 0.0;
4710 normal: "00_title_press.png";
4711 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4715 description { state: "disabled" 0.0;
4716 inherit: "default" 0.0;
4719 part { name: "left_padding";
4722 description { state: "default" 0.0;
4724 min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
4725 max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
4728 rel1 { relative: 0.0 0.0; to: "button_bg"; }
4729 rel2 { relative: 0.0 1.0; to: "button_bg"; }
4732 part { name: "right_padding";
4735 description { state: "default" 0.0;
4737 min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
4738 max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
4741 rel1 { relative: 1.0 0.0; to: "button_bg"; }
4742 rel2 { relative: 1.0 1.0; to: "button_bg"; }
4745 part { name: "elm.text";
4749 description { state: "default" 0.0;
4750 min: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MIN_INC;
4751 max: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MAX_INC;
4752 rel1 { relative: 1.0 0.0; to: "left_padding"; }
4753 rel2 { relative: 0.0 1.0; to: "right_padding"; }
4755 style: "btn_naviframe_title_text";
4756 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4760 description { state: "disabled" 0.0;
4761 inherit: "default" 0.0;
4763 style: "btn_naviframe_title_text_disabled";
4764 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4768 description { state: "pressed" 0.0;
4769 inherit: "default" 0.0;
4771 style: "btn_naviframe_title_text_pressed";
4772 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4776 description { state: "landscape" 0.0;
4777 inherit: "default" 0.0;
4778 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MIN_INC;
4779 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MAX_INC;
4781 description { state: "landscape_disabled" 0.0;
4782 inherit: "landscape" 0.0;
4784 style: "btn_naviframe_title_text_disabled";
4785 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4789 description { state: "landscape_pressed" 0.0;
4790 inherit: "landscape" 0.0;
4792 style: "btn_naviframe_title_text_pressed";
4793 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4798 part { name: "over2";
4800 ignore_flags: ON_HOLD;
4801 description { state: "default" 0.0;
4805 part { name: "over3";
4808 description { state: "default" 0.0;
4812 part { name: "disabler";
4814 description { state: "default" 0.0;
4818 description { state: "disabled" 0.0;
4819 inherit: "default" 0.0;
4825 program { name: "button_click";
4826 signal: "mouse,down,1";
4828 action: SIGNAL_EMIT "elm,action,press" "";
4829 after: "button_click_anim";
4831 program { name: "button_click_anim";
4833 set_state(PART:"button_image", "clicked", 0.0);
4835 if (get_int(landscape))
4836 set_state(PART:"elm.text", "landscape_pressed", 0.0);
4838 set_state(PART:"elm.text", "pressed", 0.0);
4841 program { name: "button_double_click";
4842 signal: "mouse,down,1,double";
4844 after: "button_click_anim";
4846 program { name: "button_unclick";
4847 signal: "mouse,up,1";
4849 action: SIGNAL_EMIT "elm,action,unpress" "";
4850 after: "button_unclick_anim";
4852 program { name: "button_unclick_anim";
4854 set_state(PART:"button_image", "default", 0.0);
4856 if (get_int(landscape))
4857 set_state(PART:"elm.text", "landscape", 0.0);
4859 set_state(PART:"elm.text", "default", 0.0);
4862 program { name: "touch_snd";
4863 signal: "mouse,clicked,1";
4865 action: PLAY_SAMPLE "touch_sound" 1.0;
4866 after: "button_unclick3";
4868 program { name: "button_unclick3";
4869 action: SIGNAL_EMIT "elm,action,click" "";
4871 program { name: "disable";
4872 signal: "elm,state,disabled";
4875 set_int(disabled, 1);
4876 set_state(PART:"disabler", "disabled", 0.0);
4877 set_state(PART:"button_image", "disabled", 0.0);
4879 if (get_int(landscape))
4880 set_state(PART:"elm.text", "landscape_disabled", 0.0);
4882 set_state(PART:"elm.text", "disabled", 0.0);
4885 program { name: "enable";
4886 signal: "elm,state,enabled";
4889 set_int(disabled, 0);
4890 set_state(PART:"disabler", "default", 0.0);
4891 set_state(PART:"button_image", "default", 0.0);
4893 if (get_int(landscape))
4894 set_state(PART:"elm.text", "landscape", 0.0);
4896 set_state(PART:"elm.text", "default", 0.0);
4899 program { name: "change_to_landscape";
4900 signal: "elm,state,landscape";
4903 set_int(landscape, 1);
4904 set_state(PART:"button_bg", "landscape", 0.0);
4906 if (get_int(disabled))
4907 set_state(PART:"elm.text", "landscape_disabled", 0.0);
4909 set_state(PART:"elm.text", "landscape", 0.0);
4912 program { name: "change_to_portrait";
4913 signal: "elm,state,portrait";
4916 set_int(landscape, 0);
4917 set_state(PART:"button_bg", "default", 0.0);
4919 if (get_int(disabled))
4920 set_state(PART:"elm.text", "disabled", 0.0);
4922 set_state(PART:"elm.text", "default", 0.0);
4925 program { name: "landscape_mode";
4927 signal: "elm,state,orient,90";
4928 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4930 program { name: "landscape_mode2";
4932 signal: "elm,state,orient,270";
4933 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4935 program { name: "portrait_mode";
4937 signal: "elm,state,orient,0";
4938 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4940 program { name: "portrait_mode2";
4942 signal: "elm,state,orient,180";
4943 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4948 /////////////////////////////////////////////////////////////////////////////////////////
4949 group { name: "elm/button/base/naviframe/more/default";
4951 item: "focus_highlight" "on";
4954 image: "00_icon_more.png" COMP;
4955 image: "00_icon_focus.png" COMP;
4958 part { name: "button_image";
4961 description { state: "default" 0.0;
4962 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
4963 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
4966 description { state: "landscape" 0.0;
4967 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
4968 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
4972 part { name: "focus_image";
4976 description { state: "default" 0.0;
4978 rel1.to : "button_image";
4979 rel2.to : "button_image";
4981 normal: "00_icon_focus.png";
4985 description { state: "focused" 0.0;
4986 inherit: "default" 0.0;
4990 part { name: "more_image";
4993 clip_to: "more_image.clipper";
4994 description { state: "default" 0.0;
4995 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
4996 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
4998 rel1.to: "button_image";
4999 rel2.to: "button_image";
5000 image.normal: "00_icon_more.png";
5003 part { name: "more_image.clipper";
5005 description { state: "default" 0.0;
5006 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5008 description { state: "clicked" 0.0;
5009 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5011 description { state: "disabled" 0.0;
5012 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5015 part { name: "over2";
5017 ignore_flags: ON_HOLD;
5018 description { state: "default" 0.0;
5022 part { name: "over3";
5025 description { state: "default" 0.0;
5029 part { name: "disabler";
5031 description { state: "default" 0.0;
5035 description { state: "disabled" 0.0;
5036 inherit: "default" 0.0;
5042 program { name: "button_click";
5043 signal: "mouse,down,1";
5045 action: SIGNAL_EMIT "elm,action,press" "";
5046 after: "button_click_anim";
5048 program { name: "button_click_anim";
5050 set_state(PART:"more_image.clipper", "clicked", 0.0);
5053 program { name: "button_double_click";
5054 signal: "mouse,down,1,double";
5056 after: "button_click_anim";
5058 program { name: "button_unclick";
5059 signal: "mouse,up,1";
5061 action: SIGNAL_EMIT "elm,action,unpress" "";
5062 after: "button_unclick_anim";
5064 program { name: "button_unclick_anim";
5066 set_state(PART:"more_image.clipper", "default", 0.0);
5069 program { name: "touch_snd";
5070 signal: "mouse,clicked,1";
5072 action: PLAY_SAMPLE "touch_sound" 1.0;
5073 after: button_unclick3;
5075 program { name: "button_unclick3";
5076 action: SIGNAL_EMIT "elm,action,click" "";
5078 program { name: "disable";
5079 signal: "elm,state,disabled";
5082 set_state(PART:"disabler", "disabled", 0.0);
5083 set_state(PART:"more_image.clipper", "disabled", 0.0);
5086 program { name: "enable";
5087 signal: "elm,state,enabled";
5090 set_state(PART:"disabler", "default", 0.0);
5091 set_state(PART:"more_image.clipper", "default", 0.0);
5094 program { name: "change_to_landscape";
5095 signal: "elm,state,landscape";
5097 action: STATE_SET "landscape" 0.0;
5098 target: "button_image";
5100 program { name: "change_to_portrait";
5101 signal: "elm,state,portrait";
5103 action: STATE_SET "default" 0.0;
5104 target: "button_image";
5106 program { name: "landscape_mode";
5108 signal: "elm,state,orient,90";
5109 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5111 program { name: "landscape_mode2";
5113 signal: "elm,state,orient,270";
5114 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5116 program { name: "portrait_mode";
5118 signal: "elm,state,orient,0";
5119 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5121 program { name: "portrait_mode2";
5123 signal: "elm,state,orient,180";
5124 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5126 program { name: "action_focus";
5127 signal: "elm,action,focus_highlight,show";
5129 action: STATE_SET "focused" 0.0;
5130 target: "focus_image";
5132 program { name: "action_unfocus";
5133 signal: "elm,action,focus_highlight,hide";
5135 action: STATE_SET "default" 0.0;
5136 target: "focus_image";
5141 ///////////////////////////////////////////////////////////////////////////////////////
5142 group { name: "elm/button/base/expandable_number";
5143 alias: "elm/button/base/text_only/expandable_number";
5145 item: "focus_highlight" "on";
5148 image: "00_button_01.png" COMP;
5149 image: "00_button_01_press.png" COMP;
5150 image: "00_button_01_dim.png" COMP;
5151 image: "00_arrow_expand.png" COMP;
5152 image: "00_button_01_focus.png" COMP;
5155 style { name: "btn_base_exapandable_number";
5156 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_NUMBER_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5161 style { name: "btn_base_exapandable_number_pressed";
5162 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_NUMBER_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5167 style { name: "btn_base_exapandable_number_dim";
5168 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_DISABLE_VISIBLE_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_NUMBER_SHADOW_TEXTBLOCK_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5173 style { name: "btn_base_exapandable_number_focus";
5174 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5181 public button_state = BUTTON_STATE_ENABLED;
5184 part { name: "button_image";
5186 description { state: "default" 0.0;
5187 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5188 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5190 normal: "00_button_01.png";
5191 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
5195 description { state: "clicked" 0.0;
5196 inherit: "default" 0.0;
5197 image.normal: "00_button_01_press.png";
5199 description { state: "disabled" 0.0;
5200 inherit: "default" 0.0;
5201 image.normal: "00_button_01_dim.png";
5203 description { state: "focused" 0.0;
5204 inherit: "default" 0.0;
5205 image.normal: "00_button_01_press.png";
5208 part { name: "focus_image";
5212 description { state: "default" 0.0;
5213 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5214 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5216 rel1.to : "button_image";
5217 rel2.to : "button_image";
5219 normal: "00_button_01_focus.png";
5220 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
5224 description { state: "focused" 0.0;
5225 inherit: "default" 0.0;
5229 part { name: "padding_left_top";
5233 description { state: "default" 0.0;
5236 rel2.relative: 0.0 0.0;
5237 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
5241 part { name: "padding_right_bottom";
5245 description { state: "default" 0.0;
5248 rel1.relative: 1.0 1.0;
5249 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
5253 part { name: "icon_rect";
5257 description { state: "default" 0.0;
5259 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5260 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5264 to_x: "padding_right_bottom";
5265 to_y: "padding_left_top";
5269 to: "padding_right_bottom";
5274 part { name: "arrow_expand";
5277 description { state: "default" 0.0;
5279 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5280 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5282 rel1.to: "icon_rect";
5283 rel2.to: "icon_rect";
5284 image.normal:"00_arrow_expand.png";
5287 part { name: "arrow_expand.shadow.proxy";
5290 clip_to: "arrow_expand.shadow.clipper";
5291 description { state: "default" 0.0;
5292 source: "arrow_expand";
5295 offset: BUTTON_EXPANDABLE_NORMAL_TOP_OFFSET_INC;
5299 offset: BUTTON_EXPANDABLE_NORMAL_BOTTOM_OFFSET_INC;
5302 description { state: "clicked" 0.0;
5303 inherit: "default" 0.0;
5306 offset: BUTTON_EXPANDABLE_PRESSED_TOP_OFFSET_INC;
5310 offset: BUTTON_EXPANDABLE_PRESSED_BOTTOM_OFFSET_INC;
5313 description { state: "disabled" 0.0;
5314 inherit: "default" 0.0;
5317 part { name: "arrow_expand.proxy";
5320 clip_to: "icon_clipper";
5321 description { state: "default" 0.0;
5322 source: "arrow_expand";
5323 rel1.to: "arrow_expand";
5324 rel2.to: "arrow_expand";
5327 part { name: "arrow_expand.shadow.clipper";
5330 description { state: "default" 0.0;
5331 color: BUTTON_EXPANDABLE_SHADOW_NORMAL_COLOR_INC;
5333 description { state: "clicked" 0.0;
5334 color: BUTTON_EXPANDABLE_SHADOW_PRESSED_COLOR_INC;
5336 description { state: "disabled" 0.0;
5337 color: BUTTON_EXPANDABLE_SHADOW_DISABLED_COLOR_INC;
5340 part { name: "icon_clipper";
5343 description { state: "default" 0.0;
5344 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
5346 description { state: "clicked" 0.0;
5347 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
5349 description { state: "disabled" 0.0;
5350 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
5353 part { name: "elm.text";
5357 description { state: "default" 0.0;
5358 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
5359 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
5363 to: "padding_left_top";
5367 to_x:"padding_left_top";
5368 to_y:"padding_right_bottom";
5372 style: "btn_base_exapandable_number";
5378 description { state: "visible" 0.0;
5379 inherit: "default" 0.0;
5381 description { state: "clicked" 0.0;
5382 inherit: "default" 0.0;
5384 style: "btn_base_exapandable_number_pressed";
5390 description { state: "disabled" 0.0;
5391 inherit: "default" 0.0;
5393 description { state: "disabled_visible" 0.0;
5394 inherit: "default" 0.0;
5396 style: "btn_base_exapandable_number_dim";
5399 description { state: "focused" 0.0;
5400 inherit: "default" 0.0;
5402 style: "btn_base_exapandable_number_focus";
5406 part { name: "over2";
5409 ignore_flags: ON_HOLD;
5410 description { state: "default" 0.0;
5414 part { name: "over3";
5417 description { state: "default" 0.0;
5421 part { name: "disabler";
5423 description { state: "default" 0.0;
5427 description { state: "disabled" 0.0;
5428 inherit: "default" 0.0;
5434 program { name: "button_click";
5435 signal: "mouse,down,1";
5437 action: SIGNAL_EMIT "elm,action,press" "";
5438 after: "button_click_anim";
5440 program { name: "button_click_anim";
5441 action: STATE_SET "clicked" 0.0;
5442 target: "button_image";
5443 target: "arrow_expand.shadow.proxy";
5444 target: "arrow_expand.shadow.clipper";
5445 target: "icon_clipper";
5446 after: "text_clicked";
5448 program { name: "text_clicked";
5452 get_state(PART:"elm.text", st, 30, vl);
5453 if (!strcmp(st, "visible"))
5454 set_state(PART:"elm.text", "clicked", 0.0);
5457 program { name: "button_double_click";
5458 signal: "mouse,down,1,double";
5460 after: "button_click_anim";
5462 program { name: "button_unpress";
5463 action: SIGNAL_EMIT "elm,action,unpress" "";
5465 program { name: "button_mouseout_clicked";
5466 signal: "mouse,up,1";
5469 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5471 set_state(PART:"button_image", "default", 0.0);
5472 set_state(PART:"elm.text", "visible", 0.0);
5473 set_state(PART:"arrow_expand.shadow.proxy", "visible", 0.0);
5474 set_state(PART:"arrow_expand.shadow.clipper", "visible", 0.0);
5475 set_state(PART:"icon_clipper", "default", 0.0);
5478 after: button_unpress;
5480 program { name: "touch_snd";
5481 signal: "mouse,clicked,1";
5483 action: PLAY_SAMPLE "touch_sound" 1.0;
5484 after: button_unclick3;
5486 program { name: "button_unclick3";
5487 action: SIGNAL_EMIT "elm,action,click" "";
5489 program { name: "text_show";
5490 signal: "elm,state,text,visible";
5493 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5494 set_state(PART:"elm.text", "visible", 0.0);
5496 set_state(PART:"elm.text", "disabled_visible", 0.0);
5499 program { name: "text_hide";
5500 signal: "elm,state,text,hidden";
5503 set_state(PART:"elm.text", "default", 0.0);
5506 program { name: "disable";
5507 signal: "elm,state,disabled";
5509 action: STATE_SET "disabled" 0.0;
5510 target: "button_image";
5512 target: "arrow_expand.shadow.proxy";
5513 target: "arrow_expand.shadow.clipper";
5514 target: "icon_clipper";
5515 after: "disable_text";
5517 program { name: "disable_text";
5521 get_state(PART:"elm.text", st, 30, vl);
5522 if (!strcmp(st, "visible"))
5523 set_state(PART:"elm.text", "disabled_visible", 0.0);
5525 set_state(PART:"elm.text", "disabled", 0.0);
5526 set_int(button_state, BUTTON_STATE_DISABLED);
5529 program { name: "enable";
5530 signal: "elm,state,enabled";
5532 action: STATE_SET "default" 0.0;
5533 target: "button_image";
5535 target: "arrow_expand.shadow.proxy";
5536 target: "arrow_expand.shadow.clipper";
5537 target: "icon_clipper";
5538 after: "enable_text";
5540 program { name: "enable_text";
5544 get_state(PART:"elm.text", st, 30, vl);
5545 if (!strcmp(st, "disabled_visible"))
5546 set_state(PART:"elm.text", "visible", 0.0);
5548 set_state(PART:"elm.text", "default", 0.0);
5549 set_int(button_state, BUTTON_STATE_ENABLED);
5552 program { name: "action_focus";
5553 signal: "elm,action,focus_highlight,show";
5555 action: STATE_SET "focused" 0.0;
5556 target: "focus_image";
5558 program { name: "action_unfocus";
5559 signal: "elm,action,focus_highlight,hide";
5561 action: STATE_SET "default" 0.0;
5562 target: "focus_image";
5567 //////////////////////////////////////////////////////////////////////////////////////
5568 group { name: "elm/button/base/editfield_clear";
5570 image: "00_edit_field_clear.png" COMP;
5577 description { state: "default" 0.0;
5578 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
5579 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
5582 part { name: "button_image";
5585 description { state: "default" 0.0;
5588 description { state: "clicked" 0.0;
5589 inherit: "default" 0.0;
5591 description { state: "disabled" 0.0;
5592 inherit: "default" 0.0;
5594 description { state: "focused" 0.0;
5595 inherit: "default" 0.0;
5598 part { name: "clear_button";
5601 clip_to: "clear_button.clipper";
5602 description { state: "default" 0.0;
5603 min: BUTTON_EDITFIELD_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
5604 max: BUTTON_EDITFIELD_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
5606 image.normal: "00_edit_field_clear.png";
5609 part { name: "clear_button.clipper";
5611 description { state: "default" 0.0;
5612 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
5614 description { state: "clicked" 0.0;
5615 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
5617 description { state: "disabled" 0.0;
5618 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
5621 part { name: "over2";
5623 ignore_flags: ON_HOLD;
5624 description { state: "default" 0.0;
5628 part { name: "over3";
5631 description { state: "default" 0.0;
5635 part { name: "disabler";
5637 description { state: "default" 0.0;
5641 description { state: "disabled" 0.0;
5642 inherit: "default" 0.0;
5648 program { name: "button_click";
5649 signal: "mouse,down,1";
5651 action: SIGNAL_EMIT "elm,action,press" "";
5652 after: "button_click_anim";
5654 program { name: "button_click_anim";
5655 action: STATE_SET "clicked" 0.0;
5656 target: "button_image";
5657 target: "clear_button.clipper";
5659 program { name: "button_double_click";
5660 signal: "mouse,down,1,double";
5662 after: "button_click_anim";
5664 program { name: "button_unclick";
5665 signal: "mouse,up,1";
5667 action: SIGNAL_EMIT "elm,action,unpress" "";
5668 after: "button_unclick_anim";
5670 program { name: "button_unclick_anim";
5671 action: STATE_SET "default" 0.0;
5672 target: "button_image";
5673 target: "clear_button.clipper";
5675 program { name: "touch_snd";
5676 signal: "mouse,clicked,1";
5678 action: PLAY_SAMPLE "touch_sound" 1.0;
5679 after: button_unclick3;
5681 program { name: "button_unclick3";
5682 action: SIGNAL_EMIT "elm,action,click" "";
5684 program { name: "disable";
5685 signal: "elm,state,disabled";
5687 action: STATE_SET "disabled" 0.0;
5688 target: "button_image";
5690 target: "clear_button.clipper";
5692 program { name: "enable";
5693 signal: "elm,state,enabled";
5695 action: STATE_SET "default" 0.0;
5696 target: "button_image";
5698 target: "clear_button.clipper";
5703 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
5704 group { name: "elm/button/base/"style_name; \
5706 item: "focus_highlight" "on"; \
5709 image: image_normal COMP; \
5712 part { name: "elm.swallow.content"; \
5715 description { state: "default" 0.0; \
5718 part { name: "focus_image"; \
5722 description { state: "default" 0.0; \
5725 normal: image_normal; \
5730 description { state: "focused" 0.0; \
5731 inherit: "default" 0.0; \
5735 part { name: "over2"; \
5738 ignore_flags: ON_HOLD; \
5739 description { state: "default" 0.0; \
5743 part { name: "over3"; \
5746 description { state: "default" 0.0; \
5752 program { name: "button_click"; \
5753 signal: "mouse,down,1"; \
5755 action: SIGNAL_EMIT "elm,action,press" ""; \
5757 program { name: "button_unclick"; \
5758 signal: "mouse,up,1"; \
5760 action: SIGNAL_EMIT "elm,action,unpress" ""; \
5762 program { name: "button_click3"; \
5763 signal: "mouse,clicked,1"; \
5765 action: SIGNAL_EMIT "elm,action,click" ""; \
5767 program { name: "action_focus"; \
5768 signal: "elm,action,focus_highlight,show"; \
5770 action: STATE_SET "focused" 0.0; \
5771 target: "focus_image"; \
5773 program { name: "action_unfocus"; \
5774 signal: "elm,action,focus_highlight,hide"; \
5776 action: STATE_SET "default" 0.0; \
5777 target: "focus_image"; \
5782 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
5783 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
5784 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
5785 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
5787 ///////////////////////////////////////////////////////////////////////////////////
5788 group { name: "elm/button/base/transparent";
5790 item: "focus_highlight" "on";
5793 part { name: "elm.swallow.content";
5796 description { state: "default" 0.0;
5799 part { name: "over2";
5802 ignore_flags: ON_HOLD;
5803 description { state: "default" 0.0;
5807 part { name: "over3";
5810 description { state: "default" 0.0;
5816 program { name: "button_click";
5817 signal: "mouse,down,1";
5819 action: SIGNAL_EMIT "elm,action,press" "";
5821 program { name: "button_unclick";
5822 signal: "mouse,up,1";
5824 action: SIGNAL_EMIT "elm,action,unpress" "";
5826 program { name: "button_click3";
5827 signal: "mouse,clicked,1";
5829 action: SIGNAL_EMIT "elm,action,click" "";
5833 ///////////////////////////////////////////////////////////////////////////////////
5835 group { name: "elm/button/base/search_clear";
5836 inherit: "elm/button/base/editfield_clear";
5838 image: "00_field_btn_clear.png" COMP;
5845 description { state: "default" 0.0;
5846 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
5847 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
5850 part { name: "clear_button";
5853 clip_to: "clear_button.clipper";
5854 description { state: "default" 0.0;
5855 min: BUTTON_SEARCH_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
5856 max: BUTTON_SEARCH_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
5858 image.normal: "00_field_btn_clear.png";
5861 part { name: "clear_button.clipper";
5863 description { state: "default" 0.0;
5864 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
5866 description { state: "clicked" 0.0;
5867 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
5869 description { state: "disabled" 0.0;
5870 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
5876 #undef BUTTON_STATE_ENABLED
5877 #undef BUTTON_STATE_DISABLED
5878 #undef BUTTON_LANDSCAPE_DISABLED
5879 #undef BUTTON_LANDSCAPE_ENABLED