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_popup_button_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; \
3028 image: 00_circle_button_focus.png COMP;\
3031 part { name: "button_image"; \
3033 description { state: "default" 0.0; \
3034 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3035 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3036 image.normal: "00_circle_button.png"; \
3038 description { state: "clicked" 0.0; \
3039 inherit: "default" 0.0; \
3040 image.normal: "00_circle_button_press.png"; \
3042 description { state: "disabled" 0.0; \
3043 inherit: "default" 0.0; \
3044 image.normal: "00_circle_button_dim.png"; \
3047 part { name: "button_center_part"; \
3050 clip_to: "icon_clipper"; \
3051 description { state: "default" 0.0; \
3052 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3053 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3054 image.normal: image_normal; \
3057 state: "clicked" 0.0; \
3058 inherit: "default" 0.0; \
3059 image.normal: image_press; \
3061 description { state: "disabled" 0.0; \
3062 inherit: "default" 0.0; \
3065 part { name: "focus_image"; \
3069 description { state: "default" 0.0; \
3070 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3071 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3073 rel1.to : "button_image"; \
3074 rel2.to : "button_image"; \
3076 normal: "00_circle_button_focus.png"; \
3080 description { state: "focused" 0.0; \
3081 inherit: "default" 0.0; \
3085 part { name: "icon_clipper"; \
3088 description { state: "default" 0.0; \
3089 color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
3091 description { state: "clicked" 0.0; \
3092 color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
3094 description { state: "disabled" 0.0; \
3095 color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
3098 part { name: "over1"; \
3101 ignore_flags: ON_HOLD; \
3102 description { state: "default" 0.0; \
3104 min: min_width min_height; \
3107 part { name: "over2"; \
3110 description { state: "default" 0.0; \
3114 part { name: "disabler"; \
3116 description { state: "default" 0.0; \
3120 description { state: "disabled" 0.0; \
3121 inherit: "default" 0.0; \
3127 program { name: "button_click"; \
3128 signal: "mouse,down,1"; \
3130 action: SIGNAL_EMIT "elm,action,press" ""; \
3131 after: "button_click_anim"; \
3133 program { name: "button_click_anim"; \
3134 action: STATE_SET "clicked" 0.0; \
3135 target: "button_image"; \
3136 target: "button_center_part"; \
3137 target: "icon_clipper"; \
3139 program { name: "button_double_click"; \
3140 signal: "mouse,down,1,double"; \
3142 after: "button_click_anim"; \
3144 program { name: "button_unclick"; \
3145 signal: "mouse,up,1"; \
3147 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3148 after: "button_unclick_anim"; \
3150 program { name: "button_unclick_anim"; \
3151 action: STATE_SET "default" 0.0; \
3152 target: "button_image"; \
3153 target: "button_center_part"; \
3154 target: "icon_clipper"; \
3156 program { name: "touch_snd"; \
3157 signal: "mouse,clicked,1"; \
3159 action: PLAY_SAMPLE "touch_sound" 1.0; \
3160 after: button_unclick3; \
3162 program { name: "button_unclick3"; \
3163 action: SIGNAL_EMIT "elm,action,click" ""; \
3165 program { name: "disable"; \
3166 signal: "elm,state,disabled"; \
3168 action: STATE_SET "disabled" 0.0; \
3169 target: "disabler"; \
3170 target: "button_image"; \
3171 target: "button_center_part"; \
3172 target: "icon_clipper"; \
3174 program { name: "enable"; \
3175 signal: "elm,state,enabled"; \
3177 action: STATE_SET "default" 0.0; \
3178 target: "disabler"; \
3179 target: "button_image"; \
3180 target: "button_center_part"; \
3181 target: "icon_clipper"; \
3183 program { name: "action_focus"; \
3184 signal: "elm,action,focus_highlight,show"; \
3186 action: STATE_SET "focused" 0.0; \
3187 target: "focus_image"; \
3189 program { name: "action_unfocus"; \
3190 signal: "elm,action,focus_highlight,hide"; \
3192 action: STATE_SET "default" 0.0; \
3193 target: "focus_image"; \
3197 ///////////////////////////////////////////////////////////////////////////////////////
3198 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)
3200 ///////////////////////////////////////////////////////////////////////////////////////
3201 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)
3203 ///////////////////////////////////////////////////////////////////////////////////////
3204 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)
3206 ///////////////////////////////////////////////////////////////////////////////////////
3207 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)
3209 ///////////////////////////////////////////////////////////////////////////////////////
3210 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)
3212 ///////////////////////////////////////////////////////////////////////////////////////
3213 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)
3215 ///////////////////////////////////////////////////////////////////////////////////////
3217 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
3218 group { name: "elm/button/base/contacts/"style_name; \
3219 alias: "elm/button/base/"style_name; \
3220 inherit: "elm/button/base/contacts/icon_plus"; \
3222 image: "00_circle_button_delete.png" COMP; \
3223 image: "00_circle_button_delete_press.png" COMP; \
3224 image: "00_circle_button_delete_dim.png" COMP; \
3225 image: "00_button_delete.png" COMP; \
3226 image: "00_button_delete_press.png" COMP; \
3229 part { name: "button_image"; \
3231 description { state: "default" 0.0; \
3232 image.normal: "00_circle_button_delete.png"; \
3234 description { state: "clicked" 0.0; \
3235 inherit: "default" 0.0; \
3236 image.normal: "00_circle_button_delete_press.png"; \
3238 description { state: "disabled" 0.0; \
3239 inherit: "default" 0.0; \
3240 image.normal: "00_circle_button_delete_dim.png"; \
3243 part { name: "button_center_part"; \
3246 clip_to: "icon_clipper"; \
3247 description { state: "default" 0.0; \
3248 image.normal: "00_button_delete.png"; \
3251 state: "clicked" 0.0; \
3252 inherit: "default" 0.0; \
3253 image.normal: "00_button_delete_press.png"; \
3255 description { state: "disabled" 0.0; \
3256 inherit: "default" 0.0; \
3259 part { name: "icon_clipper"; \
3262 description { state: "default" 0.0; \
3263 color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
3265 description { state: "clicked" 0.0; \
3266 color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
3268 description { state: "disabled" 0.0; \
3269 color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
3272 part { name: "over1"; \
3275 ignore_flags: ON_HOLD; \
3276 description { state: "default" 0.0; \
3278 min: min_width min_height; \
3284 ///////////////////////////////////////////////////////////////////////////////////////
3285 BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3287 ///////////////////////////////////////////////////////////////////////////////////////
3288 BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3290 ///////////////////////////////////////////////////////////////////////////////////////
3291 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
3292 group { name: "elm/button/base/"style_name; \
3294 item: "focus_highlight" "on"; \
3297 image: "00_button_01.png" COMP; \
3298 image: "00_button_01_press.png" COMP; \
3299 image: "00_button_01_dim.png" COMP; \
3300 image: image_normal COMP; \
3301 image: "00_button_01_focus.png" COMP; \
3304 part { name: "button_image";\
3307 description { state: "default" 0.0; \
3308 min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
3310 normal: "00_button_01.png"; \
3311 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3315 description { state: "clicked" 0.0; \
3316 inherit: "default" 0.0; \
3317 image.normal: "00_button_01_press.png"; \
3319 description { state: "disabled" 0.0; \
3320 inherit: "default" 0.0; \
3321 image.normal: "00_button_01_dim.png"; \
3324 part { name: "focus_image"; \
3328 description { state: "default" 0.0; \
3330 rel1.to : "button_image"; \
3331 rel2.to : "button_image"; \
3333 normal: "00_button_01_focus.png"; \
3334 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3338 description { state: "focused" 0.0; \
3339 inherit: "default" 0.0; \
3343 part { name: "padding_left_top"; \
3346 description { state: "default" 0.0; \
3348 rel2.relative: 0.0 0.0; \
3349 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3353 part { name: "padding_right_bottom"; \
3356 description { state: "default" 0.0; \
3358 rel1.relative: 1.0 1.0; \
3359 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3363 part { name: "jump_image"; \
3366 description { state: "default" 0.0; \
3367 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3368 max: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3370 relative: 1.0 0.0; \
3371 to_x: "padding_left_top"; \
3374 relative: 0.0 1.0; \
3375 to_x: "padding_right_bottom"; \
3377 image.normal: image_normal; \
3379 aspect_preference: VERTICAL; \
3380 color: BUTTON_JUMP_ICON_NORMAL_COLOR_INC; \
3382 description { state: "clicked" 0.0; \
3383 inherit: "default" 0.0; \
3384 color: BUTTON_JUMP_ICON_PRESSED_COLOR_INC; \
3386 description { state: "disabled" 0.0; \
3387 inherit: "default" 0.0; \
3388 color: BUTTON_JUMP_ICON_DIM_COLOR_INC; \
3391 part { name: "over1"; \
3394 ignore_flags: ON_HOLD; \
3395 description { state: "default" 0.0; \
3397 rel1.relative: 0.0 0.0; \
3398 rel2.relative: 1.0 1.0; \
3401 part { name: "over2"; \
3404 description { state: "default" 0.0; \
3410 program { name: "button_click"; \
3411 signal: "mouse,down,1"; \
3413 action: SIGNAL_EMIT "elm,action,press" ""; \
3414 after: "button_click_anim"; \
3416 program { name: "button_click_anim"; \
3417 action: STATE_SET "clicked" 0.0; \
3418 target: "button_image"; \
3419 target: "jump_image"; \
3421 program { name: "button_double_click"; \
3422 signal: "mouse,down,1,double"; \
3424 after: "button_click_anim"; \
3426 program { name: "button_unclick"; \
3427 signal: "mouse,up,1"; \
3429 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3430 after: "button_unclick_anim"; \
3432 program { name: "button_unclick_anim"; \
3433 action: STATE_SET "default" 0.0; \
3434 target: "button_image"; \
3435 target: "jump_image"; \
3437 program { name: "touch_snd"; \
3438 signal: "mouse,clicked,1"; \
3440 action: PLAY_SAMPLE "touch_sound" 1.0; \
3441 after: button_unclick3; \
3443 program { name: "button_unclick3"; \
3444 action: SIGNAL_EMIT "elm,action,click" ""; \
3446 program { name: "disable"; \
3447 signal: "elm,state,disabled"; \
3449 action: STATE_SET "disabled" 0.0; \
3450 target: "button_image"; \
3451 target: "jump_image"; \
3453 program { name: "enable"; \
3454 signal: "elm,state,enabled"; \
3456 action: STATE_SET "default" 0.0; \
3457 target: "button_image"; \
3458 target: "jump_image"; \
3460 program { name: "action_focus"; \
3461 signal: "elm,action,focus_highlight,show"; \
3463 action: STATE_SET "focused" 0.0; \
3464 target: "focus_image"; \
3466 program { name: "action_unfocus"; \
3467 signal: "elm,action,focus_highlight,hide"; \
3469 action: STATE_SET "default" 0.0; \
3470 target: "focus_image"; \
3475 ////////////////////////////////////////////////////////////////////////
3476 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3477 ////////////////////////////////////////////////////////////////////////
3478 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3480 ////////////////////////////////////////////////////////////////////////
3481 group { name: "elm/button/base/default";
3483 item: "focus_highlight" "on";
3486 image: "00_button_01.png" COMP;
3487 image: "00_button_01_press.png" COMP;
3488 image: "00_button_01_dim.png" COMP;
3489 image: "00_button_01_focus.png" COMP;
3492 public button_state = BUTTON_STATE_ENABLED;
3495 part { name: "button_image";
3497 description { state: "default" 0.0;
3498 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3500 normal: "00_button_01.png";
3501 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3505 description { state: "clicked" 0.0;
3506 inherit: "default" 0.0;
3507 image.normal: "00_button_01_press.png";
3509 description { state: "disabled" 0.0;
3510 inherit: "default" 0.0;
3511 image.normal: "00_button_01_dim.png";
3513 description { state: "focused" 0.0;
3514 inherit: "default" 0.0;
3515 image.normal: "00_button_01_press.png";
3518 part { name: "focus_image";
3522 description { state: "default" 0.0;
3524 rel1.to : "button_image";
3525 rel2.to : "button_image";
3527 normal: "00_button_01_focus.png";
3528 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3532 description { state: "focused" 0.0;
3533 inherit: "default" 0.0;
3537 part { name: "padding_left_top";
3541 description { state: "default" 0.0;
3543 rel2.relative: 0.0 0.0;
3544 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3549 part { name: "padding_right_bottom";
3553 description { state: "default" 0.0;
3555 rel1.relative: 1.0 1.0;
3556 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3561 part { name: "padding_icon_text";
3565 description { state: "default" 0.0; //when only icon or no icon is there
3571 to: "elm.swallow.content";
3573 rel2.to: "elm.swallow.content";
3576 description { state: "icononly" 0.0;
3577 inherit: "default" 0.0;
3579 description { state: "visible" 0.0; //when icon is visible
3580 inherit: "default" 0.0;
3581 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3584 part { name: "elm.swallow.content";
3588 description { state: "default" 0.0;
3594 to: "padding_left_top";
3598 to_x: "padding_left_top";
3599 to_y: "padding_right_bottom";
3602 description { state: "visible" 0.0;
3603 inherit: "default" 0.0;
3606 aspect_preference: VERTICAL;
3608 description { state: "icononly" 0.0;
3609 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3612 to_x: "padding_left_top";
3616 to_x: "padding_right_bottom";
3619 aspect_preference: VERTICAL;
3622 part { name: "elm.text";
3627 effect: SHADOW BOTTOM;
3628 description { state: "default" 0.0;
3633 to_x: "padding_icon_text";
3634 to_y: "padding_left_top";
3638 to: "padding_right_bottom";
3640 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3641 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
3643 font: "Tizen:style=Regular";
3644 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3646 text_class: "tizen";
3649 description { state: "visible" 0.0;
3650 inherit: "default" 0.0;
3652 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3654 description { state: "clicked" 0.0;
3655 inherit: "default" 0.0;
3657 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3658 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3660 description { state: "disabled" 0.0;
3661 inherit: "default" 0.0;
3663 description { state: "disabled_visible" 0.0;
3664 inherit: "default" 0.0;
3665 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3667 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3669 description { state: "focused" 0.0;
3670 inherit: "default" 0.0;
3673 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3676 part { name: "over2";
3679 ignore_flags: ON_HOLD;
3680 description { state: "default" 0.0;
3684 part { name: "over3";
3687 description { state: "default" 0.0;
3691 part { name: "disclip";
3693 description { state: "default" 0.0;
3694 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3696 description { state: "disabled" 0.0;
3697 inherit: "default" 0.0;
3698 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3701 part { name: "disabler";
3703 description { state: "default" 0.0;
3707 description { state: "disabled" 0.0;
3708 inherit: "default" 0.0;
3714 program { name: "button_click";
3715 signal: "mouse,down,1";
3717 action: SIGNAL_EMIT "elm,action,press" "";
3718 after: "button_click_anim";
3720 program { name: "button_click_anim";
3721 action: STATE_SET "clicked" 0.0;
3722 target: "button_image";
3723 after: "text_clicked";
3725 program { name: "text_clicked";
3729 get_state(PART:"elm.text", st, 30, vl);
3730 if (!strcmp(st, "visible"))
3731 set_state(PART:"elm.text", "clicked", 0.0);
3734 program { name: "button_double_click";
3735 signal: "mouse,down,1,double";
3737 after: "button_click_anim";
3739 program { name: "button_unpress";
3740 action: SIGNAL_EMIT "elm,action,unpress" "";
3742 program { name: "button_mouseout_clicked";
3743 signal: "mouse,up,1";
3748 get_state(PART:"elm.swallow.content", st, 30, vl);
3749 if (strcmp(st, "icononly"))
3751 emit("elm,action,default,text,set", "");
3752 set_state(PART:"elm.text", "visible", 0.0);
3754 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3755 set_state(PART:"button_image", "default", 0.0);
3757 after: button_unpress;
3759 program { name: "touch_snd";
3760 signal: "mouse,clicked,1";
3762 action: PLAY_SAMPLE "touch_sound" 1.0;
3763 after: button_unclick3;
3765 program { name: "button_unclick3";
3766 action: SIGNAL_EMIT "elm,action,click" "";
3768 program { name: "text_show";
3769 signal: "elm,state,text,visible";
3774 get_state(PART:"elm.swallow.content", st, 30, vl);
3775 if (!strcmp(st, "icononly"))
3777 set_state(PART:"elm.swallow.content", "visible", 0.0);
3778 set_state(PART:"padding_icon_text", "visible", 0.0);
3780 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3781 set_state(PART:"elm.text", "visible", 0.0);
3783 set_state(PART:"elm.text", "disabled_visible", 0.0);
3786 program { name: "text_hide";
3787 signal: "elm,state,text,hidden";
3792 get_state(PART:"elm.swallow.content", st, 30, vl);
3793 if (!strcmp(st, "visible"))
3795 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3796 set_state(PART:"padding_icon_text", "icononly", 0.0);
3798 set_state(PART:"elm.text", "default", 0.0);
3801 program { name: "icon_show";
3802 signal: "elm,state,icon,visible";
3807 get_state(PART:"elm.text", st, 30, vl);
3808 if (!strcmp(st, "visible"))
3810 set_state(PART:"elm.swallow.content", "visible", 0.0);
3811 set_state(PART:"padding_icon_text", "visible", 0.0);
3815 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3816 set_state(PART:"padding_icon_text", "icononly", 0.0);
3820 program { name: "icon_hide";
3821 signal: "elm,state,icon,hidden";
3823 action: STATE_SET "default" 0.0;
3824 target: "elm.swallow.content";
3825 target: "padding_icon_text";
3827 program { name: "disable";
3828 signal: "elm,state,disabled";
3830 action: STATE_SET "disabled" 0.0;
3831 target: "button_image";
3834 after: "disable_text";
3836 program { name: "disable_text";
3840 get_state(PART:"elm.text", st, 30, vl);
3841 if (!strcmp(st, "visible"))
3842 set_state(PART:"elm.text", "disabled_visible", 0.0);
3844 set_state(PART:"elm.text", "disabled", 0.0);
3845 set_int(button_state, BUTTON_STATE_DISABLED);
3848 program { name: "enable";
3849 signal: "elm,state,enabled";
3851 action: STATE_SET "default" 0.0;
3852 target: "button_image";
3855 after: "enable_text";
3857 program { name: "enable_text";
3861 get_state(PART:"elm.text", st, 30, vl);
3862 if (!strcmp(st, "disabled_visible"))
3863 set_state(PART:"elm.text", "visible", 0.0);
3865 set_state(PART:"elm.text", "default", 0.0);
3866 set_int(button_state, BUTTON_STATE_ENABLED);
3869 program { name: "action_focus";
3870 signal: "elm,action,focus_highlight,show";
3872 action: STATE_SET "focused" 0.0;
3873 target: "focus_image";
3875 program { name: "action_unfocus";
3876 signal: "elm,action,focus_highlight,hide";
3878 action: STATE_SET "default" 0.0;
3879 target: "focus_image";
3884 ///////////////////////////////////////////////////////////////////////////////////////
3885 group { name: "elm/button/base/multiline";
3886 alias: "elm/button/base/text_only/multiline";
3887 inherit: "elm/button/base/default";
3889 style { name: "btn_multiline_style";
3890 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";
3897 part { name: "button_image";
3899 description { state: "default" 0.0;
3900 min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3902 normal: "00_button_01.png";
3903 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3907 description { state: "clicked" 0.0;
3908 inherit: "default" 0.0;
3909 image.normal: "00_button_01_press.png";
3911 description { state: "disabled" 0.0;
3912 inherit: "default" 0.0;
3913 image.normal: "00_button_01_dim.png";
3915 description { state: "focused" 0.0;
3916 inherit: "default" 0.0;
3917 image.normal: "00_button_01_press.png";
3920 part { name: "padding_left_top";
3924 description { state: "default" 0.0;
3926 rel2.relative: 0.0 0.0;
3927 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3932 part { name: "padding_right_bottom";
3936 description { state: "default" 0.0;
3938 rel1.relative: 1.0 1.0;
3939 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3944 part { name: "elm.text";
3949 description { state: "default" 0.0;
3953 to_x: "padding_icon_text";
3954 to_y: "padding_left_top";
3958 to: "padding_right_bottom";
3960 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3962 style: "btn_multiline_style";
3965 description { state: "visible" 0.0;
3966 inherit: "default" 0.0;
3970 description { state: "clicked" 0.0;
3971 inherit: "default" 0.0;
3974 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3976 description { state: "disabled" 0.0;
3977 inherit: "default" 0.0;
3979 description { state: "disabled_visible" 0.0;
3980 inherit: "default" 0.0;
3981 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3985 description { state: "focused" 0.0;
3986 inherit: "default" 0.0;
3989 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3995 ///////////////////////////////////////////////////////////////////////////////////////
3996 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
3997 group { name: "elm/button/base/"style_name; \
3999 item: "focus_highlight" "on"; \
4002 image: image_normal COMP; \
4003 image: image_press COMP; \
4004 image: image_dim COMP; \
4005 image: "00_button_01.png" COMP; \
4006 image: "00_button_01_press.png" COMP; \
4007 image: "00_button_01_focus.png" COMP; \
4010 part { name: "button_image"; \
4012 description { state: "default" 0.0; \
4013 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4014 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4016 normal: "00_button_01.png"; \
4017 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
4022 state: "clicked" 0.0; \
4023 inherit: "default" 0.0; \
4024 image.normal: "00_button_01_press.png"; \
4027 state: "disabled" 0.0; \
4028 inherit: "default" 0.0; \
4029 image.normal: "00_button_01_dim.png"; \
4032 state: "focused" 0.0; \
4033 inherit: "default" 0.0; \
4034 image.normal: "00_button_01_press.png"; \
4037 part { name: "focus_image"; \
4041 description { state: "default" 0.0; \
4042 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4043 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4045 rel1.to : "button_image"; \
4046 rel2.to : "button_image"; \
4048 normal: "00_button_01_focus.png"; \
4049 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
4053 description { state: "focused" 0.0; \
4054 inherit: "default" 0.0; \
4058 part { name: "button_center_part"; \
4060 clip_to: "icon_clipper"; \
4061 description { state: "default" 0.0; \
4062 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
4063 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
4064 image.normal: image_normal; \
4067 state: "clicked" 0.0; \
4068 inherit: "default" 0.0; \
4069 image.normal: image_press; \
4072 state: "disabled" 0.0; \
4073 inherit: "default" 0.0; \
4076 part { name: "icon_clipper"; \
4079 description { state: "default" 0.0; \
4080 color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
4082 description { state: "clicked" 0.0; \
4083 color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
4085 description { state: "disabled" 0.0; \
4086 color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
4089 part { name: "over1"; \
4091 ignore_flags: ON_HOLD; \
4092 description { state: "default" 0.0; \
4096 part { name: "over2"; \
4099 description { state: "default" 0.0; \
4103 part { name: "disabler"; \
4105 description { state: "default" 0.0; \
4109 description { state: "disabled" 0.0; \
4110 inherit: "default" 0.0; \
4116 program { name: "button_click"; \
4117 signal: "mouse,down,1"; \
4119 action: SIGNAL_EMIT "elm,action,press" ""; \
4120 after: "button_click_anim"; \
4122 program { name: "button_click_anim"; \
4123 action: STATE_SET "clicked" 0.0; \
4124 target: "button_image"; \
4125 target: "button_center_part"; \
4126 target: ""icon_clipper""; \
4128 program { name: "button_double_click"; \
4129 signal: "mouse,down,1,double"; \
4131 after: "button_click_anim"; \
4133 program { name: "button_unclick"; \
4134 signal: "mouse,up,1"; \
4136 action: SIGNAL_EMIT "elm,action,unpress" ""; \
4137 after: "button_unclick_anim"; \
4139 program { name: "button_unclick_anim"; \
4140 action: STATE_SET "default" 0.0; \
4141 target: "button_image"; \
4142 target: "button_center_part"; \
4143 target: ""icon_clipper""; \
4145 program { name: "touch_snd"; \
4146 signal: "mouse,clicked,1"; \
4148 action: PLAY_SAMPLE "touch_sound" 1.0; \
4149 after: button_unclick3; \
4151 program { name: "button_unclick3"; \
4152 action: SIGNAL_EMIT "elm,action,click" ""; \
4154 program { name: "disable"; \
4155 signal: "elm,state,disabled"; \
4157 action: STATE_SET "disabled" 0.0; \
4158 target: "disabler"; \
4159 target: "button_image"; \
4160 target: "button_center_part"; \
4161 target: ""icon_clipper""; \
4163 program { name: "enable"; \
4164 signal: "elm,state,enabled"; \
4166 action: STATE_SET "default" 0.0; \
4167 target: "disabler"; \
4168 target: "button_image"; \
4169 target: "button_center_part"; \
4170 target: ""icon_clipper""; \
4172 program { name: "action_focus"; \
4173 signal: "elm,action,focus_highlight,show"; \
4175 action: STATE_SET "focused" 0.0; \
4176 target: "focus_image"; \
4178 program { name: "action_unfocus"; \
4179 signal: "elm,action,focus_highlight,hide"; \
4181 action: STATE_SET "default" 0.0; \
4182 target: "focus_image"; \
4186 ///////////////////////////////////////////////////////////////////////////////////////
4187 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
4188 ///////////////////////////////////////////////////////////////////////////////////////
4189 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
4190 ///////////////////////////////////////////////////////////////////////////////////////
4192 group { name: "elm/button/base/multibuttonentry";
4193 alias: "elm/button/base/text_only/multibuttonentry";
4195 item: "focus_highlight" "on";
4198 image: "00_contacts_button.png" COMP;
4199 image: "00_contacts_button_press.png" COMP;
4200 image: "00_contacts_button_focus.png" COMP;
4203 public button_state = BUTTON_STATE_ENABLED;
4206 part { name: "button_image";
4208 description { state: "default" 0.0;
4210 to_x: "padding.left";
4214 to_x: "padding.right";
4217 min: BUTTON_CONTACT_BG_MIN_INC;
4219 normal: "00_contacts_button.png";
4220 border: BUTTON_CONTACT_BG_BORDER_INC;
4224 description { state: "clicked" 0.0;
4225 inherit: "default" 0.0;
4226 image.normal: "00_contacts_button_press.png";
4228 description { state: "disabled" 0.0;
4229 inherit: "default" 0.0;
4231 description { state: "focused" 0.0;
4232 inherit: "default" 0.0;
4233 image.normal: "00_contacts_button_press.png";
4236 part { name: "focus_image";
4240 description { state: "default" 0.0;
4242 rel1.to : "button_image";
4243 rel2.to : "button_image";
4245 normal: "00_contacts_button_focus.png";
4246 border: BUTTON_CONTACT_BG_BORDER_INC;
4250 description { state: "focused" 0.0;
4251 inherit: "default" 0.0;
4255 part { name: "padding.left";
4258 description { state: "default" 0.0;
4260 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
4270 part { name: "padding.right";
4273 description { state: "default" 0.0;
4275 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
4285 part { name: "elm.text";
4289 description { state: "default" 0.0;
4292 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
4294 font: "Tizen:style=Regular";
4295 size: BUTTON_CONTACT_FONT_SIZE_INC;
4297 text_class: "tizen";
4300 description { state: "visible" 0.0;
4301 inherit: "default" 0.0;
4305 description { state: "clicked" 0.0;
4306 inherit: "default" 0.0;
4309 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
4311 description { state: "disabled" 0.0;
4312 inherit: "default" 0.0;
4314 description { state: "disabled_visible" 0.0;
4315 inherit: "default" 0.0;
4316 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
4320 description { state: "focused" 0.0;
4321 inherit: "default" 0.0;
4324 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
4327 part { name: "over1";
4330 description { state: "default" 0.0;
4331 rel2.relative: 1.0 0.5;
4335 part { name: "over2";
4338 ignore_flags: ON_HOLD;
4339 description { state: "default" 0.0;
4340 rel1.to: "button_image";
4341 rel2.to: "button_image";
4345 part { name: "over3";
4348 description { state: "default" 0.0;
4349 rel1.to: "button_image";
4350 rel2.to: "button_image";
4354 part { name: "disabler";
4356 description { state: "default" 0.0;
4357 rel1.to: "button_image";
4358 rel2.to: "button_image";
4362 description { state: "disabled" 0.0;
4363 inherit: "default" 0.0;
4369 program { name: "button_click";
4370 signal: "mouse,down,1";
4372 action: SIGNAL_EMIT "elm,action,press" "";
4373 after: "button_click_anim";
4375 program { name: "button_click_anim";
4376 action: STATE_SET "clicked" 0.0;
4377 target: "button_image";
4380 program { name: "button_double_click";
4381 signal: "mouse,down,1,double";
4383 after: "button_click_anim";
4385 program { name: "button_unpress";
4386 action: SIGNAL_EMIT "elm,action,unpress" "";
4388 program { name: "button_mouseout_clicked";
4389 signal: "mouse,up,1";
4394 get_state(PART:"elm.text", st, 30, vl);
4395 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4397 emit("elm,action,default,text,set", "");
4398 set_state(PART:"elm.text", "visible", 0.0);
4400 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4401 set_state(PART:"button_image", "default", 0.0);
4403 after: button_unpress;
4405 program { name: "touch_snd";
4406 signal: "mouse,clicked,1";
4408 action: PLAY_SAMPLE "touch_sound" 1.0;
4409 after: button_unclick3;
4411 program { name: "button_unclick3";
4412 action: SIGNAL_EMIT "elm,action,click" "";
4414 program { name: "text_show";
4415 signal: "elm,state,text,visible";
4418 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4419 set_state(PART:"elm.text", "visible", 0.0);
4421 set_state(PART:"elm.text", "disabled_visible", 0.0);
4424 program { name: "text_hide";
4425 signal: "elm,state,text,hidden";
4427 action: STATE_SET "default" 0.0;
4430 program { name: "disable";
4431 signal: "elm,state,disabled";
4433 action: STATE_SET "disabled" 0.0;
4434 target: "button_image";
4436 after: "disable_text";
4438 program { name: "disable_text";
4442 get_state(PART:"elm.text", st, 30, vl);
4443 if (!strcmp(st, "visible"))
4444 set_state(PART:"elm.text", "disabled_visible", 0.0);
4446 set_state(PART:"elm.text", "disabled", 0.0);
4447 set_int(button_state, BUTTON_STATE_DISABLED);
4450 program { name: "enable";
4451 signal: "elm,state,enabled";
4453 action: STATE_SET "default" 0.0;
4454 target: "button_image";
4456 after: "enable_text";
4458 program { name: "enable_text";
4462 get_state(PART:"elm.text", st, 30, vl);
4463 if (!strcmp(st, "disabled_visible"))
4464 set_state(PART:"elm.text", "visible", 0.0);
4466 set_state(PART:"elm.text", "default", 0.0);
4467 set_int(button_state, BUTTON_STATE_ENABLED);
4470 program { name: "action_focus";
4471 signal: "elm,action,focus_highlight,show";
4473 action: STATE_SET "focused" 0.0;
4474 target: "focus_image";
4476 program { name: "action_unfocus";
4477 signal: "elm,action,focus_highlight,hide";
4479 action: STATE_SET "default" 0.0;
4480 target: "focus_image";
4485 ///////////////////////////////////////////////////////////////////////////////////////
4486 group { name: "elm/button/base/naviframe/back_btn/default";
4487 alias: "elm/button/base/naviframe/prev_btn/default";
4488 alias: "elm/button/base/naviframe/end_btn/default";
4490 item: "focus_highlight" "on";
4493 image: "00_icon_back.png" COMP;
4494 image: "00_icon_SIP_close.png" COMP;
4495 image: "00_icon_focus.png" COMP;
4498 part { name: "button_image";
4501 description { state: "default" 0.0;
4502 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4503 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4506 description { state: "landscape" 0.0;
4507 min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4508 max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4512 part { name: "focus_image";
4516 description { state: "default" 0.0;
4518 rel1.to : "button_image";
4519 rel2.to : "button_image";
4521 normal: "00_icon_focus.png";
4525 description { state: "focused" 0.0;
4526 inherit: "default" 0.0;
4530 part { name: "back_button";
4533 clip_to: "back_button.clipper";
4534 description { state: "default" 0.0;
4535 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4536 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4538 rel1.to: "button_image";
4539 rel2.to: "button_image";
4540 image.normal: "00_icon_back.png";
4542 description { state: "compress" 0.0;
4543 inherit: "default" 0.0;
4544 image.normal: "00_icon_SIP_close.png";
4547 part { name: "back_button.clipper";
4549 description { state: "default" 0.0;
4550 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4552 description { state: "clicked" 0.0;
4553 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4555 description { state: "disabled" 0.0;
4556 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4559 part { name: "over2";
4561 ignore_flags: ON_HOLD;
4562 description { state: "default" 0.0;
4566 part { name: "over3";
4569 description { state: "default" 0.0;
4573 part { name: "disabler";
4575 description { state: "default" 0.0;
4579 description { state: "disabled" 0.0;
4580 inherit: "default" 0.0;
4586 program { name: "button_click";
4587 signal: "mouse,down,1";
4589 action: SIGNAL_EMIT "elm,action,press" "";
4590 after: "button_click_anim";
4592 program { name: "button_click_anim";
4594 set_state(PART:"back_button.clipper", "clicked", 0.0);
4597 program { name: "button_double_click";
4598 signal: "mouse,down,1,double";
4600 after: "button_click_anim";
4602 program { name: "button_unclick";
4603 signal: "mouse,up,1";
4605 action: SIGNAL_EMIT "elm,action,unpress" "";
4606 after: "button_unclick_anim";
4608 program { name: "button_unclick_anim";
4610 set_state(PART:"back_button.clipper", "default", 0.0);
4613 program { name: "touch_snd";
4614 signal: "mouse,clicked,1";
4616 action: PLAY_SAMPLE "touch_sound" 1.0;
4617 after: button_unclick3;
4619 program { name: "button_unclick3";
4620 action: SIGNAL_EMIT "elm,action,click" "";
4622 program { name: "disable";
4623 signal: "elm,state,disabled";
4626 set_state(PART:"back_button.clipper", "disabled", 0.0);
4629 program { name: "enable";
4630 signal: "elm,state,enabled";
4633 set_state(PART:"back_button.clipper", "default", 0.0);
4636 program { name: "change_to_landscape";
4637 signal: "elm,state,landscape";
4639 action: STATE_SET "landscape" 0.0;
4640 target: "button_image";
4642 program { name: "change_to_portrait";
4643 signal: "elm,state,portrait";
4645 action: STATE_SET "default" 0.0;
4646 target: "button_image";
4648 program { name: "landscape_mode";
4650 signal: "elm,state,orient,90";
4651 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4653 program { name: "landscape_mode2";
4655 signal: "elm,state,orient,270";
4656 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4658 program { name: "portrait_mode";
4660 signal: "elm,state,orient,0";
4661 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4663 program { name: "portrait_mode2";
4665 signal: "elm,state,orient,180";
4666 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4668 program { name: "display_compress_mode";
4669 signal: "elm,state,display,compress";
4671 action: STATE_SET "compress" 0.0;
4672 target: "back_button";
4674 program { name: "display_default_mode";
4675 signal: "elm,state,display,default";
4677 action: STATE_SET "default" 0.0;
4678 target: "back_button";
4680 program { name: "action_focus";
4681 signal: "elm,action,focus_highlight,show";
4683 action: STATE_SET "focused" 0.0;
4684 target: "focus_image";
4686 program { name: "action_unfocus";
4687 signal: "elm,action,focus_highlight,hide";
4689 action: STATE_SET "default" 0.0;
4690 target: "focus_image";
4695 //////////////////////////////////////////////////////////////
4696 group { name: "elm/button/base/naviframe/toolbar/default";
4697 alias: "elm/button/base/naviframe/title/default";
4699 item: "focus_highlight" "on";
4702 image: "00_toolbar_button.png" COMP;
4703 image: "00_toolbar_button_press.png" COMP;
4704 image: "00_toolbar_button_dim.png" COMP;
4705 image: "00_toolbar_button_focus.png" COMP;
4708 style { name: "btn_naviframe_toolbar";
4709 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";
4714 style { name: "btn_naviframe_toolbar_pressed";
4715 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";
4720 style { name: "btn_naviframe_toolbar_disabled";
4721 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";
4728 public button_state = BUTTON_STATE_ENABLED;
4729 public landscape_state = BUTTON_LANDSCAPE_DISABLED;
4732 part { name: "button_bg";
4735 description { state: "default" 0.0;
4736 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
4737 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MAX_INC;
4739 rel1.to: "padding_text_left_top";
4740 rel2.to: "padding_text_right_bottom";
4742 description { state: "landscape" 0.0;
4743 inherit: "default" 0.0;
4744 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
4745 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
4748 part { name: "button_image";
4750 description { state: "default" 0.0;
4751 rel1.to: "button_bg";
4752 rel2.to: "button_bg";
4754 normal: "00_toolbar_button.png";
4755 border: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_PRESSED_BORDER_INC;
4759 description { state: "clicked" 0.0;
4760 inherit: "default" 0.0;
4761 image.normal: "00_toolbar_button_press.png";
4763 description { state: "disabled" 0.0;
4764 inherit: "default" 0.0;
4765 image.normal: "00_toolbar_button_dim.png";
4767 description { state: "focused" 0.0;
4768 inherit: "default" 0.0;
4769 image.normal: "00_toolbar_button_press.png";
4772 part { name: "focus_image";
4776 description { state: "default" 0.0;
4778 rel1.to : "button_image";
4779 rel2.to : "button_image";
4781 normal: "00_toolbar_button_focus.png";
4782 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4786 description { state: "focused" 0.0;
4787 inherit: "default" 0.0;
4791 part { name: "padding_left_top";
4795 description { state: "default" 0.0;
4798 rel2.relative: 0.0 0.0;
4799 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4803 part { name: "padding_right_bottom";
4807 description { state: "default" 0.0;
4809 rel1.relative: 1.0 1.0;
4810 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4815 part { name: "padding_text_left_top";
4819 description { state: "default" 0.0;
4821 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4823 rel1.to: "elm.text";
4831 part { name: "padding_text_right_bottom";
4835 description { state: "default" 0.0;
4836 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4843 rel2.to: "elm.text";
4847 part { name: "elm.text";
4852 description { state: "default" 0.0;
4855 min: BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_MIN_INC;
4858 to: "padding_left_top";
4862 to: "padding_right_bottom";
4868 style: "btn_naviframe_toolbar";
4871 description { state: "landscape" 0.0;
4872 inherit: "default" 0.0;
4873 min: BUTTON_NAVIFRAME_TOOLBAR_LANDSCAPE_TEXTBLOCK_MIN_INC;
4875 description { state: "visible" 0.0;
4876 inherit: "default" 0.0;
4879 description { state: "landscape_visible" 0.0;
4880 inherit: "landscape" 0.0;
4883 description { state: "clicked" 0.0;
4884 inherit: "default" 0.0;
4887 style: "btn_naviframe_toolbar_pressed";
4890 description { state: "landscape_clicked" 0.0;
4891 inherit: "landscape" 0.0;
4894 style: "btn_naviframe_toolbar_pressed";
4897 description { state: "disabled" 0.0;
4898 inherit: "default" 0.0;
4900 description { state: "landscape_disabled" 0.0;
4901 inherit: "landscape" 0.0;
4903 description { state: "disabled_visible" 0.0;
4904 inherit: "default" 0.0;
4907 style: "btn_naviframe_toolbar_disabled";
4910 description { state: "landscape_disabled_visible" 0.0;
4911 inherit: "landscape" 0.0;
4914 style: "btn_naviframe_toolbar_disabled";
4917 description { state: "focused" 0.0;
4918 inherit: "default" 0.0;
4921 style: "btn_naviframe_toolbar_pressed";
4924 description { state: "landscape_focused" 0.0;
4925 inherit: "landscape" 0.0;
4928 style: "btn_naviframe_toolbar_pressed";
4932 part { name: "disclip";
4934 description { state: "default" 0.0;
4935 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4937 description { state: "disabled" 0.0;
4938 inherit: "default" 0.0;
4939 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4942 part { name: "over2";
4945 ignore_flags: ON_HOLD;
4946 description { state: "default" 0.0;
4947 rel1.to: "button_image";
4948 rel2.to: "button_image";
4952 part { name: "over3";
4955 description { state: "default" 0.0;
4956 rel1.to: "button_image";
4957 rel2.to: "button_image";
4961 part { name: "disabler";
4963 description { state: "default" 0.0;
4964 rel1.to: "button_image";
4965 rel2.to: "button_image";
4969 description { state: "disabled" 0.0;
4970 inherit: "default" 0.0;
4976 program { name: "button_click";
4977 signal: "mouse,down,1";
4979 action: SIGNAL_EMIT "elm,action,press" "";
4980 after: "button_click_anim";
4982 program { name: "button_click_anim";
4984 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4985 set_state(PART:"elm.text", "landscape_clicked", 0.0);
4987 set_state(PART:"elm.text", "clicked", 0.0);
4988 set_state(PART:"button_image", "clicked", 0.0);
4991 program { name: "button_double_click";
4992 signal: "mouse,down,1,double";
4994 after: "button_click_anim";
4996 program { name: "button_unpress";
4997 action: SIGNAL_EMIT "elm,action,unpress" "";
4999 program { name: "button_mouseout_clicked";
5000 signal: "mouse,up,1";
5005 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5007 get_state(PART:"elm.text", st, 30, vl);
5008 if (!strcmp(st, "landscape_clicked") || !strcmp(st, "landscape_focused"))
5010 emit("elm,action,default,text,set", "");
5011 set_state(PART:"elm.text", "landscape_visible", 0.0);
5016 get_state(PART:"elm.text", st, 30, vl);
5017 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5019 emit("elm,action,default,text,set", "");
5020 set_state(PART:"elm.text", "visible", 0.0);
5023 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5024 set_state(PART:"button_image", "default", 0.0);
5026 after: button_unpress;
5028 program { name: "touch_snd";
5029 signal: "mouse,clicked,1";
5031 action: PLAY_SAMPLE "touch_sound" 1.0;
5032 after: button_unclick3;
5034 program { name: "button_unclick3";
5035 action: SIGNAL_EMIT "elm,action,click" "";
5037 program { name: "text_show";
5038 signal: "elm,state,text,visible";
5041 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5043 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5044 set_state(PART:"elm.text", "landscape_visible", 0.0);
5046 set_state(PART:"elm.text", "visible", 0.0);
5050 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5051 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
5053 set_state(PART:"elm.text", "disabled_visible", 0.0);
5057 program { name: "text_hide";
5058 signal: "elm,state,text,hidden";
5061 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5062 set_state(PART:"elm.text", "landscape", 0.0);
5064 set_state(PART:"elm.text", "default", 0.0);
5067 program { name: "disable";
5068 signal: "elm,state,disabled";
5070 action: STATE_SET "disabled" 0.0;
5071 target: "button_image";
5074 after: "disable_text";
5076 program { name: "disable_text";
5080 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5082 get_state(PART:"elm.text", st, 30, vl);
5083 if (!strcmp(st, "landscape_visible"))
5084 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
5086 set_state(PART:"elm.text", "landscape_disabled", 0.0);
5090 get_state(PART:"elm.text", st, 30, vl);
5091 if (!strcmp(st, "visible"))
5092 set_state(PART:"elm.text", "disabled_visible", 0.0);
5094 set_state(PART:"elm.text", "disabled", 0.0);
5096 set_int(button_state, BUTTON_STATE_DISABLED);
5099 program { name: "enable";
5100 signal: "elm,state,enabled";
5102 action: STATE_SET "default" 0.0;
5103 target: "button_image";
5106 after: "enable_text";
5108 program { name: "enable_text";
5112 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5114 get_state(PART:"elm.text", st, 30, vl);
5115 if (!strcmp(st, "landscape_disabled"))
5116 set_state(PART:"elm.text", "landscape", 0.0);
5118 set_state(PART:"elm.text", "landscape_visible", 0.0);
5122 get_state(PART:"elm.text", st, 30, vl);
5123 if (!strcmp(st, "disabled"))
5124 set_state(PART:"elm.text", "default", 0.0);
5126 set_state(PART:"elm.text", "visible", 0.0);
5128 set_int(button_state, BUTTON_STATE_ENABLED);
5131 program { name: "change_to_landscape";
5132 signal: "elm,state,landscape";
5137 set_int(landscape_state, BUTTON_LANDSCAPE_ENABLED);
5138 get_state(PART:"elm.text", st, 30, vl);
5139 if (!strcmp(st, "default"))
5140 set_state(PART:"elm.text", "landscape", 0.0);
5141 else if (!strcmp(st, "clicked"))
5142 set_state(PART:"elm.text", "landscape_clicked", 0.0);
5143 else if (!strcmp(st, "disabled"))
5144 set_state(PART:"elm.text", "landscape_disabled", 0.0);
5145 else if (!strcmp(st, "disabled_visible"))
5146 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
5148 set_state(PART:"elm.text", "landscape_visible", 0.0);
5149 set_state(PART:"button_bg", "landscape", 0.0);
5152 program { name: "change_to_portrait";
5153 signal: "elm,state,portrait";
5158 set_int(landscape_state, BUTTON_LANDSCAPE_DISABLED);
5159 get_state(PART:"elm.text", st, 30, vl);
5160 if (!strcmp(st, "landscape"))
5161 set_state(PART:"elm.text", "default", 0.0);
5162 else if (!strcmp(st, "landscape_clicked"))
5163 set_state(PART:"elm.text", "clicked", 0.0);
5164 else if (!strcmp(st, "landscape_disabled"))
5165 set_state(PART:"elm.text", "disabled", 0.0);
5166 else if (!strcmp(st, "landscape_disabled_visible"))
5167 set_state(PART:"elm.text", "disabled_visible", 0.0);
5169 set_state(PART:"elm.text", "visible", 0.0);
5170 set_state(PART:"button_bg", "default", 0.0);
5173 program { name: "landscape_mode";
5175 signal: "elm,state,orient,90";
5176 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5178 program { name: "landscape_mode2";
5180 signal: "elm,state,orient,270";
5181 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5183 program { name: "portrait_mode";
5185 signal: "elm,state,orient,0";
5186 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5188 program { name: "portrait_mode2";
5190 signal: "elm,state,orient,180";
5191 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5193 program { name: "action_focus";
5194 signal: "elm,action,focus_highlight,show";
5196 action: STATE_SET "focused" 0.0;
5197 target: "focus_image";
5199 program { name: "action_unfocus";
5200 signal: "elm,action,focus_highlight,hide";
5202 action: STATE_SET "default" 0.0;
5203 target: "focus_image";
5208 //////////////////////////////////////////////////////////////
5209 group { name: "elm/button/base/naviframe/toolbar/left";
5210 inherit: "elm/button/base/naviframe/toolbar/default";
5212 part { name: "button_bg";
5215 description { state: "default" 0.0;
5216 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
5217 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MAX_INC;
5219 rel1.to: "padding_text_left_top";
5220 rel2.to: "padding_text_right_bottom";
5223 description { state: "landscape" 0.0;
5224 inherit: "default" 0.0;
5225 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5226 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
5229 part { name: "elm.text";
5234 description { state: "default" 0.0;
5237 min: BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_MIN_INC;
5240 to: "padding_left_top";
5244 to: "padding_right_bottom";
5251 style: "btn_naviframe_toolbar";
5254 description { state: "landscape" 0.0;
5255 inherit: "default" 0.0;
5256 min: BUTTON_NAVIFRAME_TOOLBAR_LANDSCAPE_TEXTBLOCK_MIN_INC;
5258 description { state: "visible" 0.0;
5259 inherit: "default" 0.0;
5262 description { state: "landscape_visible" 0.0;
5263 inherit: "landscape" 0.0;
5266 description { state: "clicked" 0.0;
5267 inherit: "default" 0.0;
5270 style: "btn_naviframe_toolbar_pressed";
5273 description { state: "landscape_clicked" 0.0;
5274 inherit: "landscape" 0.0;
5277 style: "btn_naviframe_toolbar_pressed";
5280 description { state: "disabled" 0.0;
5281 inherit: "default" 0.0;
5283 description { state: "landscape_disabled" 0.0;
5284 inherit: "landscape" 0.0;
5286 description { state: "disabled_visible" 0.0;
5287 inherit: "default" 0.0;
5290 style: "btn_naviframe_toolbar_disabled";
5293 description { state: "landscape_disabled_visible" 0.0;
5294 inherit: "landscape" 0.0;
5297 style: "btn_naviframe_toolbar_disabled";
5300 description { state: "focused" 0.0;
5301 inherit: "default" 0.0;
5304 style: "btn_naviframe_toolbar_pressed";
5307 description { state: "landscape_focused" 0.0;
5308 inherit: "landscape" 0.0;
5311 style: "btn_naviframe_toolbar_pressed";
5318 //////////////////////////////////////////////////////////////
5319 group { name: "elm/button/base/naviframe/toolbar/right";
5320 inherit: "elm/button/base/naviframe/toolbar/default";
5322 part { name: "button_bg";
5325 description { state: "default" 0.0;
5326 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
5327 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MAX_INC;
5329 rel1.to: "padding_text_left_top";
5330 rel2.to: "padding_text_right_bottom";
5333 description { state: "landscape" 0.0;
5334 inherit: "default" 0.0;
5335 min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5336 max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
5339 part { name: "elm.text";
5344 description { state: "default" 0.0;
5347 min: BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_MIN_INC;
5350 to: "padding_left_top";
5354 to: "padding_right_bottom";
5361 style: "btn_naviframe_toolbar";
5364 description { state: "landscape" 0.0;
5365 inherit: "default" 0.0;
5366 min: BUTTON_NAVIFRAME_TOOLBAR_LANDSCAPE_TEXTBLOCK_MIN_INC;
5368 description { state: "visible" 0.0;
5369 inherit: "default" 0.0;
5372 description { state: "landscape_visible" 0.0;
5373 inherit: "landscape" 0.0;
5376 description { state: "clicked" 0.0;
5377 inherit: "default" 0.0;
5380 style: "btn_naviframe_toolbar_pressed";
5383 description { state: "landscape_clicked" 0.0;
5384 inherit: "landscape" 0.0;
5387 style: "btn_naviframe_toolbar_pressed";
5390 description { state: "disabled" 0.0;
5391 inherit: "default" 0.0;
5393 description { state: "landscape_disabled" 0.0;
5394 inherit: "landscape" 0.0;
5396 description { state: "disabled_visible" 0.0;
5397 inherit: "default" 0.0;
5400 style: "btn_naviframe_toolbar_disabled";
5403 description { state: "landscape_disabled_visible" 0.0;
5404 inherit: "landscape" 0.0;
5407 style: "btn_naviframe_toolbar_disabled";
5410 description { state: "focused" 0.0;
5411 inherit: "default" 0.0;
5414 style: "btn_naviframe_toolbar_pressed";
5417 description { state: "landscape_focused" 0.0;
5418 inherit: "landscape" 0.0;
5421 style: "btn_naviframe_toolbar_pressed";
5428 ////////////////////////////////////////////////////////////////////
5429 group { name: "elm/button/base/toolbar/segmentedcontrol";
5431 image: "00_toolbar_button.png" COMP;
5432 image: "00_toolbar_button_press.png" COMP;
5433 image: "00_toolbar_button_dim.png" COMP;
5434 image: "00_button_icon_arrow.png" COMP;
5435 image: "00_button_icon_arrow_press.png" COMP;
5436 image: "00_toolbar_button_focus.png" COMP;
5439 item: "focus_highlight" "on";
5442 item: "focus_highlight" "on";
5445 style { name: "btn_toolbar_segmentedcontrol";
5446 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";
5453 public button_state = BUTTON_STATE_ENABLED;
5456 part { name: "button_image";
5458 description { state: "default" 0.0;
5459 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
5460 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
5462 rel1.to: "padding_text_left_top";
5463 rel2.to: "padding_text_right_bottom";
5465 normal: "00_toolbar_button.png";
5466 border: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_BORDER_INC;
5470 description { state: "clicked" 0.0;
5471 inherit: "default" 0.0;
5472 image.normal: "00_toolbar_button_press.png";
5474 description { state: "disabled" 0.0;
5475 inherit: "default" 0.0;
5476 image.normal: "00_toolbar_button_dim.png";
5478 description { state: "focused" 0.0;
5479 inherit: "default" 0.0;
5480 image.normal: "00_toolbar_button_press.png";
5483 part { name: "focus_image";
5487 description { state: "default" 0.0;
5488 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
5489 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
5491 rel1.to : "button_image";
5492 rel2.to : "button_image";
5494 normal: "00_toolbar_button_focus.png";
5495 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
5499 description { state: "focused" 0.0;
5500 inherit: "default" 0.0;
5504 part { name: "padding_left_top";
5508 description { state: "default" 0.0;
5511 rel2.relative: 0.0 0.0;
5512 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
5516 part { name: "padding_right_bottom";
5520 description { state: "default" 0.0;
5522 rel1.relative: 1.0 1.0;
5523 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
5528 part { name: "padding_text_left_top";
5532 description { state: "default" 0.0;
5534 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
5536 rel1.to: "elm.text";
5544 part { name: "padding_text_right_bottom";
5548 description { state: "default" 0.0;
5549 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
5565 part { name: "elm.text";
5569 effect: FAR_SHADOW BOTTOM;
5571 description { state: "default" 0.0;
5574 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXTBLOCK_MIN_INC;
5577 to: "padding_left_top";
5581 to: "padding_right_bottom";
5583 color: BUTTON_NAVIFRAME_TOOLBAR_TEXT_NORMAL_COLOR_INC;
5584 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5588 style: "btn_toolbar_segmentedcontrol";
5591 description { state: "visible" 0.0;
5592 inherit: "default" 0.0;
5595 description { state: "clicked" 0.0;
5596 inherit: "default" 0.0;
5598 color: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PRESSED_COLOR_INC;
5600 description { state: "disabled" 0.0;
5601 inherit: "default" 0.0;
5603 description { state: "disabled_visible" 0.0;
5604 inherit: "default" 0.0;
5605 color: BUTTON_NAVIFRAME_TOOLBAR_TEXT_DISABLED_COLOR_INC;
5608 description { state: "focused" 0.0;
5609 inherit: "default" 0.0;
5611 color: BUTTON_NAVIFRAME_TOOLBAR_TEXT_FOCUSED_COLOR_INC;
5614 part { name: "icon_padding";
5617 description { state: "default" 0.0;
5626 rel2.to: "elm.text";
5629 part { name: "icon";
5631 clip_to: "icon_clipper";
5632 description { state: "default" 0.0;
5633 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5634 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5639 to_x: "icon_padding";
5645 to_x: "icon_padding";
5648 image.normal: "00_button_icon_arrow.png";
5650 description { state: "clicked" 0.0;
5651 inherit: "default" 0.0;
5652 image.normal: "00_button_icon_arrow_press.png";
5655 part { name: "icon_clipper";
5657 description { state: "default" 0.0;
5658 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_NORMAL_COLOR_INC;
5660 description { state: "clicked" 0.0;
5661 inherit: "default" 0.0;
5662 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_PRESSED_COLOR_INC;
5665 part { name: "disclip";
5667 description { state: "default" 0.0;
5668 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5670 description { state: "disabled" 0.0;
5671 inherit: "default" 0.0;
5672 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5675 part { name: "over2";
5678 ignore_flags: ON_HOLD;
5679 description { state: "default" 0.0;
5680 rel1.to: "button_image";
5681 rel2.to: "button_image";
5685 part { name: "over3";
5688 description { state: "default" 0.0;
5689 rel1.to: "button_image";
5690 rel2.to: "button_image";
5694 part { name: "disabler";
5696 description { state: "default" 0.0;
5697 rel1.to: "button_image";
5698 rel2.to: "button_image";
5702 description { state: "disabled" 0.0;
5703 inherit: "default" 0.0;
5709 program { name: "button_click";
5710 signal: "mouse,down,1";
5712 action: SIGNAL_EMIT "elm,action,press" "";
5713 after: "button_click_anim";
5715 program { name: "button_click_anim";
5716 action: STATE_SET "clicked" 0.0;
5717 target: "button_image";
5720 target: "icon_clipper";
5722 program { name: "button_double_click";
5723 signal: "mouse,down,1,double";
5725 after: "button_click_anim";
5727 program { name: "button_unpress";
5728 action: SIGNAL_EMIT "elm,action,unpress" "";
5730 program { name: "button_mouseout_clicked";
5731 signal: "mouse,up,1";
5736 get_state(PART:"elm.text", st, 30, vl);
5737 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5739 emit("elm,action,default,text,set", "");
5740 set_state(PART:"elm.text", "visible", 0.0);
5742 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5743 set_state(PART:"button_image", "default", 0.0);
5744 set_state(PART:"icon", "default", 0.0);
5745 set_state(PART:"icon_clipper", "default", 0.0);
5747 after: button_unpress;
5749 program { name: "touch_snd";
5750 signal: "mouse,clicked,1";
5752 action: PLAY_SAMPLE "touch_sound" 1.0;
5753 after: button_unclick3;
5755 program { name: "button_unclick3";
5756 action: SIGNAL_EMIT "elm,action,click" "";
5758 program { name: "text_show";
5759 signal: "elm,state,text,visible";
5762 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5763 set_state(PART:"elm.text", "visible", 0.0);
5765 set_state(PART:"elm.text", "disabled_visible", 0.0);
5768 program { name: "text_hide";
5769 signal: "elm,state,text,hidden";
5771 action: STATE_SET "default" 0.0;
5774 program { name: "disable";
5775 signal: "elm,state,disabled";
5777 action: STATE_SET "disabled" 0.0;
5778 target: "button_image";
5781 after: "disable_text";
5783 program { name: "disable_text";
5787 get_state(PART:"elm.text", st, 30, vl);
5788 if (!strcmp(st, "visible"))
5789 set_state(PART:"elm.text", "disabled_visible", 0.0);
5791 set_state(PART:"elm.text", "disabled", 0.0);
5792 set_int(button_state, BUTTON_STATE_DISABLED);
5795 program { name: "enable";
5796 signal: "elm,state,enabled";
5798 action: STATE_SET "default" 0.0;
5799 target: "button_image";
5802 after: "enable_text";
5804 program { name: "enable_text";
5808 get_state(PART:"elm.text", st, 30, vl);
5809 if (!strcmp(st, "disabled_visible"))
5810 set_state(PART:"elm.text", "visible", 0.0);
5812 set_state(PART:"elm.text", "default", 0.0);
5813 set_int(button_state, BUTTON_STATE_ENABLED);
5816 program { name: "action_focus";
5817 signal: "elm,action,focus_highlight,show";
5819 action: STATE_SET "focused" 0.0;
5820 target: "focus_image";
5822 program { name: "action_unfocus";
5823 signal: "elm,action,focus_highlight,hide";
5825 action: STATE_SET "default" 0.0;
5826 target: "focus_image";
5831 ////////////////////////////////////////////////////////////////////
5832 group { name: "elm/button/base/naviframe/title_icon";
5834 item: "focus_highlight" "on";
5837 image: "00_icon_focus.png" COMP;
5840 part { name: "button_image";
5843 description { state: "default" 0.0;
5845 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5846 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5848 description { state: "landscape" 0.0;
5850 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5851 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5854 part { name: "focus_image";
5858 description { state: "default" 0.0;
5860 rel1.to : "button_image";
5861 rel2.to : "button_image";
5863 normal: "00_icon_focus.png";
5867 description { state: "focused" 0.0;
5868 inherit: "default" 0.0;
5872 part { name: "elm.swallow.content";
5875 clip_to: "elm.icon.clipper";
5876 description { state: "default" 0.0;
5878 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5880 rel1 { to: "button_image"; }
5881 rel2 { to: "button_image"; }
5883 description { state: "visible" 0.0;
5884 inherit: "default" 0.0;
5888 part { name: "elm.icon.clipper";
5890 description { state: "default" 0.0;
5891 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5893 description { state: "clicked" 0.0;
5894 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5896 description { state: "disabled" 0.0;
5897 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5900 part { name: "over2";
5902 ignore_flags: ON_HOLD;
5903 description { state: "default" 0.0;
5907 part { name: "over3";
5910 description { state: "default" 0.0;
5914 part { name: "disabler";
5916 description { state: "default" 0.0;
5920 description { state: "disabled" 0.0;
5921 inherit: "default" 0.0;
5927 program { name: "button_click";
5928 signal: "mouse,down,1";
5930 action: SIGNAL_EMIT "elm,action,press" "";
5931 after: "button_click_anim";
5933 program { name: "button_click_anim";
5935 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5938 program { name: "button_double_click";
5939 signal: "mouse,down,1,double";
5941 after: "button_click_anim";
5943 program { name: "button_unpress";
5944 action: SIGNAL_EMIT "elm,action,unpress" "";
5946 program { name: "button_mouseout_clicked";
5947 signal: "mouse,up,1";
5949 action: STATE_SET "default" 0.0;
5950 target: "elm.icon.clipper";
5951 after: button_unpress;
5953 program { name: "touch_snd";
5954 signal: "mouse,clicked,1";
5956 action: PLAY_SAMPLE "touch_sound" 1.0;
5957 after: button_unclick3;
5959 program { name: "button_unclick3";
5960 action: SIGNAL_EMIT "elm,action,click" "";
5962 program { name: "icon_show";
5963 signal: "elm,state,icon,visible";
5965 action: STATE_SET "visible" 0.0;
5966 target: "elm.swallow.content";
5968 program { name: "icon_hide";
5969 signal: "elm,state,icon,hidden";
5971 action: STATE_SET "default" 0.0;
5972 target: "elm.swallow.content";
5974 program { name: "disable";
5975 signal: "elm,state,disabled";
5978 set_state(PART:"disabler", "disabled", 0.0);
5979 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5982 program { name: "enable";
5983 signal: "elm,state,enabled";
5986 set_state(PART:"disabler", "default", 0.0);
5987 set_state(PART:"elm.icon.clipper", "default", 0.0);
5990 program { name: "change_to_landscape";
5991 signal: "elm,state,landscape";
5993 action: STATE_SET "landscape" 0.0;
5994 target: "button_image";
5996 program { name: "change_to_portrait";
5997 signal: "elm,state,portrait";
5999 action: STATE_SET "default" 0.0;
6000 target: "button_image";
6002 program { name: "landscape_mode";
6004 signal: "elm,state,orient,90";
6005 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6007 program { name: "landscape_mode2";
6009 signal: "elm,state,orient,270";
6010 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6012 program { name: "portrait_mode";
6014 signal: "elm,state,orient,0";
6015 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6017 program { name: "portrait_mode2";
6019 signal: "elm,state,orient,180";
6020 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6022 program { name: "action_focus";
6023 signal: "elm,action,focus_highlight,show";
6025 action: STATE_SET "focused" 0.0;
6026 target: "focus_image";
6028 program { name: "action_unfocus";
6029 signal: "elm,action,focus_highlight,hide";
6031 action: STATE_SET "default" 0.0;
6032 target: "focus_image";
6037 ////////////////////////////////////////////////////////////////////
6038 group { name: "elm/button/base/naviframe/title_text";
6040 image: "00_title_press.png" COMP;
6043 style { name: "btn_naviframe_title_text";
6044 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";
6051 part { name: "button_bg";
6054 description { state: "default" 0.0;
6055 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_MAX_INC;
6056 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_MAX_INC;
6058 description { state: "landscape" 0.0;
6059 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_MAX_INC;
6060 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_MAX_INC;
6063 part { name: "button_image";
6066 description { state: "default" 0.0;
6068 rel1 { to: "button_bg"; }
6069 rel2 { to: "button_bg"; }
6071 description { state: "clicked" 0.0;
6072 inherit: "default" 0.0;
6075 normal: "00_title_press.png";
6076 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
6081 part { name: "elm.text";
6085 clip_to: "button_bg";
6086 description { state: "default" 0.0;
6087 rel1.to: "button_bg";
6088 rel2.to: "button_bg";
6090 style: "btn_naviframe_title_text";
6095 part { name: "over2";
6097 ignore_flags: ON_HOLD;
6098 description { state: "default" 0.0;
6102 part { name: "over3";
6105 description { state: "default" 0.0;
6109 part { name: "disabler";
6111 description { state: "default" 0.0;
6115 description { state: "disabled" 0.0;
6116 inherit: "default" 0.0;
6122 program { name: "button_click";
6123 signal: "mouse,down,1";
6125 action: SIGNAL_EMIT "elm,action,press" "";
6126 after: "button_click_anim";
6128 program { name: "button_click_anim";
6130 set_state(PART:"button_image", "clicked", 0.0);
6133 program { name: "button_double_click";
6134 signal: "mouse,down,1,double";
6136 after: "button_click_anim";
6138 program { name: "button_unclick";
6139 signal: "mouse,up,1";
6141 action: SIGNAL_EMIT "elm,action,unpress" "";
6142 after: "button_unclick_anim";
6144 program { name: "button_unclick_anim";
6146 set_state(PART:"button_image", "default", 0.0);
6149 program { name: "touch_snd";
6150 signal: "mouse,clicked,1";
6152 action: PLAY_SAMPLE "touch_sound" 1.0;
6153 after: "button_unclick3";
6155 program { name: "button_unclick3";
6156 action: SIGNAL_EMIT "elm,action,click" "";
6158 program { name: "change_to_landscape";
6159 signal: "elm,state,landscape";
6161 action: STATE_SET "landscape" 0.0;
6162 target: "button_bg";
6164 program { name: "change_to_portrait";
6165 signal: "elm,state,portrait";
6167 action: STATE_SET "default" 0.0;
6168 target: "button_bg";
6170 program { name: "landscape_mode";
6172 signal: "elm,state,orient,90";
6173 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6175 program { name: "landscape_mode2";
6177 signal: "elm,state,orient,270";
6178 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6180 program { name: "portrait_mode";
6182 signal: "elm,state,orient,0";
6183 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6185 program { name: "portrait_mode2";
6187 signal: "elm,state,orient,180";
6188 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6193 /////////////////////////////////////////////////////////////////////////////////////////
6194 group { name: "elm/button/base/naviframe/more/default";
6196 item: "focus_highlight" "on";
6199 image: "00_icon_more.png" COMP;
6200 image: "00_icon_focus.png" COMP;
6203 part { name: "button_image";
6206 description { state: "default" 0.0;
6207 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
6208 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
6211 description { state: "landscape" 0.0;
6212 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
6213 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
6217 part { name: "focus_image";
6221 description { state: "default" 0.0;
6223 rel1.to : "button_image";
6224 rel2.to : "button_image";
6226 normal: "00_icon_focus.png";
6230 description { state: "focused" 0.0;
6231 inherit: "default" 0.0;
6235 part { name: "more_image";
6238 clip_to: "more_image.clipper";
6239 description { state: "default" 0.0;
6240 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
6241 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
6243 rel1.to: "button_image";
6244 rel2.to: "button_image";
6245 image.normal: "00_icon_more.png";
6248 part { name: "more_image.clipper";
6250 description { state: "default" 0.0;
6251 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
6253 description { state: "clicked" 0.0;
6254 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
6256 description { state: "disabled" 0.0;
6257 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
6260 part { name: "over2";
6262 ignore_flags: ON_HOLD;
6263 description { state: "default" 0.0;
6267 part { name: "over3";
6270 description { state: "default" 0.0;
6274 part { name: "disabler";
6276 description { state: "default" 0.0;
6280 description { state: "disabled" 0.0;
6281 inherit: "default" 0.0;
6287 program { name: "button_click";
6288 signal: "mouse,down,1";
6290 action: SIGNAL_EMIT "elm,action,press" "";
6291 after: "button_click_anim";
6293 program { name: "button_click_anim";
6295 set_state(PART:"more_image.clipper", "clicked", 0.0);
6298 program { name: "button_double_click";
6299 signal: "mouse,down,1,double";
6301 after: "button_click_anim";
6303 program { name: "button_unclick";
6304 signal: "mouse,up,1";
6306 action: SIGNAL_EMIT "elm,action,unpress" "";
6307 after: "button_unclick_anim";
6309 program { name: "button_unclick_anim";
6311 set_state(PART:"more_image.clipper", "default", 0.0);
6314 program { name: "touch_snd";
6315 signal: "mouse,clicked,1";
6317 action: PLAY_SAMPLE "touch_sound" 1.0;
6318 after: button_unclick3;
6320 program { name: "button_unclick3";
6321 action: SIGNAL_EMIT "elm,action,click" "";
6323 program { name: "disable";
6324 signal: "elm,state,disabled";
6327 set_state(PART:"disabler", "disabled", 0.0);
6328 set_state(PART:"more_image.clipper", "disabled", 0.0);
6331 program { name: "enable";
6332 signal: "elm,state,enabled";
6335 set_state(PART:"disabler", "default", 0.0);
6336 set_state(PART:"more_image.clipper", "default", 0.0);
6339 program { name: "change_to_landscape";
6340 signal: "elm,state,landscape";
6342 action: STATE_SET "landscape" 0.0;
6343 target: "button_image";
6345 program { name: "change_to_portrait";
6346 signal: "elm,state,portrait";
6348 action: STATE_SET "default" 0.0;
6349 target: "button_image";
6351 program { name: "landscape_mode";
6353 signal: "elm,state,orient,90";
6354 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6356 program { name: "landscape_mode2";
6358 signal: "elm,state,orient,270";
6359 action: SIGNAL_EMIT "elm,state,landscape" "elm";
6361 program { name: "portrait_mode";
6363 signal: "elm,state,orient,0";
6364 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6366 program { name: "portrait_mode2";
6368 signal: "elm,state,orient,180";
6369 action: SIGNAL_EMIT "elm,state,portrait" "elm";
6371 program { name: "action_focus";
6372 signal: "elm,action,focus_highlight,show";
6374 action: STATE_SET "focused" 0.0;
6375 target: "focus_image";
6377 program { name: "action_unfocus";
6378 signal: "elm,action,focus_highlight,hide";
6380 action: STATE_SET "default" 0.0;
6381 target: "focus_image";
6386 ///////////////////////////////////////////////////////////////////////////////////////
6387 group { name: "elm/button/base/tickernoti";
6389 image: "00_notification_button.png" COMP;
6390 image: "00_notification_button_press.png" COMP;
6391 image: "00_notification_button_dim.png" COMP;
6394 public button_state = BUTTON_STATE_ENABLED;
6397 part { name: "button_image";
6399 description { state: "default" 0.0;
6400 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6401 max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6403 normal: "00_notification_button.png";
6404 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
6408 description { state: "clicked" 0.0;
6409 inherit: "default" 0.0;
6410 image.normal: "00_notification_button_press.png";
6412 description { state: "disabled" 0.0;
6413 inherit: "default" 0.0;
6414 image.normal: "00_notification_button_dim.png";
6416 description { state: "focused" 0.0;
6417 inherit: "default" 0.0;
6418 image.normal: "00_notification_button_press.png";
6421 part { name: "padding_left_top";
6425 description { state: "default" 0.0;
6428 rel2.relative: 0.0 0.0;
6429 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
6437 description { state: "default" 0.0;
6438 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6441 description { state: "visible" 0.0;
6442 inherit: "default" 0.0;
6444 description { state: "icononly" 0.0;
6445 inherit: "default" 0.0;
6448 part { name: "padding_right_bottom";
6452 description { state: "default" 0.0;
6454 rel1.relative: 1.0 1.0;
6455 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
6460 part { name: "icon_rect";
6464 description { state: "default" 0.0;
6470 to: "padding_left_top";
6474 to_x: "padding_left_top";
6475 to_y: "padding_right_bottom";
6479 description { state: "visible" 0.0;
6480 inherit: "default" 0.0;
6481 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
6482 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
6484 description { state: "icononly" 0.0;
6485 inherit: "default" 0.0;
6488 part { name: "padding_after_icon";
6492 description { state: "default" 0.0; //when only icon or no icon is there
6501 rel2.to: "icon_rect";
6503 description { state: "visible" 0.0;
6504 inherit: "default" 0.0;
6505 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6507 description { state: "icononly" 0.0;
6508 inherit: "default" 0.0;
6511 part { name: "padding_before_text";
6515 description { state: "default" 0.0; //when only icon or no icon is there
6519 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6523 to_y: "padding_left_top";
6528 to_y: "padding_right_bottom";
6532 part { name: "elm.swallow.content";
6536 description { state: "default" 0.0;
6542 to: "padding_left_top";
6546 to_x: "padding_left_top";
6547 to_y: "padding_right_bottom";
6550 description { state: "visible" 0.0;
6552 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6553 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6557 to_x: "padding_before_text";
6558 to_y: "padding_left_top";
6562 to_x: "padding_before_text";
6563 to_y: "padding_right_bottom";
6566 description { state: "icononly" 0.0;
6567 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6568 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6571 part { name: "elm.text";
6574 effect: FAR_SHADOW BOTTOM;
6577 description { state: "default" 0.0;
6581 to_x: "padding_after_icon";
6582 to_y: "padding_left_top";
6586 to: "padding_right_bottom";
6588 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
6589 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6591 font: "Tizen:style=Regular";
6592 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
6593 text_class: "tizen";
6596 description { state: "visible" 0.0;
6597 inherit: "default" 0.0;
6600 description { state: "clicked" 0.0;
6601 inherit: "default" 0.0;
6603 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6605 description { state: "disabled" 0.0;
6606 inherit: "default" 0.0;
6608 description { state: "disabled_visible" 0.0;
6609 inherit: "default" 0.0;
6610 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
6611 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6614 description { state: "focused" 0.0;
6615 inherit: "default" 0.0;
6617 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6620 part { name: "over2";
6623 ignore_flags: ON_HOLD;
6624 description { state: "default" 0.0;
6628 part { name: "over3";
6631 description { state: "default" 0.0;
6635 part { name: "clipper";
6637 description { state: "default" 0.0;
6638 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
6640 description { state: "disabled" 0.0;
6641 inherit: "default" 0.0;
6642 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
6645 part { name: "disabler";
6647 description { state: "default" 0.0;
6651 description { state: "disabled" 0.0;
6652 inherit: "default" 0.0;
6658 program { name: "button_click";
6659 signal: "mouse,down,1";
6661 action: SIGNAL_EMIT "elm,action,press" "";
6662 after: "button_click_anim";
6664 program { name: "button_click_anim";
6665 action: STATE_SET "clicked" 0.0;
6666 target: "button_image";
6667 after: "text_clicked";
6669 program { name: "text_clicked";
6673 get_state(PART:"elm.text", st, 30, vl);
6674 if (!strcmp(st, "visible"))
6675 set_state(PART:"elm.text", "clicked", 0.0);
6678 program { name: "button_double_click";
6679 signal: "mouse,down,1,double";
6681 after: "button_click_anim";
6683 program { name: "button_unpress";
6684 action: SIGNAL_EMIT "elm,action,unpress" "";
6686 program { name: "button_mouseout_clicked";
6687 signal: "mouse,up,1";
6692 get_state(PART:"elm.swallow.content", st, 30, vl);
6693 if (strcmp(st, "icononly"))
6695 emit("elm,action,default,text,set", "");
6696 set_state(PART:"elm.text", "visible", 0.0);
6698 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6699 set_state(PART:"button_image", "default", 0.0);
6701 after: button_unpress;
6703 program { name: "touch_snd";
6704 signal: "mouse,clicked,1";
6706 action: PLAY_SAMPLE "touch_sound" 1.0;
6707 after: button_unclick3;
6709 program { name: "button_unclick3";
6710 action: SIGNAL_EMIT "elm,action,click" "";
6712 program { name: "text_show";
6713 signal: "elm,state,text,visible";
6718 get_state(PART:"elm.swallow.content", st, 30, vl);
6719 if (!strcmp(st, "icononly"))
6721 set_state(PART:"elm.swallow.content", "visible", 0.0);
6722 set_state(PART:"icon_rect", "visible", 0.0);
6723 set_state(PART:"padding_after_icon", "visible", 0.0);
6724 set_state(PART:"bg", "visible", 0.0);
6726 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6727 set_state(PART:"elm.text", "visible", 0.0);
6729 set_state(PART:"elm.text", "disabled_visible", 0.0);
6732 program { name: "text_hide";
6733 signal: "elm,state,text,hidden";
6738 get_state(PART:"elm.swallow.content", st, 30, vl);
6739 if (!strcmp(st, "visible"))
6741 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6742 set_state(PART:"icon_rect", "icononly", 0.0);
6743 set_state(PART:"padding_after_icon", "icononly", 0.0);
6744 set_state(PART:"bg", "icononly", 0.0);
6746 set_state(PART:"elm.text", "default", 0.0);
6749 program { name: "icon_show";
6750 signal: "elm,state,icon,visible";
6755 get_state(PART:"elm.text", st, 30, vl);
6756 if (!strcmp(st, "visible"))
6758 set_state(PART:"elm.swallow.content", "visible", 0.0);
6759 set_state(PART:"icon_rect", "visible", 0.0);
6760 set_state(PART:"padding_after_icon", "visible", 0.0);
6761 set_state(PART:"bg", "visible", 0.0);
6765 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6766 set_state(PART:"icon_rect", "icononly", 0.0);
6767 set_state(PART:"padding_after_icon", "icononly", 0.0);
6768 set_state(PART:"bg", "icononly", 0.0);
6772 program { name: "icon_hide";
6773 signal: "elm,state,icon,hidden";
6775 action: STATE_SET "default" 0.0;
6776 target: "elm.swallow.content";
6777 target: "padding_after_icon";
6778 target: "icon_rect";
6781 program { name: "disable";
6782 signal: "elm,state,disabled";
6784 action: STATE_SET "disabled" 0.0;
6785 target: "button_image";
6788 after: "disable_text";
6790 program { name: "disable_text";
6794 get_state(PART:"elm.text", st, 30, vl);
6795 if (!strcmp(st, "visible"))
6796 set_state(PART:"elm.text", "disabled_visible", 0.0);
6798 set_state(PART:"elm.text", "disabled", 0.0);
6799 set_int(button_state, BUTTON_STATE_DISABLED);
6802 program { name: "enable";
6803 signal: "elm,state,enabled";
6805 action: STATE_SET "default" 0.0;
6806 target: "button_image";
6809 after: "enable_text";
6811 program { name: "enable_text";
6815 get_state(PART:"elm.text", st, 30, vl);
6816 if (!strcmp(st, "disabled_visible"))
6817 set_state(PART:"elm.text", "visible", 0.0);
6819 set_state(PART:"elm.text", "default", 0.0);
6820 set_int(button_state, BUTTON_STATE_ENABLED);
6823 program { name: "focused";
6824 //signal: "elm,action,focus";
6826 action: STATE_SET "focused" 0.0;
6827 target: "button_image";
6830 program { name: "unfocused";
6831 //signal: "elm,action,unfocus";
6833 action: STATE_SET "default" 0.0;
6834 target: "button_image";
6835 after: "unfocus_text";
6837 program { name: "unfocus_text";
6838 action: STATE_SET "visible" 0.0;
6844 ///////////////////////////////////////////////////////////////////////////////////////
6845 group { name: "elm/button/base/expandable_number";
6846 alias: "elm/button/base/text_only/expandable_number";
6848 item: "focus_highlight" "on";
6851 image: "00_button_01.png" COMP;
6852 image: "00_button_01_press.png" COMP;
6853 image: "00_button_01_dim.png" COMP;
6854 image: "00_arrow_expand.png" COMP;
6855 image: "00_button_01_focus.png" COMP;
6858 public button_state = BUTTON_STATE_ENABLED;
6861 part { name: "button_image";
6863 description { state: "default" 0.0;
6864 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6865 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6867 normal: "00_button_01.png";
6868 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6872 description { state: "clicked" 0.0;
6873 inherit: "default" 0.0;
6874 image.normal: "00_button_01_press.png";
6876 description { state: "disabled" 0.0;
6877 inherit: "default" 0.0;
6878 image.normal: "00_button_01_dim.png";
6880 description { state: "focused" 0.0;
6881 inherit: "default" 0.0;
6882 image.normal: "00_button_01_press.png";
6885 part { name: "focus_image";
6889 description { state: "default" 0.0;
6890 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6891 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6893 rel1.to : "button_image";
6894 rel2.to : "button_image";
6896 normal: "00_button_01_focus.png";
6897 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6901 description { state: "focused" 0.0;
6902 inherit: "default" 0.0;
6906 part { name: "padding_left_top";
6910 description { state: "default" 0.0;
6913 rel2.relative: 0.0 0.0;
6914 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6918 part { name: "padding_right_bottom";
6922 description { state: "default" 0.0;
6925 rel1.relative: 1.0 1.0;
6926 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6930 part { name: "icon_rect";
6934 description { state: "default" 0.0;
6936 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6937 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6941 to_x: "padding_right_bottom";
6942 to_y: "padding_left_top";
6946 to: "padding_right_bottom";
6951 part { name: "arrow_expand";
6953 clip_to: "icon_clipper";
6955 description { state: "default" 0.0;
6957 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6958 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6960 rel1.to: "icon_rect";
6961 rel2.to: "icon_rect";
6962 image.normal:"00_arrow_expand.png";
6965 part { name: "elm.text";
6968 effect: SHADOW BOTTOM;
6970 description { state: "default" 0.0;
6971 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6972 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6976 to: "padding_left_top";
6980 to_x:"padding_left_top";
6981 to_y:"padding_right_bottom";
6984 color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6985 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6987 font: "Tizen:style=Regular";
6988 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6992 text_class: "tizen";
6995 description { state: "visible" 0.0;
6996 inherit: "default" 0.0;
6998 description { state: "clicked" 0.0;
6999 inherit: "default" 0.0;
7000 color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
7002 description { state: "disabled" 0.0;
7003 inherit: "default" 0.0;
7005 description { state: "disabled_visible" 0.0;
7006 inherit: "default" 0.0;
7007 color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
7009 description { state: "focused" 0.0;
7010 inherit: "default" 0.0;
7011 color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
7014 part { name: "icon_clipper";
7017 description { state: "default" 0.0;
7018 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
7020 description { state: "clicked" 0.0;
7021 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
7023 description { state: "disabled" 0.0;
7024 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
7027 part { name: "over2";
7030 ignore_flags: ON_HOLD;
7031 description { state: "default" 0.0;
7035 part { name: "over3";
7038 description { state: "default" 0.0;
7042 part { name: "disabler";
7044 description { state: "default" 0.0;
7048 description { state: "disabled" 0.0;
7049 inherit: "default" 0.0;
7055 program { name: "button_click";
7056 signal: "mouse,down,1";
7058 action: SIGNAL_EMIT "elm,action,press" "";
7059 after: "button_click_anim";
7061 program { name: "button_click_anim";
7062 action: STATE_SET "clicked" 0.0;
7063 target: "button_image";
7064 target: "icon_clipper";
7065 after: "text_clicked";
7067 program { name: "text_clicked";
7071 get_state(PART:"elm.text", st, 30, vl);
7072 if (!strcmp(st, "visible"))
7073 set_state(PART:"elm.text", "clicked", 0.0);
7076 program { name: "button_double_click";
7077 signal: "mouse,down,1,double";
7079 after: "button_click_anim";
7081 program { name: "button_unpress";
7082 action: SIGNAL_EMIT "elm,action,unpress" "";
7084 program { name: "button_mouseout_clicked";
7085 signal: "mouse,up,1";
7088 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7090 set_state(PART:"button_image", "default", 0.0);
7091 set_state(PART:"elm.text", "visible", 0.0);
7092 set_state(PART:"icon_clipper", "default", 0.0);
7095 after: button_unpress;
7097 program { name: "touch_snd";
7098 signal: "mouse,clicked,1";
7100 action: PLAY_SAMPLE "touch_sound" 1.0;
7101 after: button_unclick3;
7103 program { name: "button_unclick3";
7104 action: SIGNAL_EMIT "elm,action,click" "";
7106 program { name: "text_show";
7107 signal: "elm,state,text,visible";
7110 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7111 set_state(PART:"elm.text", "visible", 0.0);
7113 set_state(PART:"elm.text", "disabled_visible", 0.0);
7116 program { name: "text_hide";
7117 signal: "elm,state,text,hidden";
7120 set_state(PART:"elm.text", "default", 0.0);
7123 program { name: "disable";
7124 signal: "elm,state,disabled";
7126 action: STATE_SET "disabled" 0.0;
7127 target: "button_image";
7129 target: "icon_clipper";
7130 after: "disable_text";
7132 program { name: "disable_text";
7136 get_state(PART:"elm.text", st, 30, vl);
7137 if (!strcmp(st, "visible"))
7138 set_state(PART:"elm.text", "disabled_visible", 0.0);
7140 set_state(PART:"elm.text", "disabled", 0.0);
7141 set_int(button_state, BUTTON_STATE_DISABLED);
7144 program { name: "enable";
7145 signal: "elm,state,enabled";
7147 action: STATE_SET "default" 0.0;
7148 target: "button_image";
7150 target: "icon_clipper";
7151 after: "enable_text";
7153 program { name: "enable_text";
7157 get_state(PART:"elm.text", st, 30, vl);
7158 if (!strcmp(st, "disabled_visible"))
7159 set_state(PART:"elm.text", "visible", 0.0);
7161 set_state(PART:"elm.text", "default", 0.0);
7162 set_int(button_state, BUTTON_STATE_ENABLED);
7165 program { name: "action_focus";
7166 signal: "elm,action,focus_highlight,show";
7168 action: STATE_SET "focused" 0.0;
7169 target: "focus_image";
7171 program { name: "action_unfocus";
7172 signal: "elm,action,focus_highlight,hide";
7174 action: STATE_SET "default" 0.0;
7175 target: "focus_image";
7180 ////////////////////////////////////////////////////////////////////////
7181 group { name: "elm/button/base/bubble_sent";
7182 inherit: "elm/button/base/style1";
7184 image: "00_messagebubble_button_sent.png" COMP;
7185 image: "00_messagebubble_button_sent_press.png" COMP;
7186 image: "00_messagebubble_button_sent_dim.png" COMP;
7189 part { name: "button_image";
7191 description { state: "default" 0.0;
7193 normal: "00_messagebubble_button_sent.png";
7194 border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
7198 description { state: "clicked" 0.0;
7199 inherit: "default" 0.0;
7200 image.normal: "00_messagebubble_button_sent_press.png";
7202 description { state: "disabled" 0.0;
7203 inherit: "default" 0.0;
7204 image.normal: "00_messagebubble_button_sent_dim.png";
7206 description { state: "focused" 0.0;
7207 inherit: "default" 0.0;
7208 image.normal: "00_messagebubble_button_sent_press.png";
7211 part { name: "elm.text";
7214 effect: FAR_SHADOW BOTTOM;
7217 description { state: "default" 0.0;
7221 to_x: "padding_after_icon";
7222 to_y: "padding_left_top";
7226 to: "padding_right_bottom";
7228 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
7229 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7231 font: "Tizen:style=Regular";
7232 size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
7235 text_class: "tizen";
7238 description { state: "visible" 0.0;
7239 inherit: "default" 0.0;
7242 description { state: "clicked" 0.0;
7243 inherit: "default" 0.0;
7245 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
7247 description { state: "disabled" 0.0;
7248 inherit: "default" 0.0;
7250 description { state: "disabled_visible" 0.0;
7251 inherit: "default" 0.0;
7252 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
7255 description { state: "focused" 0.0;
7256 inherit: "default" 0.0;
7258 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7264 ////////////////////////////////////////////////////////////////////////
7265 group { name: "elm/button/base/bubble_sent/multiline";
7266 inherit: "elm/button/base/bubble_sent";
7268 style { name: "bubble_sent_multiline";
7269 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";
7276 part { name: "elm.text";
7279 effect: FAR_SHADOW BOTTOM;
7282 description { state: "default" 0.0;
7287 to_x: "padding_after_icon";
7288 to_y: "padding_left_top";
7292 to: "padding_right_bottom";
7294 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
7295 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7297 style: "bubble_sent_multiline";
7300 description { state: "visible" 0.0;
7301 inherit: "default" 0.0;
7304 description { state: "clicked" 0.0;
7305 inherit: "default" 0.0;
7307 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
7309 description { state: "disabled" 0.0;
7310 inherit: "default" 0.0;
7312 description { state: "disabled_visible" 0.0;
7313 inherit: "default" 0.0;
7314 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
7317 description { state: "focused" 0.0;
7318 inherit: "default" 0.0;
7320 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7326 ///////////////////////////////////////////////////////////////////////
7327 group { name: "elm/button/base/bubble_receive";
7328 inherit: "elm/button/base/style1";
7330 image: "00_messagebubble_button_receive.png" COMP;
7331 image: "00_messagebubble_button_receive_press.png" COMP;
7332 image: "00_messagebubble_button_receive_dim.png" COMP;
7335 part { name: "button_image";
7337 description { state: "default" 0.0;
7339 normal: "00_messagebubble_button_receive.png";
7340 border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
7344 description { state: "clicked" 0.0;
7345 inherit: "default" 0.0;
7346 image.normal: "00_messagebubble_button_receive_press.png";
7348 description { state: "disabled" 0.0;
7349 inherit: "default" 0.0;
7350 image.normal: "00_messagebubble_button_receive_dim.png";
7352 description { state: "focused" 0.0;
7353 inherit: "default" 0.0;
7354 image.normal: "00_messagebubble_button_receive_press.png";
7357 part { name: "elm.text";
7360 effect: SHADOW BOTTOM;
7363 description { state: "default" 0.0;
7367 to_x: "padding_after_icon";
7368 to_y: "padding_left_top";
7372 to: "padding_right_bottom";
7374 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
7375 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7377 font: "Tizen:style=Regular";
7378 size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
7381 text_class: "tizen";
7384 description { state: "visible" 0.0;
7385 inherit: "default" 0.0;
7388 description { state: "clicked" 0.0;
7389 inherit: "default" 0.0;
7391 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
7393 description { state: "disabled" 0.0;
7394 inherit: "default" 0.0;
7396 description { state: "disabled_visible" 0.0;
7397 inherit: "default" 0.0;
7398 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
7401 description { state: "focused" 0.0;
7402 inherit: "default" 0.0;
7404 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7410 ///////////////////////////////////////////////////////////////////////
7411 group { name: "elm/button/base/bubble_receive/multiline";
7412 inherit: "elm/button/base/bubble_receive";
7414 style { name: "bubble_receive_multiline";
7415 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";
7422 part { name: "elm.text";
7425 effect: SHADOW BOTTOM;
7428 description { state: "default" 0.0;
7433 to_x: "padding_after_icon";
7434 to_y: "padding_left_top";
7438 to: "padding_right_bottom";
7440 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
7441 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7443 style: "btn_style1_multiline";
7446 description { state: "visible" 0.0;
7447 inherit: "default" 0.0;
7450 description { state: "clicked" 0.0;
7451 inherit: "default" 0.0;
7453 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
7455 description { state: "disabled" 0.0;
7456 inherit: "default" 0.0;
7458 description { state: "disabled_visible" 0.0;
7459 inherit: "default" 0.0;
7460 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
7463 description { state: "focused" 0.0;
7464 inherit: "default" 0.0;
7466 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7472 ///////////////////////////////////////////////////////////////////////
7473 group { name: "elm/button/base/bubble_circle/receive";
7475 image: "00_messagebubble_circle_receive.png" COMP;
7476 image: "00_messagebubble_circle_receive_press.png" COMP;
7477 image: "00_messagebubble_circle_receive_dim.png" COMP;
7478 image: "00_button_right.png" COMP;
7479 image: "00_button_right_press.png" COMP;
7482 part { name: "button_image";
7484 description { state: "default" 0.0;
7485 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7486 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7487 image.normal: "00_messagebubble_circle_receive.png";
7490 state: "clicked" 0.0;
7491 inherit: "default" 0.0;
7492 image.normal: "00_messagebubble_circle_receive_press.png";
7495 state: "disabled" 0.0;
7496 inherit: "default" 0.0;
7497 image.normal: "00_messagebubble_circle_receive_dim.png";
7500 part { name: "image";
7502 clip_to: "icon_clipper";
7503 description { state: "default" 0.0;
7504 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7505 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7506 image.normal: "00_button_right.png";
7509 state: "clicked" 0.0;
7510 inherit: "default" 0.0;
7511 image.normal: "00_button_right_press.png";
7514 state: "disabled" 0.0;
7515 inherit: "default" 0.0;
7518 part { name: "icon_clipper";
7521 description { state: "default" 0.0;
7522 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
7524 description { state: "clicked" 0.0;
7525 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
7527 description { state: "disabled" 0.0;
7528 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
7531 part { name: "over1";
7533 ignore_flags: ON_HOLD;
7534 description { state: "default" 0.0;
7538 part { name: "over2";
7541 description { state: "default" 0.0;
7545 part { name: "disabler";
7547 description { state: "default" 0.0;
7551 description { state: "disabled" 0.0;
7552 inherit: "default" 0.0;
7558 program { name: "button_click";
7559 signal: "mouse,down,1";
7561 action: SIGNAL_EMIT "elm,action,press" "";
7562 after: "button_click_anim";
7564 program { name: "button_click_anim";
7565 action: STATE_SET "clicked" 0.0;
7566 target: "button_image";
7568 target: "icon_clipper";
7570 program { name: "button_double_click";
7571 signal: "mouse,down,1,double";
7573 after: "button_click_anim";
7575 program { name: "button_unclick";
7576 signal: "mouse,up,1";
7578 action: SIGNAL_EMIT "elm,action,unpress" "";
7579 after: "button_unclick_anim";
7581 program { name: "button_unclick_anim";
7582 action: STATE_SET "default" 0.0;
7583 target: "button_image";
7585 target: "icon_clipper";
7587 program { name: "touch_snd";
7588 signal: "mouse,clicked,1";
7590 action: PLAY_SAMPLE "touch_sound" 1.0;
7591 after: button_unclick3;
7593 program { name: "button_unclick3";
7594 action: SIGNAL_EMIT "elm,action,click" "";
7596 program { name: "disable";
7597 signal: "elm,state,disabled";
7599 action: STATE_SET "disabled" 0.0;
7601 target: "button_image";
7602 target: "icon_clipper";
7605 program { name: "enable";
7606 signal: "elm,state,enabled";
7608 action: STATE_SET "default" 0.0;
7610 target: "button_image";
7611 target: "icon_clipper";
7616 ///////////////////////////////////////////////////////////////////////
7617 group { name: "elm/button/base/bubble_circle/sent";
7619 image: "00_messagebubble_circle_sent.png" COMP;
7620 image: "00_messagebubble_circle_sent_press.png" COMP;
7621 image: "00_messagebubble_circle_sent_dim.png" COMP;
7622 image: "00_button_right.png" COMP;
7623 image: "00_button_right_press.png" COMP;
7626 part { name: "button_image";
7628 description { state: "default" 0.0;
7629 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7630 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7631 image.normal: "00_messagebubble_circle_sent.png";
7634 state: "clicked" 0.0;
7635 inherit: "default" 0.0;
7636 image.normal: "00_messagebubble_circle_sent_press.png";
7639 state: "disabled" 0.0;
7640 inherit: "default" 0.0;
7641 image.normal: "00_messagebubble_circle_sent_dim.png";
7644 part { name: "image";
7646 clip_to: "icon_clipper";
7647 description { state: "default" 0.0;
7648 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7649 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7650 image.normal: "00_button_right.png";
7653 state: "clicked" 0.0;
7654 inherit: "default" 0.0;
7655 image.normal: "00_button_right_press.png";
7658 state: "disabled" 0.0;
7659 inherit: "default" 0.0;
7662 part { name: "icon_clipper";
7665 description { state: "default" 0.0;
7666 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
7668 description { state: "clicked" 0.0;
7669 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
7671 description { state: "disabled" 0.0;
7672 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
7675 part { name: "over1";
7677 ignore_flags: ON_HOLD;
7678 description { state: "default" 0.0;
7682 part { name: "over2";
7685 description { state: "default" 0.0;
7689 part { name: "disabler";
7691 description { state: "default" 0.0;
7695 description { state: "disabled" 0.0;
7696 inherit: "default" 0.0;
7702 program { name: "button_click";
7703 signal: "mouse,down,1";
7705 action: SIGNAL_EMIT "elm,action,press" "";
7706 after: "button_click_anim";
7708 program { name: "button_click_anim";
7709 action: STATE_SET "clicked" 0.0;
7710 target: "button_image";
7712 target: "icon_clipper";
7714 program { name: "button_double_click";
7715 signal: "mouse,down,1,double";
7717 after: "button_click_anim";
7719 program { name: "button_unclick";
7720 signal: "mouse,up,1";
7722 action: SIGNAL_EMIT "elm,action,unpress" "";
7723 after: "button_unclick_anim";
7725 program { name: "button_unclick_anim";
7726 action: STATE_SET "default" 0.0;
7727 target: "button_image";
7729 target: "icon_clipper";
7731 program { name: "touch_snd";
7732 signal: "mouse,clicked,1";
7734 action: PLAY_SAMPLE "touch_sound" 1.0;
7735 after: button_unclick3;
7737 program { name: "button_unclick3";
7738 action: SIGNAL_EMIT "elm,action,click" "";
7740 program { name: "disable";
7741 signal: "elm,state,disabled";
7743 action: STATE_SET "disabled" 0.0;
7745 target: "button_image";
7746 target: "icon_clipper";
7748 program { name: "enable";
7749 signal: "elm,state,enabled";
7751 action: STATE_SET "default" 0.0;
7753 target: "button_image";
7754 target: "icon_clipper";
7759 //////////////////////////////////////////////////////////////////////////////////////
7760 group { name: "elm/button/base/editfield_rename";
7762 image: "00_edit_field_rename.png" COMP;
7765 part { name: "button_image";
7768 description { state: "default" 0.0;
7771 description { state: "clicked" 0.0;
7772 inherit: "default" 0.0;
7774 description { state: "disabled" 0.0;
7775 inherit: "default" 0.0;
7777 description { state: "focused" 0.0;
7778 inherit: "default" 0.0;
7781 part { name: "rename_button";
7784 clip_to: "rename_button.clipper";
7785 description { state: "default" 0.0;
7786 min: BUTTON_EDITFIELD_RENAME_BUTTON_MIN_MAX_INC;
7787 max: BUTTON_EDITFIELD_RENAME_BUTTON_MIN_MAX_INC;
7790 image.normal: "00_edit_field_rename.png";
7793 part { name: "rename_button.clipper";
7795 description { state: "default" 0.0;
7796 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7798 description { state: "clicked" 0.0;
7799 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7801 description { state: "disabled" 0.0;
7802 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7805 part { name: "over2";
7807 ignore_flags: ON_HOLD;
7808 description { state: "default" 0.0;
7812 part { name: "over3";
7815 description { state: "default" 0.0;
7819 part { name: "disabler";
7821 description { state: "default" 0.0;
7825 description { state: "disabled" 0.0;
7826 inherit: "default" 0.0;
7832 program { name: "button_click";
7833 signal: "mouse,down,1";
7835 action: SIGNAL_EMIT "elm,action,press" "";
7836 after: "button_click_anim";
7838 program { name: "button_click_anim";
7839 action: STATE_SET "clicked" 0.0;
7840 target: "button_image";
7841 target: "rename_button.clipper";
7843 program { name: "button_double_click";
7844 signal: "mouse,down,1,double";
7846 after: "button_click_anim";
7848 program { name: "button_unclick";
7849 signal: "mouse,up,1";
7851 action: SIGNAL_EMIT "elm,action,unpress" "";
7852 after: "button_unclick_anim";
7854 program { name: "button_unclick_anim";
7855 action: STATE_SET "default" 0.0;
7856 target: "button_image";
7857 target: "rename_button.clipper";
7859 program { name: "touch_snd";
7860 signal: "mouse,clicked,1";
7862 action: PLAY_SAMPLE "touch_sound" 1.0;
7863 after: "button_unclick3";
7865 program { name: "button_unclick3";
7866 action: SIGNAL_EMIT "elm,action,click" "";
7868 program { name: "disable";
7869 signal: "elm,state,disabled";
7871 action: STATE_SET "disabled" 0.0;
7872 target: "button_image";
7874 target: "rename_button.clipper";
7876 program { name: "enable";
7877 signal: "elm,state,enabled";
7879 action: STATE_SET "default" 0.0;
7880 target: "button_image";
7882 target: "rename_button.clipper";
7886 group { name: "elm/button/base/editfield_clear";
7888 image: "00_edit_field_clear.png" COMP;
7891 part { name: "button_image";
7894 description { state: "default" 0.0;
7897 description { state: "clicked" 0.0;
7898 inherit: "default" 0.0;
7900 description { state: "disabled" 0.0;
7901 inherit: "default" 0.0;
7903 description { state: "focused" 0.0;
7904 inherit: "default" 0.0;
7907 part { name: "clear_button";
7910 clip_to: "clear_button.clipper";
7911 description { state: "default" 0.0;
7912 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7913 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7916 image.normal: "00_edit_field_clear.png";
7919 part { name: "clear_button.clipper";
7921 description { state: "default" 0.0;
7922 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7924 description { state: "clicked" 0.0;
7925 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7927 description { state: "disabled" 0.0;
7928 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7931 part { name: "over2";
7933 ignore_flags: ON_HOLD;
7934 description { state: "default" 0.0;
7938 part { name: "over3";
7941 description { state: "default" 0.0;
7945 part { name: "disabler";
7947 description { state: "default" 0.0;
7951 description { state: "disabled" 0.0;
7952 inherit: "default" 0.0;
7958 program { name: "button_click";
7959 signal: "mouse,down,1";
7961 action: SIGNAL_EMIT "elm,action,press" "";
7962 after: "button_click_anim";
7964 program { name: "button_click_anim";
7965 action: STATE_SET "clicked" 0.0;
7966 target: "button_image";
7967 target: "clear_button.clipper";
7969 program { name: "button_double_click";
7970 signal: "mouse,down,1,double";
7972 after: "button_click_anim";
7974 program { name: "button_unclick";
7975 signal: "mouse,up,1";
7977 action: SIGNAL_EMIT "elm,action,unpress" "";
7978 after: "button_unclick_anim";
7980 program { name: "button_unclick_anim";
7981 action: STATE_SET "default" 0.0;
7982 target: "button_image";
7983 target: "clear_button.clipper";
7985 program { name: "touch_snd";
7986 signal: "mouse,clicked,1";
7988 action: PLAY_SAMPLE "touch_sound" 1.0;
7989 after: button_unclick3;
7991 program { name: "button_unclick3";
7992 action: SIGNAL_EMIT "elm,action,click" "";
7994 program { name: "disable";
7995 signal: "elm,state,disabled";
7997 action: STATE_SET "disabled" 0.0;
7998 target: "button_image";
8000 target: "clear_button.clipper";
8002 program { name: "enable";
8003 signal: "elm,state,enabled";
8005 action: STATE_SET "default" 0.0;
8006 target: "button_image";
8008 target: "clear_button.clipper";
8013 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
8014 group { name: "elm/button/base/"style_name; \
8016 item: "focus_highlight" "on"; \
8019 image: image_normal COMP; \
8022 part { name: "elm.swallow.content"; \
8025 description { state: "default" 0.0; \
8028 part { name: "focus_image"; \
8032 description { state: "default" 0.0; \
8035 normal: image_normal; \
8040 description { state: "focused" 0.0; \
8041 inherit: "default" 0.0; \
8045 part { name: "over2"; \
8048 ignore_flags: ON_HOLD; \
8049 description { state: "default" 0.0; \
8053 part { name: "over3"; \
8056 description { state: "default" 0.0; \
8062 program { name: "button_click"; \
8063 signal: "mouse,down,1"; \
8065 action: SIGNAL_EMIT "elm,action,press" ""; \
8067 program { name: "button_unclick"; \
8068 signal: "mouse,up,1"; \
8070 action: SIGNAL_EMIT "elm,action,unpress" ""; \
8072 program { name: "button_click3"; \
8073 signal: "mouse,clicked,1"; \
8075 action: SIGNAL_EMIT "elm,action,click" ""; \
8077 program { name: "action_focus"; \
8078 signal: "elm,action,focus_highlight,show"; \
8080 action: STATE_SET "focused" 0.0; \
8081 target: "focus_image"; \
8083 program { name: "action_unfocus"; \
8084 signal: "elm,action,focus_highlight,hide"; \
8086 action: STATE_SET "default" 0.0; \
8087 target: "focus_image"; \
8092 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
8093 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
8094 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
8095 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
8097 group { name: "elm/button/base/search_icon";
8099 image: "00_search_icon.png" COMP;
8102 part { name: "search_icon";
8105 clip_to: "search_icon.clipper";
8106 description { state: "default" 0.0;
8107 min: BUTTON_SEARCH_ICON_MIN_MAX_INC;
8108 max: BUTTON_SEARCH_ICON_MIN_MAX_INC;
8111 image.normal: "00_search_icon.png";
8114 part { name: "search_icon.clipper";
8116 description { state: "default" 0.0;
8117 color: BUTTON_SEARCH_ICON_CLIPPER_DEFAULT_COLOR_INC;
8119 description { state: "disabled" 0.0;
8120 color: BUTTON_SEARCH_ICON_CLIPPER_DISABLED_COLOR_INC;
8123 part { name: "over2";
8125 ignore_flags: ON_HOLD;
8126 description { state: "default" 0.0;
8130 part { name: "over3";
8133 description { state: "default" 0.0;
8137 part { name: "disabler";
8139 description { state: "default" 0.0;
8143 description { state: "disabled" 0.0;
8144 inherit: "default" 0.0;
8150 program { name: "button_click";
8151 signal: "mouse,down,1";
8153 action: SIGNAL_EMIT "elm,action,press" "";
8155 program { name: "button_double_click";
8156 signal: "mouse,down,1,double";
8159 program { name: "button_unclick";
8160 signal: "mouse,up,1";
8162 action: SIGNAL_EMIT "elm,action,unpress" "";
8164 program { name: "touch_snd";
8165 signal: "mouse,clicked,1";
8167 action: PLAY_SAMPLE "touch_sound" 1.0;
8168 after: "button_unclick3";
8170 program { name: "button_unclick3";
8171 action: SIGNAL_EMIT "elm,action,click" "";
8173 program { name: "disable";
8174 signal: "elm,state,disabled";
8176 action: STATE_SET "disabled" 0.0;
8178 target: "search_icon.clipper";
8180 program { name: "enable";
8181 signal: "elm,state,enabled";
8183 action: STATE_SET "default" 0.0;
8185 target: "search_icon.clipper";
8189 group { name: "elm/button/base/search_rename";
8190 inherit: "elm/button/base/editfield_rename";
8192 part { name: "rename_button";
8195 clip_to: "rename_button.clipper";
8196 description { state: "default" 0.0;
8197 min: BUTTON_SEARCH_RENAME_BUTTON_MIN_MAX_INC;
8198 max: BUTTON_SEARCH_RENAME_BUTTON_MIN_MAX_INC;
8201 image.normal: "00_edit_field_rename.png";
8207 group { name: "elm/button/base/search_clear";
8208 inherit: "elm/button/base/editfield_clear";
8210 image: "00_field_btn_clear.png" COMP;
8213 part { name: "clear_button";
8216 clip_to: "clear_button.clipper";
8217 description { state: "default" 0.0;
8218 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
8219 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
8222 image.normal: "00_field_btn_clear.png";
8225 part { name: "clear_button.clipper";
8227 description { state: "default" 0.0;
8228 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
8230 description { state: "clicked" 0.0;
8231 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
8233 description { state: "disabled" 0.0;
8234 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
8240 #undef BUTTON_STATE_ENABLED
8241 #undef BUTTON_STATE_DISABLED
8242 #undef BUTTON_LANDSCAPE_DISABLED
8243 #undef BUTTON_LANDSCAPE_ENABLED