3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 #define BUTTON_STATE_ENABLED 0
21 #define BUTTON_STATE_DISABLED 1
22 #define BUTTON_LANDSCAPE_DISABLED 0
23 #define BUTTON_LANDSCAPE_ENABLED 1
25 ///////////////////////////////////////////////////////////////////////////////////////
26 group { name: "elm/button/base/style1";
27 alias: "elm/button/base/text_only/style1";
28 alias: "elm/button/base/center";
29 alias: "elm/button/base/icon_and_text/center";
30 alias: "elm/button/base/nocontents/search_button";
31 alias: "elm/button/base/style1/multiline";
32 alias: "elm/button/base/sweep";
33 alias: "elm/button/base/text_only/sweep";
34 alias: "elm/button/base/hidden";
35 alias: "elm/button/base/sweep/multiline";
36 alias: "elm/button/base/style2";
37 alias: "elm/button/base/text_only/style2";
38 alias: "elm/button/base/style2/multiline";
40 item: "focus_highlight" "on";
43 image: "00_button_01.png" COMP;
44 image: "00_button_01_press.png" COMP;
45 image: "00_button_01_dim.png" COMP;
46 image: "00_button_01_focus.png" COMP;
49 style { name: "btn_base_style1";
50 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
55 style { name: "btn_base_style1_pressed";
56 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
61 style { name: "btn_base_style1_dim";
62 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";
67 style { name: "btn_base_style1_focus";
68 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";
75 public button_state = BUTTON_STATE_ENABLED;
78 part { name: "button_image";
80 description { state: "default" 0.0;
82 normal: "00_button_01.png";
83 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
87 description { state: "clicked" 0.0;
88 inherit: "default" 0.0;
89 image.normal: "00_button_01_press.png";
91 description { state: "disabled" 0.0;
92 inherit: "default" 0.0;
93 image.normal: "00_button_01_dim.png";
95 description { state: "focused" 0.0;
96 inherit: "default" 0.0;
97 image.normal: "00_button_01_press.png";
100 part { name: "focus_image";
104 description { state: "default" 0.0;
106 rel1.to : "button_image";
107 rel2.to : "button_image";
109 normal: "00_button_01_focus.png";
110 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
114 description { state: "focused" 0.0;
115 inherit: "default" 0.0;
119 part { name: "padding_left_top";
123 description { state: "default" 0.0;
125 rel2.relative: 0.0 0.0;
126 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
135 description { state: "default" 0.0;
136 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
139 description { state: "visible" 0.0;
140 inherit: "default" 0.0;
141 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
143 description { state: "icononly" 0.0;
144 inherit: "default" 0.0;
145 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
148 part { name: "padding_right_bottom";
152 description { state: "default" 0.0;
154 rel1.relative: 1.0 1.0;
155 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
160 part { name: "icon_rect";
164 description { state: "default" 0.0;
170 to: "padding_left_top";
174 to_x: "padding_left_top";
175 to_y: "padding_right_bottom";
179 description { state: "visible" 0.0;
180 inherit: "default" 0.0;
181 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
182 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
184 description { state: "icononly" 0.0;
185 inherit: "default" 0.0;
188 part { name: "padding_after_icon";
192 description { state: "default" 0.0; //when only icon or no icon is there
198 rel2.to: "icon_rect";
203 description { state: "visible" 0.0;
204 inherit: "default" 0.0;
205 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
207 description { state: "icononly" 0.0;
208 inherit: "default" 0.0;
211 part { name: "padding_before_text";
215 description { state: "default" 0.0; //when only icon or no icon is there
220 to_y: "padding_left_top";
225 to_y: "padding_right_bottom";
228 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
232 part { name: "elm.swallow.content";
235 description { state: "default" 0.0;
240 to: "padding_left_top";
244 to_x: "padding_left_top";
245 to_y: "padding_right_bottom";
249 description { state: "visible" 0.0;
251 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
252 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
256 to_x: "padding_before_text";
257 to_y: "padding_left_top";
261 to_x: "padding_before_text";
262 to_y: "padding_right_bottom";
265 description { state: "icononly" 0.0;
266 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
267 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
270 part { name: "elm.swallow.content.shadow.proxy";
273 clip_to: "elm.swallow.content.shadow.clipper";
274 description { state: "default" 0.0;
275 source: "elm.swallow.content";
276 proxy.source_clip: 0;
278 to: "elm.swallow.content";
279 offset: BUTTON_STYLE1_NORMAL_TOP_OFFSET_INC;
282 to: "elm.swallow.content";
283 offset: BUTTON_STYLE1_NORMAL_BOTTOM_OFFSET_INC;
286 description { state: "clicked" 0.0;
287 inherit: "default" 0.0;
289 to: "elm.swallow.content";
290 offset: BUTTON_STYLE1_PRESSED_TOP_OFFSET_INC;
293 to: "elm.swallow.content";
294 offset: BUTTON_STYLE1_PRESSED_BOTTOM_OFFSET_INC;
297 description { state: "disabled" 0.0;
298 inherit: "default" 0.0;
301 part { name: "elm.swallow.content.proxy";
304 clip_to: "icon_clipper";
305 description { state: "default" 0.0;
306 source: "elm.swallow.content";
307 proxy.source_clip: 0;
308 rel1.to: "elm.swallow.content";
309 rel2.to: "elm.swallow.content";
312 part { name: "elm.swallow.content.shadow.clipper";
315 description { state: "default" 0.0;
316 color: BUTTON_STYLE1_SHADOW_NORMAL_COLOR_INC;
318 description { state: "clicked" 0.0;
319 color: BUTTON_STYLE1_SHADOW_PRESSED_COLOR_INC;
321 description { state: "disabled" 0.0;
322 color: BUTTON_STYLE1_SHADOW_DISABLED_COLOR_INC;
325 part { name: "icon_clipper";
328 description { state: "default" 0.0;
329 color: BUTTON_STYLE1_ICON_NORMAL_COLOR_INC;
331 description { state: "clicked" 0.0;
332 color: BUTTON_STYLE1_ICON_PRESSED_COLOR_INC;
334 description { state: "disabled" 0.0;
335 color: BUTTON_STYLE1_ICON_DISABLED_COLOR_INC;
338 part { name: "elm.text";
342 description { state: "default" 0.0;
346 to_x: "padding_after_icon";
347 to_y: "padding_left_top";
351 to: "padding_right_bottom";
354 style: "btn_base_style1";
357 description { state: "visible" 0.0;
358 inherit: "default" 0.0;
361 description { state: "clicked" 0.0;
362 inherit: "default" 0.0;
365 style: "btn_base_style1_pressed";
368 description { state: "disabled" 0.0;
369 inherit: "default" 0.0;
371 description { state: "disabled_visible" 0.0;
372 inherit: "default" 0.0;
375 style: "btn_base_style1_dim";
378 description { state: "focused" 0.0;
379 inherit: "default" 0.0;
382 style: "btn_base_style1_focus";
386 part { name: "over2";
389 ignore_flags: ON_HOLD;
390 description { state: "default" 0.0;
394 part { name: "over3";
397 description { state: "default" 0.0;
401 part { name: "disabler";
403 description { state: "default" 0.0;
407 description { state: "disabled" 0.0;
408 inherit: "default" 0.0;
414 program { name: "button_click";
415 signal: "mouse,down,1";
417 action: SIGNAL_EMIT "elm,action,press" "";
418 after: "button_click_anim";
420 program { name: "button_click_anim";
421 action: STATE_SET "clicked" 0.0;
422 target: "button_image";
423 target: "elm.swallow.content.shadow.proxy";
424 target: "elm.swallow.content.shadow.clipper";
425 target: "icon_clipper";
426 after: "text_clicked";
428 program { name: "text_clicked";
432 get_state(PART:"elm.text", st, 30, vl);
433 if (!strcmp(st, "visible"))
434 set_state(PART:"elm.text", "clicked", 0.0);
437 program { name: "button_double_click";
438 signal: "mouse,down,1,double";
440 after: "button_click_anim";
442 program { name: "button_unpress";
443 action: SIGNAL_EMIT "elm,action,unpress" "";
445 program { name: "button_mouseout_clicked";
446 signal: "mouse,up,1";
451 get_state(PART:"elm.swallow.content", st, 30, vl);
452 if (strcmp(st, "icononly"))
454 emit("elm,action,default,text,set", "");
455 set_state(PART:"elm.text", "visible", 0.0);
457 if (get_int(button_state) != BUTTON_STATE_DISABLED)
458 set_state(PART:"button_image", "default", 0.0);
459 set_state(PART:"elm.swallow.content.shadow.proxy", "default", 0.0);
460 set_state(PART:"elm.swallow.content.shadow.clipper", "default", 0.0);
461 set_state(PART:"icon_clipper", "default", 0.0);
463 after: button_unpress;
465 program { name: "touch_snd";
466 signal: "mouse,clicked,1";
468 action: PLAY_SAMPLE "touch_sound" 1.0;
469 after: button_unclick3;
471 program { name: "button_unclick3";
472 action: SIGNAL_EMIT "elm,action,click" "";
474 program { name: "text_show";
475 signal: "elm,state,text,visible";
480 get_state(PART:"elm.swallow.content", st, 30, vl);
481 if (!strcmp(st, "icononly"))
483 set_state(PART:"elm.swallow.content", "visible", 0.0);
484 set_state(PART:"icon_rect", "visible", 0.0);
485 set_state(PART:"padding_after_icon", "visible", 0.0);
486 set_state(PART:"bg", "visible", 0.0);
488 if (get_int(button_state) != BUTTON_STATE_DISABLED)
489 set_state(PART:"elm.text", "visible", 0.0);
491 set_state(PART:"elm.text", "disabled_visible", 0.0);
494 program { name: "text_hide";
495 signal: "elm,state,text,hidden";
500 get_state(PART:"elm.swallow.content", st, 30, vl);
501 if (!strcmp(st, "visible"))
503 set_state(PART:"elm.swallow.content", "icononly", 0.0);
504 set_state(PART:"icon_rect", "icononly", 0.0);
505 set_state(PART:"padding_after_icon", "icononly", 0.0);
506 set_state(PART:"bg", "icononly", 0.0);
508 set_state(PART:"elm.text", "default", 0.0);
511 program { name: "icon_show";
512 signal: "elm,state,icon,visible";
517 get_state(PART:"elm.text", st, 30, vl);
518 if (!strcmp(st, "visible"))
520 set_state(PART:"elm.swallow.content", "visible", 0.0);
521 set_state(PART:"icon_rect", "visible", 0.0);
522 set_state(PART:"padding_after_icon", "visible", 0.0);
523 set_state(PART:"bg", "visible", 0.0);
527 set_state(PART:"elm.swallow.content", "icononly", 0.0);
528 set_state(PART:"icon_rect", "icononly", 0.0);
529 set_state(PART:"padding_after_icon", "icononly", 0.0);
530 set_state(PART:"bg", "icononly", 0.0);
534 program { name: "icon_hide";
535 signal: "elm,state,icon,hidden";
537 action: STATE_SET "default" 0.0;
538 target: "elm.swallow.content";
539 target: "padding_after_icon";
543 program { name: "disable";
544 signal: "elm,state,disabled";
546 action: STATE_SET "disabled" 0.0;
547 target: "button_image";
549 target: "elm.swallow.content.shadow.proxy";
550 target: "elm.swallow.content.shadow.clipper";
551 target: "icon_clipper";
552 after: "disable_text";
554 program { name: "disable_text";
558 get_state(PART:"elm.text", st, 30, vl);
559 if (!strcmp(st, "visible"))
560 set_state(PART:"elm.text", "disabled_visible", 0.0);
562 set_state(PART:"elm.text", "disabled", 0.0);
563 set_int(button_state, BUTTON_STATE_DISABLED);
566 program { name: "enable";
567 signal: "elm,state,enabled";
569 action: STATE_SET "default" 0.0;
570 target: "button_image";
571 target: "elm.swallow.content.shadow.proxy";
572 target: "elm.swallow.content.shadow.clipper";
573 target: "icon_clipper";
575 after: "enable_text";
577 program { name: "enable_text";
581 get_state(PART:"elm.text", st, 30, vl);
582 if (!strcmp(st, "disabled_visible"))
583 set_state(PART:"elm.text", "visible", 0.0);
585 set_state(PART:"elm.text", "default", 0.0);
586 set_int(button_state, BUTTON_STATE_ENABLED);
589 program { name: "action_focus";
590 signal: "elm,action,focus_highlight,show";
592 action: STATE_SET "focused" 0.0;
593 target: "focus_image";
595 program { name: "action_unfocus";
596 signal: "elm,action,focus_highlight,hide";
598 action: STATE_SET "default" 0.0;
599 target: "focus_image";
604 //////////////////////////////////////////////////////////////
605 group { name: "elm/button/base/style1/auto_expand";
606 inherit: "elm/button/base/style1";
608 part { name: "elm.text";
612 description { state: "default" 0.0;
616 to_x: "padding_after_icon";
617 to_y: "padding_left_top";
621 to: "padding_right_bottom";
624 style: "btn_base_style1";
629 description { state: "visible" 0.0;
630 inherit: "default" 0.0;
633 description { state: "clicked" 0.0;
634 inherit: "default" 0.0;
637 style: "btn_base_style1_pressed";
640 description { state: "disabled" 0.0;
641 inherit: "default" 0.0;
643 description { state: "disabled_visible" 0.0;
644 inherit: "default" 0.0;
647 style: "btn_base_style1_dim";
650 description { state: "focused" 0.0;
651 inherit: "default" 0.0;
654 style: "btn_base_style1_focus";
661 //////////////////////////////////////////////////////////////////////////////////////
662 group { name: "elm/button/base/datetime/ampm/default";
663 alias: "elm/button/base/datetime_ampm/default";
664 inherit: "elm/button/base/style1/auto_expand";
666 part { name: "button_image";
668 description { state: "default" 0.0;
670 normal: "00_button_01.png";
671 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
674 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
675 max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
677 description { state: "clicked" 0.0;
678 inherit: "default" 0.0;
679 image.normal: "00_button_01_press.png";
681 description { state: "disabled" 0.0;
682 inherit: "default" 0.0;
683 image.normal: "00_button_01_dim.png";
685 description { state: "focused" 0.0;
686 inherit: "default" 0.0;
687 image.normal: "00_button_01_press.png";
694 description { state: "default" 0.0;
698 description { state: "visible" 0.0;
699 inherit: "default" 0.0;
700 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
702 description { state: "icononly" 0.0;
703 inherit: "default" 0.0;
706 part { name: "elm.text";
710 description { state: "default" 0.0;
714 style: "btn_base_style1";
715 size: BUTTON_DATETIME_AMPM_TEXT_FONT_SIZE_INC;
719 description { state: "visible" 0.0;
720 inherit: "default" 0.0;
723 description { state: "clicked" 0.0;
724 inherit: "default" 0.0;
727 style: "btn_base_style1_pressed";
730 description { state: "disabled" 0.0;
731 inherit: "default" 0.0;
733 description { state: "disabled_visible" 0.0;
734 inherit: "default" 0.0;
737 style: "btn_base_style1_dim";
740 description { state: "focused" 0.0;
741 inherit: "default" 0.0;
744 style: "btn_base_style1_focus";
751 ///////////////////////////////////////////////////////////////////////////////////////
752 group { name: "elm/button/base/style1/delete";
753 alias: "elm/button/base/sweep/delete";
754 alias: "elm/button/base/sweep/delete/multiline";
755 inherit: "elm/button/base/style1";
757 image: "00_button_01_delete.png" COMP;
758 image: "00_button_01_delete_dim.png" COMP;
759 image: "00_button_01_delete_press.png" COMP;
762 style { name: "btn_base_style1_delete";
763 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_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
768 style { name: "btn_base_style1_delete_pressed";
769 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_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
774 style { name: "btn_base_style1_delete_dim";
775 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_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
780 style { name: "btn_base_style1_delete_focus";
781 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";
788 part { name: "button_image";
790 description { state: "default" 0.0;
792 normal: "00_button_01_delete.png";
793 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
797 description { state: "clicked" 0.0;
798 inherit: "default" 0.0;
799 image.normal: "00_button_01_delete_press.png";
801 description { state: "disabled" 0.0;
802 inherit: "default" 0.0;
803 image.normal: "00_button_01_delete_dim.png";
805 description { state: "focused" 0.0;
806 inherit: "default" 0.0;
807 image.normal: "00_button_01_delete_press.png";
810 part { name: "elm.text";
814 description { state: "default" 0.0;
818 to_x: "padding_after_icon";
819 to_y: "padding_left_top";
823 to: "padding_right_bottom";
826 style: "btn_base_style1_delete";
829 description { state: "visible" 0.0;
830 inherit: "default" 0.0;
833 description { state: "clicked" 0.0;
834 inherit: "default" 0.0;
837 style: "btn_base_style1_delete_pressed";
840 description { state: "disabled" 0.0;
841 inherit: "default" 0.0;
843 description { state: "disabled_visible" 0.0;
844 inherit: "default" 0.0;
847 style: "btn_base_style1_delete_dim";
850 description { state: "focused" 0.0;
851 inherit: "default" 0.0;
854 style: "btn_base_style1_delete_focus";
861 ///////////////////////////////////////////////////////////////////////////////////////
862 group { name: "elm/button/base/search_button/text";
863 alias: "elm/button/base/searchbar/default";
864 inherit: "elm/button/base/style1";
866 style { name: "btn_base_search";
867 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";
872 style { name: "btn_base_search_pressed";
873 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";
878 style { name: "btn_base_search_dim";
879 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";
884 style { name: "btn_base_search_focus";
885 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";
896 description { state: "default" 0.0;
897 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
900 description { state: "visible" 0.0;
901 inherit: "default" 0.0;
902 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
904 description { state: "icononly" 0.0;
905 inherit: "default" 0.0;
906 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
909 part { name: "elm.text";
913 description { state: "default" 0.0;
917 to_x: "padding_after_icon";
918 to_y: "padding_left_top";
922 to: "padding_right_bottom";
925 style: "btn_base_search";
930 description { state: "visible" 0.0;
931 inherit: "default" 0.0;
934 description { state: "clicked" 0.0;
935 inherit: "default" 0.0;
938 style: "btn_base_search_pressed";
941 description { state: "disabled" 0.0;
942 inherit: "default" 0.0;
944 description { state: "disabled_visible" 0.0;
945 inherit: "default" 0.0;
948 style: "btn_base_search_dim";
951 description { state: "focused" 0.0;
952 inherit: "default" 0.0;
955 style: "btn_base_search_focus";
962 ///////////////////////////////////////////////////////////////////////////////////////
963 group { name: "elm/button/base/search_button/send";
964 inherit: "elm/button/base/style1";
966 image: "00_button_01_send.png" COMP;
967 image: "00_button_01_send_dim.png" COMP;
968 image: "00_button_01_send_press.png" COMP;
971 style { name: "btn_base_search_send";
972 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_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
977 style { name: "btn_base_search_send_pressed";
978 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_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
983 style { name: "btn_base_search_send_dim";
984 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_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
989 style { name: "btn_base_search_send_focus";
990 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";
997 part { name: "button_image";
999 description { state: "default" 0.0;
1001 normal: "00_button_01_send.png";
1002 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
1006 description { state: "clicked" 0.0;
1007 inherit: "default" 0.0;
1008 image.normal: "00_button_01_send_press.png";
1010 description { state: "disabled" 0.0;
1011 inherit: "default" 0.0;
1012 image.normal: "00_button_01_send_dim.png";
1014 description { state: "focused" 0.0;
1015 inherit: "default" 0.0;
1016 image.normal: "00_button_01_send_press.png";
1023 description { state: "default" 0.0;
1024 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
1027 description { state: "visible" 0.0;
1028 inherit: "default" 0.0;
1029 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
1031 description { state: "icononly" 0.0;
1032 inherit: "default" 0.0;
1033 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
1036 part { name: "elm.text";
1040 description { state: "default" 0.0;
1044 to_x: "padding_after_icon";
1045 to_y: "padding_left_top";
1049 to: "padding_right_bottom";
1052 style: "btn_base_search_send";
1057 description { state: "visible" 0.0;
1058 inherit: "default" 0.0;
1061 description { state: "clicked" 0.0;
1062 inherit: "default" 0.0;
1065 style: "btn_base_search_send_pressed";
1068 description { state: "disabled" 0.0;
1069 inherit: "default" 0.0;
1071 description { state: "disabled_visible" 0.0;
1072 inherit: "default" 0.0;
1075 style: "btn_base_search_send_dim";
1078 description { state: "focused" 0.0;
1079 inherit: "default" 0.0;
1082 style: "btn_base_search_send_focus";
1089 ///////////////////////////////////////////////////////////////////////////////////////
1090 group { name: "elm/button/base/search_button/cancel";
1091 inherit: "elm/button/base/style1";
1093 image: "00_button_01_delete.png" COMP;
1094 image: "00_button_01_delete_dim.png" COMP;
1095 image: "00_button_01_delete_press.png" COMP;
1098 style { name: "btn_base_search_cancel";
1099 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_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1104 style { name: "btn_base_search_cancel_pressed";
1105 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_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1110 style { name: "btn_base_search_cancel_dim";
1111 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_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1116 style { name: "btn_base_search_cancel_focus";
1117 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";
1124 part { name: "button_image";
1126 description { state: "default" 0.0;
1128 normal: "00_button_01_delete.png";
1129 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
1133 description { state: "clicked" 0.0;
1134 inherit: "default" 0.0;
1135 image.normal: "00_button_01_delete_press.png";
1137 description { state: "disabled" 0.0;
1138 inherit: "default" 0.0;
1139 image.normal: "00_button_01_delete_dim.png";
1141 description { state: "focused" 0.0;
1142 inherit: "default" 0.0;
1143 image.normal: "00_button_01_delete_press.png";
1150 description { state: "default" 0.0;
1151 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
1154 description { state: "visible" 0.0;
1155 inherit: "default" 0.0;
1156 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
1158 description { state: "icononly" 0.0;
1159 inherit: "default" 0.0;
1160 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
1163 part { name: "elm.text";
1167 description { state: "default" 0.0;
1171 to_x: "padding_after_icon";
1172 to_y: "padding_left_top";
1176 to: "padding_right_bottom";
1179 style: "btn_base_search_cancel";
1184 description { state: "visible" 0.0;
1185 inherit: "default" 0.0;
1188 description { state: "clicked" 0.0;
1189 inherit: "default" 0.0;
1192 style: "btn_base_search_cancel_pressed";
1195 description { state: "disabled" 0.0;
1196 inherit: "default" 0.0;
1198 description { state: "disabled_visible" 0.0;
1199 inherit: "default" 0.0;
1202 style: "btn_base_search_cancel_dim";
1205 description { state: "focused" 0.0;
1206 inherit: "default" 0.0;
1209 style: "btn_base_search_cancel_focus";
1216 ///////////////////////////////////////////////////////////////////////////////////////
1217 group { name: "elm/button/base/popup_button/default";
1218 alias: "elm/button/base/popup_button/menustyle";
1219 alias: "elm/button/base/popup_button/liststyle";
1220 alias: "elm/button/base/popup_button/volumebarstyle";
1221 alias: "elm/button/base/popup_button/customstyle";
1222 alias: "elm/button/base/popup_button/verticalbuttonstyle";
1223 alias: "elm/button/base/popup_button/default/multiline";
1225 item: "focus_highlight" "on";
1228 image: "00_popup_button.png" COMP;
1229 image: "00_popup_button_dim.png" COMP;
1230 image: "00_popup_button_press.png" COMP;
1231 image: "00_popup_button_focus.png" COMP;
1234 style { name: "btn_base_popup_button";
1235 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";
1240 style { name: "btn_base_popup_button_pressed";
1241 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";
1246 style { name: "btn_base_popup_button_dim";
1247 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";
1252 style { name: "btn_base_popup_button_focus";
1253 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";
1260 public button_state = BUTTON_STATE_ENABLED;
1263 part { name: "button_image";
1265 description { state: "default" 0.0;
1266 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
1268 normal: "00_popup_button.png";
1269 border: BUTTON_POPUP_BG_BORDER_INC;
1273 description { state: "clicked" 0.0;
1274 inherit: "default" 0.0;
1275 image.normal: "00_popup_button_press.png";
1277 description { state: "disabled" 0.0;
1278 inherit: "default" 0.0;
1279 image.normal: "00_popup_button_dim.png";
1281 description { state: "focused" 0.0;
1282 inherit: "default" 0.0;
1283 image.normal: "00_popup_button_focus.png";
1286 part { name: "focus_image";
1290 description { state: "default" 0.0;
1292 rel1.to : "button_image";
1293 rel2.to : "button_image";
1295 normal: "00_popup_button_focus.png";
1296 border: BUTTON_POPUP_BG_BORDER_INC;
1300 description { state: "focused" 0.0;
1301 inherit: "default" 0.0;
1305 part { name: "padding_left_top";
1309 description { state: "default" 0.0;
1311 rel2.relative: 0.0 0.0;
1312 min: BUTTON_POPUP_PADDING_MIN_INC;
1317 part { name: "padding_right_bottom";
1320 description { state: "default" 0.0;
1322 rel1.relative: 1.0 1.0;
1323 min: BUTTON_POPUP_PADDING_MIN_INC;
1328 part { name: "padding_icon_text";
1331 description { state: "default" 0.0; //when only icon or no icon is there
1335 to: "elm.swallow.content";
1337 rel2.to: "elm.swallow.content";
1342 description { state: "icononly" 0.0;
1343 inherit: "default" 0.0;
1345 description { state: "visible" 0.0; //when icon is visible
1346 inherit: "default" 0.0;
1347 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1350 part { name: "elm.swallow.content";
1353 description { state: "default" 0.0;
1358 to: "padding_left_top";
1362 to_x: "padding_left_top";
1363 to_y: "padding_right_bottom";
1367 description { state: "visible" 0.0;
1368 inherit: "default" 0.0;
1372 aspect_preference: VERTICAL;
1374 description { state: "icononly" 0.0;
1375 inherit: "default" 0.0;
1376 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
1381 part { name: "elm.swallow.content.shadow.proxy";
1384 clip_to: "elm.swallow.content.shadow.clipper";
1385 description { state: "default" 0.0;
1386 source: "elm.swallow.content";
1387 proxy.source_clip: 0;
1389 to: "elm.swallow.content";
1390 offset: BUTTON_POPUP_NORMAL_TOP_OFFSET_INC;
1393 to: "elm.swallow.content";
1394 offset: BUTTON_POPUP_NORMAL_BOTTOM_OFFSET_INC;
1397 description { state: "clicked" 0.0;
1398 inherit: "default" 0.0;
1400 to: "elm.swallow.content";
1401 offset: BUTTON_POPUP_PRESSED_TOP_OFFSET_INC;
1404 to: "elm.swallow.content";
1405 offset: BUTTON_POPUP_PRESSED_BOTTOM_OFFSET_INC;
1408 description { state: "disabled" 0.0;
1409 inherit: "default" 0.0;
1412 part { name: "elm.swallow.content.proxy";
1415 clip_to: "icon_clipper";
1416 description { state: "default" 0.0;
1417 source: "elm.swallow.content";
1418 proxy.source_clip: 0;
1419 rel1.to: "elm.swallow.content";
1420 rel2.to: "elm.swallow.content";
1423 part { name: "elm.swallow.content.shadow.clipper";
1426 description { state: "default" 0.0;
1427 color: BUTTON_POPUP_SHADOW_NORMAL_COLOR_INC;
1429 description { state: "clicked" 0.0;
1430 color: BUTTON_POPUP_SHADOW_PRESSED_COLOR_INC;
1432 description { state: "disabled" 0.0;
1433 color: BUTTON_POPUP_SHADOW_DISABLED_COLOR_INC;
1436 part { name: "icon_clipper";
1439 description { state: "default" 0.0;
1440 color: BUTTON_POPUP_ICON_NORMAL_COLOR_INC;
1442 description { state: "clicked" 0.0;
1443 color: BUTTON_POPUP_ICON_PRESSED_COLOR_INC;
1445 description { state: "disabled" 0.0;
1446 color: BUTTON_POPUP_ICON_DISABLED_COLOR_INC;
1449 part { name: "elm.text";
1453 description { state: "default" 0.0;
1457 to_x: "padding_icon_text";
1458 to_y: "padding_left_top";
1462 to: "padding_right_bottom";
1465 style: "btn_base_popup_button";
1469 description { state: "visible" 0.0;
1470 inherit: "default" 0.0;
1472 min: BUTTON_POPUP_TEXT_MIN_INC;
1474 description { state: "clicked" 0.0;
1475 inherit: "default" 0.0;
1478 style: "btn_base_popup_button_pressed";
1482 description { state: "disabled" 0.0;
1483 inherit: "default" 0.0;
1485 description { state: "disabled_visible" 0.0;
1486 inherit: "default" 0.0;
1489 style: "btn_base_popup_button_dim";
1491 min: BUTTON_POPUP_TEXT_MIN_INC;
1493 description { state: "focused" 0.0;
1494 inherit: "default" 0.0;
1497 style: "btn_base_popup_button_dim";
1502 part { name: "over2";
1505 ignore_flags: ON_HOLD;
1506 description { state: "default" 0.0;
1510 part { name: "over3";
1513 description { state: "default" 0.0;
1517 part { name: "disabler";
1519 description { state: "default" 0.0;
1523 description { state: "disabled" 0.0;
1524 inherit: "default" 0.0;
1530 program { name: "button_click";
1531 signal: "mouse,down,1";
1533 action: SIGNAL_EMIT "elm,action,press" "";
1534 after: "button_click_anim";
1536 program { name: "button_click_anim";
1537 action: STATE_SET "clicked" 0.0;
1538 target: "button_image";
1539 target: "elm.swallow.content.shadow.proxy";
1540 target: "elm.swallow.content.shadow.clipper";
1541 target: "icon_clipper";
1542 after: "text_clicked";
1544 program { name: "text_clicked";
1548 get_state(PART:"elm.text", st, 30, vl);
1549 if (!strcmp(st, "visible"))
1550 set_state(PART:"elm.text", "clicked", 0.0);
1553 program { name: "button_double_click";
1554 signal: "mouse,down,1,double";
1556 after: "button_click_anim";
1558 program { name: "button_unpress";
1559 action: SIGNAL_EMIT "elm,action,unpress" "";
1561 program { name: "button_mouseout_clicked";
1562 signal: "mouse,up,1";
1567 get_state(PART:"elm.swallow.content", st, 30, vl);
1568 if (strcmp(st, "icononly"))
1570 emit("elm,action,default,text,set", "");
1571 set_state(PART:"elm.text", "visible", 0.0);
1573 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1574 set_state(PART:"button_image", "default", 0.0);
1575 set_state(PART:"elm.swallow.content.shadow.proxy", "default", 0.0);
1576 set_state(PART:"elm.swallow.content.shadow.clipper", "default", 0.0);
1577 set_state(PART:"icon_clipper", "default", 0.0);
1579 after: button_unpress;
1581 program { name: "touch_snd";
1582 signal: "mouse,clicked,1";
1584 action: PLAY_SAMPLE "touch_sound" 1.0;
1585 after: button_unclick3;
1587 program { name: "button_unclick3";
1588 action: SIGNAL_EMIT "elm,action,click" "";
1590 program { name: "text_show";
1591 signal: "elm,state,text,visible";
1596 get_state(PART:"elm.swallow.content", st, 30, vl);
1597 if (!strcmp(st, "icononly"))
1599 set_state(PART:"elm.swallow.content", "visible", 0.0);
1600 set_state(PART:"padding_icon_text", "visible", 0.0);
1602 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1603 set_state(PART:"elm.text", "visible", 0.0);
1605 set_state(PART:"elm.text", "disabled_visible", 0.0);
1608 program { name: "text_hide";
1609 signal: "elm,state,text,hidden";
1614 get_state(PART:"elm.swallow.content", st, 30, vl);
1615 if (!strcmp(st, "visible"))
1617 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1618 set_state(PART:"padding_icon_text", "icononly", 0.0);
1620 set_state(PART:"elm.text", "default", 0.0);
1623 program { name: "icon_show";
1624 signal: "elm,state,icon,visible";
1629 get_state(PART:"elm.text", st, 30, vl);
1630 if (!strcmp(st, "visible"))
1632 set_state(PART:"elm.swallow.content", "visible", 0.0);
1633 set_state(PART:"padding_icon_text", "visible", 0.0);
1637 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1638 set_state(PART:"padding_icon_text", "icononly", 0.0);
1642 program { name: "icon_hide";
1643 signal: "elm,state,icon,hidden";
1645 action: STATE_SET "default" 0.0;
1646 target: "elm.swallow.content";
1647 target: "padding_icon_text";
1649 program { name: "disable";
1650 signal: "elm,state,disabled";
1652 action: STATE_SET "disabled" 0.0;
1653 target: "button_image";
1654 target: "elm.swallow.content.shadow.proxy";
1655 target: "elm.swallow.content.shadow.clipper";
1656 target: "icon_clipper";
1658 after: "disable_text";
1660 program { name: "disable_text";
1664 get_state(PART:"elm.text", st, 30, vl);
1665 if (!strcmp(st, "visible"))
1666 set_state(PART:"elm.text", "disabled_visible", 0.0);
1668 set_state(PART:"elm.text", "disabled", 0.0);
1669 set_int(button_state, BUTTON_STATE_DISABLED);
1672 program { name: "enable";
1673 signal: "elm,state,enabled";
1675 action: STATE_SET "default" 0.0;
1676 target: "button_image";
1677 target: "elm.swallow.content.shadow.proxy";
1678 target: "elm.swallow.content.shadow.clipper";
1679 target: "icon_clipper";
1681 after: "enable_text";
1683 program { name: "enable_text";
1687 get_state(PART:"elm.text", st, 30, vl);
1688 if (!strcmp(st, "disabled_visible"))
1689 set_state(PART:"elm.text", "visible", 0.0);
1691 set_state(PART:"elm.text", "default", 0.0);
1692 set_int(button_state, BUTTON_STATE_ENABLED);
1695 program { name: "action_focus";
1696 signal: "elm,action,focus_highlight,show";
1698 action: STATE_SET "focused" 0.0;
1699 target: "focus_image";
1701 program { name: "action_unfocus";
1702 signal: "elm,action,focus_highlight,hide";
1704 action: STATE_SET "default" 0.0;
1705 target: "focus_image";
1710 ///////////////////////////////////////////////////////////////////////////////////////
1711 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, min_width, min_height) \
1712 group { name: "elm/button/base/"style_name; \
1714 item: "focus_highlight" "on"; \
1717 image: "00_circle_button.png" COMP; \
1718 image: "00_circle_button_press.png" COMP; \
1719 image: "00_circle_button_dim.png" COMP; \
1720 image: image_normal COMP; \
1721 image: 00_circle_button_focus.png COMP; \
1724 part { name: "button_image"; \
1726 description { state: "default" 0.0; \
1727 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1728 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1729 image.normal: "00_circle_button.png"; \
1732 state: "clicked" 0.0; \
1733 inherit: "default" 0.0; \
1734 image.normal: "00_circle_button_press.png"; \
1737 state: "disabled" 0.0; \
1738 inherit: "default" 0.0; \
1739 image.normal: "00_circle_button_dim.png"; \
1742 part { name: "left_top_padding"; \
1745 description { state: "default" 0.0; \
1746 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
1747 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
1750 rel1.to: "button_image"; \
1751 rel2.to: "button_image"; \
1754 part { name: "right_bottom_padding"; \
1757 description { state: "default" 0.0; \
1758 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
1759 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
1763 relative: 1.0 1.0; \
1764 to: "button_image"; \
1766 rel2.to: "button_image"; \
1769 part { name: "button_center_part"; \
1771 description { state: "default" 0.0; \
1772 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
1773 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
1774 image.normal: image_normal; \
1776 relative: 1.0 1.0; \
1777 to: "left_top_padding"; \
1780 relative: 0.0 0.0; \
1781 to: "right_bottom_padding"; \
1785 part { name: "elm.swallow.icon.shadow.proxy"; \
1787 clip_to: "elm.icon.proxy.clipper"; \
1789 description { state: "default" 0.0; \
1790 source: "button_center_part"; \
1791 proxy.source_clip: 0; \
1793 to: "button_center_part"; \
1794 offset: BUTTON_CIRCLE_STYLE_NORMAL_TOP_OFFSET_INC; \
1797 to: "button_center_part"; \
1798 offset: BUTTON_CIRCLE_STYLE_NORMAL_BOTTOM_OFFSET_INC; \
1801 description { state: "clicked" 0.0; \
1802 inherit: "default" 0.0; \
1804 to: "button_center_part"; \
1805 offset: BUTTON_CIRCLE_STYLE_PRESSED_TOP_OFFSET_INC; \
1808 to: "button_center_part"; \
1809 offset: BUTTON_CIRCLE_STYLE_PRESSED_BOTTOM_OFFSET_INC; \
1812 description { state: "disabled" 0.0; \
1813 inherit: "default" 0.0; \
1816 part { name: "elm.swallow.icon.proxy"; \
1819 clip_to: "icon_clipper"; \
1820 description { state: "default" 0.0; \
1821 source: "button_center_part"; \
1822 proxy.source_clip: 0; \
1823 rel1.to: "button_center_part"; \
1824 rel2.to: "button_center_part"; \
1827 part { name: "elm.icon.proxy.clipper"; \
1829 description { state: "default" 0.0; \
1830 color: BUTTON_CIRCLE_STYLE_CLIPPER_DEFAULT_COLOR_INC; \
1832 description { state: "clicked" 0.0; \
1833 color: BUTTON_CIRCLE_STYLE_ICON_CLIPPER_PRESSED_COLOR_INC; \
1835 description { state: "disabled" 0.0; \
1836 color: BUTTON_CIRCLE_STYLE_ICON_CLIPPER_DISABLED_COLOR_INC; \
1839 part { name: "icon_clipper"; \
1842 description { state: "default" 0.0; \
1843 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
1845 description { state: "clicked" 0.0; \
1846 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
1848 description { state: "disabled" 0.0; \
1849 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
1852 part { name: "focus_image"; \
1856 description { state: "default" 0.0; \
1857 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1858 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1860 rel1.to : "button_image"; \
1861 rel2.to : "button_image"; \
1863 normal: "00_circle_button_focus.png"; \
1867 description { state: "focused" 0.0; \
1868 inherit: "default" 0.0; \
1872 part { name: "over1"; \
1874 ignore_flags: ON_HOLD; \
1875 description { state: "default" 0.0; \
1877 min: min_width min_height; \
1880 part { name: "over2"; \
1883 description { state: "default" 0.0; \
1887 part { name: "disabler"; \
1889 description { state: "default" 0.0; \
1893 description { state: "disabled" 0.0; \
1894 inherit: "default" 0.0; \
1900 program { name: "button_click"; \
1901 signal: "mouse,down,1"; \
1903 action: SIGNAL_EMIT "elm,action,press" ""; \
1904 after: "button_click_anim"; \
1906 program { name: "button_click_anim"; \
1907 action: STATE_SET "clicked" 0.0; \
1908 target: "button_image"; \
1909 target: "elm.swallow.icon.shadow.proxy"; \
1910 target: "elm.icon.proxy.clipper"; \
1911 target: "icon_clipper"; \
1913 program { name: "button_double_click"; \
1914 signal: "mouse,down,1,double"; \
1916 after: "button_click_anim"; \
1918 program { name: "button_unclick"; \
1919 signal: "mouse,up,1"; \
1921 action: SIGNAL_EMIT "elm,action,unpress" ""; \
1922 after: "button_unclick_anim"; \
1924 program { name: "button_unclick_anim"; \
1925 action: STATE_SET "default" 0.0; \
1926 target: "button_image"; \
1927 target: "elm.swallow.icon.shadow.proxy"; \
1928 target: "elm.icon.proxy.clipper"; \
1929 target: "icon_clipper"; \
1931 program { name: "touch_snd"; \
1932 signal: "mouse,clicked,1"; \
1934 action: PLAY_SAMPLE "touch_sound" 1.0; \
1935 after: button_unclick3; \
1937 program { name: "button_unclick3"; \
1938 action: SIGNAL_EMIT "elm,action,click" ""; \
1940 program { name: "disable"; \
1941 signal: "elm,state,disabled"; \
1943 action: STATE_SET "disabled" 0.0; \
1944 target: "disabler"; \
1945 target: "button_image"; \
1946 target: "elm.swallow.icon.shadow.proxy"; \
1947 target: "elm.icon.proxy.clipper"; \
1948 target: "icon_clipper"; \
1950 program { name: "enable"; \
1951 signal: "elm,state,enabled"; \
1953 action: STATE_SET "default" 0.0; \
1954 target: "disabler"; \
1955 target: "button_image"; \
1956 target: "elm.swallow.icon.shadow.proxy"; \
1957 target: "elm.icon.proxy.clipper"; \
1958 target: "icon_clipper"; \
1960 program { name: "action_focus"; \
1961 signal: "elm,action,focus_highlight,show"; \
1963 action: STATE_SET "focused" 0.0; \
1964 target: "focus_image"; \
1966 program { name: "action_unfocus"; \
1967 signal: "elm,action,focus_highlight,hide"; \
1969 action: STATE_SET "default" 0.0; \
1970 target: "focus_image"; \
1975 ///////////////////////////////////////////////////////////////////////////////////////
1976 BUTTON_CIRCLE_STYLES("reveal","00_button_right.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
1978 ///////////////////////////////////////////////////////////////////////////////////////
1979 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_right.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
1981 ///////////////////////////////////////////////////////////////////////////////////////
1982 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
1984 ///////////////////////////////////////////////////////////////////////////////////////
1985 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
1987 ///////////////////////////////////////////////////////////////////////////////////////
1988 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
1990 ///////////////////////////////////////////////////////////////////////////////////////
1991 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
1993 ///////////////////////////////////////////////////////////////////////////////////////
1994 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
1996 ///////////////////////////////////////////////////////////////////////////////////////
1997 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
1999 ///////////////////////////////////////////////////////////////////////////////////////
2000 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2002 ///////////////////////////////////////////////////////////////////////////////////////
2003 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2005 ///////////////////////////////////////////////////////////////////////////////////////
2006 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2008 ///////////////////////////////////////////////////////////////////////////////////////
2009 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2011 ///////////////////////////////////////////////////////////////////////////////////////
2012 BUTTON_CIRCLE_STYLES("plus", "00_button_add.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2014 ///////////////////////////////////////////////////////////////////////////////////////
2015 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_add.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2017 ///////////////////////////////////////////////////////////////////////////////////////
2018 BUTTON_CIRCLE_STYLES("minus", "00_button_delete.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2020 ///////////////////////////////////////////////////////////////////////////////////////
2021 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_delete.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2023 ///////////////////////////////////////////////////////////////////////////////////////
2024 BUTTON_CIRCLE_STYLES("cancel", "00_button_expand_cancel.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2026 ///////////////////////////////////////////////////////////////////////////////////////
2027 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_expand_cancel.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2029 ///////////////////////////////////////////////////////////////////////////////////////
2030 BUTTON_CIRCLE_STYLES("send", "00_button_expand_send.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2032 ///////////////////////////////////////////////////////////////////////////////////////
2033 BUTTON_CIRCLE_STYLES("send/extended", "00_button_expand_send.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2034 ///////////////////////////////////////////////////////////////////////////////////////
2036 ///////////////////////////////////////////////////////////////////////////////////////
2037 BUTTON_CIRCLE_STYLES("contact", "00_button_contact.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2038 ///////////////////////////////////////////////////////////////////////////////////////
2040 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2041 group { name: "elm/button/base/"style_name; \
2042 inherit: "elm/button/base/info"; \
2044 image: "00_circle_button_delete.png" COMP; \
2045 image: "00_circle_button_delete_press.png" COMP; \
2046 image: "00_circle_button_delete_dim.png" COMP; \
2047 image: "00_button_warning.png" COMP; \
2050 part { name: "button_image"; \
2052 description { state: "default" 0.0; \
2053 image.normal: "00_circle_button_delete.png"; \
2056 state: "clicked" 0.0; \
2057 inherit: "default" 0.0; \
2058 image.normal: "00_circle_button_delete_press.png"; \
2061 state: "disabled" 0.0; \
2062 inherit: "default" 0.0; \
2063 image.normal: "00_circle_button_delete_dim.png"; \
2066 part { name: "button_center_part"; \
2068 description { state: "default" 0.0; \
2069 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2070 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2071 image.normal: "00_button_warning.png"; \
2073 relative: 1.0 1.0; \
2074 to: "left_top_padding"; \
2077 relative: 0.0 0.0; \
2078 to: "right_bottom_padding"; \
2082 part { name: "elm.swallow.icon.shadow.proxy"; \
2084 clip_to: "elm.icon.proxy.clipper"; \
2086 description { state: "default" 0.0; \
2087 source: "button_center_part"; \
2088 proxy.source_clip: 0; \
2090 to: "button_center_part"; \
2091 offset: BUTTON_WARNING_STYLE_NORMAL_TOP_OFFSET_INC; \
2094 to: "button_center_part"; \
2095 offset: BUTTON_WARNING_STYLE_NORMAL_BOTTOM_OFFSET_INC; \
2098 description { state: "clicked" 0.0; \
2099 inherit: "default" 0.0; \
2101 to: "button_center_part"; \
2102 offset: BUTTON_WARNING_STYLE_PRESSED_TOP_OFFSET_INC; \
2105 to: "button_center_part"; \
2106 offset: BUTTON_WARNING_STYLE_PRESSED_BOTTOM_OFFSET_INC; \
2109 description { state: "disabled" 0.0; \
2110 inherit: "default" 0.0; \
2113 part { name: "elm.icon.proxy.clipper"; \
2115 description { state: "default" 0.0; \
2116 color: BUTTON_WARNING_STYLE_CLIPPER_NORMAL_COLOR_INC; \
2118 description { state: "clicked" 0.0; \
2119 color: BUTTON_WARNING_STYLE_CLIPPER_PRESSED_COLOR_INC; \
2121 description { state: "disabled" 0.0; \
2122 color: BUTTON_WARNING_STYLE_CLIPPER_DISABLED_COLOR_INC; \
2125 part { name: "icon_clipper"; \
2128 description { state: "default" 0.0; \
2129 color: BUTTON_WARNING_STYLE_NORMAL_COLOR_INC; \
2131 description { state: "clicked" 0.0; \
2132 color: BUTTON_WARNING_STYLE_PRESSED_COLOR_INC; \
2134 description { state: "disabled" 0.0; \
2135 color: BUTTON_WARNING_STYLE_DISABLED_COLOR_INC; \
2138 part { name: "over1"; \
2140 ignore_flags: ON_HOLD; \
2141 description { state: "default" 0.0; \
2143 min: min_width min_height; \
2149 ///////////////////////////////////////////////////////////////////////////////////////
2150 BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2152 ///////////////////////////////////////////////////////////////////////////////////////
2153 BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2155 ///////////////////////////////////////////////////////////////////////////////////////
2156 group { name: "elm/button/base/circle/empty";
2158 item: "focus_highlight" "on";
2161 image: "00_circle_button.png" COMP;
2162 image: "00_circle_button_press.png" COMP;
2163 image: "00_circle_button_dim.png" COMP;
2164 image: 00_circle_button_focus.png COMP;
2167 part { name: "button_image";
2169 description { state: "default" 0.0;
2170 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2171 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2173 image.normal: "00_circle_button.png";
2175 description { state: "clicked" 0.0;
2176 inherit: "default" 0.0;
2177 image.normal: "00_circle_button_press.png";
2179 description { state: "disabled" 0.0;
2180 inherit: "default" 0.0;
2181 image.normal: "00_circle_button_dim.png";
2184 part { name: "left_top_padding";
2187 description { state: "default" 0.0;
2188 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2189 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2192 rel1.to: "button_image";
2193 rel2.to: "button_image";
2196 part { name: "right_bottom_padding";
2199 description { state: "default" 0.0;
2200 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2201 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2208 rel2.to: "button_image";
2211 part { name: "elm.swallow.content";
2214 description { state: "default" 0.0;
2215 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2216 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2220 to: "left_top_padding";
2224 to: "right_bottom_padding";
2228 part { name: "elm.swallow.icon.shadow.proxy";
2230 clip_to: "elm.icon.proxy.clipper";
2232 description { state: "default" 0.0;
2233 source: "elm.swallow.content";
2234 proxy.source_clip: 0;
2236 to: "elm.swallow.content";
2237 offset: BUTTON_CIRCLE_STYLE_NORMAL_TOP_OFFSET_INC;
2240 to: "elm.swallow.content";
2241 offset: BUTTON_CIRCLE_STYLE_NORMAL_BOTTOM_OFFSET_INC;
2244 description { state: "clicked" 0.0;
2245 inherit: "default" 0.0;
2247 to: "elm.swallow.content";
2248 offset: BUTTON_CIRCLE_STYLE_PRESSED_TOP_OFFSET_INC;
2251 to: "elm.swallow.content";
2252 offset: BUTTON_CIRCLE_STYLE_PRESSED_BOTTOM_OFFSET_INC;
2255 description { state: "disabled" 0.0;
2256 inherit: "default" 0.0;
2259 part { name: "elm.swallow.icon.proxy";
2262 clip_to: "icon_clipper";
2263 description { state: "default" 0.0;
2264 source: "elm.swallow.content";
2265 proxy.source_clip: 0;
2266 rel1.to: "elm.swallow.content";
2267 rel2.to: "elm.swallow.content";
2270 part { name: "elm.icon.proxy.clipper";
2272 description { state: "default" 0.0;
2273 color: BUTTON_CIRCLE_STYLE_CLIPPER_DEFAULT_COLOR_INC;
2275 description { state: "clicked" 0.0;
2276 color: BUTTON_CIRCLE_STYLE_ICON_CLIPPER_PRESSED_COLOR_INC;
2278 description { state: "disabled" 0.0;
2279 color: BUTTON_CIRCLE_STYLE_ICON_CLIPPER_DISABLED_COLOR_INC;
2282 part { name: "icon_clipper";
2285 description { state: "default" 0.0;
2286 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2288 description { state: "clicked" 0.0;
2289 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2291 description { state: "disabled" 0.0;
2292 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2295 part { name: "focus_image";
2299 description { state: "default" 0.0;
2300 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2301 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2303 rel1.to : "button_image";
2304 rel2.to : "button_image";
2306 normal: "00_circle_button_focus.png";
2310 description { state: "focused" 0.0;
2311 inherit: "default" 0.0;
2315 part { name: "over1";
2317 ignore_flags: ON_HOLD;
2318 description { state: "default" 0.0;
2322 part { name: "over2";
2325 description { state: "default" 0.0;
2329 part { name: "disabler";
2331 description { state: "default" 0.0;
2335 description { state: "disabled" 0.0;
2336 inherit: "default" 0.0;
2342 program { name: "button_click";
2343 signal: "mouse,down,1";
2345 action: SIGNAL_EMIT "elm,action,press" "";
2346 after: "button_click_anim";
2348 program { name: "button_click_anim";
2349 action: STATE_SET "clicked" 0.0;
2350 target: "button_image";
2351 target: "elm.swallow.icon.shadow.proxy";
2352 target: "elm.icon.proxy.clipper";
2353 target: "icon_clipper";
2355 program { name: "button_double_click";
2356 signal: "mouse,down,1,double";
2358 after: "button_click_anim";
2360 program { name: "touch_snd";
2361 signal: "mouse,clicked,1";
2363 action: PLAY_SAMPLE "touch_sound" 1.0;
2364 after: button_unclick2;
2366 program { name: "button_unclick2";
2367 action: SIGNAL_EMIT "elm,action,click" "";
2369 program { name: "button_unclick";
2370 signal: "mouse,up,1";
2372 action: SIGNAL_EMIT "elm,action,unpress" "";
2373 after: "button_unclick_anim";
2375 program { name: "button_unclick_anim";
2376 action: STATE_SET "default" 0.0;
2377 target: "button_image";
2378 target: "elm.swallow.icon.shadow.proxy";
2379 target: "elm.icon.proxy.clipper";
2380 target: "icon_clipper";
2382 program { name: "disable";
2383 signal: "elm,state,disabled";
2385 action: STATE_SET "disabled" 0.0;
2387 target: "button_image";
2388 target: "elm.swallow.icon.shadow.proxy";
2389 target: "elm.icon.proxy.clipper";
2390 target: "icon_clipper";
2392 program { name: "enable";
2393 signal: "elm,state,enabled";
2395 action: STATE_SET "default" 0.0;
2397 target: "button_image";
2398 target: "elm.swallow.icon.shadow.proxy";
2399 target: "elm.icon.proxy.clipper";
2400 target: "icon_clipper";
2402 program { name: "action_focus";
2403 signal: "elm,action,focus_highlight,show";
2405 action: STATE_SET "focused" 0.0;
2406 target: "focus_image";
2408 program { name: "action_unfocus";
2409 signal: "elm,action,focus_highlight,hide";
2411 action: STATE_SET "default" 0.0;
2412 target: "focus_image";
2417 ///////////////////////////////////////////////////////////////////////////////////////
2418 #define BUTTON_EDIT_STYLES(style_name, image_normal, min_width, min_height) \
2419 group { name: "elm/button/base/contacts/"style_name; \
2420 alias: "elm/button/base/"style_name; \
2422 item: "focus_highlight" "on"; \
2425 image: "00_circle_button.png" COMP; \
2426 image: "00_circle_button_press.png" COMP; \
2427 image: "00_circle_button_dim.png" COMP; \
2428 image: image_normal COMP; \
2429 image: 00_circle_button_focus.png COMP;\
2432 part { name: "button_image"; \
2434 description { state: "default" 0.0; \
2435 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2436 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2437 image.normal: "00_circle_button.png"; \
2439 description { state: "clicked" 0.0; \
2440 inherit: "default" 0.0; \
2441 image.normal: "00_circle_button_press.png"; \
2443 description { state: "disabled" 0.0; \
2444 inherit: "default" 0.0; \
2445 image.normal: "00_circle_button_dim.png"; \
2448 part { name: "button_center_part"; \
2451 description { state: "default" 0.0; \
2452 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2453 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2454 image.normal: image_normal; \
2457 part { name: "elm.swallow.icon.shadow.proxy"; \
2459 clip_to: "elm.icon.proxy.clipper"; \
2461 description { state: "default" 0.0; \
2462 source: "button_center_part"; \
2463 proxy.source_clip: 0; \
2465 to: "button_center_part"; \
2466 offset: BUTTON_EDIT_STYLE_NORMAL_TOP_OFFSET_INC; \
2469 to: "button_center_part"; \
2470 offset: BUTTON_EDIT_STYLE_NORMAL_BOTTOM_OFFSET_INC; \
2473 description { state: "clicked" 0.0; \
2474 inherit: "default" 0.0; \
2476 to: "button_center_part"; \
2477 offset: BUTTON_EDIT_STYLE_PRESSED_TOP_OFFSET_INC; \
2480 to: "button_center_part"; \
2481 offset: BUTTON_EDIT_STYLE_PRESSED_BOTTOM_OFFSET_INC; \
2484 description { state: "disabled" 0.0; \
2485 inherit: "default" 0.0; \
2488 part { name: "elm.swallow.icon.proxy"; \
2491 clip_to: "icon_clipper"; \
2492 description { state: "default" 0.0; \
2493 source: "button_center_part"; \
2494 proxy.source_clip: 0; \
2495 rel1.to: "button_center_part"; \
2496 rel2.to: "button_center_part"; \
2499 part { name: "elm.icon.proxy.clipper"; \
2501 description { state: "default" 0.0; \
2502 color: BUTTON_EDIT_STYLE_CLIPPER_DEFAULT_COLOR_INC; \
2504 description { state: "clicked" 0.0; \
2505 color: BUTTON_EDIT_STYLE_ICON_CLIPPER_PRESSED_COLOR_INC; \
2507 description { state: "disabled" 0.0; \
2508 color: BUTTON_EDIT_STYLE_ICON_CLIPPER_DISABLED_COLOR_INC; \
2511 part { name: "icon_clipper"; \
2514 description { state: "default" 0.0; \
2515 color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
2517 description { state: "clicked" 0.0; \
2518 color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
2520 description { state: "disabled" 0.0; \
2521 color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
2524 part { name: "focus_image"; \
2528 description { state: "default" 0.0; \
2529 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2530 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2532 rel1.to : "button_image"; \
2533 rel2.to : "button_image"; \
2535 normal: "00_circle_button_focus.png"; \
2539 description { state: "focused" 0.0; \
2540 inherit: "default" 0.0; \
2544 part { name: "over1"; \
2547 ignore_flags: ON_HOLD; \
2548 description { state: "default" 0.0; \
2550 min: min_width min_height; \
2553 part { name: "over2"; \
2556 description { state: "default" 0.0; \
2560 part { name: "disabler"; \
2562 description { state: "default" 0.0; \
2566 description { state: "disabled" 0.0; \
2567 inherit: "default" 0.0; \
2573 program { name: "button_click"; \
2574 signal: "mouse,down,1"; \
2576 action: SIGNAL_EMIT "elm,action,press" ""; \
2577 after: "button_click_anim"; \
2579 program { name: "button_click_anim"; \
2580 action: STATE_SET "clicked" 0.0; \
2581 target: "button_image"; \
2582 target: "elm.swallow.icon.shadow.proxy"; \
2583 target: "elm.icon.proxy.clipper"; \
2584 target: "icon_clipper"; \
2586 program { name: "button_double_click"; \
2587 signal: "mouse,down,1,double"; \
2589 after: "button_click_anim"; \
2591 program { name: "button_unclick"; \
2592 signal: "mouse,up,1"; \
2594 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2595 after: "button_unclick_anim"; \
2597 program { name: "button_unclick_anim"; \
2598 action: STATE_SET "default" 0.0; \
2599 target: "button_image"; \
2600 target: "elm.swallow.icon.shadow.proxy"; \
2601 target: "elm.icon.proxy.clipper"; \
2602 target: "icon_clipper"; \
2604 program { name: "touch_snd"; \
2605 signal: "mouse,clicked,1"; \
2607 action: PLAY_SAMPLE "touch_sound" 1.0; \
2608 after: button_unclick3; \
2610 program { name: "button_unclick3"; \
2611 action: SIGNAL_EMIT "elm,action,click" ""; \
2613 program { name: "disable"; \
2614 signal: "elm,state,disabled"; \
2616 action: STATE_SET "disabled" 0.0; \
2617 target: "disabler"; \
2618 target: "button_image"; \
2619 target: "elm.swallow.icon.shadow.proxy"; \
2620 target: "elm.icon.proxy.clipper"; \
2621 target: "icon_clipper"; \
2623 program { name: "enable"; \
2624 signal: "elm,state,enabled"; \
2626 action: STATE_SET "default" 0.0; \
2627 target: "disabler"; \
2628 target: "button_image"; \
2629 target: "elm.swallow.icon.shadow.proxy"; \
2630 target: "elm.icon.proxy.clipper"; \
2631 target: "icon_clipper"; \
2633 program { name: "action_focus"; \
2634 signal: "elm,action,focus_highlight,show"; \
2636 action: STATE_SET "focused" 0.0; \
2637 target: "focus_image"; \
2639 program { name: "action_unfocus"; \
2640 signal: "elm,action,focus_highlight,hide"; \
2642 action: STATE_SET "default" 0.0; \
2643 target: "focus_image"; \
2647 ///////////////////////////////////////////////////////////////////////////////////////
2648 BUTTON_EDIT_STYLES("icon_plus", "00_button_add.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2650 ///////////////////////////////////////////////////////////////////////////////////////
2651 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_add.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2653 ///////////////////////////////////////////////////////////////////////////////////////
2654 BUTTON_EDIT_STYLES("icon_expand", "00_button_expand_closed.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2656 ///////////////////////////////////////////////////////////////////////////////////////
2657 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_expand_closed.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2659 ///////////////////////////////////////////////////////////////////////////////////////
2660 BUTTON_EDIT_STYLES("icon_expand_closed", "00_button_expand_closed.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2662 ///////////////////////////////////////////////////////////////////////////////////////
2663 BUTTON_EDIT_STYLES("icon_expand_opened", "00_button_expand_opened.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2665 ///////////////////////////////////////////////////////////////////////////////////////
2667 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
2668 group { name: "elm/button/base/contacts/"style_name; \
2669 alias: "elm/button/base/"style_name; \
2670 inherit: "elm/button/base/contacts/icon_plus"; \
2672 image: "00_circle_button_delete.png" COMP; \
2673 image: "00_circle_button_delete_press.png" COMP; \
2674 image: "00_circle_button_delete_dim.png" COMP; \
2675 image: "00_button_delete.png" COMP; \
2678 part { name: "button_image"; \
2680 description { state: "default" 0.0; \
2681 image.normal: "00_circle_button_delete.png"; \
2683 description { state: "clicked" 0.0; \
2684 inherit: "default" 0.0; \
2685 image.normal: "00_circle_button_delete_press.png"; \
2687 description { state: "disabled" 0.0; \
2688 inherit: "default" 0.0; \
2689 image.normal: "00_circle_button_delete_dim.png"; \
2692 part { name: "button_center_part"; \
2695 description { state: "default" 0.0; \
2696 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2697 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2698 image.normal: "00_button_delete.png"; \
2701 part { name: "elm.swallow.icon.shadow.proxy"; \
2703 clip_to: "elm.icon.proxy.clipper"; \
2705 description { state: "default" 0.0; \
2706 source: "button_center_part"; \
2707 proxy.source_clip: 0; \
2709 to: "button_center_part"; \
2710 offset: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_TOP_OFFSET_INC; \
2713 to: "button_center_part"; \
2714 offset: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_BOTTOM_OFFSET_INC; \
2717 description { state: "clicked" 0.0; \
2718 inherit: "default" 0.0; \
2720 to: "button_center_part"; \
2721 offset: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_TOP_OFFSET_INC; \
2724 to: "button_center_part"; \
2725 offset: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_BOTTOM_OFFSET_INC; \
2728 description { state: "disabled" 0.0; \
2729 inherit: "default" 0.0; \
2732 part { name: "elm.icon.proxy.clipper"; \
2734 description { state: "default" 0.0; \
2735 color: BUTTON_CIRCLE_STYLE_MINUS_SHADOW_NORMAL_COLOR_INC; \
2737 description { state: "clicked" 0.0; \
2738 color: BUTTON_CIRCLE_STYLE_MINUS_SHADOW_PRESSED_COLOR_INC; \
2740 description { state: "disabled" 0.0; \
2741 color: BUTTON_CIRCLE_STYLE_MINUS_SHADOW_DISABLED_COLOR_INC; \
2744 part { name: "icon_clipper"; \
2747 description { state: "default" 0.0; \
2748 color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
2750 description { state: "clicked" 0.0; \
2751 color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
2753 description { state: "disabled" 0.0; \
2754 color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
2757 part { name: "over1"; \
2760 ignore_flags: ON_HOLD; \
2761 description { state: "default" 0.0; \
2763 min: min_width min_height; \
2769 ///////////////////////////////////////////////////////////////////////////////////////
2770 BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2772 ///////////////////////////////////////////////////////////////////////////////////////
2773 BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2775 ///////////////////////////////////////////////////////////////////////////////////////
2776 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
2777 group { name: "elm/button/base/"style_name; \
2779 item: "focus_highlight" "on"; \
2782 image: "00_button_01.png" COMP; \
2783 image: "00_button_01_press.png" COMP; \
2784 image: "00_button_01_dim.png" COMP; \
2785 image: image_normal COMP; \
2786 image: "00_button_01_focus.png" COMP; \
2789 part { name: "button_image";\
2792 description { state: "default" 0.0; \
2793 min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
2795 normal: "00_button_01.png"; \
2796 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
2800 description { state: "clicked" 0.0; \
2801 inherit: "default" 0.0; \
2802 image.normal: "00_button_01_press.png"; \
2804 description { state: "disabled" 0.0; \
2805 inherit: "default" 0.0; \
2806 image.normal: "00_button_01_dim.png"; \
2809 part { name: "focus_image"; \
2813 description { state: "default" 0.0; \
2815 rel1.to : "button_image"; \
2816 rel2.to : "button_image"; \
2818 normal: "00_button_01_focus.png"; \
2819 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
2823 description { state: "focused" 0.0; \
2824 inherit: "default" 0.0; \
2828 part { name: "padding_left_top"; \
2831 description { state: "default" 0.0; \
2833 rel2.relative: 0.0 0.0; \
2834 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
2838 part { name: "padding_right_bottom"; \
2841 description { state: "default" 0.0; \
2843 rel1.relative: 1.0 1.0; \
2844 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
2848 part { name: "jump_image"; \
2850 description { state: "default" 0.0; \
2851 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
2852 max: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
2854 relative: 1.0 0.0; \
2855 to_x: "padding_left_top"; \
2858 relative: 0.0 1.0; \
2859 to_x: "padding_right_bottom"; \
2861 image.normal: image_normal; \
2863 aspect_preference: VERTICAL; \
2866 part { name: "jump_image.shadow.proxy"; \
2869 clip_to: "elm.swallow.icon.shadow.proxy"; \
2870 description { state: "default" 0.0; \
2871 source: "jump_image"; \
2872 proxy.source_clip: 0; \
2875 offset: BUTTON_JUMP_TO_NORMAL_TOP_OFFSET_INC; \
2879 offset: BUTTON_JUMP_TO_NORMAL_BOTTOM_OFFSET_INC; \
2882 description { state: "clicked" 0.0; \
2883 inherit: "default" 0.0; \
2886 offset: BUTTON_JUMP_TO_PRESSED_TOP_OFFSET_INC; \
2890 offset: BUTTON_JUMP_TO_PRESSED_BOTTOM_OFFSET_INC; \
2893 description { state: "disabled" 0.0; \
2894 inherit: "default" 0.0; \
2897 part { name: "jump_image.proxy"; \
2900 clip_to: "elm.swallow.icon.proxy"; \
2901 description { state: "default" 0.0; \
2902 source: "jump_image"; \
2903 proxy.source_clip: 0; \
2904 rel1.to: "jump_image"; \
2905 rel2.to: "jump_image"; \
2908 part { name: "elm.swallow.icon.shadow.proxy"; \
2911 description { state: "default" 0.0; \
2912 color: BUTTON_JUMP_SHADOW_NORMAL_COLOR_INC; \
2914 description { state: "clicked" 0.0; \
2915 color: BUTTON_JUMP_SHADOW_PRESSED_COLOR_INC; \
2917 description { state: "disabled" 0.0; \
2918 color: BUTTON_JUMP_SHADOW_DISABLED_COLOR_INC; \
2921 part { name: "elm.swallow.icon.proxy"; \
2924 description { state: "default" 0.0; \
2925 color: BUTTON_JUMP_NORMAL_COLOR_INC; \
2927 description { state: "clicked" 0.0; \
2928 color: BUTTON_JUMP_PRESSED_COLOR_INC; \
2930 description { state: "disabled" 0.0; \
2931 color: BUTTON_JUMP_DISABLED_COLOR_INC; \
2934 part { name: "over1"; \
2937 ignore_flags: ON_HOLD; \
2938 description { state: "default" 0.0; \
2940 rel1.relative: 0.0 0.0; \
2941 rel2.relative: 1.0 1.0; \
2944 part { name: "over2"; \
2947 description { state: "default" 0.0; \
2953 program { name: "button_click"; \
2954 signal: "mouse,down,1"; \
2956 action: SIGNAL_EMIT "elm,action,press" ""; \
2957 after: "button_click_anim"; \
2959 program { name: "button_click_anim"; \
2960 action: STATE_SET "clicked" 0.0; \
2961 target: "button_image"; \
2962 target: "jump_image.shadow.proxy"; \
2963 target: "elm.swallow.icon.shadow.proxy"; \
2964 target: "elm.swallow.icon.proxy"; \
2966 program { name: "button_double_click"; \
2967 signal: "mouse,down,1,double"; \
2969 after: "button_click_anim"; \
2971 program { name: "button_unclick"; \
2972 signal: "mouse,up,1"; \
2974 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2975 after: "button_unclick_anim"; \
2977 program { name: "button_unclick_anim"; \
2978 action: STATE_SET "default" 0.0; \
2979 target: "button_image"; \
2980 target: "jump_image.shadow.proxy"; \
2981 target: "elm.swallow.icon.shadow.proxy"; \
2982 target: "elm.swallow.icon.proxy"; \
2984 program { name: "touch_snd"; \
2985 signal: "mouse,clicked,1"; \
2987 action: PLAY_SAMPLE "touch_sound" 1.0; \
2988 after: button_unclick3; \
2990 program { name: "button_unclick3"; \
2991 action: SIGNAL_EMIT "elm,action,click" ""; \
2993 program { name: "disable"; \
2994 signal: "elm,state,disabled"; \
2996 action: STATE_SET "disabled" 0.0; \
2997 target: "button_image"; \
2998 target: "jump_image.shadow.proxy"; \
2999 target: "elm.swallow.icon.shadow.proxy"; \
3000 target: "elm.swallow.icon.proxy"; \
3002 program { name: "enable"; \
3003 signal: "elm,state,enabled"; \
3005 action: STATE_SET "default" 0.0; \
3006 target: "button_image"; \
3007 target: "jump_image.shadow.proxy"; \
3008 target: "elm.swallow.icon.shadow.proxy"; \
3009 target: "elm.swallow.icon.proxy"; \
3011 program { name: "action_focus"; \
3012 signal: "elm,action,focus_highlight,show"; \
3014 action: STATE_SET "focused" 0.0; \
3015 target: "focus_image"; \
3017 program { name: "action_unfocus"; \
3018 signal: "elm,action,focus_highlight,hide"; \
3020 action: STATE_SET "default" 0.0; \
3021 target: "focus_image"; \
3026 ////////////////////////////////////////////////////////////////////////
3027 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3028 ////////////////////////////////////////////////////////////////////////
3029 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3031 ////////////////////////////////////////////////////////////////////////
3032 group { name: "elm/button/base/default";
3034 item: "focus_highlight" "on";
3037 image: "00_button_01.png" COMP;
3038 image: "00_button_01_press.png" COMP;
3039 image: "00_button_01_dim.png" COMP;
3040 image: "00_button_01_focus.png" COMP;
3043 style { name: "btn_base_default";
3044 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";
3049 style { name: "btn_base_default_pressed";
3050 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";
3055 style { name: "btn_base_default_dim";
3056 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";
3061 style { name: "btn_base_default_focus";
3062 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";
3069 public button_state = BUTTON_STATE_ENABLED;
3072 part { name: "button_image";
3074 description { state: "default" 0.0;
3075 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3077 normal: "00_button_01.png";
3078 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3082 description { state: "clicked" 0.0;
3083 inherit: "default" 0.0;
3084 image.normal: "00_button_01_press.png";
3086 description { state: "disabled" 0.0;
3087 inherit: "default" 0.0;
3088 image.normal: "00_button_01_dim.png";
3090 description { state: "focused" 0.0;
3091 inherit: "default" 0.0;
3092 image.normal: "00_button_01_press.png";
3095 part { name: "focus_image";
3099 description { state: "default" 0.0;
3101 rel1.to : "button_image";
3102 rel2.to : "button_image";
3104 normal: "00_button_01_focus.png";
3105 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3109 description { state: "focused" 0.0;
3110 inherit: "default" 0.0;
3114 part { name: "padding_left_top";
3118 description { state: "default" 0.0;
3120 rel2.relative: 0.0 0.0;
3121 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3126 part { name: "padding_right_bottom";
3130 description { state: "default" 0.0;
3132 rel1.relative: 1.0 1.0;
3133 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3138 part { name: "padding_icon_text";
3142 description { state: "default" 0.0; //when only icon or no icon is there
3148 to: "elm.swallow.content";
3150 rel2.to: "elm.swallow.content";
3153 description { state: "icononly" 0.0;
3154 inherit: "default" 0.0;
3156 description { state: "visible" 0.0; //when icon is visible
3157 inherit: "default" 0.0;
3158 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3161 part { name: "elm.swallow.content";
3165 description { state: "default" 0.0;
3171 to: "padding_left_top";
3175 to_x: "padding_left_top";
3176 to_y: "padding_right_bottom";
3179 description { state: "visible" 0.0;
3180 inherit: "default" 0.0;
3183 aspect_preference: VERTICAL;
3185 description { state: "icononly" 0.0;
3186 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3189 to_x: "padding_left_top";
3193 to_x: "padding_right_bottom";
3196 aspect_preference: VERTICAL;
3199 part { name: "elm.text";
3204 description { state: "default" 0.0;
3209 to_x: "padding_icon_text";
3210 to_y: "padding_left_top";
3214 to: "padding_right_bottom";
3217 style: "btn_base_default";
3220 description { state: "visible" 0.0;
3221 inherit: "default" 0.0;
3223 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3225 description { state: "clicked" 0.0;
3226 inherit: "default" 0.0;
3228 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3230 style: "btn_base_default_pressed";
3233 description { state: "disabled" 0.0;
3234 inherit: "default" 0.0;
3236 description { state: "disabled_visible" 0.0;
3237 inherit: "default" 0.0;
3240 style: "btn_base_default_dim";
3242 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3244 description { state: "focused" 0.0;
3245 inherit: "default" 0.0;
3248 style: "btn_base_default_focus";
3253 part { name: "over2";
3256 ignore_flags: ON_HOLD;
3257 description { state: "default" 0.0;
3261 part { name: "over3";
3264 description { state: "default" 0.0;
3268 part { name: "disclip";
3270 description { state: "default" 0.0;
3271 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3273 description { state: "disabled" 0.0;
3274 inherit: "default" 0.0;
3275 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3278 part { name: "disabler";
3280 description { state: "default" 0.0;
3284 description { state: "disabled" 0.0;
3285 inherit: "default" 0.0;
3291 program { name: "button_click";
3292 signal: "mouse,down,1";
3294 action: SIGNAL_EMIT "elm,action,press" "";
3295 after: "button_click_anim";
3297 program { name: "button_click_anim";
3298 action: STATE_SET "clicked" 0.0;
3299 target: "button_image";
3300 after: "text_clicked";
3302 program { name: "text_clicked";
3306 get_state(PART:"elm.text", st, 30, vl);
3307 if (!strcmp(st, "visible"))
3308 set_state(PART:"elm.text", "clicked", 0.0);
3311 program { name: "button_double_click";
3312 signal: "mouse,down,1,double";
3314 after: "button_click_anim";
3316 program { name: "button_unpress";
3317 action: SIGNAL_EMIT "elm,action,unpress" "";
3319 program { name: "button_mouseout_clicked";
3320 signal: "mouse,up,1";
3325 get_state(PART:"elm.swallow.content", st, 30, vl);
3326 if (strcmp(st, "icononly"))
3328 emit("elm,action,default,text,set", "");
3329 set_state(PART:"elm.text", "visible", 0.0);
3331 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3332 set_state(PART:"button_image", "default", 0.0);
3334 after: button_unpress;
3336 program { name: "touch_snd";
3337 signal: "mouse,clicked,1";
3339 action: PLAY_SAMPLE "touch_sound" 1.0;
3340 after: button_unclick3;
3342 program { name: "button_unclick3";
3343 action: SIGNAL_EMIT "elm,action,click" "";
3345 program { name: "text_show";
3346 signal: "elm,state,text,visible";
3351 get_state(PART:"elm.swallow.content", st, 30, vl);
3352 if (!strcmp(st, "icononly"))
3354 set_state(PART:"elm.swallow.content", "visible", 0.0);
3355 set_state(PART:"padding_icon_text", "visible", 0.0);
3357 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3358 set_state(PART:"elm.text", "visible", 0.0);
3360 set_state(PART:"elm.text", "disabled_visible", 0.0);
3363 program { name: "text_hide";
3364 signal: "elm,state,text,hidden";
3369 get_state(PART:"elm.swallow.content", st, 30, vl);
3370 if (!strcmp(st, "visible"))
3372 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3373 set_state(PART:"padding_icon_text", "icononly", 0.0);
3375 set_state(PART:"elm.text", "default", 0.0);
3378 program { name: "icon_show";
3379 signal: "elm,state,icon,visible";
3384 get_state(PART:"elm.text", st, 30, vl);
3385 if (!strcmp(st, "visible"))
3387 set_state(PART:"elm.swallow.content", "visible", 0.0);
3388 set_state(PART:"padding_icon_text", "visible", 0.0);
3392 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3393 set_state(PART:"padding_icon_text", "icononly", 0.0);
3397 program { name: "icon_hide";
3398 signal: "elm,state,icon,hidden";
3400 action: STATE_SET "default" 0.0;
3401 target: "elm.swallow.content";
3402 target: "padding_icon_text";
3404 program { name: "disable";
3405 signal: "elm,state,disabled";
3407 action: STATE_SET "disabled" 0.0;
3408 target: "button_image";
3411 after: "disable_text";
3413 program { name: "disable_text";
3417 get_state(PART:"elm.text", st, 30, vl);
3418 if (!strcmp(st, "visible"))
3419 set_state(PART:"elm.text", "disabled_visible", 0.0);
3421 set_state(PART:"elm.text", "disabled", 0.0);
3422 set_int(button_state, BUTTON_STATE_DISABLED);
3425 program { name: "enable";
3426 signal: "elm,state,enabled";
3428 action: STATE_SET "default" 0.0;
3429 target: "button_image";
3432 after: "enable_text";
3434 program { name: "enable_text";
3438 get_state(PART:"elm.text", st, 30, vl);
3439 if (!strcmp(st, "disabled_visible"))
3440 set_state(PART:"elm.text", "visible", 0.0);
3442 set_state(PART:"elm.text", "default", 0.0);
3443 set_int(button_state, BUTTON_STATE_ENABLED);
3446 program { name: "action_focus";
3447 signal: "elm,action,focus_highlight,show";
3449 action: STATE_SET "focused" 0.0;
3450 target: "focus_image";
3452 program { name: "action_unfocus";
3453 signal: "elm,action,focus_highlight,hide";
3455 action: STATE_SET "default" 0.0;
3456 target: "focus_image";
3461 ///////////////////////////////////////////////////////////////////////////////////////
3462 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal) \
3463 group { name: "elm/button/base/"style_name; \
3465 item: "focus_highlight" "on"; \
3468 image: image_normal COMP; \
3469 image: image_dim COMP; \
3470 image: "00_button_01.png" COMP; \
3471 image: "00_button_01_press.png" COMP; \
3472 image: "00_button_01_focus.png" COMP; \
3475 part { name: "button_image"; \
3477 description { state: "default" 0.0; \
3478 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3479 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3481 normal: "00_button_01.png"; \
3482 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3487 state: "clicked" 0.0; \
3488 inherit: "default" 0.0; \
3489 image.normal: "00_button_01_press.png"; \
3492 state: "disabled" 0.0; \
3493 inherit: "default" 0.0; \
3494 image.normal: "00_button_01_dim.png"; \
3497 state: "focused" 0.0; \
3498 inherit: "default" 0.0; \
3499 image.normal: "00_button_01_press.png"; \
3502 part { name: "focus_image"; \
3506 description { state: "default" 0.0; \
3507 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3508 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3510 rel1.to : "button_image"; \
3511 rel2.to : "button_image"; \
3513 normal: "00_button_01_focus.png"; \
3514 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3518 description { state: "focused" 0.0; \
3519 inherit: "default" 0.0; \
3523 part { name: "button_center_part"; \
3525 description { state: "default" 0.0; \
3526 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3527 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3528 image.normal: image_normal; \
3531 part { name: "elm.swallow.icon.shadow.proxy"; \
3533 clip_to: "elm.icon.proxy.clipper"; \
3535 description { state: "default" 0.0; \
3536 source: "button_center_part"; \
3537 proxy.source_clip: 0; \
3539 to: "button_center_part"; \
3540 offset: BUTTON_COLORSELECTOR_NORMAL_TOP_OFFSET_INC; \
3543 to: "button_center_part"; \
3544 offset: BUTTON_COLORSELECTOR_NORMAL_BOTTOM_OFFSET_INC; \
3547 description { state: "clicked" 0.0; \
3548 inherit: "default" 0.0; \
3550 to: "button_center_part"; \
3551 offset: BUTTON_COLORSELECTOR_PRESSED_TOP_OFFSET_INC; \
3554 to: "button_center_part"; \
3555 offset: BUTTON_COLORSELECTOR_PRESSED_BOTTOM_OFFSET_INC; \
3558 description { state: "disabled" 0.0; \
3559 inherit: "default" 0.0; \
3562 part { name: "elm.swallow.icon.proxy"; \
3565 clip_to: "icon_clipper"; \
3566 description { state: "default" 0.0; \
3567 source: "button_center_part"; \
3568 proxy.source_clip: 0; \
3569 rel1.to: "button_center_part"; \
3570 rel2.to: "button_center_part"; \
3573 part { name: "elm.icon.proxy.clipper"; \
3575 description { state: "default" 0.0; \
3576 color: BUTTON_COLORSELECTOR_SHADOW_NORMAL_COLOR_INC; \
3578 description { state: "clicked" 0.0; \
3579 color: BUTTON_COLORSELECTOR_SHADOW_PRESSED_COLOR_INC; \
3581 description { state: "disabled" 0.0; \
3582 color: BUTTON_COLORSELECTOR_SHADOW_DISABLED_COLOR_INC; \
3585 part { name: "icon_clipper"; \
3588 description { state: "default" 0.0; \
3589 color: BUTTON_COLORSELECTOR_NORMAL_COLOR_INC; \
3591 description { state: "clicked" 0.0; \
3592 color: BUTTON_COLORSELECTOR_PRESSED_COLOR_INC; \
3594 description { state: "disabled" 0.0; \
3595 color: BUTTON_COLORSELECTOR_DISABLED_COLOR_INC; \
3598 part { name: "over1"; \
3600 ignore_flags: ON_HOLD; \
3601 description { state: "default" 0.0; \
3605 part { name: "over2"; \
3608 description { state: "default" 0.0; \
3612 part { name: "disabler"; \
3614 description { state: "default" 0.0; \
3618 description { state: "disabled" 0.0; \
3619 inherit: "default" 0.0; \
3625 program { name: "button_click"; \
3626 signal: "mouse,down,1"; \
3628 action: SIGNAL_EMIT "elm,action,press" ""; \
3629 after: "button_click_anim"; \
3631 program { name: "button_click_anim"; \
3632 action: STATE_SET "clicked" 0.0; \
3633 target: "button_image"; \
3634 target: "elm.swallow.icon.proxy"; \
3635 target: "elm.icon.proxy.clipper"; \
3636 target: ""icon_clipper""; \
3638 program { name: "button_double_click"; \
3639 signal: "mouse,down,1,double"; \
3641 after: "button_click_anim"; \
3643 program { name: "button_unclick"; \
3644 signal: "mouse,up,1"; \
3646 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3647 after: "button_unclick_anim"; \
3649 program { name: "button_unclick_anim"; \
3650 action: STATE_SET "default" 0.0; \
3651 target: "button_image"; \
3652 target: "elm.swallow.icon.proxy"; \
3653 target: "elm.icon.proxy.clipper"; \
3654 target: ""icon_clipper""; \
3656 program { name: "touch_snd"; \
3657 signal: "mouse,clicked,1"; \
3659 action: PLAY_SAMPLE "touch_sound" 1.0; \
3660 after: button_unclick3; \
3662 program { name: "button_unclick3"; \
3663 action: SIGNAL_EMIT "elm,action,click" ""; \
3665 program { name: "disable"; \
3666 signal: "elm,state,disabled"; \
3668 action: STATE_SET "disabled" 0.0; \
3669 target: "disabler"; \
3670 target: "button_image"; \
3671 target: "elm.swallow.icon.proxy"; \
3672 target: "elm.icon.proxy.clipper"; \
3673 target: ""icon_clipper""; \
3675 program { name: "enable"; \
3676 signal: "elm,state,enabled"; \
3678 action: STATE_SET "default" 0.0; \
3679 target: "disabler"; \
3680 target: "button_image"; \
3681 target: "elm.swallow.icon.proxy"; \
3682 target: "elm.icon.proxy.clipper"; \
3683 target: ""icon_clipper""; \
3685 program { name: "action_focus"; \
3686 signal: "elm,action,focus_highlight,show"; \
3688 action: STATE_SET "focused" 0.0; \
3689 target: "focus_image"; \
3691 program { name: "action_unfocus"; \
3692 signal: "elm,action,focus_highlight,hide"; \
3694 action: STATE_SET "default" 0.0; \
3695 target: "focus_image"; \
3699 ///////////////////////////////////////////////////////////////////////////////////////
3700 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png")
3701 ///////////////////////////////////////////////////////////////////////////////////////
3702 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png")
3703 ///////////////////////////////////////////////////////////////////////////////////////
3705 group { name: "elm/button/base/multibuttonentry";
3706 alias: "elm/button/base/text_only/multibuttonentry";
3708 item: "focus_highlight" "on";
3711 image: "00_contacts_button.png" COMP;
3712 image: "00_contacts_button_press.png" COMP;
3713 image: "00_contacts_button_focus.png" COMP;
3714 image: "00_contacts_button_dim.png" COMP;
3717 style { name: "btn_base_multibuttonentry";
3718 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3723 style { name: "btn_base_multibuttonentry_pressed";
3724 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3729 style { name: "btn_base_multibuttonentry_dim";
3730 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_DIM_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3735 style { name: "btn_base_multibuttonentry_focus";
3736 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";
3743 public button_state = BUTTON_STATE_ENABLED;
3746 part { name: "button_image";
3748 description { state: "default" 0.0;
3750 to_x: "padding.left";
3754 to_x: "padding.right";
3757 min: BUTTON_CONTACT_BG_MIN_INC;
3759 normal: "00_contacts_button.png";
3760 border: BUTTON_CONTACT_BG_BORDER_INC;
3764 description { state: "clicked" 0.0;
3765 inherit: "default" 0.0;
3766 image.normal: "00_contacts_button_press.png";
3768 description { state: "disabled" 0.0;
3769 inherit: "default" 0.0;
3770 image.normal: "00_contacts_button_dim.png";
3772 description { state: "focused" 0.0;
3773 inherit: "default" 0.0;
3774 image.normal: "00_contacts_button_press.png";
3777 part { name: "focus_image";
3781 description { state: "default" 0.0;
3783 rel1.to : "button_image";
3784 rel2.to : "button_image";
3786 normal: "00_contacts_button_focus.png";
3787 border: BUTTON_CONTACT_BG_BORDER_INC;
3791 description { state: "focused" 0.0;
3792 inherit: "default" 0.0;
3796 part { name: "padding.left";
3799 description { state: "default" 0.0;
3801 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
3811 part { name: "padding.right";
3814 description { state: "default" 0.0;
3816 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
3826 part { name: "elm.text";
3830 description { state: "default" 0.0;
3834 style: "btn_base_multibuttonentry";
3838 description { state: "visible" 0.0;
3839 inherit: "default" 0.0;
3843 description { state: "clicked" 0.0;
3844 inherit: "default" 0.0;
3848 style: "btn_base_multibuttonentry_pressed";
3851 description { state: "disabled" 0.0;
3852 inherit: "default" 0.0;
3854 description { state: "disabled_visible" 0.0;
3855 inherit: "default" 0.0;
3858 style: "btn_base_multibuttonentry_dim";
3862 description { state: "focused" 0.0;
3863 inherit: "default" 0.0;
3866 style: "btn_base_multibuttonentry_focus";
3871 part { name: "over1";
3874 description { state: "default" 0.0;
3875 rel2.relative: 1.0 0.5;
3879 part { name: "over2";
3882 ignore_flags: ON_HOLD;
3883 description { state: "default" 0.0;
3884 rel1.to: "button_image";
3885 rel2.to: "button_image";
3889 part { name: "over3";
3892 description { state: "default" 0.0;
3893 rel1.to: "button_image";
3894 rel2.to: "button_image";
3898 part { name: "disabler";
3900 description { state: "default" 0.0;
3901 rel1.to: "button_image";
3902 rel2.to: "button_image";
3906 description { state: "disabled" 0.0;
3907 inherit: "default" 0.0;
3913 program { name: "button_click";
3914 signal: "mouse,down,1";
3916 action: SIGNAL_EMIT "elm,action,press" "";
3917 after: "button_click_anim";
3919 program { name: "button_click_anim";
3920 action: STATE_SET "clicked" 0.0;
3921 target: "button_image";
3924 program { name: "button_double_click";
3925 signal: "mouse,down,1,double";
3927 after: "button_click_anim";
3929 program { name: "button_unpress";
3930 action: SIGNAL_EMIT "elm,action,unpress" "";
3932 program { name: "button_mouseout_clicked";
3933 signal: "mouse,up,1";
3938 get_state(PART:"elm.text", st, 30, vl);
3939 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
3941 emit("elm,action,default,text,set", "");
3942 set_state(PART:"elm.text", "visible", 0.0);
3944 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3945 set_state(PART:"button_image", "default", 0.0);
3947 after: button_unpress;
3949 program { name: "touch_snd";
3950 signal: "mouse,clicked,1";
3952 action: PLAY_SAMPLE "touch_sound" 1.0;
3953 after: button_unclick3;
3955 program { name: "button_unclick3";
3956 action: SIGNAL_EMIT "elm,action,click" "";
3958 program { name: "text_show";
3959 signal: "elm,state,text,visible";
3962 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3963 set_state(PART:"elm.text", "visible", 0.0);
3965 set_state(PART:"elm.text", "disabled_visible", 0.0);
3968 program { name: "text_hide";
3969 signal: "elm,state,text,hidden";
3971 action: STATE_SET "default" 0.0;
3974 program { name: "disable";
3975 signal: "elm,state,disabled";
3977 action: STATE_SET "disabled" 0.0;
3978 target: "button_image";
3980 after: "disable_text";
3982 program { name: "disable_text";
3986 get_state(PART:"elm.text", st, 30, vl);
3987 if (!strcmp(st, "visible"))
3988 set_state(PART:"elm.text", "disabled_visible", 0.0);
3990 set_state(PART:"elm.text", "disabled", 0.0);
3991 set_int(button_state, BUTTON_STATE_DISABLED);
3994 program { name: "enable";
3995 signal: "elm,state,enabled";
3997 action: STATE_SET "default" 0.0;
3998 target: "button_image";
4000 after: "enable_text";
4002 program { name: "enable_text";
4006 get_state(PART:"elm.text", st, 30, vl);
4007 if (!strcmp(st, "disabled_visible"))
4008 set_state(PART:"elm.text", "visible", 0.0);
4010 set_state(PART:"elm.text", "default", 0.0);
4011 set_int(button_state, BUTTON_STATE_ENABLED);
4014 program { name: "action_focus";
4015 signal: "elm,action,focus_highlight,show";
4017 action: STATE_SET "focused" 0.0;
4018 target: "focus_image";
4020 program { name: "action_unfocus";
4021 signal: "elm,action,focus_highlight,hide";
4023 action: STATE_SET "default" 0.0;
4024 target: "focus_image";
4029 ///////////////////////////////////////////////////////////////////////////////////////
4030 group { name: "elm/button/base/naviframe/back_btn/default";
4031 alias: "elm/button/base/naviframe/prev_btn/default";
4032 alias: "elm/button/base/naviframe/end_btn/default";
4034 item: "focus_highlight" "on";
4037 image: "00_icon_back.png" COMP;
4038 image: "00_icon_SIP_close.png" COMP;
4039 image: "00_icon_focus.png" COMP;
4042 part { name: "button_image";
4045 description { state: "default" 0.0;
4046 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4047 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4050 description { state: "landscape" 0.0;
4051 min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4052 max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4056 part { name: "focus_image";
4060 description { state: "default" 0.0;
4062 rel1.to : "button_image";
4063 rel2.to : "button_image";
4065 normal: "00_icon_focus.png";
4069 description { state: "focused" 0.0;
4070 inherit: "default" 0.0;
4074 part { name: "back_button";
4077 clip_to: "back_button.clipper";
4078 description { state: "default" 0.0;
4079 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4080 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4082 rel1.to: "button_image";
4083 rel2.to: "button_image";
4084 image.normal: "00_icon_back.png";
4086 description { state: "compress" 0.0;
4087 inherit: "default" 0.0;
4088 image.normal: "00_icon_SIP_close.png";
4091 part { name: "back_button.clipper";
4093 description { state: "default" 0.0;
4094 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4096 description { state: "clicked" 0.0;
4097 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4099 description { state: "disabled" 0.0;
4100 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4103 part { name: "over2";
4105 ignore_flags: ON_HOLD;
4106 description { state: "default" 0.0;
4110 part { name: "over3";
4113 description { state: "default" 0.0;
4117 part { name: "disabler";
4119 description { state: "default" 0.0;
4123 description { state: "disabled" 0.0;
4124 inherit: "default" 0.0;
4130 program { name: "button_click";
4131 signal: "mouse,down,1";
4133 action: SIGNAL_EMIT "elm,action,press" "";
4134 after: "button_click_anim";
4136 program { name: "button_click_anim";
4138 set_state(PART:"back_button.clipper", "clicked", 0.0);
4141 program { name: "button_double_click";
4142 signal: "mouse,down,1,double";
4144 after: "button_click_anim";
4146 program { name: "button_unclick";
4147 signal: "mouse,up,1";
4149 action: SIGNAL_EMIT "elm,action,unpress" "";
4150 after: "button_unclick_anim";
4152 program { name: "button_unclick_anim";
4154 set_state(PART:"back_button.clipper", "default", 0.0);
4157 program { name: "touch_snd";
4158 signal: "mouse,clicked,1";
4160 action: PLAY_SAMPLE "touch_sound" 1.0;
4161 after: button_unclick3;
4163 program { name: "button_unclick3";
4164 action: SIGNAL_EMIT "elm,action,click" "";
4166 program { name: "disable";
4167 signal: "elm,state,disabled";
4170 set_state(PART:"back_button.clipper", "disabled", 0.0);
4173 program { name: "enable";
4174 signal: "elm,state,enabled";
4177 set_state(PART:"back_button.clipper", "default", 0.0);
4180 program { name: "change_to_landscape";
4181 signal: "elm,state,landscape";
4183 action: STATE_SET "landscape" 0.0;
4184 target: "button_image";
4186 program { name: "change_to_portrait";
4187 signal: "elm,state,portrait";
4189 action: STATE_SET "default" 0.0;
4190 target: "button_image";
4192 program { name: "landscape_mode";
4194 signal: "elm,state,orient,90";
4195 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4197 program { name: "landscape_mode2";
4199 signal: "elm,state,orient,270";
4200 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4202 program { name: "portrait_mode";
4204 signal: "elm,state,orient,0";
4205 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4207 program { name: "portrait_mode2";
4209 signal: "elm,state,orient,180";
4210 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4212 program { name: "display_compress_mode";
4213 signal: "elm,state,display,compress";
4215 action: STATE_SET "compress" 0.0;
4216 target: "back_button";
4218 program { name: "display_default_mode";
4219 signal: "elm,state,display,default";
4221 action: STATE_SET "default" 0.0;
4222 target: "back_button";
4224 program { name: "action_focus";
4225 signal: "elm,action,focus_highlight,show";
4227 action: STATE_SET "focused" 0.0;
4228 target: "focus_image";
4230 program { name: "action_unfocus";
4231 signal: "elm,action,focus_highlight,hide";
4233 action: STATE_SET "default" 0.0;
4234 target: "focus_image";
4239 ////////////////////////////////////////////////////////////////////
4240 group { name: "elm/button/base/naviframe/title_icon";
4242 item: "focus_highlight" "on";
4245 image: "00_icon_focus.png" COMP;
4248 part { name: "button_image";
4251 description { state: "default" 0.0;
4253 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
4254 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
4256 description { state: "landscape" 0.0;
4258 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
4259 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
4262 part { name: "focus_image";
4266 description { state: "default" 0.0;
4268 rel1.to : "button_image";
4269 rel2.to : "button_image";
4271 normal: "00_icon_focus.png";
4275 description { state: "focused" 0.0;
4276 inherit: "default" 0.0;
4280 part { name: "elm.swallow.content";
4283 clip_to: "elm.icon.clipper";
4284 description { state: "default" 0.0;
4286 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
4288 rel1 { to: "button_image"; }
4289 rel2 { to: "button_image"; }
4291 description { state: "visible" 0.0;
4292 inherit: "default" 0.0;
4296 part { name: "elm.icon.clipper";
4298 description { state: "default" 0.0;
4300 description { state: "clicked" 0.0;
4302 description { state: "disabled" 0.0;
4303 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4306 part { name: "elm.swallow.content.proxy_shadow";
4309 clip_to: "elm.icon.proxy_shadow.clipper";
4310 description { state: "default" 0.0;
4311 source: "elm.swallow.content";
4312 rel1 { to: "elm.swallow.content"; offset: 0 2; }
4313 rel2 { to: "elm.swallow.content"; offset: -1 1; }
4315 description { state: "clicked" 0.0;
4316 inherit: "default" 0.0;
4320 description { state: "disabled" 0.0;
4324 part { name: "elm.icon.proxy_shadow.clipper";
4326 description { state: "default" 0.0;
4327 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_SHADOW_COLOR_INC;
4329 description { state: "clicked" 0.0;
4330 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_SHADOW_COLOR_INC;
4332 description { state: "disabled" 0.0;
4336 part { name: "elm.swallow.content.proxy";
4339 clip_to: "elm.icon.proxy.clipper";
4340 description { state: "default" 0.0;
4341 source: "elm.swallow.content";
4342 rel1 { to: "elm.swallow.content"; }
4343 rel2 { to: "elm.swallow.content"; }
4346 part { name: "elm.icon.proxy.clipper";
4348 description { state: "default" 0.0;
4349 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4351 description { state: "clicked" 0.0;
4352 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4354 description { state: "disabled" 0.0;
4358 part { name: "over2";
4360 ignore_flags: ON_HOLD;
4361 description { state: "default" 0.0;
4365 part { name: "over3";
4368 description { state: "default" 0.0;
4372 part { name: "disabler";
4374 description { state: "default" 0.0;
4378 description { state: "disabled" 0.0;
4379 inherit: "default" 0.0;
4385 program { name: "button_click";
4386 signal: "mouse,down,1";
4388 action: SIGNAL_EMIT "elm,action,press" "";
4389 after: "button_click_anim";
4391 program { name: "button_click_anim";
4393 set_state(PART:"elm.icon.proxy_shadow.clipper", "clicked", 0.0);
4394 set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0);
4395 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
4396 set_state(PART:"elm.swallow.content.proxy_shadow", "clicked", 0.0);
4399 program { name: "button_double_click";
4400 signal: "mouse,down,1,double";
4402 after: "button_click_anim";
4404 program { name: "button_unpress";
4405 action: SIGNAL_EMIT "elm,action,unpress" "";
4407 program { name: "button_mouseout_clicked";
4408 signal: "mouse,up,1";
4411 set_state(PART:"elm.icon.proxy_shadow.clipper", "default", 0.0);
4412 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
4413 set_state(PART:"elm.icon.clipper", "default", 0.0);
4414 set_state(PART:"elm.swallow.content.proxy_shadow", "default", 0.0);
4416 after: button_unpress;
4418 program { name: "touch_snd";
4419 signal: "mouse,clicked,1";
4421 action: PLAY_SAMPLE "touch_sound" 1.0;
4422 after: button_unclick3;
4424 program { name: "button_unclick3";
4425 action: SIGNAL_EMIT "elm,action,click" "";
4427 program { name: "icon_show";
4428 signal: "elm,state,icon,visible";
4430 action: STATE_SET "visible" 0.0;
4431 target: "elm.swallow.content";
4433 program { name: "icon_hide";
4434 signal: "elm,state,icon,hidden";
4436 action: STATE_SET "default" 0.0;
4437 target: "elm.swallow.content";
4439 program { name: "disable";
4440 signal: "elm,state,disabled";
4443 set_state(PART:"disabler", "disabled", 0.0);
4444 set_state(PART:"elm.icon.proxy_shadow.clipper", "disabled", 0.0);
4445 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
4446 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
4447 set_state(PART:"elm.swallow.content.proxy_shadow", "disabled", 0.0);
4450 program { name: "enable";
4451 signal: "elm,state,enabled";
4454 set_state(PART:"disabler", "default", 0.0);
4455 set_state(PART:"elm.icon.proxy_shadow.clipper", "default", 0.0);
4456 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
4457 set_state(PART:"elm.icon.clipper", "default", 0.0);
4458 set_state(PART:"elm.swallow.content.proxy_shadow", "default", 0.0);
4461 program { name: "change_to_landscape";
4462 signal: "elm,state,landscape";
4464 action: STATE_SET "landscape" 0.0;
4465 target: "button_image";
4467 program { name: "change_to_portrait";
4468 signal: "elm,state,portrait";
4470 action: STATE_SET "default" 0.0;
4471 target: "button_image";
4473 program { name: "landscape_mode";
4475 signal: "elm,state,orient,90";
4476 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4478 program { name: "landscape_mode2";
4480 signal: "elm,state,orient,270";
4481 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4483 program { name: "portrait_mode";
4485 signal: "elm,state,orient,0";
4486 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4488 program { name: "portrait_mode2";
4490 signal: "elm,state,orient,180";
4491 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4493 program { name: "action_focus";
4494 signal: "elm,action,focus_highlight,show";
4496 action: STATE_SET "focused" 0.0;
4497 target: "focus_image";
4499 program { name: "action_unfocus";
4500 signal: "elm,action,focus_highlight,hide";
4502 action: STATE_SET "default" 0.0;
4503 target: "focus_image";
4508 ////////////////////////////////////////////////////////////////////
4509 group { name: "elm/button/base/naviframe/title_text";
4511 image: "00_title_press.png" COMP;
4514 public landscape = 0;
4515 public disabled = 0;
4518 style { name: "btn_naviframe_title_text";
4519 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";
4524 style { name: "btn_naviframe_title_text_disabled";
4525 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";
4530 style { name: "btn_naviframe_title_text_pressed";
4531 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";
4538 part { name: "button_bg";
4541 description { state: "default" 0.0;
4543 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_INC;
4544 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MAX_INC;
4546 description { state: "landscape" 0.0;
4548 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_INC;
4549 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MAX_INC;
4552 part { name: "button_image";
4555 description { state: "default" 0.0;
4557 rel1 { to: "button_bg"; }
4558 rel2 { to: "button_bg"; }
4560 description { state: "clicked" 0.0;
4561 inherit: "default" 0.0;
4564 normal: "00_title_press.png";
4565 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4569 description { state: "disabled" 0.0;
4570 inherit: "default" 0.0;
4573 part { name: "left_padding";
4576 description { state: "default" 0.0;
4578 min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
4579 max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
4582 rel1 { relative: 0.0 0.0; to: "button_bg"; }
4583 rel2 { relative: 0.0 1.0; to: "button_bg"; }
4586 part { name: "right_padding";
4589 description { state: "default" 0.0;
4591 min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
4592 max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
4595 rel1 { relative: 1.0 0.0; to: "button_bg"; }
4596 rel2 { relative: 1.0 1.0; to: "button_bg"; }
4599 part { name: "elm.text";
4603 description { state: "default" 0.0;
4604 min: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MIN_INC;
4605 max: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MAX_INC;
4606 rel1 { relative: 1.0 0.0; to: "left_padding"; }
4607 rel2 { relative: 0.0 1.0; to: "right_padding"; }
4609 style: "btn_naviframe_title_text";
4610 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4614 description { state: "disabled" 0.0;
4615 inherit: "default" 0.0;
4617 style: "btn_naviframe_title_text_disabled";
4618 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4622 description { state: "pressed" 0.0;
4623 inherit: "default" 0.0;
4625 style: "btn_naviframe_title_text_pressed";
4626 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4630 description { state: "landscape" 0.0;
4631 inherit: "default" 0.0;
4632 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MIN_INC;
4633 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MAX_INC;
4635 description { state: "landscape_disabled" 0.0;
4636 inherit: "landscape" 0.0;
4638 style: "btn_naviframe_title_text_disabled";
4639 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4643 description { state: "landscape_pressed" 0.0;
4644 inherit: "landscape" 0.0;
4646 style: "btn_naviframe_title_text_pressed";
4647 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4652 part { name: "over2";
4654 ignore_flags: ON_HOLD;
4655 description { state: "default" 0.0;
4659 part { name: "over3";
4662 description { state: "default" 0.0;
4666 part { name: "disabler";
4668 description { state: "default" 0.0;
4672 description { state: "disabled" 0.0;
4673 inherit: "default" 0.0;
4679 program { name: "button_click";
4680 signal: "mouse,down,1";
4682 action: SIGNAL_EMIT "elm,action,press" "";
4683 after: "button_click_anim";
4685 program { name: "button_click_anim";
4687 set_state(PART:"button_image", "clicked", 0.0);
4689 if (get_int(landscape))
4690 set_state(PART:"elm.text", "landscape_pressed", 0.0);
4692 set_state(PART:"elm.text", "pressed", 0.0);
4695 program { name: "button_double_click";
4696 signal: "mouse,down,1,double";
4698 after: "button_click_anim";
4700 program { name: "button_unclick";
4701 signal: "mouse,up,1";
4703 action: SIGNAL_EMIT "elm,action,unpress" "";
4704 after: "button_unclick_anim";
4706 program { name: "button_unclick_anim";
4708 set_state(PART:"button_image", "default", 0.0);
4710 if (get_int(landscape))
4711 set_state(PART:"elm.text", "landscape", 0.0);
4713 set_state(PART:"elm.text", "default", 0.0);
4716 program { name: "touch_snd";
4717 signal: "mouse,clicked,1";
4719 action: PLAY_SAMPLE "touch_sound" 1.0;
4720 after: "button_unclick3";
4722 program { name: "button_unclick3";
4723 action: SIGNAL_EMIT "elm,action,click" "";
4725 program { name: "disable";
4726 signal: "elm,state,disabled";
4729 set_int(disabled, 1);
4730 set_state(PART:"disabler", "disabled", 0.0);
4731 set_state(PART:"button_image", "disabled", 0.0);
4733 if (get_int(landscape))
4734 set_state(PART:"elm.text", "landscape_disabled", 0.0);
4736 set_state(PART:"elm.text", "disabled", 0.0);
4739 program { name: "enable";
4740 signal: "elm,state,enabled";
4743 set_int(disabled, 0);
4744 set_state(PART:"disabler", "default", 0.0);
4745 set_state(PART:"button_image", "default", 0.0);
4747 if (get_int(landscape))
4748 set_state(PART:"elm.text", "landscape", 0.0);
4750 set_state(PART:"elm.text", "default", 0.0);
4753 program { name: "change_to_landscape";
4754 signal: "elm,state,landscape";
4757 set_int(landscape, 1);
4758 set_state(PART:"button_bg", "landscape", 0.0);
4760 if (get_int(disabled))
4761 set_state(PART:"elm.text", "landscape_disabled", 0.0);
4763 set_state(PART:"elm.text", "landscape", 0.0);
4766 program { name: "change_to_portrait";
4767 signal: "elm,state,portrait";
4770 set_int(landscape, 0);
4771 set_state(PART:"button_bg", "default", 0.0);
4773 if (get_int(disabled))
4774 set_state(PART:"elm.text", "disabled", 0.0);
4776 set_state(PART:"elm.text", "default", 0.0);
4779 program { name: "landscape_mode";
4781 signal: "elm,state,orient,90";
4782 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4784 program { name: "landscape_mode2";
4786 signal: "elm,state,orient,270";
4787 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4789 program { name: "portrait_mode";
4791 signal: "elm,state,orient,0";
4792 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4794 program { name: "portrait_mode2";
4796 signal: "elm,state,orient,180";
4797 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4802 /////////////////////////////////////////////////////////////////////////////////////////
4803 group { name: "elm/button/base/naviframe/more/default";
4805 item: "focus_highlight" "on";
4808 image: "00_icon_more.png" COMP;
4809 image: "00_icon_focus.png" COMP;
4812 part { name: "button_image";
4815 description { state: "default" 0.0;
4816 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
4817 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
4820 description { state: "landscape" 0.0;
4821 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
4822 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
4826 part { name: "focus_image";
4830 description { state: "default" 0.0;
4832 rel1.to : "button_image";
4833 rel2.to : "button_image";
4835 normal: "00_icon_focus.png";
4839 description { state: "focused" 0.0;
4840 inherit: "default" 0.0;
4844 part { name: "more_image";
4847 clip_to: "more_image.clipper";
4848 description { state: "default" 0.0;
4849 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
4850 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
4852 rel1.to: "button_image";
4853 rel2.to: "button_image";
4854 image.normal: "00_icon_more.png";
4857 part { name: "more_image.clipper";
4859 description { state: "default" 0.0;
4860 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4862 description { state: "clicked" 0.0;
4863 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4865 description { state: "disabled" 0.0;
4866 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4869 part { name: "over2";
4871 ignore_flags: ON_HOLD;
4872 description { state: "default" 0.0;
4876 part { name: "over3";
4879 description { state: "default" 0.0;
4883 part { name: "disabler";
4885 description { state: "default" 0.0;
4889 description { state: "disabled" 0.0;
4890 inherit: "default" 0.0;
4896 program { name: "button_click";
4897 signal: "mouse,down,1";
4899 action: SIGNAL_EMIT "elm,action,press" "";
4900 after: "button_click_anim";
4902 program { name: "button_click_anim";
4904 set_state(PART:"more_image.clipper", "clicked", 0.0);
4907 program { name: "button_double_click";
4908 signal: "mouse,down,1,double";
4910 after: "button_click_anim";
4912 program { name: "button_unclick";
4913 signal: "mouse,up,1";
4915 action: SIGNAL_EMIT "elm,action,unpress" "";
4916 after: "button_unclick_anim";
4918 program { name: "button_unclick_anim";
4920 set_state(PART:"more_image.clipper", "default", 0.0);
4923 program { name: "touch_snd";
4924 signal: "mouse,clicked,1";
4926 action: PLAY_SAMPLE "touch_sound" 1.0;
4927 after: button_unclick3;
4929 program { name: "button_unclick3";
4930 action: SIGNAL_EMIT "elm,action,click" "";
4932 program { name: "disable";
4933 signal: "elm,state,disabled";
4936 set_state(PART:"disabler", "disabled", 0.0);
4937 set_state(PART:"more_image.clipper", "disabled", 0.0);
4940 program { name: "enable";
4941 signal: "elm,state,enabled";
4944 set_state(PART:"disabler", "default", 0.0);
4945 set_state(PART:"more_image.clipper", "default", 0.0);
4948 program { name: "change_to_landscape";
4949 signal: "elm,state,landscape";
4951 action: STATE_SET "landscape" 0.0;
4952 target: "button_image";
4954 program { name: "change_to_portrait";
4955 signal: "elm,state,portrait";
4957 action: STATE_SET "default" 0.0;
4958 target: "button_image";
4960 program { name: "landscape_mode";
4962 signal: "elm,state,orient,90";
4963 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4965 program { name: "landscape_mode2";
4967 signal: "elm,state,orient,270";
4968 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4970 program { name: "portrait_mode";
4972 signal: "elm,state,orient,0";
4973 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4975 program { name: "portrait_mode2";
4977 signal: "elm,state,orient,180";
4978 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4980 program { name: "action_focus";
4981 signal: "elm,action,focus_highlight,show";
4983 action: STATE_SET "focused" 0.0;
4984 target: "focus_image";
4986 program { name: "action_unfocus";
4987 signal: "elm,action,focus_highlight,hide";
4989 action: STATE_SET "default" 0.0;
4990 target: "focus_image";
4995 ///////////////////////////////////////////////////////////////////////////////////////
4996 group { name: "elm/button/base/expandable_number";
4997 alias: "elm/button/base/text_only/expandable_number";
4999 item: "focus_highlight" "on";
5002 image: "00_button_01.png" COMP;
5003 image: "00_button_01_press.png" COMP;
5004 image: "00_button_01_dim.png" COMP;
5005 image: "00_arrow_expand.png" COMP;
5006 image: "00_button_01_focus.png" COMP;
5009 style { name: "btn_base_exapandable_number";
5010 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5015 style { name: "btn_base_exapandable_number_pressed";
5016 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5021 style { name: "btn_base_exapandable_number_dim";
5022 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_DISABLE_VISIBLE_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5027 style { name: "btn_base_exapandable_number_focus";
5028 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";
5035 public button_state = BUTTON_STATE_ENABLED;
5038 part { name: "button_image";
5040 description { state: "default" 0.0;
5041 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5042 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5044 normal: "00_button_01.png";
5045 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
5049 description { state: "clicked" 0.0;
5050 inherit: "default" 0.0;
5051 image.normal: "00_button_01_press.png";
5053 description { state: "disabled" 0.0;
5054 inherit: "default" 0.0;
5055 image.normal: "00_button_01_dim.png";
5057 description { state: "focused" 0.0;
5058 inherit: "default" 0.0;
5059 image.normal: "00_button_01_press.png";
5062 part { name: "focus_image";
5066 description { state: "default" 0.0;
5067 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5068 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5070 rel1.to : "button_image";
5071 rel2.to : "button_image";
5073 normal: "00_button_01_focus.png";
5074 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
5078 description { state: "focused" 0.0;
5079 inherit: "default" 0.0;
5083 part { name: "padding_left_top";
5087 description { state: "default" 0.0;
5090 rel2.relative: 0.0 0.0;
5091 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
5095 part { name: "padding_right_bottom";
5099 description { state: "default" 0.0;
5102 rel1.relative: 1.0 1.0;
5103 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
5107 part { name: "icon_rect";
5111 description { state: "default" 0.0;
5113 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5114 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5118 to_x: "padding_right_bottom";
5119 to_y: "padding_left_top";
5123 to: "padding_right_bottom";
5128 part { name: "arrow_expand";
5131 description { state: "default" 0.0;
5133 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5134 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5136 rel1.to: "icon_rect";
5137 rel2.to: "icon_rect";
5138 image.normal:"00_arrow_expand.png";
5141 part { name: "arrow_expand.shadow.proxy";
5144 clip_to: "arrow_expand.shadow.clipper";
5145 description { state: "default" 0.0;
5146 source: "arrow_expand";
5147 proxy.source_clip: 0;
5150 offset: BUTTON_EXPANDABLE_NORMAL_TOP_OFFSET_INC;
5154 offset: BUTTON_EXPANDABLE_NORMAL_BOTTOM_OFFSET_INC;
5157 description { state: "clicked" 0.0;
5158 inherit: "default" 0.0;
5161 offset: BUTTON_EXPANDABLE_PRESSED_TOP_OFFSET_INC;
5165 offset: BUTTON_EXPANDABLE_PRESSED_BOTTOM_OFFSET_INC;
5168 description { state: "disabled" 0.0;
5169 inherit: "default" 0.0;
5172 part { name: "arrow_expand.proxy";
5175 clip_to: "icon_clipper";
5176 description { state: "default" 0.0;
5177 source: "arrow_expand";
5178 proxy.source_clip: 0;
5179 rel1.to: "arrow_expand";
5180 rel2.to: "arrow_expand";
5183 part { name: "arrow_expand.shadow.clipper";
5186 description { state: "default" 0.0;
5187 color: BUTTON_EXPANDABLE_SHADOW_NORMAL_COLOR_INC;
5189 description { state: "clicked" 0.0;
5190 color: BUTTON_EXPANDABLE_SHADOW_PRESSED_COLOR_INC;
5192 description { state: "disabled" 0.0;
5193 color: BUTTON_EXPANDABLE_SHADOW_DISABLED_COLOR_INC;
5196 part { name: "icon_clipper";
5199 description { state: "default" 0.0;
5200 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
5202 description { state: "clicked" 0.0;
5203 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
5205 description { state: "disabled" 0.0;
5206 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
5209 part { name: "elm.text";
5213 description { state: "default" 0.0;
5214 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
5215 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
5219 to: "padding_left_top";
5223 to_x:"padding_left_top";
5224 to_y:"padding_right_bottom";
5228 style: "btn_base_exapandable_number";
5234 description { state: "visible" 0.0;
5235 inherit: "default" 0.0;
5237 description { state: "clicked" 0.0;
5238 inherit: "default" 0.0;
5240 style: "btn_base_exapandable_number_pressed";
5246 description { state: "disabled" 0.0;
5247 inherit: "default" 0.0;
5249 description { state: "disabled_visible" 0.0;
5250 inherit: "default" 0.0;
5252 style: "btn_base_exapandable_number_dim";
5255 description { state: "focused" 0.0;
5256 inherit: "default" 0.0;
5258 style: "btn_base_exapandable_number_focus";
5262 part { name: "over2";
5265 ignore_flags: ON_HOLD;
5266 description { state: "default" 0.0;
5270 part { name: "over3";
5273 description { state: "default" 0.0;
5277 part { name: "disabler";
5279 description { state: "default" 0.0;
5283 description { state: "disabled" 0.0;
5284 inherit: "default" 0.0;
5290 program { name: "button_click";
5291 signal: "mouse,down,1";
5293 action: SIGNAL_EMIT "elm,action,press" "";
5294 after: "button_click_anim";
5296 program { name: "button_click_anim";
5297 action: STATE_SET "clicked" 0.0;
5298 target: "button_image";
5299 target: "arrow_expand.shadow.proxy";
5300 target: "arrow_expand.shadow.clipper";
5301 target: "icon_clipper";
5302 after: "text_clicked";
5304 program { name: "text_clicked";
5308 get_state(PART:"elm.text", st, 30, vl);
5309 if (!strcmp(st, "visible"))
5310 set_state(PART:"elm.text", "clicked", 0.0);
5313 program { name: "button_double_click";
5314 signal: "mouse,down,1,double";
5316 after: "button_click_anim";
5318 program { name: "button_unpress";
5319 action: SIGNAL_EMIT "elm,action,unpress" "";
5321 program { name: "button_mouseout_clicked";
5322 signal: "mouse,up,1";
5325 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5327 set_state(PART:"button_image", "default", 0.0);
5328 set_state(PART:"elm.text", "visible", 0.0);
5329 set_state(PART:"arrow_expand.shadow.proxy", "visible", 0.0);
5330 set_state(PART:"arrow_expand.shadow.clipper", "visible", 0.0);
5331 set_state(PART:"icon_clipper", "default", 0.0);
5334 after: button_unpress;
5336 program { name: "touch_snd";
5337 signal: "mouse,clicked,1";
5339 action: PLAY_SAMPLE "touch_sound" 1.0;
5340 after: button_unclick3;
5342 program { name: "button_unclick3";
5343 action: SIGNAL_EMIT "elm,action,click" "";
5345 program { name: "text_show";
5346 signal: "elm,state,text,visible";
5349 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5350 set_state(PART:"elm.text", "visible", 0.0);
5352 set_state(PART:"elm.text", "disabled_visible", 0.0);
5355 program { name: "text_hide";
5356 signal: "elm,state,text,hidden";
5359 set_state(PART:"elm.text", "default", 0.0);
5362 program { name: "disable";
5363 signal: "elm,state,disabled";
5365 action: STATE_SET "disabled" 0.0;
5366 target: "button_image";
5368 target: "arrow_expand.shadow.proxy";
5369 target: "arrow_expand.shadow.clipper";
5370 target: "icon_clipper";
5371 after: "disable_text";
5373 program { name: "disable_text";
5377 get_state(PART:"elm.text", st, 30, vl);
5378 if (!strcmp(st, "visible"))
5379 set_state(PART:"elm.text", "disabled_visible", 0.0);
5381 set_state(PART:"elm.text", "disabled", 0.0);
5382 set_int(button_state, BUTTON_STATE_DISABLED);
5385 program { name: "enable";
5386 signal: "elm,state,enabled";
5388 action: STATE_SET "default" 0.0;
5389 target: "button_image";
5391 target: "arrow_expand.shadow.proxy";
5392 target: "arrow_expand.shadow.clipper";
5393 target: "icon_clipper";
5394 after: "enable_text";
5396 program { name: "enable_text";
5400 get_state(PART:"elm.text", st, 30, vl);
5401 if (!strcmp(st, "disabled_visible"))
5402 set_state(PART:"elm.text", "visible", 0.0);
5404 set_state(PART:"elm.text", "default", 0.0);
5405 set_int(button_state, BUTTON_STATE_ENABLED);
5408 program { name: "action_focus";
5409 signal: "elm,action,focus_highlight,show";
5411 action: STATE_SET "focused" 0.0;
5412 target: "focus_image";
5414 program { name: "action_unfocus";
5415 signal: "elm,action,focus_highlight,hide";
5417 action: STATE_SET "default" 0.0;
5418 target: "focus_image";
5423 //////////////////////////////////////////////////////////////////////////////////////
5424 group { name: "elm/button/base/editfield_clear";
5426 image: "00_edit_field_clear.png" COMP;
5433 description { state: "default" 0.0;
5434 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
5435 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
5438 part { name: "button_image";
5441 description { state: "default" 0.0;
5444 description { state: "clicked" 0.0;
5445 inherit: "default" 0.0;
5447 description { state: "disabled" 0.0;
5448 inherit: "default" 0.0;
5450 description { state: "focused" 0.0;
5451 inherit: "default" 0.0;
5454 part { name: "clear_button";
5457 clip_to: "clear_button.clipper";
5458 description { state: "default" 0.0;
5459 min: BUTTON_EDITFIELD_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
5460 max: BUTTON_EDITFIELD_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
5462 image.normal: "00_edit_field_clear.png";
5465 part { name: "clear_button.clipper";
5467 description { state: "default" 0.0;
5468 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
5470 description { state: "clicked" 0.0;
5471 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
5473 description { state: "disabled" 0.0;
5474 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
5477 part { name: "over2";
5479 ignore_flags: ON_HOLD;
5480 description { state: "default" 0.0;
5484 part { name: "over3";
5487 description { state: "default" 0.0;
5491 part { name: "disabler";
5493 description { state: "default" 0.0;
5497 description { state: "disabled" 0.0;
5498 inherit: "default" 0.0;
5504 program { name: "button_click";
5505 signal: "mouse,down,1";
5507 action: SIGNAL_EMIT "elm,action,press" "";
5508 after: "button_click_anim";
5510 program { name: "button_click_anim";
5511 action: STATE_SET "clicked" 0.0;
5512 target: "button_image";
5513 target: "clear_button.clipper";
5515 program { name: "button_double_click";
5516 signal: "mouse,down,1,double";
5518 after: "button_click_anim";
5520 program { name: "button_unclick";
5521 signal: "mouse,up,1";
5523 action: SIGNAL_EMIT "elm,action,unpress" "";
5524 after: "button_unclick_anim";
5526 program { name: "button_unclick_anim";
5527 action: STATE_SET "default" 0.0;
5528 target: "button_image";
5529 target: "clear_button.clipper";
5531 program { name: "touch_snd";
5532 signal: "mouse,clicked,1";
5534 action: PLAY_SAMPLE "touch_sound" 1.0;
5535 after: button_unclick3;
5537 program { name: "button_unclick3";
5538 action: SIGNAL_EMIT "elm,action,click" "";
5540 program { name: "disable";
5541 signal: "elm,state,disabled";
5543 action: STATE_SET "disabled" 0.0;
5544 target: "button_image";
5546 target: "clear_button.clipper";
5548 program { name: "enable";
5549 signal: "elm,state,enabled";
5551 action: STATE_SET "default" 0.0;
5552 target: "button_image";
5554 target: "clear_button.clipper";
5559 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
5560 group { name: "elm/button/base/"style_name; \
5562 item: "focus_highlight" "on"; \
5565 image: image_normal COMP; \
5568 part { name: "elm.swallow.content"; \
5571 description { state: "default" 0.0; \
5574 part { name: "focus_image"; \
5578 description { state: "default" 0.0; \
5581 normal: image_normal; \
5586 description { state: "focused" 0.0; \
5587 inherit: "default" 0.0; \
5591 part { name: "over2"; \
5594 ignore_flags: ON_HOLD; \
5595 description { state: "default" 0.0; \
5599 part { name: "over3"; \
5602 description { state: "default" 0.0; \
5608 program { name: "button_click"; \
5609 signal: "mouse,down,1"; \
5611 action: SIGNAL_EMIT "elm,action,press" ""; \
5613 program { name: "button_unclick"; \
5614 signal: "mouse,up,1"; \
5616 action: SIGNAL_EMIT "elm,action,unpress" ""; \
5618 program { name: "button_click3"; \
5619 signal: "mouse,clicked,1"; \
5621 action: SIGNAL_EMIT "elm,action,click" ""; \
5623 program { name: "action_focus"; \
5624 signal: "elm,action,focus_highlight,show"; \
5626 action: STATE_SET "focused" 0.0; \
5627 target: "focus_image"; \
5629 program { name: "action_unfocus"; \
5630 signal: "elm,action,focus_highlight,hide"; \
5632 action: STATE_SET "default" 0.0; \
5633 target: "focus_image"; \
5638 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
5639 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
5640 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
5641 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
5643 group { name: "elm/button/base/search_clear";
5644 inherit: "elm/button/base/editfield_clear";
5646 image: "00_field_btn_clear.png" COMP;
5653 description { state: "default" 0.0;
5654 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
5655 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
5658 part { name: "clear_button";
5661 clip_to: "clear_button.clipper";
5662 description { state: "default" 0.0;
5663 min: BUTTON_SEARCH_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
5664 max: BUTTON_SEARCH_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
5666 image.normal: "00_field_btn_clear.png";
5669 part { name: "clear_button.clipper";
5671 description { state: "default" 0.0;
5672 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
5674 description { state: "clicked" 0.0;
5675 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
5677 description { state: "disabled" 0.0;
5678 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
5684 #undef BUTTON_STATE_ENABLED
5685 #undef BUTTON_STATE_DISABLED
5686 #undef BUTTON_LANDSCAPE_DISABLED
5687 #undef BUTTON_LANDSCAPE_ENABLED