3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 #define BUTTON_STATE_ENABLED 0
21 #define BUTTON_STATE_DISABLED 1
22 #define BUTTON_LANDSCAPE_DISABLED 0
23 #define BUTTON_LANDSCAPE_ENABLED 1
27 name: "touch_sound" AS_IS;
28 source: "S_Touch_30ms.wav";
32 ///////////////////////////////////////////////////////////////////////////////////////
33 group { name: "elm/button/base/style1";
34 alias: "elm/button/base/text_only/style1";
35 alias: "elm/button/base/center";
36 alias: "elm/button/base/icon_and_text/center";
37 alias: "elm/button/base/nocontents/search_button";
38 alias: "elm/button/base/style1/multiline";
40 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 public button_state = BUTTON_STATE_ENABLED;
52 part { name: "button_image";
54 description { state: "default" 0.0;
56 normal: "00_button_01.png";
57 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
61 description { state: "clicked" 0.0;
62 inherit: "default" 0.0;
63 image.normal: "00_button_01_press.png";
65 description { state: "disabled" 0.0;
66 inherit: "default" 0.0;
67 image.normal: "00_button_01_dim.png";
69 description { state: "focused" 0.0;
70 inherit: "default" 0.0;
71 image.normal: "00_button_01_press.png";
74 part { name: "focus_image";
78 description { state: "default" 0.0;
80 rel1.to : "button_image";
81 rel2.to : "button_image";
83 normal: "00_button_01_focus.png";
84 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
88 description { state: "focused" 0.0;
89 inherit: "default" 0.0;
93 part { name: "padding_left_top";
97 description { state: "default" 0.0;
99 rel2.relative: 0.0 0.0;
100 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
109 description { state: "default" 0.0;
110 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
113 description { state: "visible" 0.0;
114 inherit: "default" 0.0;
115 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
117 description { state: "icononly" 0.0;
118 inherit: "default" 0.0;
119 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
122 part { name: "padding_right_bottom";
126 description { state: "default" 0.0;
128 rel1.relative: 1.0 1.0;
129 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
134 part { name: "icon_rect";
138 description { state: "default" 0.0;
144 to: "padding_left_top";
148 to_x: "padding_left_top";
149 to_y: "padding_right_bottom";
153 description { state: "visible" 0.0;
154 inherit: "default" 0.0;
155 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
156 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
158 description { state: "icononly" 0.0;
159 inherit: "default" 0.0;
162 part { name: "padding_after_icon";
166 description { state: "default" 0.0; //when only icon or no icon is there
172 rel2.to: "icon_rect";
177 description { state: "visible" 0.0;
178 inherit: "default" 0.0;
179 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
181 description { state: "icononly" 0.0;
182 inherit: "default" 0.0;
185 part { name: "padding_before_text";
189 description { state: "default" 0.0; //when only icon or no icon is there
194 to_y: "padding_left_top";
199 to_y: "padding_right_bottom";
202 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
206 part { name: "elm.swallow.content";
210 description { state: "default" 0.0;
215 to: "padding_left_top";
219 to_x: "padding_left_top";
220 to_y: "padding_right_bottom";
224 description { state: "visible" 0.0;
226 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
227 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
231 to_x: "padding_before_text";
232 to_y: "padding_left_top";
236 to_x: "padding_before_text";
237 to_y: "padding_right_bottom";
240 description { state: "icononly" 0.0;
241 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
242 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
245 part { name: "elm.text";
248 effect: SHADOW BOTTOM;
251 description { state: "default" 0.0;
255 to_x: "padding_after_icon";
256 to_y: "padding_left_top";
260 to: "padding_right_bottom";
262 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
263 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
265 font: "Tizen:style=Regular";
266 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
272 description { state: "visible" 0.0;
273 inherit: "default" 0.0;
276 description { state: "clicked" 0.0;
277 inherit: "default" 0.0;
279 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
281 description { state: "disabled" 0.0;
282 inherit: "default" 0.0;
284 description { state: "disabled_visible" 0.0;
285 inherit: "default" 0.0;
286 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
289 description { state: "focused" 0.0;
290 inherit: "default" 0.0;
292 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
295 part { name: "over2";
298 ignore_flags: ON_HOLD;
299 description { state: "default" 0.0;
303 part { name: "over3";
306 description { state: "default" 0.0;
310 part { name: "clipper";
312 description { state: "default" 0.0;
313 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
315 description { state: "disabled" 0.0;
316 inherit: "default" 0.0;
317 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
320 part { name: "disabler";
322 description { state: "default" 0.0;
326 description { state: "disabled" 0.0;
327 inherit: "default" 0.0;
333 program { name: "button_click";
334 signal: "mouse,down,1";
336 action: SIGNAL_EMIT "elm,action,press" "";
337 after: "button_click_anim";
339 program { name: "button_click_anim";
340 action: STATE_SET "clicked" 0.0;
341 target: "button_image";
342 after: "text_clicked";
344 program { name: "text_clicked";
348 get_state(PART:"elm.text", st, 30, vl);
349 if (!strcmp(st, "visible"))
350 set_state(PART:"elm.text", "clicked", 0.0);
353 program { name: "button_double_click";
354 signal: "mouse,down,1,double";
356 after: "button_click_anim";
358 program { name: "button_unpress";
359 action: SIGNAL_EMIT "elm,action,unpress" "";
361 program { name: "button_mouseout_clicked";
362 signal: "mouse,up,1";
367 get_state(PART:"elm.swallow.content", st, 30, vl);
368 if (strcmp(st, "icononly"))
370 emit("elm,action,default,text,set", "");
371 set_state(PART:"elm.text", "visible", 0.0);
373 if (get_int(button_state) != BUTTON_STATE_DISABLED)
374 set_state(PART:"button_image", "default", 0.0);
376 after: button_unpress;
378 program { name: "touch_snd";
379 signal: "mouse,clicked,1";
381 action: PLAY_SAMPLE "touch_sound" 1.0;
382 after: button_unclick3;
384 program { name: "button_unclick3";
385 action: SIGNAL_EMIT "elm,action,click" "";
387 program { name: "text_show";
388 signal: "elm,state,text,visible";
393 get_state(PART:"elm.swallow.content", st, 30, vl);
394 if (!strcmp(st, "icononly"))
396 set_state(PART:"elm.swallow.content", "visible", 0.0);
397 set_state(PART:"icon_rect", "visible", 0.0);
398 set_state(PART:"padding_after_icon", "visible", 0.0);
399 set_state(PART:"bg", "visible", 0.0);
401 if (get_int(button_state) != BUTTON_STATE_DISABLED)
402 set_state(PART:"elm.text", "visible", 0.0);
404 set_state(PART:"elm.text", "disabled_visible", 0.0);
407 program { name: "text_hide";
408 signal: "elm,state,text,hidden";
413 get_state(PART:"elm.swallow.content", st, 30, vl);
414 if (!strcmp(st, "visible"))
416 set_state(PART:"elm.swallow.content", "icononly", 0.0);
417 set_state(PART:"icon_rect", "icononly", 0.0);
418 set_state(PART:"padding_after_icon", "icononly", 0.0);
419 set_state(PART:"bg", "icononly", 0.0);
421 set_state(PART:"elm.text", "default", 0.0);
424 program { name: "icon_show";
425 signal: "elm,state,icon,visible";
430 get_state(PART:"elm.text", st, 30, vl);
431 if (!strcmp(st, "visible"))
433 set_state(PART:"elm.swallow.content", "visible", 0.0);
434 set_state(PART:"icon_rect", "visible", 0.0);
435 set_state(PART:"padding_after_icon", "visible", 0.0);
436 set_state(PART:"bg", "visible", 0.0);
440 set_state(PART:"elm.swallow.content", "icononly", 0.0);
441 set_state(PART:"icon_rect", "icononly", 0.0);
442 set_state(PART:"padding_after_icon", "icononly", 0.0);
443 set_state(PART:"bg", "icononly", 0.0);
447 program { name: "icon_hide";
448 signal: "elm,state,icon,hidden";
450 action: STATE_SET "default" 0.0;
451 target: "elm.swallow.content";
452 target: "padding_after_icon";
456 program { name: "disable";
457 signal: "elm,state,disabled";
459 action: STATE_SET "disabled" 0.0;
460 target: "button_image";
463 after: "disable_text";
465 program { name: "disable_text";
469 get_state(PART:"elm.text", st, 30, vl);
470 if (!strcmp(st, "visible"))
471 set_state(PART:"elm.text", "disabled_visible", 0.0);
473 set_state(PART:"elm.text", "disabled", 0.0);
474 set_int(button_state, BUTTON_STATE_DISABLED);
477 program { name: "enable";
478 signal: "elm,state,enabled";
480 action: STATE_SET "default" 0.0;
481 target: "button_image";
484 after: "enable_text";
486 program { name: "enable_text";
490 get_state(PART:"elm.text", st, 30, vl);
491 if (!strcmp(st, "disabled_visible"))
492 set_state(PART:"elm.text", "visible", 0.0);
494 set_state(PART:"elm.text", "default", 0.0);
495 set_int(button_state, BUTTON_STATE_ENABLED);
498 program { name: "action_focus";
499 signal: "elm,action,focus_highlight,show";
501 action: STATE_SET "focused" 0.0;
502 target: "focus_image";
504 program { name: "action_unfocus";
505 signal: "elm,action,focus_highlight,hide";
507 action: STATE_SET "default" 0.0;
508 target: "focus_image";
513 //////////////////////////////////////////////////////////////
514 group { name: "elm/button/base/style1/auto_expand";
515 inherit: "elm/button/base/style1";
517 part { name: "elm.text";
520 effect: SHADOW BOTTOM;
523 description { state: "default" 0.0;
527 to_x: "padding_after_icon";
528 to_y: "padding_left_top";
532 to: "padding_right_bottom";
534 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
535 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
537 font: "Tizen:style=Regular";
538 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
544 description { state: "visible" 0.0;
545 inherit: "default" 0.0;
548 description { state: "clicked" 0.0;
549 inherit: "default" 0.0;
551 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
553 description { state: "disabled" 0.0;
554 inherit: "default" 0.0;
556 description { state: "disabled_visible" 0.0;
557 inherit: "default" 0.0;
558 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
561 description { state: "focused" 0.0;
562 inherit: "default" 0.0;
564 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
570 //////////////////////////////////////////////////////////////////////////////////////
571 group { name: "elm/button/base/datetime/ampm/default";
572 alias: "elm/button/base/datetime_ampm/default";
573 inherit: "elm/button/base/style1/auto_expand";
575 part { name: "button_image";
577 description { state: "default" 0.0;
579 normal: "00_button_01.png";
580 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
583 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
584 max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
586 description { state: "clicked" 0.0;
587 inherit: "default" 0.0;
588 image.normal: "00_button_01_press.png";
590 description { state: "disabled" 0.0;
591 inherit: "default" 0.0;
592 image.normal: "00_button_01_dim.png";
594 description { state: "focused" 0.0;
595 inherit: "default" 0.0;
596 image.normal: "00_button_01_press.png";
603 description { state: "default" 0.0;
607 description { state: "visible" 0.0;
608 inherit: "default" 0.0;
609 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
611 description { state: "icononly" 0.0;
612 inherit: "default" 0.0;
615 part { name: "elm.text";
618 effect: SHADOW BOTTOM;
621 description { state: "default" 0.0;
624 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
625 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
626 text.size: BUTTON_DATETIME_AMPM_TEXT_FONT_SIZE_INC;
629 description { state: "visible" 0.0;
630 inherit: "default" 0.0;
633 description { state: "clicked" 0.0;
634 inherit: "default" 0.0;
636 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
638 description { state: "disabled" 0.0;
639 inherit: "default" 0.0;
641 description { state: "disabled_visible" 0.0;
642 inherit: "default" 0.0;
643 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
646 description { state: "focused" 0.0;
647 inherit: "default" 0.0;
649 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
655 ///////////////////////////////////////////////////////////////////////////////////////
656 group { name: "elm/button/base/style1/delete";
657 inherit: "elm/button/base/style1";
659 image: "00_button_01_delete.png" COMP;
660 image: "00_button_01_delete_dim.png" COMP;
661 image: "00_button_01_delete_press.png" COMP;
664 part { name: "button_image";
666 description { state: "default" 0.0;
668 normal: "00_button_01_delete.png";
669 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
673 description { state: "clicked" 0.0;
674 inherit: "default" 0.0;
675 image.normal: "00_button_01_delete_press.png";
677 description { state: "disabled" 0.0;
678 inherit: "default" 0.0;
679 image.normal: "00_button_01_delete_dim.png";
681 description { state: "focused" 0.0;
682 inherit: "default" 0.0;
683 image.normal: "00_button_01_delete_press.png";
686 part { name: "elm.text";
689 effect: SHADOW BOTTOM;
692 description { state: "default" 0.0;
696 to_x: "padding_after_icon";
697 to_y: "padding_left_top";
701 to: "padding_right_bottom";
703 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
704 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
706 font: "Tizen:style=Regular";
707 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
713 description { state: "visible" 0.0;
714 inherit: "default" 0.0;
717 description { state: "clicked" 0.0;
718 inherit: "default" 0.0;
720 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
722 description { state: "disabled" 0.0;
723 inherit: "default" 0.0;
725 description { state: "disabled_visible" 0.0;
726 inherit: "default" 0.0;
727 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
730 description { state: "focused" 0.0;
731 inherit: "default" 0.0;
733 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
739 ///////////////////////////////////////////////////////////////////////////////////////
740 group { name: "elm/button/base/search_button/text";
741 alias: "elm/button/base/searchbar/default";
742 inherit: "elm/button/base/style1";
744 image: "00_button_01.png" COMP;
745 image: "00_button_01_dim.png" COMP;
746 image: "00_button_01_press.png" COMP;
749 part { name: "button_image";
751 description { state: "default" 0.0;
753 normal: "00_button_01.png";
754 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
758 description { state: "clicked" 0.0;
759 inherit: "default" 0.0;
760 image.normal: "00_button_01_press.png";
762 description { state: "disabled" 0.0;
763 inherit: "default" 0.0;
764 image.normal: "00_button_01_dim.png";
766 description { state: "focused" 0.0;
767 inherit: "default" 0.0;
768 image.normal: "00_button_01_press.png";
775 description { state: "default" 0.0;
776 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
779 description { state: "visible" 0.0;
780 inherit: "default" 0.0;
781 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
783 description { state: "icononly" 0.0;
784 inherit: "default" 0.0;
785 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
788 part { name: "elm.text";
791 effect: SHADOW BOTTOM;
794 description { state: "default" 0.0;
798 to_x: "padding_after_icon";
799 to_y: "padding_left_top";
803 to: "padding_right_bottom";
805 color: BUTTON_SEARCH_BUTTON_TEXT_NORMAL_COLOR_INC;
807 font: "Tizen:style=Regular";
808 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
814 description { state: "visible" 0.0;
815 inherit: "default" 0.0;
818 description { state: "clicked" 0.0;
819 inherit: "default" 0.0;
821 color: BUTTON_SEARCH_BUTTON_TEXT_PRESSED_COLOR_INC;
822 color2: BUTTON_SEARCH_BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
824 description { state: "disabled" 0.0;
825 inherit: "default" 0.0;
827 description { state: "disabled_visible" 0.0;
828 inherit: "default" 0.0;
829 color: BUTTON_SEARCH_BUTTON_TEXT_DISABLED_COLOR_INC;
832 description { state: "focused" 0.0;
833 inherit: "default" 0.0;
835 color: BUTTON_SEARCH_BUTTON_TEXT_FOCUSED_COLOR_INC;
841 ///////////////////////////////////////////////////////////////////////////////////////
842 group { name: "elm/button/base/search_button/send";
843 inherit: "elm/button/base/style1";
845 image: "00_button_01_send.png" COMP;
846 image: "00_button_01_send_dim.png" COMP;
847 image: "00_button_01_send_press.png" COMP;
850 part { name: "button_image";
852 description { state: "default" 0.0;
854 normal: "00_button_01_send.png";
855 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
859 description { state: "clicked" 0.0;
860 inherit: "default" 0.0;
861 image.normal: "00_button_01_send_press.png";
863 description { state: "disabled" 0.0;
864 inherit: "default" 0.0;
865 image.normal: "00_button_01_send_dim.png";
867 description { state: "focused" 0.0;
868 inherit: "default" 0.0;
869 image.normal: "00_button_01_send_press.png";
876 description { state: "default" 0.0;
877 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
880 description { state: "visible" 0.0;
881 inherit: "default" 0.0;
882 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
884 description { state: "icononly" 0.0;
885 inherit: "default" 0.0;
886 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
889 part { name: "elm.text";
892 effect: SHADOW BOTTOM;
895 description { state: "default" 0.0;
899 to_x: "padding_after_icon";
900 to_y: "padding_left_top";
904 to: "padding_right_bottom";
906 color: BUTTON_SEARCH_BUTTON_SEND_NORMAL_COLOR_INC;
907 color2: BUTTON_SEARCH_BUTTON_SEND_SHADOW_NORMAL_COLOR_INC;
909 font: "Tizen:style=Regular";
910 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
916 description { state: "visible" 0.0;
917 inherit: "default" 0.0;
920 description { state: "clicked" 0.0;
921 inherit: "default" 0.0;
923 color: BUTTON_SEARCH_BUTTON_SEND_PRESSED_COLOR_INC;
925 description { state: "disabled" 0.0;
926 inherit: "default" 0.0;
928 description { state: "disabled_visible" 0.0;
929 inherit: "default" 0.0;
930 color: BUTTON_SEARCH_BUTTON_SEND_DISABLED_COLOR_INC;
933 description { state: "focused" 0.0;
934 inherit: "default" 0.0;
936 color: BUTTON_SEARCH_BUTTON_SEND_FOCUSED_COLOR_INC;
942 ///////////////////////////////////////////////////////////////////////////////////////
943 group { name: "elm/button/base/search_button/cancel";
944 inherit: "elm/button/base/style1";
946 image: "00_button_01_delete.png" COMP;
947 image: "00_button_01_delete_dim.png" COMP;
948 image: "00_button_01_delete_press.png" COMP;
951 part { name: "button_image";
953 description { state: "default" 0.0;
955 normal: "00_button_01_delete.png";
956 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
960 description { state: "clicked" 0.0;
961 inherit: "default" 0.0;
962 image.normal: "00_button_01_delete_press.png";
964 description { state: "disabled" 0.0;
965 inherit: "default" 0.0;
966 image.normal: "00_button_01_delete_dim.png";
968 description { state: "focused" 0.0;
969 inherit: "default" 0.0;
970 image.normal: "00_button_01_delete_press.png";
977 description { state: "default" 0.0;
978 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
981 description { state: "visible" 0.0;
982 inherit: "default" 0.0;
983 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
985 description { state: "icononly" 0.0;
986 inherit: "default" 0.0;
987 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
990 part { name: "elm.text";
993 effect: SHADOW BOTTOM;
996 description { state: "default" 0.0;
1000 to_x: "padding_after_icon";
1001 to_y: "padding_left_top";
1005 to: "padding_right_bottom";
1007 color: BUTTON_SEARCH_BUTTON_CANCEL_NORMAL_COLOR_INC;
1008 color2: BUTTON_SEARCH_BUTTON_CANCEL_SHADOW_NORMAL_COLOR_INC;
1010 font: "Tizen:style=Regular";
1011 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
1014 text_class: "tizen";
1017 description { state: "visible" 0.0;
1018 inherit: "default" 0.0;
1021 description { state: "clicked" 0.0;
1022 inherit: "default" 0.0;
1024 color: BUTTON_SEARCH_BUTTON_CANCEL_PRESSED_COLOR_INC;
1026 description { state: "disabled" 0.0;
1027 inherit: "default" 0.0;
1029 description { state: "disabled_visible" 0.0;
1030 inherit: "default" 0.0;
1031 color: BUTTON_SEARCH_BUTTON_CANCEL_DISABLED_COLOR_INC;
1034 description { state: "focused" 0.0;
1035 inherit: "default" 0.0;
1037 color: BUTTON_SEARCH_BUTTON_CANCEL_FOCUSED_COLOR_INC;
1043 ///////////////////////////////////////////////////////////////////////////////////////
1044 group { name: "elm/button/base/style2";
1045 alias: "elm/button/base/text_only/style2";
1046 alias: "elm/button/base/style2/multiline";
1048 item: "focus_highlight" "on";
1051 image: "00_button_01.png" COMP;
1052 image: "00_button_01_press.png" COMP;
1053 image: "00_button_01_dim.png" COMP;
1054 image: "00_button_01_focus.png" COMP;
1057 public button_state = BUTTON_STATE_ENABLED;
1060 part { name: "button_image";
1062 description { state: "default" 0.0;
1064 normal: "00_button_01.png";
1065 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1069 description { state: "clicked" 0.0;
1070 inherit: "default" 0.0;
1071 image.normal: "00_button_01_press.png";
1073 description { state: "disabled" 0.0;
1074 inherit: "default" 0.0;
1075 image.normal: "00_button_01_dim.png";
1077 description { state: "focused" 0.0;
1078 inherit: "default" 0.0;
1079 image.normal: "00_button_01_press.png";
1082 part { name: "focus_image";
1086 description { state: "default" 0.0;
1088 rel1.to : "button_image";
1089 rel2.to : "button_image";
1091 normal: "00_button_01_focus.png";
1092 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1096 description { state: "focused" 0.0;
1097 inherit: "default" 0.0;
1101 part { name: "padding_left_top";
1105 description { state: "default" 0.0;
1107 rel2.relative: 0.0 0.0;
1108 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1117 description { state: "default" 0.0;
1118 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1121 description { state: "visible" 0.0;
1122 inherit: "default" 0.0;
1123 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1125 description { state: "icononly" 0.0;
1126 inherit: "default" 0.0;
1127 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1130 part { name: "padding_right_bottom";
1134 description { state: "default" 0.0;
1136 rel1.relative: 1.0 1.0;
1137 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1142 part { name: "icon_rect";
1146 description { state: "default" 0.0;
1152 to: "padding_left_top";
1156 to_x: "padding_left_top";
1157 to_y: "padding_right_bottom";
1161 description { state: "visible" 0.0;
1162 inherit: "default" 0.0;
1163 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1164 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1166 description { state: "icononly" 0.0;
1167 inherit: "default" 0.0;
1170 part { name: "padding_after_icon";
1174 description { state: "default" 0.0; //when only icon or no icon is there
1182 rel2.to: "icon_rect";
1185 description { state: "visible" 0.0;
1186 inherit: "default" 0.0;
1187 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1189 description { state: "icononly" 0.0;
1190 inherit: "default" 0.0;
1193 part { name: "padding_before_text";
1197 description { state: "default" 0.0; //when only icon or no icon is there
1202 to_y: "padding_left_top";
1207 to_y: "padding_right_bottom";
1210 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1214 part { name: "elm.swallow.content";
1218 description { state: "default" 0.0;
1223 to: "padding_left_top";
1227 to_x: "padding_left_top";
1228 to_y: "padding_right_bottom";
1232 description { state: "visible" 0.0;
1234 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1235 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1239 to_x: "padding_before_text";
1240 to_y: "padding_left_top";
1244 to_x: "padding_before_text";
1245 to_y: "padding_right_bottom";
1248 description { state: "icononly" 0.0;
1249 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1250 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1253 part { name: "elm.text";
1258 effect: SHADOW BOTTOM;
1259 description { state: "default" 0.0;
1263 to_x: "padding_after_icon";
1264 to_y: "padding_left_top";
1268 to: "padding_right_bottom";
1270 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1271 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1273 font: "Tizen:style=Regular";
1274 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1277 text_class: "tizen";
1280 description { state: "visible" 0.0;
1281 inherit: "default" 0.0;
1284 description { state: "clicked" 0.0;
1285 inherit: "default" 0.0;
1287 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1289 description { state: "disabled" 0.0;
1290 inherit: "default" 0.0;
1292 description { state: "disabled_visible" 0.0;
1293 inherit: "default" 0.0;
1294 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1297 description { state: "focused" 0.0;
1298 inherit: "default" 0.0;
1300 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1303 part { name: "over2";
1306 ignore_flags: ON_HOLD;
1307 description { state: "default" 0.0;
1311 part { name: "over3";
1314 description { state: "default" 0.0;
1318 part { name: "clipper";
1320 description { state: "default" 0.0;
1321 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1323 description { state: "disabled" 0.0;
1324 inherit: "default" 0.0;
1325 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1328 part { name: "disabler";
1330 description { state: "default" 0.0;
1334 description { state: "disabled" 0.0;
1335 inherit: "default" 0.0;
1341 program { name: "button_click";
1342 signal: "mouse,down,1";
1344 action: SIGNAL_EMIT "elm,action,press" "";
1345 after: "button_click_anim";
1347 program { name: "button_click_anim";
1348 action: STATE_SET "clicked" 0.0;
1349 target: "button_image";
1350 after: "text_clicked";
1352 program { name: "text_clicked";
1356 get_state(PART:"elm.text", st, 30, vl);
1357 if (!strcmp(st, "visible"))
1358 set_state(PART:"elm.text", "clicked", 0.0);
1361 program { name: "button_double_click";
1362 signal: "mouse,down,1,double";
1364 after: "button_click_anim";
1366 program { name: "button_unpress";
1367 action: SIGNAL_EMIT "elm,action,unpress" "";
1369 program { name: "button_mouseout_clicked";
1370 signal: "mouse,up,1";
1375 get_state(PART:"elm.swallow.content", st, 30, vl);
1376 if (strcmp(st, "icononly"))
1378 emit("elm,action,default,text,set", "");
1379 set_state(PART:"elm.text", "visible", 0.0);
1381 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1382 set_state(PART:"button_image", "default", 0.0);
1384 after: button_unpress;
1386 program { name: "touch_snd";
1387 signal: "mouse,clicked,1";
1389 action: PLAY_SAMPLE "touch_sound" 1.0;
1390 after: button_unclick3;
1392 program { name: "button_unclick3";
1393 action: SIGNAL_EMIT "elm,action,click" "";
1395 program { name: "text_show";
1396 signal: "elm,state,text,visible";
1401 get_state(PART:"elm.swallow.content", st, 30, vl);
1402 if (!strcmp(st, "icononly"))
1404 set_state(PART:"elm.swallow.content", "visible", 0.0);
1405 set_state(PART:"icon_rect", "visible", 0.0);
1406 set_state(PART:"padding_after_icon", "visible", 0.0);
1407 set_state(PART:"bg", "visible", 0.0);
1409 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1410 set_state(PART:"elm.text", "visible", 0.0);
1412 set_state(PART:"elm.text", "disabled_visible", 0.0);
1415 program { name: "text_hide";
1416 signal: "elm,state,text,hidden";
1421 get_state(PART:"elm.swallow.content", st, 30, vl);
1422 if (!strcmp(st, "visible"))
1424 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1425 set_state(PART:"icon_rect", "icononly", 0.0);
1426 set_state(PART:"padding_after_icon", "icononly", 0.0);
1427 set_state(PART:"bg", "icononly", 0.0);
1429 set_state(PART:"elm.text", "default", 0.0);
1432 program { name: "icon_show";
1433 signal: "elm,state,icon,visible";
1438 get_state(PART:"elm.text", st, 30, vl);
1439 if (!strcmp(st, "visible"))
1441 set_state(PART:"elm.swallow.content", "visible", 0.0);
1442 set_state(PART:"icon_rect", "visible", 0.0);
1443 set_state(PART:"padding_after_icon", "visible", 0.0);
1444 set_state(PART:"bg", "visible", 0.0);
1448 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1449 set_state(PART:"icon_rect", "icononly", 0.0);
1450 set_state(PART:"padding_after_icon", "icononly", 0.0);
1451 set_state(PART:"bg", "icononly", 0.0);
1455 program { name: "icon_hide";
1456 signal: "elm,state,icon,hidden";
1458 action: STATE_SET "default" 0.0;
1459 target: "elm.swallow.content";
1460 target: "padding_after_icon";
1461 target: "icon_rect";
1464 program { name: "disable";
1465 signal: "elm,state,disabled";
1467 action: STATE_SET "disabled" 0.0;
1468 target: "button_image";
1471 after: "disable_text";
1473 program { name: "disable_text";
1477 get_state(PART:"elm.text", st, 30, vl);
1478 if (!strcmp(st, "visible"))
1479 set_state(PART:"elm.text", "disabled_visible", 0.0);
1481 set_state(PART:"elm.text", "disabled", 0.0);
1482 set_int(button_state, BUTTON_STATE_DISABLED);
1485 program { name: "enable";
1486 signal: "elm,state,enabled";
1488 action: STATE_SET "default" 0.0;
1489 target: "button_image";
1492 after: "enable_text";
1494 program { name: "enable_text";
1498 get_state(PART:"elm.text", st, 30, vl);
1499 if (!strcmp(st, "disabled_visible"))
1500 set_state(PART:"elm.text", "visible", 0.0);
1502 set_state(PART:"elm.text", "default", 0.0);
1503 set_int(button_state, BUTTON_STATE_ENABLED);
1506 program { name: "action_focus";
1507 signal: "elm,action,focus_highlight,show";
1509 action: STATE_SET "focused" 0.0;
1510 target: "focus_image";
1512 program { name: "action_unfocus";
1513 signal: "elm,action,focus_highlight,hide";
1515 action: STATE_SET "default" 0.0;
1516 target: "focus_image";
1521 ///////////////////////////////////////////////////////////////////////////////////////
1522 group { name: "elm/button/base/sweep";
1523 alias: "elm/button/base/text_only/sweep";
1524 alias: "elm/button/base/hidden";
1525 alias: "elm/button/base/sweep/multiline";
1527 item: "focus_highlight" "on";
1530 image: "00_button_01.png" COMP;
1531 image: "00_button_01_press.png" COMP;
1532 image: "00_button_01_dim.png" COMP;
1533 image: "00_button_01_focus.png" COMP;
1536 public button_state = BUTTON_STATE_ENABLED;
1539 style { name: "btn_sweep_multiline";
1540 base: "font=Tizen:style=Regular font_size="BUTTON_SWEEP_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed linegap=-7 ellipsis=1.0 text_class=tizen";
1547 part { name: "button_image";
1549 description { state: "default" 0.0;
1550 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1552 normal: "00_button_01.png";
1553 border: BUTTON_SWEEP_BG_BORDER_INC;
1557 description { state: "clicked" 0.0;
1558 inherit: "default" 0.0;
1559 image.normal: "00_button_01_press.png";
1561 description { state: "disabled" 0.0;
1562 inherit: "default" 0.0;
1563 image.normal: "00_button_01_dim.png";
1565 description { state: "focused" 0.0;
1566 inherit: "default" 0.0;
1567 image.normal: "00_button_01_press.png";
1570 part { name: "focus_image";
1574 description { state: "default" 0.0;
1576 rel1.to : "button_image";
1577 rel2.to : "button_image";
1579 normal: "00_button_01_focus.png";
1580 border: BUTTON_SWEEP_BG_BORDER_INC;
1584 description { state: "focused" 0.0;
1585 inherit: "default" 0.0;
1589 part { name: "padding_left_top";
1593 description { state: "default" 0.0;
1595 rel2.relative: 0.0 0.0;
1596 min: BUTTON_SWEEP_PADDING_MIN_INC;
1601 part { name: "padding_right_bottom";
1605 description { state: "default" 0.0;
1607 rel1.relative: 1.0 1.0;
1608 min: BUTTON_SWEEP_PADDING_MIN_INC;
1613 part { name: "icon_rect";
1617 description { state: "default" 0.0;
1618 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1622 to_x: "elm.swallow.content";
1623 to_y: "padding_left_top";
1627 to_x: "elm.swallow.content";
1628 to_y: "padding_right_bottom";
1634 part { name: "padding_icon_text";
1638 description { state: "default" 0.0; //when only icon or no icon is there
1646 rel2.to: "icon_rect";
1649 description { state: "visible" 0.0; //when icon is visible
1650 inherit: "default" 0.0;
1651 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1653 description { state: "icononly" 0.0;
1654 inherit: "default" 0.0;
1657 part { name: "elm.swallow.content";
1661 description { state: "default" 0.0;
1666 to: "padding_left_top";
1670 to_x: "padding_left_top";
1671 to_y: "padding_right_bottom";
1675 description { state: "visible" 0.0;
1676 inherit: "default" 0.0;
1677 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1678 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1681 aspect_preference: VERTICAL;
1683 description { state: "icononly" 0.0;
1684 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1685 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1688 part { name: "elm.text";
1691 effect: SHADOW BOTTOM;
1694 description { state: "default" 0.0;
1699 to_x: "padding_icon_text";
1700 to_y: "padding_left_top";
1704 to: "padding_right_bottom";
1706 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1707 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1709 style: "btn_sweep_multiline";
1713 description { state: "visible" 0.0;
1714 inherit: "default" 0.0;
1716 min: BUTTON_SWEEP_TEXT_MIN_INC;
1718 description { state: "clicked" 0.0;
1719 inherit: "default" 0.0;
1722 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1724 description { state: "disabled" 0.0;
1725 inherit: "default" 0.0;
1727 description { state: "disabled_visible" 0.0;
1728 inherit: "default" 0.0;
1729 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1731 min: BUTTON_SWEEP_TEXT_MIN_INC;
1733 description { state: "focused" 0.0;
1734 inherit: "default" 0.0;
1737 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1740 part { name: "over2";
1743 ignore_flags: ON_HOLD;
1744 description { state: "default" 0.0;
1748 part { name: "over3";
1751 description { state: "default" 0.0;
1755 part { name: "clipper";
1757 description { state: "default" 0.0;
1758 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1760 description { state: "disabled" 0.0;
1761 inherit: "default" 0.0;
1762 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1765 part { name: "disabler";
1767 description { state: "default" 0.0;
1771 description { state: "disabled" 0.0;
1772 inherit: "default" 0.0;
1778 program { name: "button_click";
1779 signal: "mouse,down,1";
1781 action: SIGNAL_EMIT "elm,action,press" "";
1782 after: "button_click_anim";
1784 program { name: "button_click_anim";
1785 action: STATE_SET "clicked" 0.0;
1786 target: "button_image";
1787 after: "text_clicked";
1789 program { name: "text_clicked";
1793 get_state(PART:"elm.text", st, 30, vl);
1794 if (!strcmp(st, "visible"))
1795 set_state(PART:"elm.text", "clicked", 0.0);
1798 program { name: "button_double_click";
1799 signal: "mouse,down,1,double";
1801 after: "button_click_anim";
1803 program { name: "button_unpress";
1804 action: SIGNAL_EMIT "elm,action,unpress" "";
1806 program { name: "button_mouseout_clicked";
1807 signal: "mouse,up,1";
1812 get_state(PART:"elm.swallow.content", st, 30, vl);
1813 if (strcmp(st, "icononly"))
1815 emit("elm,action,default,text,set", "");
1816 set_state(PART:"elm.text", "visible", 0.0);
1818 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1819 set_state(PART:"button_image", "default", 0.0);
1821 after: button_unpress;
1823 program { name: "touch_snd";
1824 signal: "mouse,clicked,1";
1826 action: PLAY_SAMPLE "touch_sound" 1.0;
1827 after: button_unclick3;
1829 program { name: "button_unclick3";
1830 action: SIGNAL_EMIT "elm,action,click" "";
1832 program { name: "text_show";
1833 signal: "elm,state,text,visible";
1838 get_state(PART:"elm.swallow.content", st, 30, vl);
1839 if (!strcmp(st, "icononly"))
1841 set_state(PART:"elm.swallow.content", "visible", 0.0);
1842 set_state(PART:"padding_icon_text", "visible", 0.0);
1844 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1845 set_state(PART:"elm.text", "visible", 0.0);
1847 set_state(PART:"elm.text", "disabled_visible", 0.0);
1850 program { name: "text_hide";
1851 signal: "elm,state,text,hidden";
1856 get_state(PART:"elm.swallow.content", st, 30, vl);
1857 if (!strcmp(st, "visible"))
1859 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1860 set_state(PART:"padding_icon_text", "icononly", 0.0);
1862 set_state(PART:"elm.text", "default", 0.0);
1865 program { name: "icon_show";
1866 signal: "elm,state,icon,visible";
1871 get_state(PART:"elm.text", st, 30, vl);
1872 if (!strcmp(st, "visible"))
1874 set_state(PART:"elm.swallow.content", "visible", 0.0);
1875 set_state(PART:"padding_icon_text", "visible", 0.0);
1879 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1880 set_state(PART:"padding_icon_text", "icononly", 0.0);
1884 program { name: "icon_hide";
1885 signal: "elm,state,icon,hidden";
1887 action: STATE_SET "default" 0.0;
1888 target: "elm.swallow.content";
1889 target: "padding_icon_text";
1891 program { name: "disable";
1892 signal: "elm,state,disabled";
1894 action: STATE_SET "disabled" 0.0;
1895 target: "button_image";
1898 after: "disable_text";
1900 program { name: "disable_text";
1904 get_state(PART:"elm.text", st, 30, vl);
1905 if (!strcmp(st, "visible"))
1906 set_state(PART:"elm.text", "disabled_visible", 0.0);
1908 set_state(PART:"elm.text", "disabled", 0.0);
1909 set_int(button_state, BUTTON_STATE_DISABLED);
1912 program { name: "enable";
1913 signal: "elm,state,enabled";
1915 action: STATE_SET "default" 0.0;
1916 target: "button_image";
1919 after: "enable_text";
1921 program { name: "enable_text";
1925 get_state(PART:"elm.text", st, 30, vl);
1926 if (!strcmp(st, "disabled_visible"))
1927 set_state(PART:"elm.text", "visible", 0.0);
1929 set_state(PART:"elm.text", "default", 0.0);
1930 set_int(button_state, BUTTON_STATE_ENABLED);
1933 program { name: "action_focus";
1934 signal: "elm,action,focus_highlight,show";
1936 action: STATE_SET "focused" 0.0;
1937 target: "focus_image";
1939 program { name: "action_unfocus";
1940 signal: "elm,action,focus_highlight,hide";
1942 action: STATE_SET "default" 0.0;
1943 target: "focus_image";
1948 ///////////////////////////////////////////////////////////////////////////////////////
1949 group { name: "elm/button/base/sweep/delete";
1950 inherit: "elm/button/base/sweep";
1951 alias: "elm/button/base/sweep/delete/multiline";
1953 image: "00_button_01_delete_press.png" COMP;
1954 image: "00_button_01_delete.png" COMP;
1955 image: "00_button_01_delete_dim.png" COMP;
1958 style { name: "btn_sweep_delete_multiline";
1959 base: "font=Tizen:style=Regular font_size="BUTTON_SWEEP_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed linegap=-7 ellipsis=1.0 text_class=tizen";
1966 part { name: "button_image";
1968 description { state: "default" 0.0;
1969 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1971 normal: "00_button_01_delete.png";
1972 border: BUTTON_SWEEP_BG_BORDER_INC;
1976 description { state: "clicked" 0.0;
1977 inherit: "default" 0.0;
1978 image.normal: "00_button_01_delete_press.png";
1980 description { state: "disabled" 0.0;
1981 inherit: "default" 0.0;
1982 image.normal: "00_button_01_delete_dim.png";
1984 description { state: "focused" 0.0;
1985 inherit: "default" 0.0;
1986 image.normal: "00_button_01_delete_press.png";
1989 part { name: "elm.text";
1992 effect: SHADOW BOTTOM;
1995 description { state: "default" 0.0;
2000 to_x: "padding_icon_text";
2001 to_y: "padding_left_top";
2005 to: "padding_right_bottom";
2007 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
2008 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2010 style: "btn_sweep_multiline";
2014 description { state: "visible" 0.0;
2015 inherit: "default" 0.0;
2017 min: BUTTON_SWEEP_TEXT_MIN_INC;
2019 description { state: "clicked" 0.0;
2020 inherit: "default" 0.0;
2023 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
2025 description { state: "disabled" 0.0;
2026 inherit: "default" 0.0;
2028 description { state: "disabled_visible" 0.0;
2029 inherit: "default" 0.0;
2030 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
2032 min: BUTTON_SWEEP_TEXT_MIN_INC;
2034 description { state: "focused" 0.0;
2035 inherit: "default" 0.0;
2038 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
2044 ///////////////////////////////////////////////////////////////////////////////////////
2045 group { name: "elm/button/base/popup_button/default";
2046 alias: "elm/button/base/popup_button/menustyle";
2047 alias: "elm/button/base/popup_button/liststyle";
2048 alias: "elm/button/base/popup_button/volumebarstyle";
2049 alias: "elm/button/base/popup_button/customstyle";
2050 alias: "elm/button/base/popup_button/verticalbuttonstyle";
2051 alias: "elm/button/base/popup_button/default/multiline";
2053 item: "focus_highlight" "on";
2056 image: "00_popup_button.png" COMP;
2057 image: "00_popup_button_dim.png" COMP;
2058 image: "00_popup_button_press.png" COMP;
2059 image: "00_popup_button_focus.png" COMP;
2062 public button_state = BUTTON_STATE_ENABLED;
2065 part { name: "button_image";
2067 description { state: "default" 0.0;
2068 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2070 normal: "00_popup_button.png";
2071 border: BUTTON_POPUP_BG_BORDER_INC;
2075 description { state: "clicked" 0.0;
2076 inherit: "default" 0.0;
2077 image.normal: "00_popup_button_press.png";
2079 description { state: "disabled" 0.0;
2080 inherit: "default" 0.0;
2081 image.normal: "00_popup_button_dim.png";
2083 description { state: "focused" 0.0;
2084 inherit: "default" 0.0;
2085 image.normal: "00_popup_button_focus.png";
2088 part { name: "focus_image";
2092 description { state: "default" 0.0;
2094 rel1.to : "button_image";
2095 rel2.to : "button_image";
2097 normal: "00_button_01_focus.png";
2098 border: BUTTON_POPUP_BG_BORDER_INC;
2102 description { state: "focused" 0.0;
2103 inherit: "default" 0.0;
2107 part { name: "padding_left_top";
2111 description { state: "default" 0.0;
2113 rel2.relative: 0.0 0.0;
2114 min: BUTTON_POPUP_PADDING_MIN_INC;
2119 part { name: "padding_right_bottom";
2122 description { state: "default" 0.0;
2124 rel1.relative: 1.0 1.0;
2125 min: BUTTON_POPUP_PADDING_MIN_INC;
2130 part { name: "padding_icon_text";
2133 description { state: "default" 0.0; //when only icon or no icon is there
2137 to: "elm.swallow.content";
2139 rel2.to: "elm.swallow.content";
2144 description { state: "icononly" 0.0;
2145 inherit: "default" 0.0;
2147 description { state: "visible" 0.0; //when icon is visible
2148 inherit: "default" 0.0;
2149 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2152 part { name: "elm.swallow.content";
2156 description { state: "default" 0.0;
2161 to: "padding_left_top";
2165 to_x: "padding_left_top";
2166 to_y: "padding_right_bottom";
2170 description { state: "visible" 0.0;
2171 inherit: "default" 0.0;
2175 aspect_preference: VERTICAL;
2177 description { state: "icononly" 0.0;
2178 inherit: "default" 0.0;
2179 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2184 part { name: "elm.text";
2189 effect: SHADOW BOTTOM;
2190 description { state: "default" 0.0;
2194 to_x: "padding_icon_text";
2195 to_y: "padding_left_top";
2199 to: "padding_right_bottom";
2201 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
2202 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2204 font: "Tizen:style=Bold";
2205 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
2207 text_class: "tizen";
2210 description { state: "visible" 0.0;
2211 inherit: "default" 0.0;
2213 min: BUTTON_POPUP_TEXT_MIN_INC;
2215 description { state: "clicked" 0.0;
2216 inherit: "default" 0.0;
2219 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
2221 description { state: "disabled" 0.0;
2222 inherit: "default" 0.0;
2224 description { state: "disabled_visible" 0.0;
2225 inherit: "default" 0.0;
2226 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
2228 min: BUTTON_POPUP_TEXT_MIN_INC;
2230 description { state: "focused" 0.0;
2231 inherit: "default" 0.0;
2234 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2237 part { name: "over2";
2240 ignore_flags: ON_HOLD;
2241 description { state: "default" 0.0;
2245 part { name: "over3";
2248 description { state: "default" 0.0;
2252 part { name: "clipper";
2254 description { state: "default" 0.0;
2255 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
2257 description { state: "disabled" 0.0;
2258 inherit: "default" 0.0;
2259 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
2262 part { name: "disabler";
2264 description { state: "default" 0.0;
2268 description { state: "disabled" 0.0;
2269 inherit: "default" 0.0;
2275 program { name: "button_click";
2276 signal: "mouse,down,1";
2278 action: SIGNAL_EMIT "elm,action,press" "";
2279 after: "button_click_anim";
2281 program { name: "button_click_anim";
2282 action: STATE_SET "clicked" 0.0;
2283 target: "button_image";
2284 after: "text_clicked";
2286 program { name: "text_clicked";
2290 get_state(PART:"elm.text", st, 30, vl);
2291 if (!strcmp(st, "visible"))
2292 set_state(PART:"elm.text", "clicked", 0.0);
2295 program { name: "button_double_click";
2296 signal: "mouse,down,1,double";
2298 after: "button_click_anim";
2300 program { name: "button_unpress";
2301 action: SIGNAL_EMIT "elm,action,unpress" "";
2303 program { name: "button_mouseout_clicked";
2304 signal: "mouse,up,1";
2309 get_state(PART:"elm.swallow.content", st, 30, vl);
2310 if (strcmp(st, "icononly"))
2312 emit("elm,action,default,text,set", "");
2313 set_state(PART:"elm.text", "visible", 0.0);
2315 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2316 set_state(PART:"button_image", "default", 0.0);
2318 after: button_unpress;
2320 program { name: "touch_snd";
2321 signal: "mouse,clicked,1";
2323 action: PLAY_SAMPLE "touch_sound" 1.0;
2324 after: button_unclick3;
2326 program { name: "button_unclick3";
2327 action: SIGNAL_EMIT "elm,action,click" "";
2329 program { name: "text_show";
2330 signal: "elm,state,text,visible";
2335 get_state(PART:"elm.swallow.content", st, 30, vl);
2336 if (!strcmp(st, "icononly"))
2338 set_state(PART:"elm.swallow.content", "visible", 0.0);
2339 set_state(PART:"padding_icon_text", "visible", 0.0);
2341 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2342 set_state(PART:"elm.text", "visible", 0.0);
2344 set_state(PART:"elm.text", "disabled_visible", 0.0);
2347 program { name: "text_hide";
2348 signal: "elm,state,text,hidden";
2353 get_state(PART:"elm.swallow.content", st, 30, vl);
2354 if (!strcmp(st, "visible"))
2356 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2357 set_state(PART:"padding_icon_text", "icononly", 0.0);
2359 set_state(PART:"elm.text", "default", 0.0);
2362 program { name: "icon_show";
2363 signal: "elm,state,icon,visible";
2368 get_state(PART:"elm.text", st, 30, vl);
2369 if (!strcmp(st, "visible"))
2371 set_state(PART:"elm.swallow.content", "visible", 0.0);
2372 set_state(PART:"padding_icon_text", "visible", 0.0);
2376 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2377 set_state(PART:"padding_icon_text", "icononly", 0.0);
2381 program { name: "icon_hide";
2382 signal: "elm,state,icon,hidden";
2384 action: STATE_SET "default" 0.0;
2385 target: "elm.swallow.content";
2386 target: "padding_icon_text";
2388 program { name: "disable";
2389 signal: "elm,state,disabled";
2391 action: STATE_SET "disabled" 0.0;
2392 target: "button_image";
2395 after: "disable_text";
2397 program { name: "disable_text";
2401 get_state(PART:"elm.text", st, 30, vl);
2402 if (!strcmp(st, "visible"))
2403 set_state(PART:"elm.text", "disabled_visible", 0.0);
2405 set_state(PART:"elm.text", "disabled", 0.0);
2406 set_int(button_state, BUTTON_STATE_DISABLED);
2409 program { name: "enable";
2410 signal: "elm,state,enabled";
2412 action: STATE_SET "default" 0.0;
2413 target: "button_image";
2416 after: "enable_text";
2418 program { name: "enable_text";
2422 get_state(PART:"elm.text", st, 30, vl);
2423 if (!strcmp(st, "disabled_visible"))
2424 set_state(PART:"elm.text", "visible", 0.0);
2426 set_state(PART:"elm.text", "default", 0.0);
2427 set_int(button_state, BUTTON_STATE_ENABLED);
2430 program { name: "action_focus";
2431 signal: "elm,action,focus_highlight,show";
2433 action: STATE_SET "focused" 0.0;
2434 target: "focus_image";
2436 program { name: "action_unfocus";
2437 signal: "elm,action,focus_highlight,hide";
2439 action: STATE_SET "default" 0.0;
2440 target: "focus_image";
2445 ///////////////////////////////////////////////////////////////////////////////////////
2446 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2447 group { name: "elm/button/base/"style_name; \
2449 item: "focus_highlight" "on"; \
2452 image: "00_circle_button.png" COMP; \
2453 image: "00_circle_button_press.png" COMP; \
2454 image: "00_circle_button_dim.png" COMP; \
2455 image: image_normal COMP; \
2456 image: image_press COMP; \
2457 image: 00_circle_button_focus.png COMP; \
2460 part { name: "button_image"; \
2462 description { state: "default" 0.0; \
2463 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2464 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2465 image.normal: "00_circle_button.png"; \
2468 state: "clicked" 0.0; \
2469 inherit: "default" 0.0; \
2470 image.normal: "00_circle_button_press.png"; \
2473 state: "disabled" 0.0; \
2474 inherit: "default" 0.0; \
2475 image.normal: "00_circle_button_dim.png"; \
2478 part { name: "left_top_padding"; \
2481 description { state: "default" 0.0; \
2482 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2483 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2486 rel1.to: "button_image"; \
2487 rel2.to: "button_image"; \
2490 part { name: "right_bottom_padding"; \
2493 description { state: "default" 0.0; \
2494 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2495 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2499 relative: 1.0 1.0; \
2500 to: "button_image"; \
2502 rel2.to: "button_image"; \
2505 part { name: "button_center_part"; \
2507 clip_to: "icon_clipper"; \
2508 description { state: "default" 0.0; \
2509 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2510 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2511 image.normal: image_normal; \
2513 relative: 1.0 1.0; \
2514 to: "left_top_padding"; \
2517 relative: 0.0 0.0; \
2518 to: "right_bottom_padding"; \
2521 description { state: "clicked" 0.0; \
2522 inherit: "default"; \
2523 image.normal: image_press; \
2525 description { state: "disabled" 0.0; \
2526 inherit: "default"; \
2529 part { name: "icon_clipper"; \
2532 description { state: "default" 0.0; \
2533 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2535 description { state: "clicked" 0.0; \
2536 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2538 description { state: "disabled" 0.0; \
2539 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2542 part { name: "focus_image"; \
2546 description { state: "default" 0.0; \
2547 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2548 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2550 rel1.to : "button_image"; \
2551 rel2.to : "button_image"; \
2553 normal: "00_circle_button_focus.png"; \
2557 description { state: "focused" 0.0; \
2558 inherit: "default" 0.0; \
2562 part { name: "over1"; \
2564 ignore_flags: ON_HOLD; \
2565 description { state: "default" 0.0; \
2567 min: min_width min_height; \
2570 part { name: "over2"; \
2573 description { state: "default" 0.0; \
2577 part { name: "disabler"; \
2579 description { state: "default" 0.0; \
2583 description { state: "disabled" 0.0; \
2584 inherit: "default" 0.0; \
2590 program { name: "button_click"; \
2591 signal: "mouse,down,1"; \
2593 action: SIGNAL_EMIT "elm,action,press" ""; \
2594 after: "button_click_anim"; \
2596 program { name: "button_click_anim"; \
2597 action: STATE_SET "clicked" 0.0; \
2598 target: "button_image"; \
2599 target: "button_center_part"; \
2600 target: "icon_clipper"; \
2602 program { name: "button_double_click"; \
2603 signal: "mouse,down,1,double"; \
2605 after: "button_click_anim"; \
2607 program { name: "button_unclick"; \
2608 signal: "mouse,up,1"; \
2610 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2611 after: "button_unclick_anim"; \
2613 program { name: "button_unclick_anim"; \
2614 action: STATE_SET "default" 0.0; \
2615 target: "button_image"; \
2616 target: "button_center_part"; \
2617 target: "icon_clipper"; \
2619 program { name: "touch_snd"; \
2620 signal: "mouse,clicked,1"; \
2622 action: PLAY_SAMPLE "touch_sound" 1.0; \
2623 after: button_unclick3; \
2625 program { name: "button_unclick3"; \
2626 action: SIGNAL_EMIT "elm,action,click" ""; \
2628 program { name: "disable"; \
2629 signal: "elm,state,disabled"; \
2631 action: STATE_SET "disabled" 0.0; \
2632 target: "disabler"; \
2633 target: "button_image"; \
2634 target: "button_center_part"; \
2635 target: "icon_clipper"; \
2637 program { name: "enable"; \
2638 signal: "elm,state,enabled"; \
2640 action: STATE_SET "default" 0.0; \
2641 target: "disabler"; \
2642 target: "button_image"; \
2643 target: "button_center_part"; \
2644 target: "icon_clipper"; \
2646 program { name: "action_focus"; \
2647 signal: "elm,action,focus_highlight,show"; \
2649 action: STATE_SET "focused" 0.0; \
2650 target: "focus_image"; \
2652 program { name: "action_unfocus"; \
2653 signal: "elm,action,focus_highlight,hide"; \
2655 action: STATE_SET "default" 0.0; \
2656 target: "focus_image"; \
2661 ///////////////////////////////////////////////////////////////////////////////////////
2662 BUTTON_CIRCLE_STYLES("reveal","00_button_right.png", "00_button_right_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2664 ///////////////////////////////////////////////////////////////////////////////////////
2665 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_right.png", "00_button_right_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2667 ///////////////////////////////////////////////////////////////////////////////////////
2668 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2670 ///////////////////////////////////////////////////////////////////////////////////////
2671 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2673 ///////////////////////////////////////////////////////////////////////////////////////
2674 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2676 ///////////////////////////////////////////////////////////////////////////////////////
2677 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2679 ///////////////////////////////////////////////////////////////////////////////////////
2680 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2682 ///////////////////////////////////////////////////////////////////////////////////////
2683 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2685 ///////////////////////////////////////////////////////////////////////////////////////
2686 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2688 ///////////////////////////////////////////////////////////////////////////////////////
2689 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2691 ///////////////////////////////////////////////////////////////////////////////////////
2692 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2694 ///////////////////////////////////////////////////////////////////////////////////////
2695 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2697 ///////////////////////////////////////////////////////////////////////////////////////
2698 BUTTON_CIRCLE_STYLES("plus", "00_button_add.png", "00_button_add_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2700 ///////////////////////////////////////////////////////////////////////////////////////
2701 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_add.png", "00_button_add_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2703 ///////////////////////////////////////////////////////////////////////////////////////
2704 BUTTON_CIRCLE_STYLES("minus", "00_button_delete.png", "00_button_delete_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2706 ///////////////////////////////////////////////////////////////////////////////////////
2707 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_delete.png", "00_button_delete_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2709 ///////////////////////////////////////////////////////////////////////////////////////
2710 BUTTON_CIRCLE_STYLES("cancel", "00_button_expand_cancel.png", "00_button_expand_cancel_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2712 ///////////////////////////////////////////////////////////////////////////////////////
2713 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_expand_cancel.png", "00_button_expand_cancel_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2715 ///////////////////////////////////////////////////////////////////////////////////////
2716 BUTTON_CIRCLE_STYLES("send", "00_button_expand_send.png", "00_button_expand_send_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2718 ///////////////////////////////////////////////////////////////////////////////////////
2719 BUTTON_CIRCLE_STYLES("send/extended", "00_button_expand_send.png", "00_button_expand_send_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2720 ///////////////////////////////////////////////////////////////////////////////////////
2722 ///////////////////////////////////////////////////////////////////////////////////////
2723 BUTTON_CIRCLE_STYLES("contact", "00_button_contact.png", "00_button_contact_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2724 ///////////////////////////////////////////////////////////////////////////////////////
2726 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2727 group { name: "elm/button/base/"style_name; \
2728 inherit: "elm/button/base/info"; \
2730 image: "00_circle_button_delete.png" COMP; \
2731 image: "00_circle_button_delete_press.png" COMP; \
2732 image: "00_circle_button_delete_dim.png" COMP; \
2733 image: "00_button_warning.png" COMP; \
2734 image: "00_button_warning_press.png" COMP; \
2737 part { name: "button_image"; \
2739 description { state: "default" 0.0; \
2740 image.normal: "00_circle_button_delete.png"; \
2743 state: "clicked" 0.0; \
2744 inherit: "default" 0.0; \
2745 image.normal: "00_circle_button_delete_press.png"; \
2748 state: "disabled" 0.0; \
2749 inherit: "default" 0.0; \
2750 image.normal: "00_circle_button_delete_dim.png"; \
2753 part { name: "button_center_part"; \
2755 clip_to: "icon_clipper"; \
2756 description { state: "default" 0.0; \
2757 image.normal: "00_button_warning.png"; \
2759 description { state: "clicked" 0.0; \
2760 inherit: "default"; \
2761 image.normal: "00_button_warning_press.png"; \
2763 description { state: "disabled" 0.0; \
2764 inherit: "default"; \
2767 part { name: "icon_clipper"; \
2770 description { state: "default" 0.0; \
2771 color: BUTTON_CIRCLE_STYLE_WARNING_NORMAL_COLOR_INC; \
2773 description { state: "clicked" 0.0; \
2774 color: BUTTON_CIRCLE_STYLE_WARNING_PRESSED_COLOR_INC; \
2776 description { state: "disabled" 0.0; \
2777 color: BUTTON_CIRCLE_STYLE_WARNING_DISABLED_COLOR_INC; \
2780 part { name: "over1"; \
2782 ignore_flags: ON_HOLD; \
2783 description { state: "default" 0.0; \
2785 min: min_width min_height; \
2791 ///////////////////////////////////////////////////////////////////////////////////////
2792 BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2794 ///////////////////////////////////////////////////////////////////////////////////////
2795 BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2797 ///////////////////////////////////////////////////////////////////////////////////////
2798 group { name: "elm/button/base/circle/empty";
2800 item: "focus_highlight" "on";
2803 image: "00_circle_button.png" COMP;
2804 image: "00_circle_button_press.png" COMP;
2805 image: "00_circle_button_dim.png" COMP;
2806 image: 00_circle_button_focus.png COMP;
2809 part { name: "button_image";
2811 description { state: "default" 0.0;
2812 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2813 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2815 image.normal: "00_circle_button.png";
2817 description { state: "clicked" 0.0;
2818 inherit: "default" 0.0;
2819 image.normal: "00_circle_button_press.png";
2821 description { state: "disabled" 0.0;
2822 inherit: "default" 0.0;
2823 image.normal: "00_circle_button_dim.png";
2826 part { name: "left_top_padding";
2829 description { state: "default" 0.0;
2830 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2831 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2834 rel1.to: "button_image";
2835 rel2.to: "button_image";
2838 part { name: "right_bottom_padding";
2841 description { state: "default" 0.0;
2842 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2843 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2850 rel2.to: "button_image";
2853 part { name: "elm.swallow.content";
2855 clip_to: "icon_clipper";
2857 description { state: "default" 0.0;
2861 to: "left_top_padding";
2865 to: "right_bottom_padding";
2869 description { state: "visible" 0.0;
2870 inherit: "default" 0.0;
2872 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2873 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2876 part { name: "icon_clipper";
2879 description { state: "default" 0.0;
2880 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2882 description { state: "clicked" 0.0;
2883 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2885 description { state: "disabled" 0.0;
2886 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2889 part { name: "focus_image";
2893 description { state: "default" 0.0;
2894 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2895 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2897 rel1.to : "button_image";
2898 rel2.to : "button_image";
2900 normal: "00_circle_button_focus.png";
2904 description { state: "focused" 0.0;
2905 inherit: "default" 0.0;
2909 part { name: "over1";
2911 ignore_flags: ON_HOLD;
2912 description { state: "default" 0.0;
2916 part { name: "over2";
2919 description { state: "default" 0.0;
2923 part { name: "disabler";
2925 description { state: "default" 0.0;
2929 description { state: "disabled" 0.0;
2930 inherit: "default" 0.0;
2936 program { name: "button_click";
2937 signal: "mouse,down,1";
2939 action: SIGNAL_EMIT "elm,action,press" "";
2940 after: "button_click_anim";
2942 program { name: "button_click_anim";
2943 action: STATE_SET "clicked" 0.0;
2944 target: "button_image";
2945 target: "icon_clipper";
2947 program { name: "button_double_click";
2948 signal: "mouse,down,1,double";
2950 after: "button_click_anim";
2952 program { name: "touch_snd";
2953 signal: "mouse,clicked,1";
2955 action: PLAY_SAMPLE "touch_sound" 1.0;
2956 after: button_unclick2;
2958 program { name: "button_unclick2";
2959 action: SIGNAL_EMIT "elm,action,click" "";
2961 program { name: "button_unclick";
2962 signal: "mouse,up,1";
2964 action: SIGNAL_EMIT "elm,action,unpress" "";
2965 after: "button_unclick_anim";
2967 program { name: "button_unclick_anim";
2968 action: STATE_SET "default" 0.0;
2969 target: "button_image";
2970 target: "icon_clipper";
2972 program { name: "disable";
2973 signal: "elm,state,disabled";
2975 action: STATE_SET "disabled" 0.0;
2977 target: "button_image";
2978 target: "icon_clipper";
2980 program { name: "enable";
2981 signal: "elm,state,enabled";
2983 action: STATE_SET "default" 0.0;
2985 target: "button_image";
2986 target: "icon_clipper";
2988 program { name: "icon_show";
2989 signal: "elm,state,icon,visible";
2991 action: STATE_SET "visible" 0.0;
2992 target: "elm.swallow.content";
2994 program { name: "icon_hide";
2995 signal: "elm,state,icon,hidden";
2997 action: STATE_SET "default" 0.0;
2998 target: "elm.swallow.content";
3000 program { name: "action_focus";
3001 signal: "elm,action,focus_highlight,show";
3003 action: STATE_SET "focused" 0.0;
3004 target: "focus_image";
3006 program { name: "action_unfocus";
3007 signal: "elm,action,focus_highlight,hide";
3009 action: STATE_SET "default" 0.0;
3010 target: "focus_image";
3015 ///////////////////////////////////////////////////////////////////////////////////////
3016 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
3017 group { name: "elm/button/base/contacts/"style_name; \
3018 alias: "elm/button/base/"style_name; \
3020 item: "focus_highlight" "on"; \
3023 image: "00_circle_button.png" COMP; \
3024 image: "00_circle_button_press.png" COMP; \
3025 image: "00_circle_button_dim.png" COMP; \
3026 image: image_normal COMP; \
3027 image: image_press COMP; \
3030 part { name: "button_image"; \
3032 description { state: "default" 0.0; \
3033 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3034 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3035 image.normal: "00_circle_button.png"; \
3037 description { state: "clicked" 0.0; \
3038 inherit: "default" 0.0; \
3039 image.normal: "00_circle_button_press.png"; \
3041 description { state: "disabled" 0.0; \
3042 inherit: "default" 0.0; \
3043 image.normal: "00_circle_button_dim.png"; \
3046 part { name: "button_center_part"; \
3049 clip_to: "icon_clipper"; \
3050 description { state: "default" 0.0; \
3051 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3052 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3053 image.normal: image_normal; \
3056 state: "clicked" 0.0; \
3057 inherit: "default" 0.0; \
3058 image.normal: image_press; \
3060 description { state: "disabled" 0.0; \
3061 inherit: "default" 0.0; \
3064 part { name: "focus_image"; \
3068 description { state: "default" 0.0; \
3069 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3070 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3072 rel1.to : "button_image"; \
3073 rel2.to : "button_image"; \
3075 normal: "00_circle_button_focus.png"; \
3079 description { state: "focused" 0.0; \
3080 inherit: "default" 0.0; \
3084 part { name: "icon_clipper"; \
3087 description { state: "default" 0.0; \
3088 color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
3090 description { state: "clicked" 0.0; \
3091 color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
3093 description { state: "disabled" 0.0; \
3094 color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
3097 part { name: "over1"; \
3100 ignore_flags: ON_HOLD; \
3101 description { state: "default" 0.0; \
3103 min: min_width min_height; \
3106 part { name: "over2"; \
3109 description { state: "default" 0.0; \
3113 part { name: "disabler"; \
3115 description { state: "default" 0.0; \
3119 description { state: "disabled" 0.0; \
3120 inherit: "default" 0.0; \
3126 program { name: "button_click"; \
3127 signal: "mouse,down,1"; \
3129 action: SIGNAL_EMIT "elm,action,press" ""; \
3130 after: "button_click_anim"; \
3132 program { name: "button_click_anim"; \
3133 action: STATE_SET "clicked" 0.0; \
3134 target: "button_image"; \
3135 target: "button_center_part"; \
3136 target: "icon_clipper"; \
3138 program { name: "button_double_click"; \
3139 signal: "mouse,down,1,double"; \
3141 after: "button_click_anim"; \
3143 program { name: "button_unclick"; \
3144 signal: "mouse,up,1"; \
3146 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3147 after: "button_unclick_anim"; \
3149 program { name: "button_unclick_anim"; \
3150 action: STATE_SET "default" 0.0; \
3151 target: "button_image"; \
3152 target: "button_center_part"; \
3153 target: "icon_clipper"; \
3155 program { name: "touch_snd"; \
3156 signal: "mouse,clicked,1"; \
3158 action: PLAY_SAMPLE "touch_sound" 1.0; \
3159 after: button_unclick3; \
3161 program { name: "button_unclick3"; \
3162 action: SIGNAL_EMIT "elm,action,click" ""; \
3164 program { name: "disable"; \
3165 signal: "elm,state,disabled"; \
3167 action: STATE_SET "disabled" 0.0; \
3168 target: "disabler"; \
3169 target: "button_image"; \
3170 target: "button_center_part"; \
3171 target: "icon_clipper"; \
3173 program { name: "enable"; \
3174 signal: "elm,state,enabled"; \
3176 action: STATE_SET "default" 0.0; \
3177 target: "disabler"; \
3178 target: "button_image"; \
3179 target: "button_center_part"; \
3180 target: "icon_clipper"; \
3182 program { name: "action_focus"; \
3183 signal: "elm,action,focus_highlight,show"; \
3185 action: STATE_SET "focused" 0.0; \
3186 target: "focus_image"; \
3188 program { name: "action_unfocus"; \
3189 signal: "elm,action,focus_highlight,hide"; \
3191 action: STATE_SET "default" 0.0; \
3192 target: "focus_image"; \
3196 ///////////////////////////////////////////////////////////////////////////////////////
3197 BUTTON_EDIT_STYLES("icon_plus", "00_button_add.png", "00_button_add_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3199 ///////////////////////////////////////////////////////////////////////////////////////
3200 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_add.png", "00_button_add_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3202 ///////////////////////////////////////////////////////////////////////////////////////
3203 BUTTON_EDIT_STYLES("icon_expand", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3205 ///////////////////////////////////////////////////////////////////////////////////////
3206 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3208 ///////////////////////////////////////////////////////////////////////////////////////
3209 BUTTON_EDIT_STYLES("icon_expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3211 ///////////////////////////////////////////////////////////////////////////////////////
3212 BUTTON_EDIT_STYLES("icon_expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3214 ///////////////////////////////////////////////////////////////////////////////////////
3216 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
3217 group { name: "elm/button/base/contacts/"style_name; \
3218 alias: "elm/button/base/"style_name; \
3219 inherit: "elm/button/base/contacts/icon_plus"; \
3221 image: "00_circle_button_delete.png" COMP; \
3222 image: "00_circle_button_delete_press.png" COMP; \
3223 image: "00_circle_button_delete_dim.png" COMP; \
3224 image: "00_button_delete.png" COMP; \
3225 image: "00_button_delete_press.png" COMP; \
3228 part { name: "button_image"; \
3230 description { state: "default" 0.0; \
3231 image.normal: "00_circle_button_delete.png"; \
3233 description { state: "clicked" 0.0; \
3234 inherit: "default" 0.0; \
3235 image.normal: "00_circle_button_delete_press.png"; \
3237 description { state: "disabled" 0.0; \
3238 inherit: "default" 0.0; \
3239 image.normal: "00_circle_button_delete_dim.png"; \
3242 part { name: "button_center_part"; \
3245 clip_to: "icon_clipper"; \
3246 description { state: "default" 0.0; \
3247 image.normal: "00_button_delete.png"; \
3250 state: "clicked" 0.0; \
3251 inherit: "default" 0.0; \
3252 image.normal: "00_button_delete_press.png"; \
3254 description { state: "disabled" 0.0; \
3255 inherit: "default" 0.0; \
3258 part { name: "icon_clipper"; \
3261 description { state: "default" 0.0; \
3262 color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
3264 description { state: "clicked" 0.0; \
3265 color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
3267 description { state: "disabled" 0.0; \
3268 color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
3271 part { name: "over1"; \
3274 ignore_flags: ON_HOLD; \
3275 description { state: "default" 0.0; \
3277 min: min_width min_height; \
3283 ///////////////////////////////////////////////////////////////////////////////////////
3284 BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3286 ///////////////////////////////////////////////////////////////////////////////////////
3287 BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3289 ///////////////////////////////////////////////////////////////////////////////////////
3290 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
3291 group { name: "elm/button/base/"style_name; \
3293 item: "focus_highlight" "on"; \
3296 image: "00_button_01.png" COMP; \
3297 image: "00_button_01_press.png" COMP; \
3298 image: "00_button_01_dim.png" COMP; \
3299 image: image_normal COMP; \
3300 image: "00_button_01_focus.png" COMP; \
3303 part { name: "button_image";\
3306 description { state: "default" 0.0; \
3307 min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
3309 normal: "00_button_01.png"; \
3310 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3314 description { state: "clicked" 0.0; \
3315 inherit: "default" 0.0; \
3316 image.normal: "00_button_01_press.png"; \
3318 description { state: "disabled" 0.0; \
3319 inherit: "default" 0.0; \
3320 image.normal: "00_button_01_dim.png"; \
3323 part { name: "focus_image"; \
3327 description { state: "default" 0.0; \
3329 rel1.to : "button_image"; \
3330 rel2.to : "button_image"; \
3332 normal: "00_button_01_focus.png"; \
3333 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3337 description { state: "focused" 0.0; \
3338 inherit: "default" 0.0; \
3342 part { name: "padding_left_top"; \
3345 description { state: "default" 0.0; \
3347 rel2.relative: 0.0 0.0; \
3348 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3352 part { name: "padding_right_bottom"; \
3355 description { state: "default" 0.0; \
3357 rel1.relative: 1.0 1.0; \
3358 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3362 part { name: "jump_image"; \
3365 description { state: "default" 0.0; \
3366 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3367 max: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3369 relative: 1.0 0.0; \
3370 to_x: "padding_left_top"; \
3373 relative: 0.0 1.0; \
3374 to_x: "padding_right_bottom"; \
3376 image.normal: image_normal; \
3378 aspect_preference: VERTICAL; \
3379 color: BUTTON_JUMP_ICON_NORMAL_COLOR_INC; \
3381 description { state: "clicked" 0.0; \
3382 inherit: "default" 0.0; \
3383 color: BUTTON_JUMP_ICON_PRESSED_COLOR_INC; \
3385 description { state: "disabled" 0.0; \
3386 inherit: "default" 0.0; \
3387 color: BUTTON_JUMP_ICON_DIM_COLOR_INC; \
3390 part { name: "over1"; \
3393 ignore_flags: ON_HOLD; \
3394 description { state: "default" 0.0; \
3396 rel1.relative: 0.0 0.0; \
3397 rel2.relative: 1.0 1.0; \
3400 part { name: "over2"; \
3403 description { state: "default" 0.0; \
3409 program { name: "button_click"; \
3410 signal: "mouse,down,1"; \
3412 action: SIGNAL_EMIT "elm,action,press" ""; \
3413 after: "button_click_anim"; \
3415 program { name: "button_click_anim"; \
3416 action: STATE_SET "clicked" 0.0; \
3417 target: "button_image"; \
3418 target: "jump_image"; \
3420 program { name: "button_double_click"; \
3421 signal: "mouse,down,1,double"; \
3423 after: "button_click_anim"; \
3425 program { name: "button_unclick"; \
3426 signal: "mouse,up,1"; \
3428 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3429 after: "button_unclick_anim"; \
3431 program { name: "button_unclick_anim"; \
3432 action: STATE_SET "default" 0.0; \
3433 target: "button_image"; \
3434 target: "jump_image"; \
3436 program { name: "touch_snd"; \
3437 signal: "mouse,clicked,1"; \
3439 action: PLAY_SAMPLE "touch_sound" 1.0; \
3440 after: button_unclick3; \
3442 program { name: "button_unclick3"; \
3443 action: SIGNAL_EMIT "elm,action,click" ""; \
3445 program { name: "disable"; \
3446 signal: "elm,state,disabled"; \
3448 action: STATE_SET "disabled" 0.0; \
3449 target: "button_image"; \
3450 target: "jump_image"; \
3452 program { name: "enable"; \
3453 signal: "elm,state,enabled"; \
3455 action: STATE_SET "default" 0.0; \
3456 target: "button_image"; \
3457 target: "jump_image"; \
3459 program { name: "action_focus"; \
3460 signal: "elm,action,focus_highlight,show"; \
3462 action: STATE_SET "focused" 0.0; \
3463 target: "focus_image"; \
3465 program { name: "action_unfocus"; \
3466 signal: "elm,action,focus_highlight,hide"; \
3468 action: STATE_SET "default" 0.0; \
3469 target: "focus_image"; \
3474 ////////////////////////////////////////////////////////////////////////
3475 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3476 ////////////////////////////////////////////////////////////////////////
3477 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3479 ////////////////////////////////////////////////////////////////////////
3480 group { name: "elm/button/base/default";
3482 item: "focus_highlight" "on";
3485 image: "00_button_01.png" COMP;
3486 image: "00_button_01_press.png" COMP;
3487 image: "00_button_01_dim.png" COMP;
3488 image: "00_button_01_focus.png" COMP;
3491 public button_state = BUTTON_STATE_ENABLED;
3494 part { name: "button_image";
3496 description { state: "default" 0.0;
3497 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3499 normal: "00_button_01.png";
3500 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3504 description { state: "clicked" 0.0;
3505 inherit: "default" 0.0;
3506 image.normal: "00_button_01_press.png";
3508 description { state: "disabled" 0.0;
3509 inherit: "default" 0.0;
3510 image.normal: "00_button_01_dim.png";
3512 description { state: "focused" 0.0;
3513 inherit: "default" 0.0;
3514 image.normal: "00_button_01_press.png";
3517 part { name: "focus_image";
3521 description { state: "default" 0.0;
3523 rel1.to : "button_image";
3524 rel2.to : "button_image";
3526 normal: "00_button_01_focus.png";
3527 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3531 description { state: "focused" 0.0;
3532 inherit: "default" 0.0;
3536 part { name: "padding_left_top";
3540 description { state: "default" 0.0;
3542 rel2.relative: 0.0 0.0;
3543 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3548 part { name: "padding_right_bottom";
3552 description { state: "default" 0.0;
3554 rel1.relative: 1.0 1.0;
3555 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3560 part { name: "padding_icon_text";
3564 description { state: "default" 0.0; //when only icon or no icon is there
3570 to: "elm.swallow.content";
3572 rel2.to: "elm.swallow.content";
3575 description { state: "icononly" 0.0;
3576 inherit: "default" 0.0;
3578 description { state: "visible" 0.0; //when icon is visible
3579 inherit: "default" 0.0;
3580 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3583 part { name: "elm.swallow.content";
3587 description { state: "default" 0.0;
3593 to: "padding_left_top";
3597 to_x: "padding_left_top";
3598 to_y: "padding_right_bottom";
3601 description { state: "visible" 0.0;
3602 inherit: "default" 0.0;
3605 aspect_preference: VERTICAL;
3607 description { state: "icononly" 0.0;
3608 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3611 to_x: "padding_left_top";
3615 to_x: "padding_right_bottom";
3618 aspect_preference: VERTICAL;
3621 part { name: "elm.text";
3626 effect: SHADOW BOTTOM;
3627 description { state: "default" 0.0;
3632 to_x: "padding_icon_text";
3633 to_y: "padding_left_top";
3637 to: "padding_right_bottom";
3639 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3640 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
3642 font: "Tizen:style=Regular";
3643 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3645 text_class: "tizen";
3648 description { state: "visible" 0.0;
3649 inherit: "default" 0.0;
3651 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3653 description { state: "clicked" 0.0;
3654 inherit: "default" 0.0;
3656 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3657 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3659 description { state: "disabled" 0.0;
3660 inherit: "default" 0.0;
3662 description { state: "disabled_visible" 0.0;
3663 inherit: "default" 0.0;
3664 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3666 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3668 description { state: "focused" 0.0;
3669 inherit: "default" 0.0;
3672 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3675 part { name: "over2";
3678 ignore_flags: ON_HOLD;
3679 description { state: "default" 0.0;
3683 part { name: "over3";
3686 description { state: "default" 0.0;
3690 part { name: "disclip";
3692 description { state: "default" 0.0;
3693 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3695 description { state: "disabled" 0.0;
3696 inherit: "default" 0.0;
3697 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3700 part { name: "disabler";
3702 description { state: "default" 0.0;
3706 description { state: "disabled" 0.0;
3707 inherit: "default" 0.0;
3713 program { name: "button_click";
3714 signal: "mouse,down,1";
3716 action: SIGNAL_EMIT "elm,action,press" "";
3717 after: "button_click_anim";
3719 program { name: "button_click_anim";
3720 action: STATE_SET "clicked" 0.0;
3721 target: "button_image";
3722 after: "text_clicked";
3724 program { name: "text_clicked";
3728 get_state(PART:"elm.text", st, 30, vl);
3729 if (!strcmp(st, "visible"))
3730 set_state(PART:"elm.text", "clicked", 0.0);
3733 program { name: "button_double_click";
3734 signal: "mouse,down,1,double";
3736 after: "button_click_anim";
3738 program { name: "button_unpress";
3739 action: SIGNAL_EMIT "elm,action,unpress" "";
3741 program { name: "button_mouseout_clicked";
3742 signal: "mouse,up,1";
3747 get_state(PART:"elm.swallow.content", st, 30, vl);
3748 if (strcmp(st, "icononly"))
3750 emit("elm,action,default,text,set", "");
3751 set_state(PART:"elm.text", "visible", 0.0);
3753 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3754 set_state(PART:"button_image", "default", 0.0);
3756 after: button_unpress;
3758 program { name: "touch_snd";
3759 signal: "mouse,clicked,1";
3761 action: PLAY_SAMPLE "touch_sound" 1.0;
3762 after: button_unclick3;
3764 program { name: "button_unclick3";
3765 action: SIGNAL_EMIT "elm,action,click" "";
3767 program { name: "text_show";
3768 signal: "elm,state,text,visible";
3773 get_state(PART:"elm.swallow.content", st, 30, vl);
3774 if (!strcmp(st, "icononly"))
3776 set_state(PART:"elm.swallow.content", "visible", 0.0);
3777 set_state(PART:"padding_icon_text", "visible", 0.0);
3779 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3780 set_state(PART:"elm.text", "visible", 0.0);
3782 set_state(PART:"elm.text", "disabled_visible", 0.0);
3785 program { name: "text_hide";
3786 signal: "elm,state,text,hidden";
3791 get_state(PART:"elm.swallow.content", st, 30, vl);
3792 if (!strcmp(st, "visible"))
3794 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3795 set_state(PART:"padding_icon_text", "icononly", 0.0);
3797 set_state(PART:"elm.text", "default", 0.0);
3800 program { name: "icon_show";
3801 signal: "elm,state,icon,visible";
3806 get_state(PART:"elm.text", st, 30, vl);
3807 if (!strcmp(st, "visible"))
3809 set_state(PART:"elm.swallow.content", "visible", 0.0);
3810 set_state(PART:"padding_icon_text", "visible", 0.0);
3814 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3815 set_state(PART:"padding_icon_text", "icononly", 0.0);
3819 program { name: "icon_hide";
3820 signal: "elm,state,icon,hidden";
3822 action: STATE_SET "default" 0.0;
3823 target: "elm.swallow.content";
3824 target: "padding_icon_text";
3826 program { name: "disable";
3827 signal: "elm,state,disabled";
3829 action: STATE_SET "disabled" 0.0;
3830 target: "button_image";
3833 after: "disable_text";
3835 program { name: "disable_text";
3839 get_state(PART:"elm.text", st, 30, vl);
3840 if (!strcmp(st, "visible"))
3841 set_state(PART:"elm.text", "disabled_visible", 0.0);
3843 set_state(PART:"elm.text", "disabled", 0.0);
3844 set_int(button_state, BUTTON_STATE_DISABLED);
3847 program { name: "enable";
3848 signal: "elm,state,enabled";
3850 action: STATE_SET "default" 0.0;
3851 target: "button_image";
3854 after: "enable_text";
3856 program { name: "enable_text";
3860 get_state(PART:"elm.text", st, 30, vl);
3861 if (!strcmp(st, "disabled_visible"))
3862 set_state(PART:"elm.text", "visible", 0.0);
3864 set_state(PART:"elm.text", "default", 0.0);
3865 set_int(button_state, BUTTON_STATE_ENABLED);
3868 program { name: "action_focus";
3869 signal: "elm,action,focus_highlight,show";
3871 action: STATE_SET "focused" 0.0;
3872 target: "focus_image";
3874 program { name: "action_unfocus";
3875 signal: "elm,action,focus_highlight,hide";
3877 action: STATE_SET "default" 0.0;
3878 target: "focus_image";
3883 ///////////////////////////////////////////////////////////////////////////////////////
3884 group { name: "elm/button/base/multiline";
3885 alias: "elm/button/base/text_only/multiline";
3886 inherit: "elm/button/base/default";
3888 style { name: "btn_multiline_style";
3889 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
3896 part { name: "button_image";
3898 description { state: "default" 0.0;
3899 min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3901 normal: "00_button_01.png";
3902 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3906 description { state: "clicked" 0.0;
3907 inherit: "default" 0.0;
3908 image.normal: "00_button_01_press.png";
3910 description { state: "disabled" 0.0;
3911 inherit: "default" 0.0;
3912 image.normal: "00_button_01_dim.png";
3914 description { state: "focused" 0.0;
3915 inherit: "default" 0.0;
3916 image.normal: "00_button_01_press.png";
3919 part { name: "padding_left_top";
3923 description { state: "default" 0.0;
3925 rel2.relative: 0.0 0.0;
3926 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3931 part { name: "padding_right_bottom";
3935 description { state: "default" 0.0;
3937 rel1.relative: 1.0 1.0;
3938 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3943 part { name: "elm.text";
3948 description { state: "default" 0.0;
3952 to_x: "padding_icon_text";
3953 to_y: "padding_left_top";
3957 to: "padding_right_bottom";
3959 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3961 style: "btn_multiline_style";
3964 description { state: "visible" 0.0;
3965 inherit: "default" 0.0;
3969 description { state: "clicked" 0.0;
3970 inherit: "default" 0.0;
3973 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3975 description { state: "disabled" 0.0;
3976 inherit: "default" 0.0;
3978 description { state: "disabled_visible" 0.0;
3979 inherit: "default" 0.0;
3980 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3984 description { state: "focused" 0.0;
3985 inherit: "default" 0.0;
3988 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3994 ///////////////////////////////////////////////////////////////////////////////////////
3995 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
3996 group { name: "elm/button/base/"style_name; \
3998 item: "focus_highlight" "on"; \
4001 image: image_normal COMP; \
4002 image: image_press COMP; \
4003 image: image_dim COMP; \
4004 image: "00_button_01.png" COMP; \
4005 image: "00_button_01_press.png" COMP; \
4006 image: "00_button_01_focus.png" COMP; \
4009 part { name: "button_image"; \
4011 description { state: "default" 0.0; \
4012 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4013 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4015 normal: "00_button_01.png"; \
4016 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
4021 state: "clicked" 0.0; \
4022 inherit: "default" 0.0; \
4023 image.normal: "00_button_01_press.png"; \
4026 state: "disabled" 0.0; \
4027 inherit: "default" 0.0; \
4028 image.normal: "00_button_01_dim.png"; \
4031 state: "focused" 0.0; \
4032 inherit: "default" 0.0; \
4033 image.normal: "00_button_01_press.png"; \
4036 part { name: "focus_image"; \
4040 description { state: "default" 0.0; \
4041 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4042 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4044 rel1.to : "button_image"; \
4045 rel2.to : "button_image"; \
4047 normal: "00_button_01_focus.png"; \
4048 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
4052 description { state: "focused" 0.0; \
4053 inherit: "default" 0.0; \
4057 part { name: "button_center_part"; \
4059 clip_to: "icon_clipper"; \
4060 description { state: "default" 0.0; \
4061 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
4062 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
4063 image.normal: image_normal; \
4066 state: "clicked" 0.0; \
4067 inherit: "default" 0.0; \
4068 image.normal: image_press; \
4071 state: "disabled" 0.0; \
4072 inherit: "default" 0.0; \
4075 part { name: "icon_clipper"; \
4078 description { state: "default" 0.0; \
4079 color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
4081 description { state: "clicked" 0.0; \
4082 color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
4084 description { state: "disabled" 0.0; \
4085 color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
4088 part { name: "over1"; \
4090 ignore_flags: ON_HOLD; \
4091 description { state: "default" 0.0; \
4095 part { name: "over2"; \
4098 description { state: "default" 0.0; \
4102 part { name: "disabler"; \
4104 description { state: "default" 0.0; \
4108 description { state: "disabled" 0.0; \
4109 inherit: "default" 0.0; \
4115 program { name: "button_click"; \
4116 signal: "mouse,down,1"; \
4118 action: SIGNAL_EMIT "elm,action,press" ""; \
4119 after: "button_click_anim"; \
4121 program { name: "button_click_anim"; \
4122 action: STATE_SET "clicked" 0.0; \
4123 target: "button_image"; \
4124 target: "button_center_part"; \
4125 target: ""icon_clipper""; \
4127 program { name: "button_double_click"; \
4128 signal: "mouse,down,1,double"; \
4130 after: "button_click_anim"; \
4132 program { name: "button_unclick"; \
4133 signal: "mouse,up,1"; \
4135 action: SIGNAL_EMIT "elm,action,unpress" ""; \
4136 after: "button_unclick_anim"; \
4138 program { name: "button_unclick_anim"; \
4139 action: STATE_SET "default" 0.0; \
4140 target: "button_image"; \
4141 target: "button_center_part"; \
4142 target: ""icon_clipper""; \
4144 program { name: "touch_snd"; \
4145 signal: "mouse,clicked,1"; \
4147 action: PLAY_SAMPLE "touch_sound" 1.0; \
4148 after: button_unclick3; \
4150 program { name: "button_unclick3"; \
4151 action: SIGNAL_EMIT "elm,action,click" ""; \
4153 program { name: "disable"; \
4154 signal: "elm,state,disabled"; \
4156 action: STATE_SET "disabled" 0.0; \
4157 target: "disabler"; \
4158 target: "button_image"; \
4159 target: "button_center_part"; \
4160 target: ""icon_clipper""; \
4162 program { name: "enable"; \
4163 signal: "elm,state,enabled"; \
4165 action: STATE_SET "default" 0.0; \
4166 target: "disabler"; \
4167 target: "button_image"; \
4168 target: "button_center_part"; \
4169 target: ""icon_clipper""; \
4171 program { name: "action_focus"; \
4172 signal: "elm,action,focus_highlight,show"; \
4174 action: STATE_SET "focused" 0.0; \
4175 target: "focus_image"; \
4177 program { name: "action_unfocus"; \
4178 signal: "elm,action,focus_highlight,hide"; \
4180 action: STATE_SET "default" 0.0; \
4181 target: "focus_image"; \
4185 ///////////////////////////////////////////////////////////////////////////////////////
4186 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
4187 ///////////////////////////////////////////////////////////////////////////////////////
4188 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
4189 ///////////////////////////////////////////////////////////////////////////////////////
4191 group { name: "elm/button/base/multibuttonentry";
4192 alias: "elm/button/base/text_only/multibuttonentry";
4194 item: "focus_highlight" "on";
4197 image: "00_contacts_button.png" COMP;
4198 image: "00_contacts_button_press.png" COMP;
4199 image: "00_contacts_button_focus.png" COMP;
4202 public button_state = BUTTON_STATE_ENABLED;
4205 part { name: "button_image";
4207 description { state: "default" 0.0;
4209 to_x: "padding.left";
4213 to_x: "padding.right";
4216 min: BUTTON_CONTACT_BG_MIN_INC;
4218 normal: "00_contacts_button.png";
4219 border: BUTTON_CONTACT_BG_BORDER_INC;
4223 description { state: "clicked" 0.0;
4224 inherit: "default" 0.0;
4225 image.normal: "00_contacts_button_press.png";
4227 description { state: "disabled" 0.0;
4228 inherit: "default" 0.0;
4230 description { state: "focused" 0.0;
4231 inherit: "default" 0.0;
4232 image.normal: "00_contacts_button_press.png";
4235 part { name: "focus_image";
4239 description { state: "default" 0.0;
4241 rel1.to : "button_image";
4242 rel2.to : "button_image";
4244 normal: "00_contacts_button_focus.png";
4245 border: BUTTON_CONTACT_BG_BORDER_INC;
4249 description { state: "focused" 0.0;
4250 inherit: "default" 0.0;
4254 part { name: "padding.left";
4257 description { state: "default" 0.0;
4259 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
4269 part { name: "padding.right";
4272 description { state: "default" 0.0;
4274 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
4284 part { name: "elm.text";
4288 description { state: "default" 0.0;
4291 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
4293 font: "Tizen:style=Regular";
4294 size: BUTTON_CONTACT_FONT_SIZE_INC;
4296 text_class: "tizen";
4299 description { state: "visible" 0.0;
4300 inherit: "default" 0.0;
4304 description { state: "clicked" 0.0;
4305 inherit: "default" 0.0;
4308 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
4310 description { state: "disabled" 0.0;
4311 inherit: "default" 0.0;
4313 description { state: "disabled_visible" 0.0;
4314 inherit: "default" 0.0;
4315 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
4319 description { state: "focused" 0.0;
4320 inherit: "default" 0.0;
4323 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
4326 part { name: "over1";
4329 description { state: "default" 0.0;
4330 rel2.relative: 1.0 0.5;
4334 part { name: "over2";
4337 ignore_flags: ON_HOLD;
4338 description { state: "default" 0.0;
4339 rel1.to: "button_image";
4340 rel2.to: "button_image";
4344 part { name: "over3";
4347 description { state: "default" 0.0;
4348 rel1.to: "button_image";
4349 rel2.to: "button_image";
4353 part { name: "disabler";
4355 description { state: "default" 0.0;
4356 rel1.to: "button_image";
4357 rel2.to: "button_image";
4361 description { state: "disabled" 0.0;
4362 inherit: "default" 0.0;
4368 program { name: "button_click";
4369 signal: "mouse,down,1";
4371 action: SIGNAL_EMIT "elm,action,press" "";
4372 after: "button_click_anim";
4374 program { name: "button_click_anim";
4375 action: STATE_SET "clicked" 0.0;
4376 target: "button_image";
4379 program { name: "button_double_click";
4380 signal: "mouse,down,1,double";
4382 after: "button_click_anim";
4384 program { name: "button_unpress";
4385 action: SIGNAL_EMIT "elm,action,unpress" "";
4387 program { name: "button_mouseout_clicked";
4388 signal: "mouse,up,1";
4393 get_state(PART:"elm.text", st, 30, vl);
4394 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4396 emit("elm,action,default,text,set", "");
4397 set_state(PART:"elm.text", "visible", 0.0);
4399 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4400 set_state(PART:"button_image", "default", 0.0);
4402 after: button_unpress;
4404 program { name: "touch_snd";
4405 signal: "mouse,clicked,1";
4407 action: PLAY_SAMPLE "touch_sound" 1.0;
4408 after: button_unclick3;
4410 program { name: "button_unclick3";
4411 action: SIGNAL_EMIT "elm,action,click" "";
4413 program { name: "text_show";
4414 signal: "elm,state,text,visible";
4417 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4418 set_state(PART:"elm.text", "visible", 0.0);
4420 set_state(PART:"elm.text", "disabled_visible", 0.0);
4423 program { name: "text_hide";
4424 signal: "elm,state,text,hidden";
4426 action: STATE_SET "default" 0.0;
4429 program { name: "disable";
4430 signal: "elm,state,disabled";
4432 action: STATE_SET "disabled" 0.0;
4433 target: "button_image";
4435 after: "disable_text";
4437 program { name: "disable_text";
4441 get_state(PART:"elm.text", st, 30, vl);
4442 if (!strcmp(st, "visible"))
4443 set_state(PART:"elm.text", "disabled_visible", 0.0);
4445 set_state(PART:"elm.text", "disabled", 0.0);
4446 set_int(button_state, BUTTON_STATE_DISABLED);
4449 program { name: "enable";
4450 signal: "elm,state,enabled";
4452 action: STATE_SET "default" 0.0;
4453 target: "button_image";
4455 after: "enable_text";
4457 program { name: "enable_text";
4461 get_state(PART:"elm.text", st, 30, vl);
4462 if (!strcmp(st, "disabled_visible"))
4463 set_state(PART:"elm.text", "visible", 0.0);
4465 set_state(PART:"elm.text", "default", 0.0);
4466 set_int(button_state, BUTTON_STATE_ENABLED);
4469 program { name: "action_focus";
4470 signal: "elm,action,focus_highlight,show";
4472 action: STATE_SET "focused" 0.0;
4473 target: "focus_image";
4475 program { name: "action_unfocus";
4476 signal: "elm,action,focus_highlight,hide";
4478 action: STATE_SET "default" 0.0;
4479 target: "focus_image";
4484 ///////////////////////////////////////////////////////////////////////////////////////
4485 group { name: "elm/button/base/naviframe/back_btn/default";
4486 alias: "elm/button/base/naviframe/prev_btn/default";
4487 alias: "elm/button/base/naviframe/end_btn/default";
4489 item: "focus_highlight" "on";
4492 image: "00_icon_back.png" COMP;
4493 image: "00_icon_SIP_close.png" COMP;
4494 image: "00_icon_focus.png" COMP;
4497 part { name: "button_image";
4500 description { state: "default" 0.0;
4501 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4502 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4505 description { state: "landscape" 0.0;
4506 min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4507 max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4511 part { name: "focus_image";
4515 description { state: "default" 0.0;
4517 rel1.to : "button_image";
4518 rel2.to : "button_image";
4520 normal: "00_icon_focus.png";
4524 description { state: "focused" 0.0;
4525 inherit: "default" 0.0;
4529 part { name: "back_button";
4532 clip_to: "back_button.clipper";
4533 description { state: "default" 0.0;
4534 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4535 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4537 rel1.to: "button_image";
4538 rel2.to: "button_image";
4539 image.normal: "00_icon_back.png";
4541 description { state: "compress" 0.0;
4542 inherit: "default" 0.0;
4543 image.normal: "00_icon_SIP_close.png";
4546 part { name: "back_button.clipper";
4548 description { state: "default" 0.0;
4549 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4551 description { state: "clicked" 0.0;
4552 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4554 description { state: "disabled" 0.0;
4555 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4558 part { name: "over2";
4560 ignore_flags: ON_HOLD;
4561 description { state: "default" 0.0;
4565 part { name: "over3";
4568 description { state: "default" 0.0;
4572 part { name: "disabler";
4574 description { state: "default" 0.0;
4578 description { state: "disabled" 0.0;
4579 inherit: "default" 0.0;
4585 program { name: "button_click";
4586 signal: "mouse,down,1";
4588 action: SIGNAL_EMIT "elm,action,press" "";
4589 after: "button_click_anim";
4591 program { name: "button_click_anim";
4593 set_state(PART:"back_button.clipper", "clicked", 0.0);
4596 program { name: "button_double_click";
4597 signal: "mouse,down,1,double";
4599 after: "button_click_anim";
4601 program { name: "button_unclick";
4602 signal: "mouse,up,1";
4604 action: SIGNAL_EMIT "elm,action,unpress" "";
4605 after: "button_unclick_anim";
4607 program { name: "button_unclick_anim";
4609 set_state(PART:"back_button.clipper", "default", 0.0);
4612 program { name: "touch_snd";
4613 signal: "mouse,clicked,1";
4615 action: PLAY_SAMPLE "touch_sound" 1.0;
4616 after: button_unclick3;
4618 program { name: "button_unclick3";
4619 action: SIGNAL_EMIT "elm,action,click" "";
4621 program { name: "disable";
4622 signal: "elm,state,disabled";
4625 set_state(PART:"back_button.clipper", "disabled", 0.0);
4628 program { name: "enable";
4629 signal: "elm,state,enabled";
4632 set_state(PART:"back_button.clipper", "default", 0.0);
4635 program { name: "change_to_landscape";
4636 signal: "elm,state,landscape";
4638 action: STATE_SET "landscape" 0.0;
4639 target: "button_image";
4641 program { name: "change_to_portrait";
4642 signal: "elm,state,portrait";
4644 action: STATE_SET "default" 0.0;
4645 target: "button_image";
4647 program { name: "landscape_mode";
4649 signal: "elm,state,orient,90";
4650 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4652 program { name: "landscape_mode2";
4654 signal: "elm,state,orient,270";
4655 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4657 program { name: "portrait_mode";
4659 signal: "elm,state,orient,0";
4660 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4662 program { name: "portrait_mode2";
4664 signal: "elm,state,orient,180";
4665 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4667 program { name: "display_compress_mode";
4668 signal: "elm,state,display,compress";
4670 action: STATE_SET "compress" 0.0;
4671 target: "back_button";
4673 program { name: "display_default_mode";
4674 signal: "elm,state,display,default";
4676 action: STATE_SET "default" 0.0;
4677 target: "back_button";
4679 program { name: "action_focus";
4680 signal: "elm,action,focus_highlight,show";
4682 action: STATE_SET "focused" 0.0;
4683 target: "focus_image";
4685 program { name: "action_unfocus";
4686 signal: "elm,action,focus_highlight,hide";
4688 action: STATE_SET "default" 0.0;
4689 target: "focus_image";
4694 //////////////////////////////////////////////////////////////
4695 group { name: "elm/button/base/naviframe/toolbar/default";
4696 alias: "elm/button/base/naviframe/title/default";
4698 item: "focus_highlight" "on";
4701 image: "00_toolbar_button.png" COMP;
4702 image: "00_toolbar_button_press.png" COMP;
4703 image: "00_toolbar_button_dim.png" COMP;
4704 image: "00_toolbar_button_focus.png" COMP;
4707 style { name: "btn_naviframe_toolbar";
4708 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TOOLBAR_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_NORMAL_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4713 style { name: "btn_naviframe_toolbar_pressed";
4714 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TOOLBAR_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_PRESSED_COLOR_INC" style=shadow,top shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4719 style { name: "btn_naviframe_toolbar_disabled";
4720 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TOOLBAR_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_DISABLED_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4727 public button_state = BUTTON_STATE_ENABLED;
4728 public landscape_state = BUTTON_LANDSCAPE_DISABLED;
4731 part { name: "button_bg";
4734 description { state: "default" 0.0;
4735 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
4736 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MAX_INC;
4738 rel1.to: "padding_text_left_top";
4739 rel2.to: "padding_text_right_bottom";
4741 description { state: "landscape" 0.0;
4742 inherit: "default" 0.0;
4743 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
4744 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
4747 part { name: "button_image";
4749 description { state: "default" 0.0;
4750 rel1.to: "button_bg";
4751 rel2.to: "button_bg";
4753 normal: "00_toolbar_button.png";
4754 border: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_PRESSED_BORDER_INC;
4758 description { state: "clicked" 0.0;
4759 inherit: "default" 0.0;
4760 image.normal: "00_toolbar_button_press.png";
4762 description { state: "disabled" 0.0;
4763 inherit: "default" 0.0;
4764 image.normal: "00_toolbar_button_dim.png";
4766 description { state: "focused" 0.0;
4767 inherit: "default" 0.0;
4768 image.normal: "00_toolbar_button_press.png";
4771 part { name: "focus_image";
4775 description { state: "default" 0.0;
4777 rel1.to : "button_image";
4778 rel2.to : "button_image";
4780 normal: "00_toolbar_button_focus.png";
4781 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4785 description { state: "focused" 0.0;
4786 inherit: "default" 0.0;
4790 part { name: "padding_left_top";
4794 description { state: "default" 0.0;
4797 rel2.relative: 0.0 0.0;
4798 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4802 part { name: "padding_right_bottom";
4806 description { state: "default" 0.0;
4808 rel1.relative: 1.0 1.0;
4809 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4814 part { name: "padding_text_left_top";
4818 description { state: "default" 0.0;
4820 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4822 rel1.to: "elm.text";
4830 part { name: "padding_text_right_bottom";
4834 description { state: "default" 0.0;
4835 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4842 rel2.to: "elm.text";
4846 part { name: "elm.text";
4851 description { state: "default" 0.0;
4854 min: BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_MIN_INC;
4857 to: "padding_left_top";
4861 to: "padding_right_bottom";
4867 style: "btn_naviframe_toolbar";
4870 description { state: "landscape" 0.0;
4871 inherit: "default" 0.0;
4872 min: BUTTON_NAVIFRAME_TOOLBAR_LANDSCAPE_TEXTBLOCK_MIN_INC;
4874 description { state: "visible" 0.0;
4875 inherit: "default" 0.0;
4878 description { state: "landscape_visible" 0.0;
4879 inherit: "landscape" 0.0;
4882 description { state: "clicked" 0.0;
4883 inherit: "default" 0.0;
4886 style: "btn_naviframe_toolbar_pressed";
4889 description { state: "landscape_clicked" 0.0;
4890 inherit: "landscape" 0.0;
4893 style: "btn_naviframe_toolbar_pressed";
4896 description { state: "disabled" 0.0;
4897 inherit: "default" 0.0;
4899 description { state: "landscape_disabled" 0.0;
4900 inherit: "landscape" 0.0;
4902 description { state: "disabled_visible" 0.0;
4903 inherit: "default" 0.0;
4906 style: "btn_naviframe_toolbar_disabled";
4909 description { state: "landscape_disabled_visible" 0.0;
4910 inherit: "landscape" 0.0;
4913 style: "btn_naviframe_toolbar_disabled";
4916 description { state: "focused" 0.0;
4917 inherit: "default" 0.0;
4920 style: "btn_naviframe_toolbar_pressed";
4923 description { state: "landscape_focused" 0.0;
4924 inherit: "landscape" 0.0;
4927 style: "btn_naviframe_toolbar_pressed";
4931 part { name: "disclip";
4933 description { state: "default" 0.0;
4934 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4936 description { state: "disabled" 0.0;
4937 inherit: "default" 0.0;
4938 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4941 part { name: "over2";
4944 ignore_flags: ON_HOLD;
4945 description { state: "default" 0.0;
4946 rel1.to: "button_image";
4947 rel2.to: "button_image";
4951 part { name: "over3";
4954 description { state: "default" 0.0;
4955 rel1.to: "button_image";
4956 rel2.to: "button_image";
4960 part { name: "disabler";
4962 description { state: "default" 0.0;
4963 rel1.to: "button_image";
4964 rel2.to: "button_image";
4968 description { state: "disabled" 0.0;
4969 inherit: "default" 0.0;
4975 program { name: "button_click";
4976 signal: "mouse,down,1";
4978 action: SIGNAL_EMIT "elm,action,press" "";
4979 after: "button_click_anim";
4981 program { name: "button_click_anim";
4983 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4984 set_state(PART:"elm.text", "landscape_clicked", 0.0);
4986 set_state(PART:"elm.text", "clicked", 0.0);
4987 set_state(PART:"button_image", "clicked", 0.0);
4990 program { name: "button_double_click";
4991 signal: "mouse,down,1,double";
4993 after: "button_click_anim";
4995 program { name: "button_unpress";
4996 action: SIGNAL_EMIT "elm,action,unpress" "";
4998 program { name: "button_mouseout_clicked";
4999 signal: "mouse,up,1";
5004 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5006 get_state(PART:"elm.text", st, 30, vl);
5007 if (!strcmp(st, "landscape_clicked") || !strcmp(st, "landscape_focused"))
5009 emit("elm,action,default,text,set", "");
5010 set_state(PART:"elm.text", "landscape_visible", 0.0);
5015 get_state(PART:"elm.text", st, 30, vl);
5016 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5018 emit("elm,action,default,text,set", "");
5019 set_state(PART:"elm.text", "visible", 0.0);
5022 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5023 set_state(PART:"button_image", "default", 0.0);
5025 after: button_unpress;
5027 program { name: "touch_snd";
5028 signal: "mouse,clicked,1";
5030 action: PLAY_SAMPLE "touch_sound" 1.0;
5031 after: button_unclick3;
5033 program { name: "button_unclick3";
5034 action: SIGNAL_EMIT "elm,action,click" "";
5036 program { name: "text_show";
5037 signal: "elm,state,text,visible";
5040 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5042 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5043 set_state(PART:"elm.text", "landscape_visible", 0.0);
5045 set_state(PART:"elm.text", "visible", 0.0);
5049 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5050 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
5052 set_state(PART:"elm.text", "disabled_visible", 0.0);
5056 program { name: "text_hide";
5057 signal: "elm,state,text,hidden";
5060 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5061 set_state(PART:"elm.text", "landscape", 0.0);
5063 set_state(PART:"elm.text", "default", 0.0);
5066 program { name: "disable";
5067 signal: "elm,state,disabled";
5069 action: STATE_SET "disabled" 0.0;
5070 target: "button_image";
5073 after: "disable_text";
5075 program { name: "disable_text";
5079 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5081 get_state(PART:"elm.text", st, 30, vl);
5082 if (!strcmp(st, "landscape_visible"))
5083 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
5085 set_state(PART:"elm.text", "landscape_disabled", 0.0);
5089 get_state(PART:"elm.text", st, 30, vl);
5090 if (!strcmp(st, "visible"))
5091 set_state(PART:"elm.text", "disabled_visible", 0.0);
5093 set_state(PART:"elm.text", "disabled", 0.0);
5095 set_int(button_state, BUTTON_STATE_DISABLED);
5098 program { name: "enable";
5099 signal: "elm,state,enabled";
5101 action: STATE_SET "default" 0.0;
5102 target: "button_image";
5105 after: "enable_text";
5107 program { name: "enable_text";
5111 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5113 get_state(PART:"elm.text", st, 30, vl);
5114 if (!strcmp(st, "landscape_disabled"))
5115 set_state(PART:"elm.text", "landscape", 0.0);
5117 set_state(PART:"elm.text", "landscape_visible", 0.0);
5121 get_state(PART:"elm.text", st, 30, vl);
5122 if (!strcmp(st, "disabled"))
5123 set_state(PART:"elm.text", "default", 0.0);
5125 set_state(PART:"elm.text", "visible", 0.0);
5127 set_int(button_state, BUTTON_STATE_ENABLED);
5130 program { name: "change_to_landscape";
5131 signal: "elm,state,landscape";
5136 set_int(landscape_state, BUTTON_LANDSCAPE_ENABLED);
5137 get_state(PART:"elm.text", st, 30, vl);
5138 if (!strcmp(st, "default"))
5139 set_state(PART:"elm.text", "landscape", 0.0);
5140 else if (!strcmp(st, "clicked"))
5141 set_state(PART:"elm.text", "landscape_clicked", 0.0);
5142 else if (!strcmp(st, "disabled"))
5143 set_state(PART:"elm.text", "landscape_disabled", 0.0);
5144 else if (!strcmp(st, "disabled_visible"))
5145 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
5147 set_state(PART:"elm.text", "landscape_visible", 0.0);
5148 set_state(PART:"button_bg", "landscape", 0.0);
5151 program { name: "change_to_portrait";
5152 signal: "elm,state,portrait";
5157 set_int(landscape_state, BUTTON_LANDSCAPE_DISABLED);
5158 get_state(PART:"elm.text", st, 30, vl);
5159 if (!strcmp(st, "landscape"))
5160 set_state(PART:"elm.text", "default", 0.0);
5161 else if (!strcmp(st, "landscape_clicked"))
5162 set_state(PART:"elm.text", "clicked", 0.0);
5163 else if (!strcmp(st, "landscape_disabled"))
5164 set_state(PART:"elm.text", "disabled", 0.0);
5165 else if (!strcmp(st, "landscape_disabled_visible"))
5166 set_state(PART:"elm.text", "disabled_visible", 0.0);
5168 set_state(PART:"elm.text", "visible", 0.0);
5169 set_state(PART:"button_bg", "default", 0.0);
5172 program { name: "landscape_mode";
5174 signal: "elm,state,orient,90";
5175 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5177 program { name: "landscape_mode2";
5179 signal: "elm,state,orient,270";
5180 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5182 program { name: "portrait_mode";
5184 signal: "elm,state,orient,0";
5185 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5187 program { name: "portrait_mode2";
5189 signal: "elm,state,orient,180";
5190 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5192 program { name: "action_focus";
5193 signal: "elm,action,focus_highlight,show";
5195 action: STATE_SET "focused" 0.0;
5196 target: "focus_image";
5198 program { name: "action_unfocus";
5199 signal: "elm,action,focus_highlight,hide";
5201 action: STATE_SET "default" 0.0;
5202 target: "focus_image";
5207 //////////////////////////////////////////////////////////////
5208 group { name: "elm/button/base/naviframe/toolbar/left";
5209 inherit: "elm/button/base/naviframe/toolbar/default";
5211 part { name: "button_bg";
5214 description { state: "default" 0.0;
5215 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
5216 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MAX_INC;
5218 rel1.to: "padding_text_left_top";
5219 rel2.to: "padding_text_right_bottom";
5222 description { state: "landscape" 0.0;
5223 inherit: "default" 0.0;
5224 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5225 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
5228 part { name: "elm.text";
5233 description { state: "default" 0.0;
5236 min: BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_MIN_INC;
5239 to: "padding_left_top";
5243 to: "padding_right_bottom";
5250 style: "btn_naviframe_toolbar";
5253 description { state: "landscape" 0.0;
5254 inherit: "default" 0.0;
5255 min: BUTTON_NAVIFRAME_TOOLBAR_LANDSCAPE_TEXTBLOCK_MIN_INC;
5257 description { state: "visible" 0.0;
5258 inherit: "default" 0.0;
5261 description { state: "landscape_visible" 0.0;
5262 inherit: "landscape" 0.0;
5265 description { state: "clicked" 0.0;
5266 inherit: "default" 0.0;
5269 style: "btn_naviframe_toolbar_pressed";
5272 description { state: "landscape_clicked" 0.0;
5273 inherit: "landscape" 0.0;
5276 style: "btn_naviframe_toolbar_pressed";
5279 description { state: "disabled" 0.0;
5280 inherit: "default" 0.0;
5282 description { state: "landscape_disabled" 0.0;
5283 inherit: "landscape" 0.0;
5285 description { state: "disabled_visible" 0.0;
5286 inherit: "default" 0.0;
5289 style: "btn_naviframe_toolbar_disabled";
5292 description { state: "landscape_disabled_visible" 0.0;
5293 inherit: "landscape" 0.0;
5296 style: "btn_naviframe_toolbar_disabled";
5299 description { state: "focused" 0.0;
5300 inherit: "default" 0.0;
5303 style: "btn_naviframe_toolbar_pressed";
5306 description { state: "landscape_focused" 0.0;
5307 inherit: "landscape" 0.0;
5310 style: "btn_naviframe_toolbar_pressed";
5317 //////////////////////////////////////////////////////////////
5318 group { name: "elm/button/base/naviframe/toolbar/right";
5319 inherit: "elm/button/base/naviframe/toolbar/default";
5321 part { name: "button_bg";
5324 description { state: "default" 0.0;
5325 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
5326 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MAX_INC;
5328 rel1.to: "padding_text_left_top";
5329 rel2.to: "padding_text_right_bottom";
5332 description { state: "landscape" 0.0;
5333 inherit: "default" 0.0;
5334 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5335 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
5338 part { name: "elm.text";
5343 description { state: "default" 0.0;
5346 min: BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_MIN_INC;
5349 to: "padding_left_top";
5353 to: "padding_right_bottom";
5360 style: "btn_naviframe_toolbar";
5363 description { state: "landscape" 0.0;
5364 inherit: "default" 0.0;
5365 min: BUTTON_NAVIFRAME_TOOLBAR_LANDSCAPE_TEXTBLOCK_MIN_INC;
5367 description { state: "visible" 0.0;
5368 inherit: "default" 0.0;
5371 description { state: "landscape_visible" 0.0;
5372 inherit: "landscape" 0.0;
5375 description { state: "clicked" 0.0;
5376 inherit: "default" 0.0;
5379 style: "btn_naviframe_toolbar_pressed";
5382 description { state: "landscape_clicked" 0.0;
5383 inherit: "landscape" 0.0;
5386 style: "btn_naviframe_toolbar_pressed";
5389 description { state: "disabled" 0.0;
5390 inherit: "default" 0.0;
5392 description { state: "landscape_disabled" 0.0;
5393 inherit: "landscape" 0.0;
5395 description { state: "disabled_visible" 0.0;
5396 inherit: "default" 0.0;
5399 style: "btn_naviframe_toolbar_disabled";
5402 description { state: "landscape_disabled_visible" 0.0;
5403 inherit: "landscape" 0.0;
5406 style: "btn_naviframe_toolbar_disabled";
5409 description { state: "focused" 0.0;
5410 inherit: "default" 0.0;
5413 style: "btn_naviframe_toolbar_pressed";
5416 description { state: "landscape_focused" 0.0;
5417 inherit: "landscape" 0.0;
5420 style: "btn_naviframe_toolbar_pressed";
5427 ////////////////////////////////////////////////////////////////////
5428 group { name: "elm/button/base/toolbar/segmentedcontrol";
5430 image: "00_toolbar_button.png" COMP;
5431 image: "00_toolbar_button_press.png" COMP;
5432 image: "00_toolbar_button_dim.png" COMP;
5433 image: "00_button_icon_arrow.png" COMP;
5434 image: "00_button_icon_arrow_press.png" COMP;
5437 item: "focus_highlight" "on";
5440 style { name: "btn_toolbar_segmentedcontrol";
5441 base: "font=Tizen:style=Bold font_size="BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXT_FONT_SIZE_INC" align=center color=#ffffff ellipsis=1.0 wrap=none text_class=tizen";
5448 public button_state = BUTTON_STATE_ENABLED;
5451 part { name: "button_image";
5453 description { state: "default" 0.0;
5454 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
5455 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
5457 rel1.to: "padding_text_left_top";
5458 rel2.to: "padding_text_right_bottom";
5460 normal: "00_toolbar_button.png";
5461 border: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_BORDER_INC;
5465 description { state: "clicked" 0.0;
5466 inherit: "default" 0.0;
5467 image.normal: "00_toolbar_button_press.png";
5469 description { state: "disabled" 0.0;
5470 inherit: "default" 0.0;
5471 image.normal: "00_toolbar_button_dim.png";
5473 description { state: "focused" 0.0;
5474 inherit: "default" 0.0;
5475 image.normal: "00_toolbar_button_press.png";
5478 part { name: "focus_image";
5482 description { state: "default" 0.0;
5483 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
5484 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
5486 rel1.to : "button_image";
5487 rel2.to : "button_image";
5489 normal: "00_toolbar_button_focus.png";
5490 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
5494 description { state: "focused" 0.0;
5495 inherit: "default" 0.0;
5499 part { name: "padding_left_top";
5503 description { state: "default" 0.0;
5506 rel2.relative: 0.0 0.0;
5507 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
5511 part { name: "padding_right_bottom";
5515 description { state: "default" 0.0;
5517 rel1.relative: 1.0 1.0;
5518 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
5523 part { name: "padding_text_left_top";
5527 description { state: "default" 0.0;
5529 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
5531 rel1.to: "elm.text";
5539 part { name: "padding_text_right_bottom";
5543 description { state: "default" 0.0;
5544 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
5560 part { name: "elm.text";
5564 effect: FAR_SHADOW BOTTOM;
5566 description { state: "default" 0.0;
5569 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXTBLOCK_MIN_INC;
5572 to: "padding_left_top";
5576 to: "padding_right_bottom";
5578 color: BUTTON_NAVIFRAME_TOOLBAR_TEXT_NORMAL_COLOR_INC;
5579 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5583 style: "btn_toolbar_segmentedcontrol";
5586 description { state: "visible" 0.0;
5587 inherit: "default" 0.0;
5590 description { state: "clicked" 0.0;
5591 inherit: "default" 0.0;
5593 color: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PRESSED_COLOR_INC;
5595 description { state: "disabled" 0.0;
5596 inherit: "default" 0.0;
5598 description { state: "disabled_visible" 0.0;
5599 inherit: "default" 0.0;
5600 color: BUTTON_NAVIFRAME_TOOLBAR_TEXT_DISABLED_COLOR_INC;
5601 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5604 description { state: "focused" 0.0;
5605 inherit: "default" 0.0;
5607 color: BUTTON_NAVIFRAME_TOOLBAR_TEXT_FOCUSED_COLOR_INC;
5610 part { name: "icon_padding";
5613 description { state: "default" 0.0;
5622 rel2.to: "elm.text";
5625 part { name: "icon";
5627 clip_to: "icon_clipper";
5628 description { state: "default" 0.0;
5629 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5630 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5635 to_x: "icon_padding";
5641 to_x: "icon_padding";
5644 image.normal: "00_button_icon_arrow.png";
5646 description { state: "clicked" 0.0;
5647 inherit: "default" 0.0;
5648 image.normal: "00_button_icon_arrow_press.png";
5651 part { name: "icon_clipper";
5653 description { state: "default" 0.0;
5654 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_NORMAL_COLOR_INC;
5656 description { state: "clicked" 0.0;
5657 inherit: "default" 0.0;
5658 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_PRESSED_COLOR_INC;
5661 part { name: "disclip";
5663 description { state: "default" 0.0;
5664 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5666 description { state: "disabled" 0.0;
5667 inherit: "default" 0.0;
5668 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5671 part { name: "over2";
5674 ignore_flags: ON_HOLD;
5675 description { state: "default" 0.0;
5676 rel1.to: "button_image";
5677 rel2.to: "button_image";
5681 part { name: "over3";
5684 description { state: "default" 0.0;
5685 rel1.to: "button_image";
5686 rel2.to: "button_image";
5690 part { name: "disabler";
5692 description { state: "default" 0.0;
5693 rel1.to: "button_image";
5694 rel2.to: "button_image";
5698 description { state: "disabled" 0.0;
5699 inherit: "default" 0.0;
5705 program { name: "button_click";
5706 signal: "mouse,down,1";
5708 action: SIGNAL_EMIT "elm,action,press" "";
5709 after: "button_click_anim";
5711 program { name: "button_click_anim";
5712 action: STATE_SET "clicked" 0.0;
5713 target: "button_image";
5716 target: "icon_clipper";
5718 program { name: "button_double_click";
5719 signal: "mouse,down,1,double";
5721 after: "button_click_anim";
5723 program { name: "button_unpress";
5724 action: SIGNAL_EMIT "elm,action,unpress" "";
5726 program { name: "button_mouseout_clicked";
5727 signal: "mouse,up,1";
5732 get_state(PART:"elm.text", st, 30, vl);
5733 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5735 emit("elm,action,default,text,set", "");
5736 set_state(PART:"elm.text", "visible", 0.0);
5738 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5739 set_state(PART:"button_image", "default", 0.0);
5740 set_state(PART:"icon", "default", 0.0);
5741 set_state(PART:"icon_clipper", "default", 0.0);
5743 after: button_unpress;
5745 program { name: "touch_snd";
5746 signal: "mouse,clicked,1";
5748 action: PLAY_SAMPLE "touch_sound" 1.0;
5749 after: button_unclick3;
5751 program { name: "button_unclick3";
5752 action: SIGNAL_EMIT "elm,action,click" "";
5754 program { name: "text_show";
5755 signal: "elm,state,text,visible";
5758 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5759 set_state(PART:"elm.text", "visible", 0.0);
5761 set_state(PART:"elm.text", "disabled_visible", 0.0);
5764 program { name: "text_hide";
5765 signal: "elm,state,text,hidden";
5767 action: STATE_SET "default" 0.0;
5770 program { name: "disable";
5771 signal: "elm,state,disabled";
5773 action: STATE_SET "disabled" 0.0;
5774 target: "button_image";
5777 after: "disable_text";
5779 program { name: "disable_text";
5783 get_state(PART:"elm.text", st, 30, vl);
5784 if (!strcmp(st, "visible"))
5785 set_state(PART:"elm.text", "disabled_visible", 0.0);
5787 set_state(PART:"elm.text", "disabled", 0.0);
5788 set_int(button_state, BUTTON_STATE_DISABLED);
5791 program { name: "enable";
5792 signal: "elm,state,enabled";
5794 action: STATE_SET "default" 0.0;
5795 target: "button_image";
5798 after: "enable_text";
5800 program { name: "enable_text";
5804 get_state(PART:"elm.text", st, 30, vl);
5805 if (!strcmp(st, "disabled_visible"))
5806 set_state(PART:"elm.text", "visible", 0.0);
5808 set_state(PART:"elm.text", "default", 0.0);
5809 set_int(button_state, BUTTON_STATE_ENABLED);
5812 program { name: "action_focus";
5813 signal: "elm,action,focus_highlight,show";
5815 action: STATE_SET "focused" 0.0;
5816 target: "focus_image";
5818 program { name: "action_unfocus";
5819 signal: "elm,action,focus_highlight,hide";
5821 action: STATE_SET "default" 0.0;
5822 target: "focus_image";
5827 ////////////////////////////////////////////////////////////////////
5828 group { name: "elm/button/base/naviframe/title_icon";
5830 item: "focus_highlight" "on";
5833 image: "00_icon_focus.png" COMP;
5836 part { name: "button_image";
5839 description { state: "default" 0.0;
5841 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5842 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5844 description { state: "landscape" 0.0;
5846 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5847 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5850 part { name: "elm.swallow.content";
5853 clip_to: "elm.icon.clipper";
5854 description { state: "default" 0.0;
5856 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5858 rel1 { to: "button_image"; }
5859 rel2 { to: "button_image"; }
5861 description { state: "visible" 0.0;
5862 inherit: "default" 0.0;
5866 part { name: "elm.icon.clipper";
5868 description { state: "default" 0.0;
5869 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5871 description { state: "clicked" 0.0;
5872 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5874 description { state: "disabled" 0.0;
5875 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5878 part { name: "over2";
5880 ignore_flags: ON_HOLD;
5881 description { state: "default" 0.0;
5885 part { name: "over3";
5888 description { state: "default" 0.0;
5892 part { name: "disabler";
5894 description { state: "default" 0.0;
5898 description { state: "disabled" 0.0;
5899 inherit: "default" 0.0;
5905 program { name: "button_click";
5906 signal: "mouse,down,1";
5908 action: SIGNAL_EMIT "elm,action,press" "";
5909 after: "button_click_anim";
5911 program { name: "button_click_anim";
5913 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5916 program { name: "button_double_click";
5917 signal: "mouse,down,1,double";
5919 after: "button_click_anim";
5921 program { name: "button_unpress";
5922 action: SIGNAL_EMIT "elm,action,unpress" "";
5924 program { name: "button_mouseout_clicked";
5925 signal: "mouse,up,1";
5927 action: STATE_SET "default" 0.0;
5928 target: "elm.icon.clipper";
5929 after: button_unpress;
5931 program { name: "touch_snd";
5932 signal: "mouse,clicked,1";
5934 action: PLAY_SAMPLE "touch_sound" 1.0;
5935 after: button_unclick3;
5937 program { name: "button_unclick3";
5938 action: SIGNAL_EMIT "elm,action,click" "";
5940 program { name: "icon_show";
5941 signal: "elm,state,icon,visible";
5943 action: STATE_SET "visible" 0.0;
5944 target: "elm.swallow.content";
5946 program { name: "icon_hide";
5947 signal: "elm,state,icon,hidden";
5949 action: STATE_SET "default" 0.0;
5950 target: "elm.swallow.content";
5952 program { name: "disable";
5953 signal: "elm,state,disabled";
5956 set_state(PART:"disabler", "disabled", 0.0);
5957 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5960 program { name: "enable";
5961 signal: "elm,state,enabled";
5964 set_state(PART:"disabler", "default", 0.0);
5965 set_state(PART:"elm.icon.clipper", "default", 0.0);
5968 program { name: "change_to_landscape";
5969 signal: "elm,state,landscape";
5971 action: STATE_SET "landscape" 0.0;
5972 target: "button_image";
5974 program { name: "change_to_portrait";
5975 signal: "elm,state,portrait";
5977 action: STATE_SET "default" 0.0;
5978 target: "button_image";
5980 program { name: "landscape_mode";
5982 signal: "elm,state,orient,90";
5983 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5985 program { name: "landscape_mode2";
5987 signal: "elm,state,orient,270";
5988 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5990 program { name: "portrait_mode";
5992 signal: "elm,state,orient,0";
5993 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5995 program { name: "portrait_mode2";
5997 signal: "elm,state,orient,180";
5998 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6003 ////////////////////////////////////////////////////////////////////
6004 group { name: "elm/button/base/naviframe/title_text";
6006 image: "00_title_press.png" COMP;
6009 style { name: "btn_naviframe_title_text";
6010 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
6017 part { name: "button_bg";
6020 description { state: "default" 0.0;
6021 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_MAX_INC;
6022 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_MAX_INC;
6024 description { state: "landscape" 0.0;
6025 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_MAX_INC;
6026 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_MAX_INC;
6029 part { name: "button_image";
6032 description { state: "default" 0.0;
6034 rel1 { to: "button_bg"; }
6035 rel2 { to: "button_bg"; }
6037 description { state: "clicked" 0.0;
6038 inherit: "default" 0.0;
6041 normal: "00_title_press.png";
6042 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
6047 part { name: "elm.text";
6051 clip_to: "button_bg";
6052 description { state: "default" 0.0;
6053 rel1.to: "button_bg";
6054 rel2.to: "button_bg";
6056 style: "btn_naviframe_title_text";
6061 part { name: "over2";
6063 ignore_flags: ON_HOLD;
6064 description { state: "default" 0.0;
6068 part { name: "over3";
6071 description { state: "default" 0.0;
6075 part { name: "disabler";
6077 description { state: "default" 0.0;
6081 description { state: "disabled" 0.0;
6082 inherit: "default" 0.0;
6088 program { name: "button_click";
6089 signal: "mouse,down,1";
6091 action: SIGNAL_EMIT "elm,action,press" "";
6092 after: "button_click_anim";
6094 program { name: "button_click_anim";
6096 set_state(PART:"button_image", "clicked", 0.0);
6099 program { name: "button_double_click";
6100 signal: "mouse,down,1,double";
6102 after: "button_click_anim";
6104 program { name: "button_unclick";
6105 signal: "mouse,up,1";
6107 action: SIGNAL_EMIT "elm,action,unpress" "";
6108 after: "button_unclick_anim";
6110 program { name: "button_unclick_anim";
6112 set_state(PART:"button_image", "default", 0.0);
6115 program { name: "touch_snd";
6116 signal: "mouse,clicked,1";
6118 action: PLAY_SAMPLE "touch_sound" 1.0;
6119 after: "button_unclick3";
6121 program { name: "button_unclick3";
6122 action: SIGNAL_EMIT "elm,action,click" "";
6124 program { name: "change_to_landscape";
6125 signal: "elm,state,landscape";
6127 action: STATE_SET "landscape" 0.0;
6128 target: "button_bg";
6130 program { name: "change_to_portrait";
6131 signal: "elm,state,portrait";
6133 action: STATE_SET "default" 0.0;
6134 target: "button_bg";
6136 program { name: "landscape_mode";
6138 signal: "elm,state,orient,90";
6139 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6141 program { name: "landscape_mode2";
6143 signal: "elm,state,orient,270";
6144 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6146 program { name: "portrait_mode";
6148 signal: "elm,state,orient,0";
6149 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6151 program { name: "portrait_mode2";
6153 signal: "elm,state,orient,180";
6154 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6159 /////////////////////////////////////////////////////////////////////////////////////////
6160 group { name: "elm/button/base/naviframe/more/default";
6162 item: "focus_highlight" "on";
6165 image: "00_icon_more.png" COMP;
6166 image: "00_icon_focus.png" COMP;
6169 part { name: "button_image";
6172 description { state: "default" 0.0;
6173 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
6174 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
6177 description { state: "landscape" 0.0;
6178 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
6179 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
6183 part { name: "focus_image";
6187 description { state: "default" 0.0;
6189 rel1.to : "button_image";
6190 rel2.to : "button_image";
6192 normal: "00_icon_focus.png";
6196 description { state: "focused" 0.0;
6197 inherit: "default" 0.0;
6201 part { name: "more_image";
6204 clip_to: "more_image.clipper";
6205 description { state: "default" 0.0;
6206 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
6207 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
6209 rel1.to: "button_image";
6210 rel2.to: "button_image";
6211 image.normal: "00_icon_more.png";
6214 part { name: "more_image.clipper";
6216 description { state: "default" 0.0;
6217 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
6219 description { state: "clicked" 0.0;
6220 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
6222 description { state: "disabled" 0.0;
6223 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
6226 part { name: "over2";
6228 ignore_flags: ON_HOLD;
6229 description { state: "default" 0.0;
6233 part { name: "over3";
6236 description { state: "default" 0.0;
6240 part { name: "disabler";
6242 description { state: "default" 0.0;
6246 description { state: "disabled" 0.0;
6247 inherit: "default" 0.0;
6253 program { name: "button_click";
6254 signal: "mouse,down,1";
6256 action: SIGNAL_EMIT "elm,action,press" "";
6257 after: "button_click_anim";
6259 program { name: "button_click_anim";
6261 set_state(PART:"more_image.clipper", "clicked", 0.0);
6264 program { name: "button_double_click";
6265 signal: "mouse,down,1,double";
6267 after: "button_click_anim";
6269 program { name: "button_unclick";
6270 signal: "mouse,up,1";
6272 action: SIGNAL_EMIT "elm,action,unpress" "";
6273 after: "button_unclick_anim";
6275 program { name: "button_unclick_anim";
6277 set_state(PART:"more_image.clipper", "default", 0.0);
6280 program { name: "touch_snd";
6281 signal: "mouse,clicked,1";
6283 action: PLAY_SAMPLE "touch_sound" 1.0;
6284 after: button_unclick3;
6286 program { name: "button_unclick3";
6287 action: SIGNAL_EMIT "elm,action,click" "";
6289 program { name: "disable";
6290 signal: "elm,state,disabled";
6293 set_state(PART:"disabler", "disabled", 0.0);
6294 set_state(PART:"more_image.clipper", "disabled", 0.0);
6297 program { name: "enable";
6298 signal: "elm,state,enabled";
6301 set_state(PART:"disabler", "default", 0.0);
6302 set_state(PART:"more_image.clipper", "default", 0.0);
6305 program { name: "change_to_landscape";
6306 signal: "elm,state,landscape";
6308 action: STATE_SET "landscape" 0.0;
6309 target: "button_image";
6311 program { name: "change_to_portrait";
6312 signal: "elm,state,portrait";
6314 action: STATE_SET "default" 0.0;
6315 target: "button_image";
6317 program { name: "landscape_mode";
6319 signal: "elm,state,orient,90";
6320 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6322 program { name: "landscape_mode2";
6324 signal: "elm,state,orient,270";
6325 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6327 program { name: "portrait_mode";
6329 signal: "elm,state,orient,0";
6330 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6332 program { name: "portrait_mode2";
6334 signal: "elm,state,orient,180";
6335 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6337 program { name: "action_focus";
6338 signal: "elm,action,focus_highlight,show";
6340 action: STATE_SET "focused" 0.0;
6341 target: "focus_image";
6343 program { name: "action_unfocus";
6344 signal: "elm,action,focus_highlight,hide";
6346 action: STATE_SET "default" 0.0;
6347 target: "focus_image";
6352 ///////////////////////////////////////////////////////////////////////////////////////
6353 group { name: "elm/button/base/tickernoti";
6355 image: "00_notification_button.png" COMP;
6356 image: "00_notification_button_press.png" COMP;
6357 image: "00_notification_button_dim.png" COMP;
6360 public button_state = BUTTON_STATE_ENABLED;
6363 part { name: "button_image";
6365 description { state: "default" 0.0;
6366 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6367 max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6369 normal: "00_notification_button.png";
6370 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
6374 description { state: "clicked" 0.0;
6375 inherit: "default" 0.0;
6376 image.normal: "00_notification_button_press.png";
6378 description { state: "disabled" 0.0;
6379 inherit: "default" 0.0;
6380 image.normal: "00_notification_button_dim.png";
6382 description { state: "focused" 0.0;
6383 inherit: "default" 0.0;
6384 image.normal: "00_notification_button_press.png";
6387 part { name: "padding_left_top";
6391 description { state: "default" 0.0;
6394 rel2.relative: 0.0 0.0;
6395 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
6403 description { state: "default" 0.0;
6404 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6407 description { state: "visible" 0.0;
6408 inherit: "default" 0.0;
6410 description { state: "icononly" 0.0;
6411 inherit: "default" 0.0;
6414 part { name: "padding_right_bottom";
6418 description { state: "default" 0.0;
6420 rel1.relative: 1.0 1.0;
6421 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
6426 part { name: "icon_rect";
6430 description { state: "default" 0.0;
6436 to: "padding_left_top";
6440 to_x: "padding_left_top";
6441 to_y: "padding_right_bottom";
6445 description { state: "visible" 0.0;
6446 inherit: "default" 0.0;
6447 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
6448 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
6450 description { state: "icononly" 0.0;
6451 inherit: "default" 0.0;
6454 part { name: "padding_after_icon";
6458 description { state: "default" 0.0; //when only icon or no icon is there
6467 rel2.to: "icon_rect";
6469 description { state: "visible" 0.0;
6470 inherit: "default" 0.0;
6471 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6473 description { state: "icononly" 0.0;
6474 inherit: "default" 0.0;
6477 part { name: "padding_before_text";
6481 description { state: "default" 0.0; //when only icon or no icon is there
6485 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6489 to_y: "padding_left_top";
6494 to_y: "padding_right_bottom";
6498 part { name: "elm.swallow.content";
6502 description { state: "default" 0.0;
6508 to: "padding_left_top";
6512 to_x: "padding_left_top";
6513 to_y: "padding_right_bottom";
6516 description { state: "visible" 0.0;
6518 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6519 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6523 to_x: "padding_before_text";
6524 to_y: "padding_left_top";
6528 to_x: "padding_before_text";
6529 to_y: "padding_right_bottom";
6532 description { state: "icononly" 0.0;
6533 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6534 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6537 part { name: "elm.text";
6540 effect: FAR_SHADOW BOTTOM;
6543 description { state: "default" 0.0;
6547 to_x: "padding_after_icon";
6548 to_y: "padding_left_top";
6552 to: "padding_right_bottom";
6554 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
6555 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6557 font: "Tizen:style=Regular";
6558 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
6559 text_class: "tizen";
6562 description { state: "visible" 0.0;
6563 inherit: "default" 0.0;
6566 description { state: "clicked" 0.0;
6567 inherit: "default" 0.0;
6569 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6571 description { state: "disabled" 0.0;
6572 inherit: "default" 0.0;
6574 description { state: "disabled_visible" 0.0;
6575 inherit: "default" 0.0;
6576 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
6577 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6580 description { state: "focused" 0.0;
6581 inherit: "default" 0.0;
6583 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6586 part { name: "over2";
6589 ignore_flags: ON_HOLD;
6590 description { state: "default" 0.0;
6594 part { name: "over3";
6597 description { state: "default" 0.0;
6601 part { name: "clipper";
6603 description { state: "default" 0.0;
6604 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
6606 description { state: "disabled" 0.0;
6607 inherit: "default" 0.0;
6608 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
6611 part { name: "disabler";
6613 description { state: "default" 0.0;
6617 description { state: "disabled" 0.0;
6618 inherit: "default" 0.0;
6624 program { name: "button_click";
6625 signal: "mouse,down,1";
6627 action: SIGNAL_EMIT "elm,action,press" "";
6628 after: "button_click_anim";
6630 program { name: "button_click_anim";
6631 action: STATE_SET "clicked" 0.0;
6632 target: "button_image";
6633 after: "text_clicked";
6635 program { name: "text_clicked";
6639 get_state(PART:"elm.text", st, 30, vl);
6640 if (!strcmp(st, "visible"))
6641 set_state(PART:"elm.text", "clicked", 0.0);
6644 program { name: "button_double_click";
6645 signal: "mouse,down,1,double";
6647 after: "button_click_anim";
6649 program { name: "button_unpress";
6650 action: SIGNAL_EMIT "elm,action,unpress" "";
6652 program { name: "button_mouseout_clicked";
6653 signal: "mouse,up,1";
6658 get_state(PART:"elm.swallow.content", st, 30, vl);
6659 if (strcmp(st, "icononly"))
6661 emit("elm,action,default,text,set", "");
6662 set_state(PART:"elm.text", "visible", 0.0);
6664 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6665 set_state(PART:"button_image", "default", 0.0);
6667 after: button_unpress;
6669 program { name: "touch_snd";
6670 signal: "mouse,clicked,1";
6672 action: PLAY_SAMPLE "touch_sound" 1.0;
6673 after: button_unclick3;
6675 program { name: "button_unclick3";
6676 action: SIGNAL_EMIT "elm,action,click" "";
6678 program { name: "text_show";
6679 signal: "elm,state,text,visible";
6684 get_state(PART:"elm.swallow.content", st, 30, vl);
6685 if (!strcmp(st, "icononly"))
6687 set_state(PART:"elm.swallow.content", "visible", 0.0);
6688 set_state(PART:"icon_rect", "visible", 0.0);
6689 set_state(PART:"padding_after_icon", "visible", 0.0);
6690 set_state(PART:"bg", "visible", 0.0);
6692 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6693 set_state(PART:"elm.text", "visible", 0.0);
6695 set_state(PART:"elm.text", "disabled_visible", 0.0);
6698 program { name: "text_hide";
6699 signal: "elm,state,text,hidden";
6704 get_state(PART:"elm.swallow.content", st, 30, vl);
6705 if (!strcmp(st, "visible"))
6707 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6708 set_state(PART:"icon_rect", "icononly", 0.0);
6709 set_state(PART:"padding_after_icon", "icononly", 0.0);
6710 set_state(PART:"bg", "icononly", 0.0);
6712 set_state(PART:"elm.text", "default", 0.0);
6715 program { name: "icon_show";
6716 signal: "elm,state,icon,visible";
6721 get_state(PART:"elm.text", st, 30, vl);
6722 if (!strcmp(st, "visible"))
6724 set_state(PART:"elm.swallow.content", "visible", 0.0);
6725 set_state(PART:"icon_rect", "visible", 0.0);
6726 set_state(PART:"padding_after_icon", "visible", 0.0);
6727 set_state(PART:"bg", "visible", 0.0);
6731 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6732 set_state(PART:"icon_rect", "icononly", 0.0);
6733 set_state(PART:"padding_after_icon", "icononly", 0.0);
6734 set_state(PART:"bg", "icononly", 0.0);
6738 program { name: "icon_hide";
6739 signal: "elm,state,icon,hidden";
6741 action: STATE_SET "default" 0.0;
6742 target: "elm.swallow.content";
6743 target: "padding_after_icon";
6744 target: "icon_rect";
6747 program { name: "disable";
6748 signal: "elm,state,disabled";
6750 action: STATE_SET "disabled" 0.0;
6751 target: "button_image";
6754 after: "disable_text";
6756 program { name: "disable_text";
6760 get_state(PART:"elm.text", st, 30, vl);
6761 if (!strcmp(st, "visible"))
6762 set_state(PART:"elm.text", "disabled_visible", 0.0);
6764 set_state(PART:"elm.text", "disabled", 0.0);
6765 set_int(button_state, BUTTON_STATE_DISABLED);
6768 program { name: "enable";
6769 signal: "elm,state,enabled";
6771 action: STATE_SET "default" 0.0;
6772 target: "button_image";
6775 after: "enable_text";
6777 program { name: "enable_text";
6781 get_state(PART:"elm.text", st, 30, vl);
6782 if (!strcmp(st, "disabled_visible"))
6783 set_state(PART:"elm.text", "visible", 0.0);
6785 set_state(PART:"elm.text", "default", 0.0);
6786 set_int(button_state, BUTTON_STATE_ENABLED);
6789 program { name: "focused";
6790 //signal: "elm,action,focus";
6792 action: STATE_SET "focused" 0.0;
6793 target: "button_image";
6796 program { name: "unfocused";
6797 //signal: "elm,action,unfocus";
6799 action: STATE_SET "default" 0.0;
6800 target: "button_image";
6801 after: "unfocus_text";
6803 program { name: "unfocus_text";
6804 action: STATE_SET "visible" 0.0;
6810 ///////////////////////////////////////////////////////////////////////////////////////
6811 group { name: "elm/button/base/expandable_number";
6812 alias: "elm/button/base/text_only/expandable_number";
6814 item: "focus_highlight" "on";
6817 image: "00_button_01.png" COMP;
6818 image: "00_button_01_press.png" COMP;
6819 image: "00_button_01_dim.png" COMP;
6820 image: "00_arrow_expand.png" COMP;
6821 image: "00_button_01_focus.png" COMP;
6824 public button_state = BUTTON_STATE_ENABLED;
6827 part { name: "button_image";
6829 description { state: "default" 0.0;
6830 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6831 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6833 normal: "00_button_01.png";
6834 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6838 description { state: "clicked" 0.0;
6839 inherit: "default" 0.0;
6840 image.normal: "00_button_01_press.png";
6842 description { state: "disabled" 0.0;
6843 inherit: "default" 0.0;
6844 image.normal: "00_button_01_dim.png";
6846 description { state: "focused" 0.0;
6847 inherit: "default" 0.0;
6848 image.normal: "00_button_01_press.png";
6851 part { name: "focus_image";
6855 description { state: "default" 0.0;
6856 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6857 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6859 rel1.to : "button_image";
6860 rel2.to : "button_image";
6862 normal: "00_button_01_focus.png";
6863 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6867 description { state: "focused" 0.0;
6868 inherit: "default" 0.0;
6872 part { name: "padding_left_top";
6876 description { state: "default" 0.0;
6879 rel2.relative: 0.0 0.0;
6880 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6884 part { name: "padding_right_bottom";
6888 description { state: "default" 0.0;
6891 rel1.relative: 1.0 1.0;
6892 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6896 part { name: "icon_rect";
6900 description { state: "default" 0.0;
6902 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6903 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6907 to_x: "padding_right_bottom";
6908 to_y: "padding_left_top";
6912 to: "padding_right_bottom";
6917 part { name: "arrow_expand";
6919 clip_to: "icon_clipper";
6921 description { state: "default" 0.0;
6923 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6924 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6926 rel1.to: "icon_rect";
6927 rel2.to: "icon_rect";
6928 image.normal:"00_arrow_expand.png";
6931 part { name: "elm.text";
6934 effect: SHADOW BOTTOM;
6936 description { state: "default" 0.0;
6937 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6938 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6942 to: "padding_left_top";
6946 to_x:"padding_left_top";
6947 to_y:"padding_right_bottom";
6950 color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6951 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6953 font: "Tizen:style=Regular";
6954 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6958 text_class: "tizen";
6961 description { state: "visible" 0.0;
6962 inherit: "default" 0.0;
6964 description { state: "clicked" 0.0;
6965 inherit: "default" 0.0;
6966 color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
6968 description { state: "disabled" 0.0;
6969 inherit: "default" 0.0;
6971 description { state: "disabled_visible" 0.0;
6972 inherit: "default" 0.0;
6973 color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6975 description { state: "focused" 0.0;
6976 inherit: "default" 0.0;
6977 color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6980 part { name: "icon_clipper";
6983 description { state: "default" 0.0;
6984 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6986 description { state: "clicked" 0.0;
6987 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6989 description { state: "disabled" 0.0;
6990 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6993 part { name: "over2";
6996 ignore_flags: ON_HOLD;
6997 description { state: "default" 0.0;
7001 part { name: "over3";
7004 description { state: "default" 0.0;
7008 part { name: "disabler";
7010 description { state: "default" 0.0;
7014 description { state: "disabled" 0.0;
7015 inherit: "default" 0.0;
7021 program { name: "button_click";
7022 signal: "mouse,down,1";
7024 action: SIGNAL_EMIT "elm,action,press" "";
7025 after: "button_click_anim";
7027 program { name: "button_click_anim";
7028 action: STATE_SET "clicked" 0.0;
7029 target: "button_image";
7030 target: "icon_clipper";
7031 after: "text_clicked";
7033 program { name: "text_clicked";
7037 get_state(PART:"elm.text", st, 30, vl);
7038 if (!strcmp(st, "visible"))
7039 set_state(PART:"elm.text", "clicked", 0.0);
7042 program { name: "button_double_click";
7043 signal: "mouse,down,1,double";
7045 after: "button_click_anim";
7047 program { name: "button_unpress";
7048 action: SIGNAL_EMIT "elm,action,unpress" "";
7050 program { name: "button_mouseout_clicked";
7051 signal: "mouse,up,1";
7054 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7056 set_state(PART:"button_image", "default", 0.0);
7057 set_state(PART:"elm.text", "visible", 0.0);
7058 set_state(PART:"icon_clipper", "default", 0.0);
7061 after: button_unpress;
7063 program { name: "touch_snd";
7064 signal: "mouse,clicked,1";
7066 action: PLAY_SAMPLE "touch_sound" 1.0;
7067 after: button_unclick3;
7069 program { name: "button_unclick3";
7070 action: SIGNAL_EMIT "elm,action,click" "";
7072 program { name: "text_show";
7073 signal: "elm,state,text,visible";
7076 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7077 set_state(PART:"elm.text", "visible", 0.0);
7079 set_state(PART:"elm.text", "disabled_visible", 0.0);
7082 program { name: "text_hide";
7083 signal: "elm,state,text,hidden";
7086 set_state(PART:"elm.text", "default", 0.0);
7089 program { name: "disable";
7090 signal: "elm,state,disabled";
7092 action: STATE_SET "disabled" 0.0;
7093 target: "button_image";
7095 target: "icon_clipper";
7096 after: "disable_text";
7098 program { name: "disable_text";
7102 get_state(PART:"elm.text", st, 30, vl);
7103 if (!strcmp(st, "visible"))
7104 set_state(PART:"elm.text", "disabled_visible", 0.0);
7106 set_state(PART:"elm.text", "disabled", 0.0);
7107 set_int(button_state, BUTTON_STATE_DISABLED);
7110 program { name: "enable";
7111 signal: "elm,state,enabled";
7113 action: STATE_SET "default" 0.0;
7114 target: "button_image";
7116 target: "icon_clipper";
7117 after: "enable_text";
7119 program { name: "enable_text";
7123 get_state(PART:"elm.text", st, 30, vl);
7124 if (!strcmp(st, "disabled_visible"))
7125 set_state(PART:"elm.text", "visible", 0.0);
7127 set_state(PART:"elm.text", "default", 0.0);
7128 set_int(button_state, BUTTON_STATE_ENABLED);
7131 program { name: "action_focus";
7132 signal: "elm,action,focus_highlight,show";
7134 action: STATE_SET "focused" 0.0;
7135 target: "focus_image";
7137 program { name: "action_unfocus";
7138 signal: "elm,action,focus_highlight,hide";
7140 action: STATE_SET "default" 0.0;
7141 target: "focus_image";
7146 ////////////////////////////////////////////////////////////////////////
7147 group { name: "elm/button/base/bubble_sent";
7148 inherit: "elm/button/base/style1";
7150 image: "00_messagebubble_button_sent.png" COMP;
7151 image: "00_messagebubble_button_sent_press.png" COMP;
7152 image: "00_messagebubble_button_sent_dim.png" COMP;
7155 part { name: "button_image";
7157 description { state: "default" 0.0;
7159 normal: "00_messagebubble_button_sent.png";
7160 border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
7164 description { state: "clicked" 0.0;
7165 inherit: "default" 0.0;
7166 image.normal: "00_messagebubble_button_sent_press.png";
7168 description { state: "disabled" 0.0;
7169 inherit: "default" 0.0;
7170 image.normal: "00_messagebubble_button_sent_dim.png";
7172 description { state: "focused" 0.0;
7173 inherit: "default" 0.0;
7174 image.normal: "00_messagebubble_button_sent_press.png";
7177 part { name: "elm.text";
7180 effect: FAR_SHADOW BOTTOM;
7183 description { state: "default" 0.0;
7187 to_x: "padding_after_icon";
7188 to_y: "padding_left_top";
7192 to: "padding_right_bottom";
7194 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
7195 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7197 font: "Tizen:style=Regular";
7198 size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
7201 text_class: "tizen";
7204 description { state: "visible" 0.0;
7205 inherit: "default" 0.0;
7208 description { state: "clicked" 0.0;
7209 inherit: "default" 0.0;
7211 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
7213 description { state: "disabled" 0.0;
7214 inherit: "default" 0.0;
7216 description { state: "disabled_visible" 0.0;
7217 inherit: "default" 0.0;
7218 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
7221 description { state: "focused" 0.0;
7222 inherit: "default" 0.0;
7224 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7230 ////////////////////////////////////////////////////////////////////////
7231 group { name: "elm/button/base/bubble_sent/multiline";
7232 inherit: "elm/button/base/bubble_sent";
7234 style { name: "bubble_sent_multiline";
7235 base: "font=Tizen:style=Regular font_size="BUTTON_SENT_BUBBLE_TEXT_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
7242 part { name: "elm.text";
7245 effect: FAR_SHADOW BOTTOM;
7248 description { state: "default" 0.0;
7253 to_x: "padding_after_icon";
7254 to_y: "padding_left_top";
7258 to: "padding_right_bottom";
7260 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
7261 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7263 style: "bubble_sent_multiline";
7266 description { state: "visible" 0.0;
7267 inherit: "default" 0.0;
7270 description { state: "clicked" 0.0;
7271 inherit: "default" 0.0;
7273 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
7275 description { state: "disabled" 0.0;
7276 inherit: "default" 0.0;
7278 description { state: "disabled_visible" 0.0;
7279 inherit: "default" 0.0;
7280 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
7283 description { state: "focused" 0.0;
7284 inherit: "default" 0.0;
7286 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7292 ///////////////////////////////////////////////////////////////////////
7293 group { name: "elm/button/base/bubble_receive";
7294 inherit: "elm/button/base/style1";
7296 image: "00_messagebubble_button_receive.png" COMP;
7297 image: "00_messagebubble_button_receive_press.png" COMP;
7298 image: "00_messagebubble_button_receive_dim.png" COMP;
7301 part { name: "button_image";
7303 description { state: "default" 0.0;
7305 normal: "00_messagebubble_button_receive.png";
7306 border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
7310 description { state: "clicked" 0.0;
7311 inherit: "default" 0.0;
7312 image.normal: "00_messagebubble_button_receive_press.png";
7314 description { state: "disabled" 0.0;
7315 inherit: "default" 0.0;
7316 image.normal: "00_messagebubble_button_receive_dim.png";
7318 description { state: "focused" 0.0;
7319 inherit: "default" 0.0;
7320 image.normal: "00_messagebubble_button_receive_press.png";
7323 part { name: "elm.text";
7326 effect: SHADOW BOTTOM;
7329 description { state: "default" 0.0;
7333 to_x: "padding_after_icon";
7334 to_y: "padding_left_top";
7338 to: "padding_right_bottom";
7340 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
7341 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7343 font: "Tizen:style=Regular";
7344 size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
7347 text_class: "tizen";
7350 description { state: "visible" 0.0;
7351 inherit: "default" 0.0;
7354 description { state: "clicked" 0.0;
7355 inherit: "default" 0.0;
7357 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
7359 description { state: "disabled" 0.0;
7360 inherit: "default" 0.0;
7362 description { state: "disabled_visible" 0.0;
7363 inherit: "default" 0.0;
7364 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
7367 description { state: "focused" 0.0;
7368 inherit: "default" 0.0;
7370 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7376 ///////////////////////////////////////////////////////////////////////
7377 group { name: "elm/button/base/bubble_receive/multiline";
7378 inherit: "elm/button/base/bubble_receive";
7380 style { name: "bubble_receive_multiline";
7381 base: "font=Tizen:style=Regular font_size="BUTTON_RECEIVE_BUBBLE_TEXT_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
7388 part { name: "elm.text";
7391 effect: SHADOW BOTTOM;
7394 description { state: "default" 0.0;
7399 to_x: "padding_after_icon";
7400 to_y: "padding_left_top";
7404 to: "padding_right_bottom";
7406 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
7407 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7409 style: "btn_style1_multiline";
7412 description { state: "visible" 0.0;
7413 inherit: "default" 0.0;
7416 description { state: "clicked" 0.0;
7417 inherit: "default" 0.0;
7419 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
7421 description { state: "disabled" 0.0;
7422 inherit: "default" 0.0;
7424 description { state: "disabled_visible" 0.0;
7425 inherit: "default" 0.0;
7426 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
7429 description { state: "focused" 0.0;
7430 inherit: "default" 0.0;
7432 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7438 ///////////////////////////////////////////////////////////////////////
7439 group { name: "elm/button/base/bubble_circle/receive";
7441 image: "00_messagebubble_circle_receive.png" COMP;
7442 image: "00_messagebubble_circle_receive_press.png" COMP;
7443 image: "00_messagebubble_circle_receive_dim.png" COMP;
7444 image: "00_button_right.png" COMP;
7445 image: "00_button_right_press.png" COMP;
7448 part { name: "button_image";
7450 description { state: "default" 0.0;
7451 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7452 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7453 image.normal: "00_messagebubble_circle_receive.png";
7456 state: "clicked" 0.0;
7457 inherit: "default" 0.0;
7458 image.normal: "00_messagebubble_circle_receive_press.png";
7461 state: "disabled" 0.0;
7462 inherit: "default" 0.0;
7463 image.normal: "00_messagebubble_circle_receive_dim.png";
7466 part { name: "image";
7468 clip_to: "icon_clipper";
7469 description { state: "default" 0.0;
7470 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7471 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7472 image.normal: "00_button_right.png";
7475 state: "clicked" 0.0;
7476 inherit: "default" 0.0;
7477 image.normal: "00_button_right_press.png";
7480 state: "disabled" 0.0;
7481 inherit: "default" 0.0;
7484 part { name: "icon_clipper";
7487 description { state: "default" 0.0;
7488 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
7490 description { state: "clicked" 0.0;
7491 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
7493 description { state: "disabled" 0.0;
7494 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
7497 part { name: "over1";
7499 ignore_flags: ON_HOLD;
7500 description { state: "default" 0.0;
7504 part { name: "over2";
7507 description { state: "default" 0.0;
7511 part { name: "disabler";
7513 description { state: "default" 0.0;
7517 description { state: "disabled" 0.0;
7518 inherit: "default" 0.0;
7524 program { name: "button_click";
7525 signal: "mouse,down,1";
7527 action: SIGNAL_EMIT "elm,action,press" "";
7528 after: "button_click_anim";
7530 program { name: "button_click_anim";
7531 action: STATE_SET "clicked" 0.0;
7532 target: "button_image";
7534 target: "icon_clipper";
7536 program { name: "button_double_click";
7537 signal: "mouse,down,1,double";
7539 after: "button_click_anim";
7541 program { name: "button_unclick";
7542 signal: "mouse,up,1";
7544 action: SIGNAL_EMIT "elm,action,unpress" "";
7545 after: "button_unclick_anim";
7547 program { name: "button_unclick_anim";
7548 action: STATE_SET "default" 0.0;
7549 target: "button_image";
7551 target: "icon_clipper";
7553 program { name: "touch_snd";
7554 signal: "mouse,clicked,1";
7556 action: PLAY_SAMPLE "touch_sound" 1.0;
7557 after: button_unclick3;
7559 program { name: "button_unclick3";
7560 action: SIGNAL_EMIT "elm,action,click" "";
7562 program { name: "disable";
7563 signal: "elm,state,disabled";
7565 action: STATE_SET "disabled" 0.0;
7567 target: "button_image";
7568 target: "icon_clipper";
7571 program { name: "enable";
7572 signal: "elm,state,enabled";
7574 action: STATE_SET "default" 0.0;
7576 target: "button_image";
7577 target: "icon_clipper";
7582 ///////////////////////////////////////////////////////////////////////
7583 group { name: "elm/button/base/bubble_circle/sent";
7585 image: "00_messagebubble_circle_sent.png" COMP;
7586 image: "00_messagebubble_circle_sent_press.png" COMP;
7587 image: "00_messagebubble_circle_sent_dim.png" COMP;
7588 image: "00_button_right.png" COMP;
7589 image: "00_button_right_press.png" COMP;
7592 part { name: "button_image";
7594 description { state: "default" 0.0;
7595 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7596 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7597 image.normal: "00_messagebubble_circle_sent.png";
7600 state: "clicked" 0.0;
7601 inherit: "default" 0.0;
7602 image.normal: "00_messagebubble_circle_sent_press.png";
7605 state: "disabled" 0.0;
7606 inherit: "default" 0.0;
7607 image.normal: "00_messagebubble_circle_sent_dim.png";
7610 part { name: "image";
7612 clip_to: "icon_clipper";
7613 description { state: "default" 0.0;
7614 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7615 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7616 image.normal: "00_button_right.png";
7619 state: "clicked" 0.0;
7620 inherit: "default" 0.0;
7621 image.normal: "00_button_right_press.png";
7624 state: "disabled" 0.0;
7625 inherit: "default" 0.0;
7628 part { name: "icon_clipper";
7631 description { state: "default" 0.0;
7632 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
7634 description { state: "clicked" 0.0;
7635 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
7637 description { state: "disabled" 0.0;
7638 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
7641 part { name: "over1";
7643 ignore_flags: ON_HOLD;
7644 description { state: "default" 0.0;
7648 part { name: "over2";
7651 description { state: "default" 0.0;
7655 part { name: "disabler";
7657 description { state: "default" 0.0;
7661 description { state: "disabled" 0.0;
7662 inherit: "default" 0.0;
7668 program { name: "button_click";
7669 signal: "mouse,down,1";
7671 action: SIGNAL_EMIT "elm,action,press" "";
7672 after: "button_click_anim";
7674 program { name: "button_click_anim";
7675 action: STATE_SET "clicked" 0.0;
7676 target: "button_image";
7678 target: "icon_clipper";
7680 program { name: "button_double_click";
7681 signal: "mouse,down,1,double";
7683 after: "button_click_anim";
7685 program { name: "button_unclick";
7686 signal: "mouse,up,1";
7688 action: SIGNAL_EMIT "elm,action,unpress" "";
7689 after: "button_unclick_anim";
7691 program { name: "button_unclick_anim";
7692 action: STATE_SET "default" 0.0;
7693 target: "button_image";
7695 target: "icon_clipper";
7697 program { name: "touch_snd";
7698 signal: "mouse,clicked,1";
7700 action: PLAY_SAMPLE "touch_sound" 1.0;
7701 after: button_unclick3;
7703 program { name: "button_unclick3";
7704 action: SIGNAL_EMIT "elm,action,click" "";
7706 program { name: "disable";
7707 signal: "elm,state,disabled";
7709 action: STATE_SET "disabled" 0.0;
7711 target: "button_image";
7712 target: "icon_clipper";
7714 program { name: "enable";
7715 signal: "elm,state,enabled";
7717 action: STATE_SET "default" 0.0;
7719 target: "button_image";
7720 target: "icon_clipper";
7725 //////////////////////////////////////////////////////////////////////////////////////
7726 group { name: "elm/button/base/editfield_rename";
7728 image: "00_edit_field_rename.png" COMP;
7731 part { name: "button_image";
7734 description { state: "default" 0.0;
7737 description { state: "clicked" 0.0;
7738 inherit: "default" 0.0;
7740 description { state: "disabled" 0.0;
7741 inherit: "default" 0.0;
7743 description { state: "focused" 0.0;
7744 inherit: "default" 0.0;
7747 part { name: "rename_button";
7750 clip_to: "rename_button.clipper";
7751 description { state: "default" 0.0;
7752 min: BUTTON_EDITFIELD_RENAME_BUTTON_MIN_MAX_INC;
7753 max: BUTTON_EDITFIELD_RENAME_BUTTON_MIN_MAX_INC;
7756 image.normal: "00_edit_field_rename.png";
7759 part { name: "rename_button.clipper";
7761 description { state: "default" 0.0;
7762 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7764 description { state: "clicked" 0.0;
7765 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7767 description { state: "disabled" 0.0;
7768 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7771 part { name: "over2";
7773 ignore_flags: ON_HOLD;
7774 description { state: "default" 0.0;
7778 part { name: "over3";
7781 description { state: "default" 0.0;
7785 part { name: "disabler";
7787 description { state: "default" 0.0;
7791 description { state: "disabled" 0.0;
7792 inherit: "default" 0.0;
7798 program { name: "button_click";
7799 signal: "mouse,down,1";
7801 action: SIGNAL_EMIT "elm,action,press" "";
7802 after: "button_click_anim";
7804 program { name: "button_click_anim";
7805 action: STATE_SET "clicked" 0.0;
7806 target: "button_image";
7807 target: "rename_button.clipper";
7809 program { name: "button_double_click";
7810 signal: "mouse,down,1,double";
7812 after: "button_click_anim";
7814 program { name: "button_unclick";
7815 signal: "mouse,up,1";
7817 action: SIGNAL_EMIT "elm,action,unpress" "";
7818 after: "button_unclick_anim";
7820 program { name: "button_unclick_anim";
7821 action: STATE_SET "default" 0.0;
7822 target: "button_image";
7823 target: "rename_button.clipper";
7825 program { name: "touch_snd";
7826 signal: "mouse,clicked,1";
7828 action: PLAY_SAMPLE "touch_sound" 1.0;
7829 after: "button_unclick3";
7831 program { name: "button_unclick3";
7832 action: SIGNAL_EMIT "elm,action,click" "";
7834 program { name: "disable";
7835 signal: "elm,state,disabled";
7837 action: STATE_SET "disabled" 0.0;
7838 target: "button_image";
7840 target: "rename_button.clipper";
7842 program { name: "enable";
7843 signal: "elm,state,enabled";
7845 action: STATE_SET "default" 0.0;
7846 target: "button_image";
7848 target: "rename_button.clipper";
7852 group { name: "elm/button/base/editfield_clear";
7854 image: "00_edit_field_clear.png" COMP;
7857 part { name: "button_image";
7860 description { state: "default" 0.0;
7863 description { state: "clicked" 0.0;
7864 inherit: "default" 0.0;
7866 description { state: "disabled" 0.0;
7867 inherit: "default" 0.0;
7869 description { state: "focused" 0.0;
7870 inherit: "default" 0.0;
7873 part { name: "clear_button";
7876 clip_to: "clear_button.clipper";
7877 description { state: "default" 0.0;
7878 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7879 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7882 image.normal: "00_edit_field_clear.png";
7885 part { name: "clear_button.clipper";
7887 description { state: "default" 0.0;
7888 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7890 description { state: "clicked" 0.0;
7891 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7893 description { state: "disabled" 0.0;
7894 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7897 part { name: "over2";
7899 ignore_flags: ON_HOLD;
7900 description { state: "default" 0.0;
7904 part { name: "over3";
7907 description { state: "default" 0.0;
7911 part { name: "disabler";
7913 description { state: "default" 0.0;
7917 description { state: "disabled" 0.0;
7918 inherit: "default" 0.0;
7924 program { name: "button_click";
7925 signal: "mouse,down,1";
7927 action: SIGNAL_EMIT "elm,action,press" "";
7928 after: "button_click_anim";
7930 program { name: "button_click_anim";
7931 action: STATE_SET "clicked" 0.0;
7932 target: "button_image";
7933 target: "clear_button.clipper";
7935 program { name: "button_double_click";
7936 signal: "mouse,down,1,double";
7938 after: "button_click_anim";
7940 program { name: "button_unclick";
7941 signal: "mouse,up,1";
7943 action: SIGNAL_EMIT "elm,action,unpress" "";
7944 after: "button_unclick_anim";
7946 program { name: "button_unclick_anim";
7947 action: STATE_SET "default" 0.0;
7948 target: "button_image";
7949 target: "clear_button.clipper";
7951 program { name: "touch_snd";
7952 signal: "mouse,clicked,1";
7954 action: PLAY_SAMPLE "touch_sound" 1.0;
7955 after: button_unclick3;
7957 program { name: "button_unclick3";
7958 action: SIGNAL_EMIT "elm,action,click" "";
7960 program { name: "disable";
7961 signal: "elm,state,disabled";
7963 action: STATE_SET "disabled" 0.0;
7964 target: "button_image";
7966 target: "clear_button.clipper";
7968 program { name: "enable";
7969 signal: "elm,state,enabled";
7971 action: STATE_SET "default" 0.0;
7972 target: "button_image";
7974 target: "clear_button.clipper";
7979 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
7980 group { name: "elm/button/base/"style_name; \
7982 item: "focus_highlight" "on"; \
7985 image: image_normal COMP; \
7988 part { name: "elm.swallow.content"; \
7991 description { state: "default" 0.0; \
7994 part { name: "focus_image"; \
7998 description { state: "default" 0.0; \
8001 normal: image_normal; \
8006 description { state: "focused" 0.0; \
8007 inherit: "default" 0.0; \
8011 part { name: "over2"; \
8014 ignore_flags: ON_HOLD; \
8015 description { state: "default" 0.0; \
8019 part { name: "over3"; \
8022 description { state: "default" 0.0; \
8028 program { name: "button_click"; \
8029 signal: "mouse,down,1"; \
8031 action: SIGNAL_EMIT "elm,action,press" ""; \
8033 program { name: "button_unclick"; \
8034 signal: "mouse,up,1"; \
8036 action: SIGNAL_EMIT "elm,action,unpress" ""; \
8038 program { name: "button_click3"; \
8039 signal: "mouse,clicked,1"; \
8041 action: SIGNAL_EMIT "elm,action,click" ""; \
8043 program { name: "action_focus"; \
8044 signal: "elm,action,focus_highlight,show"; \
8046 action: STATE_SET "focused" 0.0; \
8047 target: "focus_image"; \
8049 program { name: "action_unfocus"; \
8050 signal: "elm,action,focus_highlight,hide"; \
8052 action: STATE_SET "default" 0.0; \
8053 target: "focus_image"; \
8058 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
8059 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
8060 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
8061 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
8063 group { name: "elm/button/base/search_icon";
8065 image: "00_search_icon.png" COMP;
8068 part { name: "search_icon";
8071 clip_to: "search_icon.clipper";
8072 description { state: "default" 0.0;
8073 min: BUTTON_SEARCH_ICON_MIN_MAX_INC;
8074 max: BUTTON_SEARCH_ICON_MIN_MAX_INC;
8077 image.normal: "00_search_icon.png";
8080 part { name: "search_icon.clipper";
8082 description { state: "default" 0.0;
8083 color: BUTTON_SEARCH_ICON_CLIPPER_DEFAULT_COLOR_INC;
8085 description { state: "disabled" 0.0;
8086 color: BUTTON_SEARCH_ICON_CLIPPER_DISABLED_COLOR_INC;
8089 part { name: "over2";
8091 ignore_flags: ON_HOLD;
8092 description { state: "default" 0.0;
8096 part { name: "over3";
8099 description { state: "default" 0.0;
8103 part { name: "disabler";
8105 description { state: "default" 0.0;
8109 description { state: "disabled" 0.0;
8110 inherit: "default" 0.0;
8116 program { name: "button_click";
8117 signal: "mouse,down,1";
8119 action: SIGNAL_EMIT "elm,action,press" "";
8121 program { name: "button_double_click";
8122 signal: "mouse,down,1,double";
8125 program { name: "button_unclick";
8126 signal: "mouse,up,1";
8128 action: SIGNAL_EMIT "elm,action,unpress" "";
8130 program { name: "touch_snd";
8131 signal: "mouse,clicked,1";
8133 action: PLAY_SAMPLE "touch_sound" 1.0;
8134 after: "button_unclick3";
8136 program { name: "button_unclick3";
8137 action: SIGNAL_EMIT "elm,action,click" "";
8139 program { name: "disable";
8140 signal: "elm,state,disabled";
8142 action: STATE_SET "disabled" 0.0;
8144 target: "search_icon.clipper";
8146 program { name: "enable";
8147 signal: "elm,state,enabled";
8149 action: STATE_SET "default" 0.0;
8151 target: "search_icon.clipper";
8155 group { name: "elm/button/base/search_rename";
8156 inherit: "elm/button/base/editfield_rename";
8158 part { name: "rename_button";
8161 clip_to: "rename_button.clipper";
8162 description { state: "default" 0.0;
8163 min: BUTTON_SEARCH_RENAME_BUTTON_MIN_MAX_INC;
8164 max: BUTTON_SEARCH_RENAME_BUTTON_MIN_MAX_INC;
8167 image.normal: "00_edit_field_rename.png";
8173 group { name: "elm/button/base/search_clear";
8174 inherit: "elm/button/base/editfield_clear";
8176 part { name: "clear_button";
8179 clip_to: "clear_button.clipper";
8180 description { state: "default" 0.0;
8181 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
8182 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
8185 image.normal: "00_edit_field_clear.png";
8191 #undef BUTTON_STATE_ENABLED
8192 #undef BUTTON_STATE_DISABLED
8193 #undef BUTTON_LANDSCAPE_DISABLED
8194 #undef BUTTON_LANDSCAPE_ENABLED