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
25 name: "touch_sound" AS_IS;
26 source: "S_Touch_30ms.wav";
30 ///////////////////////////////////////////////////////////////////////////////////////
31 group { name: "elm/button/base/style1";
32 alias: "elm/button/base/text_only/style1";
33 alias: "elm/button/base/center";
34 alias: "elm/button/base/icon_and_text/center";
35 alias: "elm/button/base/nocontents/search_button";
36 alias: "elm/button/base/style1/multiline";
38 image: "00_button_01.png" COMP;
39 image: "00_button_01_press.png" COMP;
40 image: "00_button_01_dim.png" COMP;
43 public button_state = BUTTON_STATE_ENABLED;
46 part { name: "button_image";
48 description { state: "default" 0.0;
50 normal: "00_button_01.png";
51 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
55 description { state: "clicked" 0.0;
56 inherit: "default" 0.0;
57 image.normal: "00_button_01_press.png";
59 description { state: "disabled" 0.0;
60 inherit: "default" 0.0;
61 image.normal: "00_button_01_dim.png";
63 description { state: "focused" 0.0;
64 inherit: "default" 0.0;
65 image.normal: "00_button_01_press.png";
68 part { name: "padding_left_top";
72 description { state: "default" 0.0;
74 rel2.relative: 0.0 0.0;
75 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
84 description { state: "default" 0.0;
85 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
88 description { state: "visible" 0.0;
89 inherit: "default" 0.0;
90 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
92 description { state: "icononly" 0.0;
93 inherit: "default" 0.0;
94 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
97 part { name: "padding_right_bottom";
101 description { state: "default" 0.0;
103 rel1.relative: 1.0 1.0;
104 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
109 part { name: "icon_rect";
113 description { state: "default" 0.0;
119 to: "padding_left_top";
123 to_x: "padding_left_top";
124 to_y: "padding_right_bottom";
128 description { state: "visible" 0.0;
129 inherit: "default" 0.0;
130 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
131 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
133 description { state: "icononly" 0.0;
134 inherit: "default" 0.0;
137 part { name: "padding_after_icon";
141 description { state: "default" 0.0; //when only icon or no icon is there
147 rel2.to: "icon_rect";
152 description { state: "visible" 0.0;
153 inherit: "default" 0.0;
154 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
156 description { state: "icononly" 0.0;
157 inherit: "default" 0.0;
160 part { name: "padding_before_text";
164 description { state: "default" 0.0; //when only icon or no icon is there
169 to_y: "padding_left_top";
174 to_y: "padding_right_bottom";
177 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
181 part { name: "elm.swallow.content";
185 description { state: "default" 0.0;
190 to: "padding_left_top";
194 to_x: "padding_left_top";
195 to_y: "padding_right_bottom";
199 description { state: "visible" 0.0;
201 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
202 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
206 to_x: "padding_before_text";
207 to_y: "padding_left_top";
211 to_x: "padding_before_text";
212 to_y: "padding_right_bottom";
215 description { state: "icononly" 0.0;
216 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
217 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
220 part { name: "elm.text";
223 effect: SHADOW BOTTOM;
226 description { state: "default" 0.0;
230 to_x: "padding_after_icon";
231 to_y: "padding_left_top";
235 to: "padding_right_bottom";
237 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
238 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
240 font: "Tizen:style=Regular";
241 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
247 description { state: "visible" 0.0;
248 inherit: "default" 0.0;
251 description { state: "clicked" 0.0;
252 inherit: "default" 0.0;
254 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
255 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
257 description { state: "disabled" 0.0;
258 inherit: "default" 0.0;
260 description { state: "disabled_visible" 0.0;
261 inherit: "default" 0.0;
262 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
263 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
266 description { state: "focused" 0.0;
267 inherit: "default" 0.0;
269 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
272 part { name: "over2";
275 ignore_flags: ON_HOLD;
276 description { state: "default" 0.0;
280 part { name: "over3";
283 description { state: "default" 0.0;
287 part { name: "clipper";
289 description { state: "default" 0.0;
290 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
292 description { state: "disabled" 0.0;
293 inherit: "default" 0.0;
294 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
297 part { name: "disabler";
299 description { state: "default" 0.0;
303 description { state: "disabled" 0.0;
304 inherit: "default" 0.0;
310 program { name: "button_click";
311 signal: "mouse,down,1";
313 action: SIGNAL_EMIT "elm,action,press" "";
314 after: "button_click_anim";
316 program { name: "button_click_anim";
317 action: STATE_SET "clicked" 0.0;
318 target: "button_image";
319 after: "text_clicked";
321 program { name: "text_clicked";
325 get_state(PART:"elm.text", st, 30, vl);
326 if (!strcmp(st, "visible"))
327 set_state(PART:"elm.text", "clicked", 0.0);
330 program { name: "button_unpress";
331 action: SIGNAL_EMIT "elm,action,unpress" "";
333 program { name: "button_mouseout_clicked";
334 signal: "mouse,up,1";
339 get_state(PART:"elm.swallow.content", st, 30, vl);
340 if (strcmp(st, "icononly"))
342 emit("elm,action,default,text,set", "");
343 set_state(PART:"elm.text", "visible", 0.0);
345 if (get_int(button_state) != BUTTON_STATE_DISABLED)
346 set_state(PART:"button_image", "default", 0.0);
348 after: button_unpress;
350 program { name: "touch_snd";
351 signal: "mouse,clicked,1";
353 action: PLAY_SAMPLE "touch_sound" 1.0;
354 after: button_unclick3;
356 program { name: "button_unclick3";
357 action: SIGNAL_EMIT "elm,action,click" "";
359 program { name: "text_show";
360 signal: "elm,state,text,visible";
365 get_state(PART:"elm.swallow.content", st, 30, vl);
366 if (!strcmp(st, "icononly"))
368 set_state(PART:"elm.swallow.content", "visible", 0.0);
369 set_state(PART:"icon_rect", "visible", 0.0);
370 set_state(PART:"padding_after_icon", "visible", 0.0);
371 set_state(PART:"bg", "visible", 0.0);
373 if (get_int(button_state) != BUTTON_STATE_DISABLED)
374 set_state(PART:"elm.text", "visible", 0.0);
376 set_state(PART:"elm.text", "disabled_visible", 0.0);
379 program { name: "text_hide";
380 signal: "elm,state,text,hidden";
385 get_state(PART:"elm.swallow.content", st, 30, vl);
386 if (!strcmp(st, "visible"))
388 set_state(PART:"elm.swallow.content", "icononly", 0.0);
389 set_state(PART:"icon_rect", "icononly", 0.0);
390 set_state(PART:"padding_after_icon", "icononly", 0.0);
391 set_state(PART:"bg", "icononly", 0.0);
393 set_state(PART:"elm.text", "default", 0.0);
396 program { name: "icon_show";
397 signal: "elm,state,icon,visible";
402 get_state(PART:"elm.text", st, 30, vl);
403 if (!strcmp(st, "visible"))
405 set_state(PART:"elm.swallow.content", "visible", 0.0);
406 set_state(PART:"icon_rect", "visible", 0.0);
407 set_state(PART:"padding_after_icon", "visible", 0.0);
408 set_state(PART:"bg", "visible", 0.0);
412 set_state(PART:"elm.swallow.content", "icononly", 0.0);
413 set_state(PART:"icon_rect", "icononly", 0.0);
414 set_state(PART:"padding_after_icon", "icononly", 0.0);
415 set_state(PART:"bg", "icononly", 0.0);
419 program { name: "icon_hide";
420 signal: "elm,state,icon,hidden";
422 action: STATE_SET "default" 0.0;
423 target: "elm.swallow.content";
424 target: "padding_after_icon";
428 program { name: "disable";
429 signal: "elm,state,disabled";
431 action: STATE_SET "disabled" 0.0;
432 target: "button_image";
435 after: "disable_text";
437 program { name: "disable_text";
441 get_state(PART:"elm.text", st, 30, vl);
442 if (!strcmp(st, "visible"))
443 set_state(PART:"elm.text", "disabled_visible", 0.0);
445 set_state(PART:"elm.text", "disabled", 0.0);
446 set_int(button_state, BUTTON_STATE_DISABLED);
449 program { name: "enable";
450 signal: "elm,state,enabled";
452 action: STATE_SET "default" 0.0;
453 target: "button_image";
456 after: "enable_text";
458 program { name: "enable_text";
462 get_state(PART:"elm.text", st, 30, vl);
463 if (!strcmp(st, "disabled_visible"))
464 set_state(PART:"elm.text", "visible", 0.0);
466 set_state(PART:"elm.text", "default", 0.0);
467 set_int(button_state, BUTTON_STATE_ENABLED);
470 program { name: "focused";
471 //signal: "elm,action,focus";
473 action: STATE_SET "focused" 0.0;
474 target: "button_image";
477 program { name: "unfocused";
478 //signal: "elm,action,unfocus";
480 action: STATE_SET "default" 0.0;
481 target: "button_image";
482 after: "unfocus_text";
484 program { name: "unfocus_text";
485 action: STATE_SET "visible" 0.0;
491 //////////////////////////////////////////////////////////////
492 group { name: "elm/button/base/style1/auto_expand";
493 inherit: "elm/button/base/style1";
495 part { name: "elm.text";
498 effect: SHADOW BOTTOM;
501 description { state: "default" 0.0;
505 to_x: "padding_after_icon";
506 to_y: "padding_left_top";
510 to: "padding_right_bottom";
512 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
513 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
515 font: "Tizen:style=Regular";
516 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
522 description { state: "visible" 0.0;
523 inherit: "default" 0.0;
526 description { state: "clicked" 0.0;
527 inherit: "default" 0.0;
529 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
530 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
532 description { state: "disabled" 0.0;
533 inherit: "default" 0.0;
535 description { state: "disabled_visible" 0.0;
536 inherit: "default" 0.0;
537 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
538 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
541 description { state: "focused" 0.0;
542 inherit: "default" 0.0;
544 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
550 //////////////////////////////////////////////////////////////////////////////////////
551 group { name: "elm/button/base/datetime_ampm/default";
552 inherit: "elm/button/base/style1/auto_expand";
554 part { name: "button_image";
556 description { state: "default" 0.0;
558 normal: "00_button_01.png";
559 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
562 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
563 max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
565 description { state: "clicked" 0.0;
566 inherit: "default" 0.0;
567 image.normal: "00_button_01_press.png";
569 description { state: "disabled" 0.0;
570 inherit: "default" 0.0;
571 image.normal: "00_button_01_dim.png";
573 description { state: "focused" 0.0;
574 inherit: "default" 0.0;
575 image.normal: "00_button_01_press.png";
582 description { state: "default" 0.0;
586 description { state: "visible" 0.0;
587 inherit: "default" 0.0;
588 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
590 description { state: "icononly" 0.0;
591 inherit: "default" 0.0;
594 part { name: "elm.text";
597 effect: SHADOW BOTTOM;
600 description { state: "default" 0.0;
603 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
604 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
607 description { state: "visible" 0.0;
608 inherit: "default" 0.0;
611 description { state: "clicked" 0.0;
612 inherit: "default" 0.0;
614 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
615 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
617 description { state: "disabled" 0.0;
618 inherit: "default" 0.0;
620 description { state: "disabled_visible" 0.0;
621 inherit: "default" 0.0;
622 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
623 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
626 description { state: "focused" 0.0;
627 inherit: "default" 0.0;
629 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
635 ///////////////////////////////////////////////////////////////////////////////////////
636 group { name: "elm/button/base/style1/delete";
637 inherit: "elm/button/base/style1";
639 image: "00_button_delete.png" COMP;
640 image: "00_button_delete_dim.png" COMP;
641 image: "00_button_delete_press.png" COMP;
644 part { name: "button_image";
646 description { state: "default" 0.0;
648 normal: "00_button_delete.png";
649 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
653 description { state: "clicked" 0.0;
654 inherit: "default" 0.0;
655 image.normal: "00_button_delete_press.png";
657 description { state: "disabled" 0.0;
658 inherit: "default" 0.0;
659 image.normal: "00_button_delete_dim.png";
661 description { state: "focused" 0.0;
662 inherit: "default" 0.0;
663 image.normal: "00_button_delete_press.png";
666 part { name: "elm.text";
669 effect: SHADOW BOTTOM;
672 description { state: "default" 0.0;
676 to_x: "padding_after_icon";
677 to_y: "padding_left_top";
681 to: "padding_right_bottom";
683 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
684 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
686 font: "Tizen:style=Regular";
687 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
693 description { state: "visible" 0.0;
694 inherit: "default" 0.0;
697 description { state: "clicked" 0.0;
698 inherit: "default" 0.0;
700 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
701 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
703 description { state: "disabled" 0.0;
704 inherit: "default" 0.0;
706 description { state: "disabled_visible" 0.0;
707 inherit: "default" 0.0;
708 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
709 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
712 description { state: "focused" 0.0;
713 inherit: "default" 0.0;
715 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
721 ///////////////////////////////////////////////////////////////////////////////////////
722 group { name: "elm/button/base/search_button/text";
723 alias: "elm/button/base/searchbar/default";
724 inherit: "elm/button/base/style1";
726 image: "00_button_03.png" COMP;
727 image: "00_button_03_dim.png" COMP;
728 image: "00_button_03_press.png" COMP;
731 part { name: "button_image";
733 description { state: "default" 0.0;
735 normal: "00_button_03.png";
736 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
740 description { state: "clicked" 0.0;
741 inherit: "default" 0.0;
742 image.normal: "00_button_03_press.png";
744 description { state: "disabled" 0.0;
745 inherit: "default" 0.0;
746 image.normal: "00_button_03_dim.png";
748 description { state: "focused" 0.0;
749 inherit: "default" 0.0;
750 image.normal: "00_button_03_press.png";
757 description { state: "default" 0.0;
758 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
761 description { state: "visible" 0.0;
762 inherit: "default" 0.0;
763 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
765 description { state: "icononly" 0.0;
766 inherit: "default" 0.0;
767 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
770 part { name: "elm.text";
773 effect: SHADOW BOTTOM;
776 description { state: "default" 0.0;
780 to_x: "padding_after_icon";
781 to_y: "padding_left_top";
785 to: "padding_right_bottom";
787 color: BUTTON_SEARCH_BUTTON_TEXT_NORMAL_COLOR_INC;
789 font: "Tizen:style=Regular";
790 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
796 description { state: "visible" 0.0;
797 inherit: "default" 0.0;
800 description { state: "clicked" 0.0;
801 inherit: "default" 0.0;
803 color: BUTTON_SEARCH_BUTTON_TEXT_PRESSED_COLOR_INC;
804 color2: BUTTON_SEARCH_BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
806 description { state: "disabled" 0.0;
807 inherit: "default" 0.0;
809 description { state: "disabled_visible" 0.0;
810 inherit: "default" 0.0;
811 color: BUTTON_SEARCH_BUTTON_TEXT_DISABLED_COLOR_INC;
814 description { state: "focused" 0.0;
815 inherit: "default" 0.0;
817 color: BUTTON_SEARCH_BUTTON_TEXT_FOCUSED_COLOR_INC;
823 ///////////////////////////////////////////////////////////////////////////////////////
824 group { name: "elm/button/base/search_button/send";
825 inherit: "elm/button/base/style1";
827 image: "00_button_03_send.png" COMP;
828 image: "00_button_03_send_dim.png" COMP;
829 image: "00_button_03_send_press.png" COMP;
832 part { name: "button_image";
834 description { state: "default" 0.0;
836 normal: "00_button_03_send.png";
837 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
841 description { state: "clicked" 0.0;
842 inherit: "default" 0.0;
843 image.normal: "00_button_03_send_press.png";
845 description { state: "disabled" 0.0;
846 inherit: "default" 0.0;
847 image.normal: "00_button_03_send_dim.png";
849 description { state: "focused" 0.0;
850 inherit: "default" 0.0;
851 image.normal: "00_button_03_send_press.png";
858 description { state: "default" 0.0;
859 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
862 description { state: "visible" 0.0;
863 inherit: "default" 0.0;
864 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
866 description { state: "icononly" 0.0;
867 inherit: "default" 0.0;
868 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
871 part { name: "elm.text";
874 effect: SHADOW BOTTOM;
877 description { state: "default" 0.0;
881 to_x: "padding_after_icon";
882 to_y: "padding_left_top";
886 to: "padding_right_bottom";
888 color: BUTTON_SEARCH_BUTTON_SEND_NORMAL_COLOR_INC;
889 color2: BUTTON_SEARCH_BUTTON_SEND_SHADOW_NORMAL_COLOR_INC;
891 font: "Tizen:style=Regular";
892 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
898 description { state: "visible" 0.0;
899 inherit: "default" 0.0;
902 description { state: "clicked" 0.0;
903 inherit: "default" 0.0;
905 color: BUTTON_SEARCH_BUTTON_SEND_PRESSED_COLOR_INC;
907 description { state: "disabled" 0.0;
908 inherit: "default" 0.0;
910 description { state: "disabled_visible" 0.0;
911 inherit: "default" 0.0;
912 color: BUTTON_SEARCH_BUTTON_SEND_DISABLED_COLOR_INC;
915 description { state: "focused" 0.0;
916 inherit: "default" 0.0;
918 color: BUTTON_SEARCH_BUTTON_SEND_FOCUSED_COLOR_INC;
924 ///////////////////////////////////////////////////////////////////////////////////////
925 group { name: "elm/button/base/search_button/cancel";
926 inherit: "elm/button/base/style1";
928 image: "00_button_03_cancel.png" COMP;
929 image: "00_button_03_cancel_dim.png" COMP;
930 image: "00_button_03_cancel_press.png" COMP;
933 part { name: "button_image";
935 description { state: "default" 0.0;
937 normal: "00_button_03_cancel.png";
938 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
942 description { state: "clicked" 0.0;
943 inherit: "default" 0.0;
944 image.normal: "00_button_03_cancel_press.png";
946 description { state: "disabled" 0.0;
947 inherit: "default" 0.0;
948 image.normal: "00_button_03_cancel_dim.png";
950 description { state: "focused" 0.0;
951 inherit: "default" 0.0;
952 image.normal: "00_button_03_cancel_press.png";
959 description { state: "default" 0.0;
960 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
963 description { state: "visible" 0.0;
964 inherit: "default" 0.0;
965 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
967 description { state: "icononly" 0.0;
968 inherit: "default" 0.0;
969 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
972 part { name: "elm.text";
975 effect: SHADOW BOTTOM;
978 description { state: "default" 0.0;
982 to_x: "padding_after_icon";
983 to_y: "padding_left_top";
987 to: "padding_right_bottom";
989 color: BUTTON_SEARCH_BUTTON_CANCEL_NORMAL_COLOR_INC;
990 color2: BUTTON_SEARCH_BUTTON_CANCEL_SHADOW_NORMAL_COLOR_INC;
992 font: "Tizen:style=Regular";
993 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
999 description { state: "visible" 0.0;
1000 inherit: "default" 0.0;
1003 description { state: "clicked" 0.0;
1004 inherit: "default" 0.0;
1006 color: BUTTON_SEARCH_BUTTON_CANCEL_PRESSED_COLOR_INC;
1008 description { state: "disabled" 0.0;
1009 inherit: "default" 0.0;
1011 description { state: "disabled_visible" 0.0;
1012 inherit: "default" 0.0;
1013 color: BUTTON_SEARCH_BUTTON_CANCEL_DISABLED_COLOR_INC;
1016 description { state: "focused" 0.0;
1017 inherit: "default" 0.0;
1019 color: BUTTON_SEARCH_BUTTON_CANCEL_FOCUSED_COLOR_INC;
1025 ///////////////////////////////////////////////////////////////////////////////////////
1026 group { name: "elm/button/base/style2";
1027 alias: "elm/button/base/text_only/style2";
1028 alias: "elm/button/base/style2/multiline";
1030 image: "00_button_03.png" COMP;
1031 image: "00_button_03_press.png" COMP;
1032 image: "00_button_03_dim.png" COMP;
1035 public button_state = BUTTON_STATE_ENABLED;
1038 part { name: "button_image";
1040 description { state: "default" 0.0;
1042 normal: "00_button_01.png";
1043 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1047 description { state: "clicked" 0.0;
1048 inherit: "default" 0.0;
1049 image.normal: "00_button_01_press.png";
1051 description { state: "disabled" 0.0;
1052 inherit: "default" 0.0;
1053 image.normal: "00_button_01_dim.png";
1055 description { state: "focused" 0.0;
1056 inherit: "default" 0.0;
1057 image.normal: "00_button_01_press.png";
1060 part { name: "padding_left_top";
1064 description { state: "default" 0.0;
1066 rel2.relative: 0.0 0.0;
1067 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1076 description { state: "default" 0.0;
1077 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1080 description { state: "visible" 0.0;
1081 inherit: "default" 0.0;
1082 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1084 description { state: "icononly" 0.0;
1085 inherit: "default" 0.0;
1086 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1089 part { name: "padding_right_bottom";
1093 description { state: "default" 0.0;
1095 rel1.relative: 1.0 1.0;
1096 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1101 part { name: "icon_rect";
1105 description { state: "default" 0.0;
1111 to: "padding_left_top";
1115 to_x: "padding_left_top";
1116 to_y: "padding_right_bottom";
1120 description { state: "visible" 0.0;
1121 inherit: "default" 0.0;
1122 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1123 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1125 description { state: "icononly" 0.0;
1126 inherit: "default" 0.0;
1129 part { name: "padding_after_icon";
1133 description { state: "default" 0.0; //when only icon or no icon is there
1141 rel2.to: "icon_rect";
1144 description { state: "visible" 0.0;
1145 inherit: "default" 0.0;
1146 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1148 description { state: "icononly" 0.0;
1149 inherit: "default" 0.0;
1152 part { name: "padding_before_text";
1156 description { state: "default" 0.0; //when only icon or no icon is there
1161 to_y: "padding_left_top";
1166 to_y: "padding_right_bottom";
1169 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1173 part { name: "elm.swallow.content";
1177 description { state: "default" 0.0;
1182 to: "padding_left_top";
1186 to_x: "padding_left_top";
1187 to_y: "padding_right_bottom";
1191 description { state: "visible" 0.0;
1193 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1194 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1198 to_x: "padding_before_text";
1199 to_y: "padding_left_top";
1203 to_x: "padding_before_text";
1204 to_y: "padding_right_bottom";
1207 description { state: "icononly" 0.0;
1208 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1209 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1212 part { name: "elm.text";
1217 effect: SHADOW BOTTOM;
1218 description { state: "default" 0.0;
1222 to_x: "padding_after_icon";
1223 to_y: "padding_left_top";
1227 to: "padding_right_bottom";
1229 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1230 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1232 font: "Tizen:style=Regular";
1233 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1236 text_class: "tizen";
1239 description { state: "visible" 0.0;
1240 inherit: "default" 0.0;
1243 description { state: "clicked" 0.0;
1244 inherit: "default" 0.0;
1246 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1247 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1249 description { state: "disabled" 0.0;
1250 inherit: "default" 0.0;
1252 description { state: "disabled_visible" 0.0;
1253 inherit: "default" 0.0;
1254 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1255 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1258 description { state: "focused" 0.0;
1259 inherit: "default" 0.0;
1261 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1264 part { name: "over2";
1267 ignore_flags: ON_HOLD;
1268 description { state: "default" 0.0;
1272 part { name: "over3";
1275 description { state: "default" 0.0;
1279 part { name: "clipper";
1281 description { state: "default" 0.0;
1282 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1284 description { state: "disabled" 0.0;
1285 inherit: "default" 0.0;
1286 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1289 part { name: "disabler";
1291 description { state: "default" 0.0;
1295 description { state: "disabled" 0.0;
1296 inherit: "default" 0.0;
1302 program { name: "button_click";
1303 signal: "mouse,down,1";
1305 action: SIGNAL_EMIT "elm,action,press" "";
1306 after: "button_click_anim";
1308 program { name: "button_click_anim";
1309 action: STATE_SET "clicked" 0.0;
1310 target: "button_image";
1311 after: "text_clicked";
1313 program { name: "text_clicked";
1317 get_state(PART:"elm.text", st, 30, vl);
1318 if (!strcmp(st, "visible"))
1319 set_state(PART:"elm.text", "clicked", 0.0);
1322 program { name: "button_unpress";
1323 action: SIGNAL_EMIT "elm,action,unpress" "";
1325 program { name: "button_mouseout_clicked";
1326 signal: "mouse,up,1";
1331 get_state(PART:"elm.swallow.content", st, 30, vl);
1332 if (strcmp(st, "icononly"))
1334 emit("elm,action,default,text,set", "");
1335 set_state(PART:"elm.text", "visible", 0.0);
1337 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1338 set_state(PART:"button_image", "default", 0.0);
1340 after: button_unpress;
1342 program { name: "touch_snd";
1343 signal: "mouse,clicked,1";
1345 action: PLAY_SAMPLE "touch_sound" 1.0;
1346 after: button_unclick3;
1348 program { name: "button_unclick3";
1349 action: SIGNAL_EMIT "elm,action,click" "";
1351 program { name: "text_show";
1352 signal: "elm,state,text,visible";
1357 get_state(PART:"elm.swallow.content", st, 30, vl);
1358 if (!strcmp(st, "icononly"))
1360 set_state(PART:"elm.swallow.content", "visible", 0.0);
1361 set_state(PART:"icon_rect", "visible", 0.0);
1362 set_state(PART:"padding_after_icon", "visible", 0.0);
1363 set_state(PART:"bg", "visible", 0.0);
1365 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1366 set_state(PART:"elm.text", "visible", 0.0);
1368 set_state(PART:"elm.text", "disabled_visible", 0.0);
1371 program { name: "text_hide";
1372 signal: "elm,state,text,hidden";
1377 get_state(PART:"elm.swallow.content", st, 30, vl);
1378 if (!strcmp(st, "visible"))
1380 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1381 set_state(PART:"icon_rect", "icononly", 0.0);
1382 set_state(PART:"padding_after_icon", "icononly", 0.0);
1383 set_state(PART:"bg", "icononly", 0.0);
1385 set_state(PART:"elm.text", "default", 0.0);
1388 program { name: "icon_show";
1389 signal: "elm,state,icon,visible";
1394 get_state(PART:"elm.text", st, 30, vl);
1395 if (!strcmp(st, "visible"))
1397 set_state(PART:"elm.swallow.content", "visible", 0.0);
1398 set_state(PART:"icon_rect", "visible", 0.0);
1399 set_state(PART:"padding_after_icon", "visible", 0.0);
1400 set_state(PART:"bg", "visible", 0.0);
1404 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1405 set_state(PART:"icon_rect", "icononly", 0.0);
1406 set_state(PART:"padding_after_icon", "icononly", 0.0);
1407 set_state(PART:"bg", "icononly", 0.0);
1411 program { name: "icon_hide";
1412 signal: "elm,state,icon,hidden";
1414 action: STATE_SET "default" 0.0;
1415 target: "elm.swallow.content";
1416 target: "padding_after_icon";
1417 target: "icon_rect";
1420 program { name: "disable";
1421 signal: "elm,state,disabled";
1423 action: STATE_SET "disabled" 0.0;
1424 target: "button_image";
1427 after: "disable_text";
1429 program { name: "disable_text";
1433 get_state(PART:"elm.text", st, 30, vl);
1434 if (!strcmp(st, "visible"))
1435 set_state(PART:"elm.text", "disabled_visible", 0.0);
1437 set_state(PART:"elm.text", "disabled", 0.0);
1438 set_int(button_state, BUTTON_STATE_DISABLED);
1441 program { name: "enable";
1442 signal: "elm,state,enabled";
1444 action: STATE_SET "default" 0.0;
1445 target: "button_image";
1448 after: "enable_text";
1450 program { name: "enable_text";
1454 get_state(PART:"elm.text", st, 30, vl);
1455 if (!strcmp(st, "disabled_visible"))
1456 set_state(PART:"elm.text", "visible", 0.0);
1458 set_state(PART:"elm.text", "default", 0.0);
1459 set_int(button_state, BUTTON_STATE_ENABLED);
1462 program { name: "focused";
1463 //signal: "elm,action,focus";
1465 action: STATE_SET "focused" 0.0;
1466 target: "button_image";
1469 program { name: "unfocused";
1470 //signal: "elm,action,unfocus";
1472 action: STATE_SET "default" 0.0;
1473 target: "button_image";
1474 after: "unfocus_text";
1476 program { name: "unfocus_text";
1477 action: STATE_SET "visible" 0.0;
1483 ///////////////////////////////////////////////////////////////////////////////////////
1484 group { name: "elm/button/base/sweep";
1485 alias: "elm/button/base/text_only/sweep";
1486 alias: "elm/button/base/hidden";
1487 alias: "elm/button/base/sweep/multiline";
1489 image: "00_button_01.png" COMP;
1490 image: "00_button_01_press.png" COMP;
1491 image: "00_button_01_dim.png" COMP;
1494 public button_state = BUTTON_STATE_ENABLED;
1497 style { name: "btn_sweep_multiline";
1498 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";
1505 part { name: "button_image";
1507 description { state: "default" 0.0;
1508 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1510 normal: "00_button_01.png";
1511 border: BUTTON_SWEEP_BG_BORDER_INC;
1515 description { state: "clicked" 0.0;
1516 inherit: "default" 0.0;
1517 image.normal: "00_button_01_press.png";
1519 description { state: "disabled" 0.0;
1520 inherit: "default" 0.0;
1521 image.normal: "00_button_01_dim.png";
1523 description { state: "focused" 0.0;
1524 inherit: "default" 0.0;
1525 image.normal: "00_button_01_press.png";
1528 part { name: "padding_left_top";
1532 description { state: "default" 0.0;
1534 rel2.relative: 0.0 0.0;
1535 min: BUTTON_SWEEP_PADDING_MIN_INC;
1540 part { name: "padding_right_bottom";
1544 description { state: "default" 0.0;
1546 rel1.relative: 1.0 1.0;
1547 min: BUTTON_SWEEP_PADDING_MIN_INC;
1552 part { name: "icon_rect";
1556 description { state: "default" 0.0;
1557 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1561 to_x: "elm.swallow.content";
1562 to_y: "padding_left_top";
1566 to_x: "elm.swallow.content";
1567 to_y: "padding_right_bottom";
1573 part { name: "padding_icon_text";
1577 description { state: "default" 0.0; //when only icon or no icon is there
1585 rel2.to: "icon_rect";
1588 description { state: "visible" 0.0; //when icon is visible
1589 inherit: "default" 0.0;
1590 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1592 description { state: "icononly" 0.0;
1593 inherit: "default" 0.0;
1596 part { name: "elm.swallow.content";
1600 description { state: "default" 0.0;
1605 to: "padding_left_top";
1609 to_x: "padding_left_top";
1610 to_y: "padding_right_bottom";
1614 description { state: "visible" 0.0;
1615 inherit: "default" 0.0;
1616 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1617 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1620 aspect_preference: VERTICAL;
1622 description { state: "icononly" 0.0;
1623 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1624 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1627 part { name: "elm.text";
1630 effect: SHADOW BOTTOM;
1633 description { state: "default" 0.0;
1638 to_x: "padding_icon_text";
1639 to_y: "padding_left_top";
1643 to: "padding_right_bottom";
1645 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1646 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1648 style: "btn_sweep_multiline";
1652 description { state: "visible" 0.0;
1653 inherit: "default" 0.0;
1655 min: BUTTON_SWEEP_TEXT_MIN_INC;
1657 description { state: "clicked" 0.0;
1658 inherit: "default" 0.0;
1661 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1662 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1664 description { state: "disabled" 0.0;
1665 inherit: "default" 0.0;
1667 description { state: "disabled_visible" 0.0;
1668 inherit: "default" 0.0;
1669 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1670 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1672 min: BUTTON_SWEEP_TEXT_MIN_INC;
1674 description { state: "focused" 0.0;
1675 inherit: "default" 0.0;
1678 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1681 part { name: "over2";
1684 ignore_flags: ON_HOLD;
1685 description { state: "default" 0.0;
1689 part { name: "over3";
1692 description { state: "default" 0.0;
1696 part { name: "clipper";
1698 description { state: "default" 0.0;
1699 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1701 description { state: "disabled" 0.0;
1702 inherit: "default" 0.0;
1703 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1706 part { name: "disabler";
1708 description { state: "default" 0.0;
1712 description { state: "disabled" 0.0;
1713 inherit: "default" 0.0;
1719 program { name: "button_click";
1720 signal: "mouse,down,1";
1722 action: SIGNAL_EMIT "elm,action,press" "";
1723 after: "button_click_anim";
1725 program { name: "button_click_anim";
1726 action: STATE_SET "clicked" 0.0;
1727 target: "button_image";
1728 after: "text_clicked";
1730 program { name: "text_clicked";
1734 get_state(PART:"elm.text", st, 30, vl);
1735 if (!strcmp(st, "visible"))
1736 set_state(PART:"elm.text", "clicked", 0.0);
1739 program { name: "button_unpress";
1740 action: SIGNAL_EMIT "elm,action,unpress" "";
1742 program { name: "button_mouseout_clicked";
1743 signal: "mouse,up,1";
1748 get_state(PART:"elm.swallow.content", st, 30, vl);
1749 if (strcmp(st, "icononly"))
1751 emit("elm,action,default,text,set", "");
1752 set_state(PART:"elm.text", "visible", 0.0);
1754 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1755 set_state(PART:"button_image", "default", 0.0);
1757 after: button_unpress;
1759 program { name: "touch_snd";
1760 signal: "mouse,clicked,1";
1762 action: PLAY_SAMPLE "touch_sound" 1.0;
1763 after: button_unclick3;
1765 program { name: "button_unclick3";
1766 action: SIGNAL_EMIT "elm,action,click" "";
1768 program { name: "text_show";
1769 signal: "elm,state,text,visible";
1774 get_state(PART:"elm.swallow.content", st, 30, vl);
1775 if (!strcmp(st, "icononly"))
1777 set_state(PART:"elm.swallow.content", "visible", 0.0);
1778 set_state(PART:"padding_icon_text", "visible", 0.0);
1780 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1781 set_state(PART:"elm.text", "visible", 0.0);
1783 set_state(PART:"elm.text", "disabled_visible", 0.0);
1786 program { name: "text_hide";
1787 signal: "elm,state,text,hidden";
1792 get_state(PART:"elm.swallow.content", st, 30, vl);
1793 if (!strcmp(st, "visible"))
1795 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1796 set_state(PART:"padding_icon_text", "icononly", 0.0);
1798 set_state(PART:"elm.text", "default", 0.0);
1801 program { name: "icon_show";
1802 signal: "elm,state,icon,visible";
1807 get_state(PART:"elm.text", st, 30, vl);
1808 if (!strcmp(st, "visible"))
1810 set_state(PART:"elm.swallow.content", "visible", 0.0);
1811 set_state(PART:"padding_icon_text", "visible", 0.0);
1815 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1816 set_state(PART:"padding_icon_text", "icononly", 0.0);
1820 program { name: "icon_hide";
1821 signal: "elm,state,icon,hidden";
1823 action: STATE_SET "default" 0.0;
1824 target: "elm.swallow.content";
1825 target: "padding_icon_text";
1827 program { name: "disable";
1828 signal: "elm,state,disabled";
1830 action: STATE_SET "disabled" 0.0;
1831 target: "button_image";
1834 after: "disable_text";
1836 program { name: "disable_text";
1840 get_state(PART:"elm.text", st, 30, vl);
1841 if (!strcmp(st, "visible"))
1842 set_state(PART:"elm.text", "disabled_visible", 0.0);
1844 set_state(PART:"elm.text", "disabled", 0.0);
1845 set_int(button_state, BUTTON_STATE_DISABLED);
1848 program { name: "enable";
1849 signal: "elm,state,enabled";
1851 action: STATE_SET "default" 0.0;
1852 target: "button_image";
1855 after: "enable_text";
1857 program { name: "enable_text";
1861 get_state(PART:"elm.text", st, 30, vl);
1862 if (!strcmp(st, "disabled_visible"))
1863 set_state(PART:"elm.text", "visible", 0.0);
1865 set_state(PART:"elm.text", "default", 0.0);
1866 set_int(button_state, BUTTON_STATE_ENABLED);
1869 program { name: "focused";
1870 //signal: "elm,action,focus";
1872 action: STATE_SET "focused" 0.0;
1873 target: "button_image";
1876 program { name: "unfocused";
1877 //signal: "elm,action,unfocus";
1879 action: STATE_SET "default" 0.0;
1880 target: "button_image";
1881 after: "unfocus_text";
1883 program { name: "unfocus_text";
1884 action: STATE_SET "visible" 0.0;
1890 ///////////////////////////////////////////////////////////////////////////////////////
1891 group { name: "elm/button/base/sweep/delete";
1892 inherit: "elm/button/base/sweep";
1893 alias: "elm/button/base/sweep/delete/multiline";
1895 image: "00_button_delete_press.png" COMP;
1896 image: "00_button_delete.png" COMP;
1897 image: "00_button_delete_dim.png" COMP;
1900 style { name: "btn_sweep_delete_multiline";
1901 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";
1908 part { name: "button_image";
1910 description { state: "default" 0.0;
1911 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1913 normal: "00_button_delete.png";
1914 border: BUTTON_SWEEP_BG_BORDER_INC;
1918 description { state: "clicked" 0.0;
1919 inherit: "default" 0.0;
1920 image.normal: "00_button_delete_press.png";
1922 description { state: "disabled" 0.0;
1923 inherit: "default" 0.0;
1924 image.normal: "00_button_delete_dim.png";
1926 description { state: "focused" 0.0;
1927 inherit: "default" 0.0;
1928 image.normal: "00_button_delete_press.png";
1931 part { name: "elm.text";
1934 effect: SHADOW BOTTOM;
1937 description { state: "default" 0.0;
1942 to_x: "padding_icon_text";
1943 to_y: "padding_left_top";
1947 to: "padding_right_bottom";
1949 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
1950 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1952 style: "btn_sweep_multiline";
1956 description { state: "visible" 0.0;
1957 inherit: "default" 0.0;
1959 min: BUTTON_SWEEP_TEXT_MIN_INC;
1961 description { state: "clicked" 0.0;
1962 inherit: "default" 0.0;
1965 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
1966 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1968 description { state: "disabled" 0.0;
1969 inherit: "default" 0.0;
1971 description { state: "disabled_visible" 0.0;
1972 inherit: "default" 0.0;
1973 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
1974 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1976 min: BUTTON_SWEEP_TEXT_MIN_INC;
1978 description { state: "focused" 0.0;
1979 inherit: "default" 0.0;
1982 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
1988 ///////////////////////////////////////////////////////////////////////////////////////
1989 group { name: "elm/button/base/popup_button/default";
1990 alias: "elm/button/base/popup_button/menustyle";
1991 alias: "elm/button/base/popup_button/liststyle";
1992 alias: "elm/button/base/popup_button/volumebarstyle";
1993 alias: "elm/button/base/popup_button/customstyle";
1994 alias: "elm/button/base/popup_button/verticalbuttonstyle";
1995 alias: "elm/button/base/popup_button/default/multiline";
1997 image: "00_button_01.png" COMP;
1998 image: "00_button_01_dim.png" COMP;
1999 image: "00_button_01_press.png" COMP;
2002 public button_state = BUTTON_STATE_ENABLED;
2005 part { name: "button_image";
2007 description { state: "default" 0.0;
2008 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2010 normal: "00_button_01.png";
2011 border: BUTTON_POPUP_BG_BORDER_INC;
2015 description { state: "clicked" 0.0;
2016 inherit: "default" 0.0;
2017 image.normal: "00_button_01_press.png";
2019 description { state: "disabled" 0.0;
2020 inherit: "default" 0.0;
2021 image.normal: "00_button_01_dim.png";
2023 description { state: "focused" 0.0;
2024 inherit: "default" 0.0;
2025 image.normal: "00_button_01_press.png";
2028 part { name: "padding_left_top";
2032 description { state: "default" 0.0;
2034 rel2.relative: 0.0 0.0;
2035 min: BUTTON_POPUP_PADDING_MIN_INC;
2040 part { name: "padding_right_bottom";
2043 description { state: "default" 0.0;
2045 rel1.relative: 1.0 1.0;
2046 min: BUTTON_POPUP_PADDING_MIN_INC;
2051 part { name: "padding_icon_text";
2054 description { state: "default" 0.0; //when only icon or no icon is there
2058 to: "elm.swallow.content";
2060 rel2.to: "elm.swallow.content";
2065 description { state: "icononly" 0.0;
2066 inherit: "default" 0.0;
2068 description { state: "visible" 0.0; //when icon is visible
2069 inherit: "default" 0.0;
2070 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2073 part { name: "elm.swallow.content";
2077 description { state: "default" 0.0;
2082 to: "padding_left_top";
2086 to_x: "padding_left_top";
2087 to_y: "padding_right_bottom";
2091 description { state: "visible" 0.0;
2092 inherit: "default" 0.0;
2096 aspect_preference: VERTICAL;
2098 description { state: "icononly" 0.0;
2099 inherit: "default" 0.0;
2100 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2105 part { name: "elm.text";
2110 effect: SHADOW BOTTOM;
2111 description { state: "default" 0.0;
2115 to_x: "padding_icon_text";
2116 to_y: "padding_left_top";
2120 to: "padding_right_bottom";
2122 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
2123 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2125 font: "Tizen:style=Regular";
2126 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
2128 text_class: "tizen";
2131 description { state: "visible" 0.0;
2132 inherit: "default" 0.0;
2134 min: BUTTON_POPUP_TEXT_MIN_INC;
2136 description { state: "clicked" 0.0;
2137 inherit: "default" 0.0;
2140 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
2141 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
2143 description { state: "disabled" 0.0;
2144 inherit: "default" 0.0;
2146 description { state: "disabled_visible" 0.0;
2147 inherit: "default" 0.0;
2148 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
2149 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2151 min: BUTTON_POPUP_TEXT_MIN_INC;
2153 description { state: "focused" 0.0;
2154 inherit: "default" 0.0;
2157 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2160 part { name: "over2";
2163 ignore_flags: ON_HOLD;
2164 description { state: "default" 0.0;
2168 part { name: "over3";
2171 description { state: "default" 0.0;
2175 part { name: "clipper";
2177 description { state: "default" 0.0;
2178 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
2180 description { state: "disabled" 0.0;
2181 inherit: "default" 0.0;
2182 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
2185 part { name: "disabler";
2187 description { state: "default" 0.0;
2191 description { state: "disabled" 0.0;
2192 inherit: "default" 0.0;
2198 program { name: "button_click";
2199 signal: "mouse,down,1";
2201 action: SIGNAL_EMIT "elm,action,press" "";
2202 after: "button_click_anim";
2204 program { name: "button_click_anim";
2205 action: STATE_SET "clicked" 0.0;
2206 target: "button_image";
2207 after: "text_clicked";
2209 program { name: "text_clicked";
2213 get_state(PART:"elm.text", st, 30, vl);
2214 if (!strcmp(st, "visible"))
2215 set_state(PART:"elm.text", "clicked", 0.0);
2218 program { name: "button_unpress";
2219 action: SIGNAL_EMIT "elm,action,unpress" "";
2221 program { name: "button_mouseout_clicked";
2222 signal: "mouse,up,1";
2227 get_state(PART:"elm.swallow.content", st, 30, vl);
2228 if (strcmp(st, "icononly"))
2230 emit("elm,action,default,text,set", "");
2231 set_state(PART:"elm.text", "visible", 0.0);
2233 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2234 set_state(PART:"button_image", "default", 0.0);
2236 after: button_unpress;
2238 program { name: "touch_snd";
2239 signal: "mouse,clicked,1";
2241 action: PLAY_SAMPLE "touch_sound" 1.0;
2242 after: button_unclick3;
2244 program { name: "button_unclick3";
2245 action: SIGNAL_EMIT "elm,action,click" "";
2247 program { name: "text_show";
2248 signal: "elm,state,text,visible";
2253 get_state(PART:"elm.swallow.content", st, 30, vl);
2254 if (!strcmp(st, "icononly"))
2256 set_state(PART:"elm.swallow.content", "visible", 0.0);
2257 set_state(PART:"padding_icon_text", "visible", 0.0);
2259 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2260 set_state(PART:"elm.text", "visible", 0.0);
2262 set_state(PART:"elm.text", "disabled_visible", 0.0);
2265 program { name: "text_hide";
2266 signal: "elm,state,text,hidden";
2271 get_state(PART:"elm.swallow.content", st, 30, vl);
2272 if (!strcmp(st, "visible"))
2274 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2275 set_state(PART:"padding_icon_text", "icononly", 0.0);
2277 set_state(PART:"elm.text", "default", 0.0);
2280 program { name: "icon_show";
2281 signal: "elm,state,icon,visible";
2286 get_state(PART:"elm.text", st, 30, vl);
2287 if (!strcmp(st, "visible"))
2289 set_state(PART:"elm.swallow.content", "visible", 0.0);
2290 set_state(PART:"padding_icon_text", "visible", 0.0);
2294 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2295 set_state(PART:"padding_icon_text", "icononly", 0.0);
2299 program { name: "icon_hide";
2300 signal: "elm,state,icon,hidden";
2302 action: STATE_SET "default" 0.0;
2303 target: "elm.swallow.content";
2304 target: "padding_icon_text";
2306 program { name: "disable";
2307 signal: "elm,state,disabled";
2309 action: STATE_SET "disabled" 0.0;
2310 target: "button_image";
2313 after: "disable_text";
2315 program { name: "disable_text";
2319 get_state(PART:"elm.text", st, 30, vl);
2320 if (!strcmp(st, "visible"))
2321 set_state(PART:"elm.text", "disabled_visible", 0.0);
2323 set_state(PART:"elm.text", "disabled", 0.0);
2324 set_int(button_state, BUTTON_STATE_DISABLED);
2327 program { name: "enable";
2328 signal: "elm,state,enabled";
2330 action: STATE_SET "default" 0.0;
2331 target: "button_image";
2334 after: "enable_text";
2336 program { name: "enable_text";
2340 get_state(PART:"elm.text", st, 30, vl);
2341 if (!strcmp(st, "disabled_visible"))
2342 set_state(PART:"elm.text", "visible", 0.0);
2344 set_state(PART:"elm.text", "default", 0.0);
2345 set_int(button_state, BUTTON_STATE_ENABLED);
2348 program { name: "focused";
2349 //signal: "elm,action,focus";
2351 action: STATE_SET "focused" 0.0;
2352 target: "button_image";
2355 program { name: "unfocused";
2356 //signal: "elm,action,unfocus";
2358 action: STATE_SET "default" 0.0;
2359 target: "button_image";
2360 after: "unfocus_text";
2362 program { name: "unfocus_text";
2363 action: STATE_SET "visible" 0.0;
2369 ///////////////////////////////////////////////////////////////////////////////////////
2370 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2371 group { name: "elm/button/base/"style_name; \
2373 image: "00_circle_button.png" COMP; \
2374 image: "00_circle_button_press.png" COMP; \
2375 image: "00_circle_button_dim.png" COMP; \
2376 image: image_normal COMP; \
2377 image: image_press COMP; \
2380 part { name: "button_image"; \
2382 description { state: "default" 0.0; \
2383 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2384 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2385 image.normal: "00_circle_button.png"; \
2388 state: "clicked" 0.0; \
2389 inherit: "default" 0.0; \
2390 image.normal: "00_circle_button_press.png"; \
2393 state: "disabled" 0.0; \
2394 inherit: "default" 0.0; \
2395 image.normal: "00_circle_button_dim.png"; \
2398 part { name: "button_center_part"; \
2400 clip_to: "icon_clipper"; \
2401 description { state: "default" 0.0; \
2402 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2403 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2404 image.normal: image_normal; \
2406 description { state: "clicked" 0.0; \
2407 inherit: "default"; \
2408 image.normal: image_press; \
2410 description { state: "disabled" 0.0; \
2411 inherit: "default"; \
2414 part { name: "icon_clipper"; \
2417 description { state: "default" 0.0; \
2418 color: 101 101 101 255; \
2420 description { state: "clicked" 0.0; \
2421 color: 248 246 239 255; \
2423 description { state: "disabled" 0.0; \
2424 color: 101 101 101 76; \
2427 part { name: "over1"; \
2429 ignore_flags: ON_HOLD; \
2430 description { state: "default" 0.0; \
2432 min: min_width min_height; \
2435 part { name: "over2"; \
2437 description { state: "default" 0.0; \
2441 part { name: "disabler"; \
2443 description { state: "default" 0.0; \
2447 description { state: "disabled" 0.0; \
2448 inherit: "default" 0.0; \
2454 program { name: "button_click"; \
2455 signal: "mouse,down,1"; \
2457 action: SIGNAL_EMIT "elm,action,press" ""; \
2458 after: "button_click_anim"; \
2460 program { name: "button_click_anim"; \
2461 action: STATE_SET "clicked" 0.0; \
2462 target: "button_image"; \
2463 target: "button_center_part"; \
2464 target: "icon_clipper"; \
2466 program { name: "button_unclick"; \
2467 signal: "mouse,up,1"; \
2469 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2470 after: "button_unclick_anim"; \
2472 program { name: "button_unclick_anim"; \
2473 action: STATE_SET "default" 0.0; \
2474 target: "button_image"; \
2475 target: "button_center_part"; \
2476 target: "icon_clipper"; \
2478 program { name: "touch_snd"; \
2479 signal: "mouse,clicked,1"; \
2481 action: PLAY_SAMPLE "touch_sound" 1.0; \
2482 after: button_unclick3; \
2484 program { name: "button_unclick3"; \
2485 action: SIGNAL_EMIT "elm,action,click" ""; \
2487 program { name: "disable"; \
2488 signal: "elm,state,disabled"; \
2490 action: STATE_SET "disabled" 0.0; \
2491 target: "disabler"; \
2492 target: "button_image"; \
2493 target: "button_center_part"; \
2494 target: "icon_clipper"; \
2496 program { name: "enable"; \
2497 signal: "elm,state,enabled"; \
2499 action: STATE_SET "default" 0.0; \
2500 target: "disabler"; \
2501 target: "button_image"; \
2502 target: "button_center_part"; \
2503 target: "icon_clipper"; \
2508 ///////////////////////////////////////////////////////////////////////////////////////
2509 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)
2511 ///////////////////////////////////////////////////////////////////////////////////////
2512 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)
2514 ///////////////////////////////////////////////////////////////////////////////////////
2515 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)
2517 ///////////////////////////////////////////////////////////////////////////////////////
2518 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)
2520 ///////////////////////////////////////////////////////////////////////////////////////
2521 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)
2523 ///////////////////////////////////////////////////////////////////////////////////////
2524 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)
2526 ///////////////////////////////////////////////////////////////////////////////////////
2527 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)
2529 ///////////////////////////////////////////////////////////////////////////////////////
2530 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)
2532 ///////////////////////////////////////////////////////////////////////////////////////
2533 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)
2535 ///////////////////////////////////////////////////////////////////////////////////////
2536 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)
2538 ///////////////////////////////////////////////////////////////////////////////////////
2539 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)
2541 ///////////////////////////////////////////////////////////////////////////////////////
2542 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)
2544 ///////////////////////////////////////////////////////////////////////////////////////
2545 BUTTON_CIRCLE_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2547 ///////////////////////////////////////////////////////////////////////////////////////
2548 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_plus.png", "00_button_plus_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2550 ///////////////////////////////////////////////////////////////////////////////////////
2551 BUTTON_CIRCLE_STYLES("minus", "00_button_expand_minus.png", "00_button_expand_minus_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2553 ///////////////////////////////////////////////////////////////////////////////////////
2554 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_expand_minus.png", "00_button_expand_minus_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2556 ///////////////////////////////////////////////////////////////////////////////////////
2557 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)
2559 ///////////////////////////////////////////////////////////////////////////////////////
2560 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)
2562 ///////////////////////////////////////////////////////////////////////////////////////
2563 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)
2565 ///////////////////////////////////////////////////////////////////////////////////////
2566 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)
2567 ///////////////////////////////////////////////////////////////////////////////////////
2570 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2571 group { name: "elm/button/base/"style_name; \
2572 inherit: "elm/button/base/info"; \
2574 image: "00_circle_delete_button.png" COMP; \
2575 image: "00_circle_delete_button_press.png" COMP; \
2576 image: "00_circle_delete_button_dim.png" COMP; \
2577 image: "00_button_warning.png" COMP; \
2578 image: "00_button_warning_press.png" COMP; \
2581 part { name: "button_image"; \
2583 description { state: "default" 0.0; \
2584 image.normal: "00_circle_delete_button.png"; \
2587 state: "clicked" 0.0; \
2588 inherit: "default" 0.0; \
2589 image.normal: "00_circle_delete_button_press.png"; \
2592 state: "disabled" 0.0; \
2593 inherit: "default" 0.0; \
2594 image.normal: "00_circle_delete_button_dim.png"; \
2597 part { name: "button_center_part"; \
2599 clip_to: "icon_clipper"; \
2600 description { state: "default" 0.0; \
2601 image.normal: "00_button_warning.png"; \
2603 description { state: "clicked" 0.0; \
2604 inherit: "default"; \
2605 image.normal: "00_button_warning_press.png"; \
2607 description { state: "disabled" 0.0; \
2608 inherit: "default"; \
2611 part { name: "icon_clipper"; \
2614 description { state: "default" 0.0; \
2615 color: 248 246 239 255; \
2617 description { state: "clicked" 0.0; \
2618 color: 248 246 239 255; \
2620 description { state: "disabled" 0.0; \
2621 color: 248 246 239 76; \
2624 part { name: "over1"; \
2626 ignore_flags: ON_HOLD; \
2627 description { state: "default" 0.0; \
2629 min: min_width min_height; \
2635 ///////////////////////////////////////////////////////////////////////////////////////
2636 BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2638 ///////////////////////////////////////////////////////////////////////////////////////
2639 BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2641 ///////////////////////////////////////////////////////////////////////////////////////
2642 group { name: "elm/button/base/circle/empty";
2644 image: "00_circle_button.png" COMP;
2645 image: "00_circle_button_press.png" COMP;
2646 image: "00_circle_button_dim.png" COMP;
2649 part { name: "button_image";
2651 description { state: "default" 0.0;
2652 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2653 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2655 image.normal: "00_circle_button.png";
2657 description { state: "clicked" 0.0;
2658 inherit: "default" 0.0;
2659 image.normal: "00_circle_button_press.png";
2661 description { state: "disabled" 0.0;
2662 inherit: "default" 0.0;
2663 image.normal: "00_circle_button_dim.png";
2666 part { name: "elm.swallow.content";
2668 clip_to: "icon_clipper";
2670 description { state: "default" 0.0;
2674 description { state: "visible" 0.0;
2675 inherit: "default" 0.0;
2677 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2678 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2681 part { name: "icon_clipper";
2684 description { state: "default" 0.0;
2685 color: 101 101 101 255;
2687 description { state: "clicked" 0.0;
2688 color: 248 246 239 255;
2690 description { state: "disabled" 0.0;
2691 color: 101 101 101 76;
2694 part { name: "over1";
2696 ignore_flags: ON_HOLD;
2697 description { state: "default" 0.0;
2701 part { name: "over2";
2703 description { state: "default" 0.0;
2707 part { name: "disabler";
2709 description { state: "default" 0.0;
2713 description { state: "disabled" 0.0;
2714 inherit: "default" 0.0;
2720 program { name: "button_click";
2721 signal: "mouse,down,1";
2723 action: SIGNAL_EMIT "elm,action,press" "";
2724 after: "button_click_anim";
2726 program { name: "button_click_anim";
2727 action: STATE_SET "clicked" 0.0;
2728 target: "button_image";
2729 target: "icon_clipper";
2731 program { name: "touch_snd";
2732 signal: "mouse,clicked,1";
2734 action: PLAY_SAMPLE "touch_sound" 1.0;
2735 after: button_unclick2;
2737 program { name: "button_unclick2";
2738 action: SIGNAL_EMIT "elm,action,click" "";
2740 program { name: "button_unclick";
2741 signal: "mouse,up,1";
2743 action: SIGNAL_EMIT "elm,action,unpress" "";
2744 after: "button_unclick_anim";
2746 program { name: "button_unclick_anim";
2747 action: STATE_SET "default" 0.0;
2748 target: "button_image";
2749 target: "icon_clipper";
2751 program { name: "disable";
2752 signal: "elm,state,disabled";
2754 action: STATE_SET "disabled" 0.0;
2756 target: "button_image";
2757 target: "icon_clipper";
2759 program { name: "enable";
2760 signal: "elm,state,enabled";
2762 action: STATE_SET "default" 0.0;
2764 target: "button_image";
2765 target: "icon_clipper";
2767 program { name: "icon_show";
2768 signal: "elm,state,icon,visible";
2770 action: STATE_SET "visible" 0.0;
2771 target: "elm.swallow.content";
2773 program { name: "icon_hide";
2774 signal: "elm,state,icon,hidden";
2776 action: STATE_SET "default" 0.0;
2777 target: "elm.swallow.content";
2782 ///////////////////////////////////////////////////////////////////////////////////////
2783 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2784 group { name: "elm/button/base/contacts/"style_name; \
2785 alias: "elm/button/base/"style_name; \
2787 image: "00_circle_button.png" COMP; \
2788 image: "00_circle_button_press.png" COMP; \
2789 image: "00_circle_button_dim.png" COMP; \
2790 image: edit_normal COMP; \
2791 image: edit_press COMP; \
2794 part { name: "button_image"; \
2796 description { state: "default" 0.0; \
2797 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2798 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2799 image.normal: "00_circle_button.png"; \
2801 description { state: "clicked" 0.0; \
2802 inherit: "default" 0.0; \
2803 image.normal: "00_circle_button_press.png"; \
2805 description { state: "disabled" 0.0; \
2806 inherit: "default" 0.0; \
2807 image.normal: "00_circle_button_dim.png"; \
2810 part { name: "button_center_part"; \
2813 clip_to: "icon_clipper"; \
2814 description { state: "default" 0.0; \
2815 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2816 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2817 image.normal: image_normal; \
2820 state: "clicked" 0.0; \
2821 inherit: "default" 0.0; \
2822 image.normal: image_press; \
2824 description { state: "disabled" 0.0; \
2825 inherit: "default" 0.0; \
2828 part { name: "icon_clipper"; \
2831 description { state: "default" 0.0; \
2832 color: 101 101 101 255; \
2834 description { state: "clicked" 0.0; \
2835 color: 248 246 239 255; \
2837 description { state: "disabled" 0.0; \
2838 color: 101 101 101 76; \
2841 part { name: "over1"; \
2844 ignore_flags: ON_HOLD; \
2845 description { state: "default" 0.0; \
2847 min: min_width min_height; \
2850 part { name: "over2"; \
2852 description { state: "default" 0.0; \
2856 part { name: "disabler"; \
2858 description { state: "default" 0.0; \
2862 description { state: "disabled" 0.0; \
2863 inherit: "default" 0.0; \
2869 program { name: "button_click"; \
2870 signal: "mouse,down,1"; \
2872 action: SIGNAL_EMIT "elm,action,press" ""; \
2873 after: "button_click_anim"; \
2875 program { name: "button_click_anim"; \
2876 action: STATE_SET "clicked" 0.0; \
2877 target: "button_image"; \
2878 target: "button_center_part"; \
2879 target: "icon_clipper"; \
2881 program { name: "button_unclick"; \
2882 signal: "mouse,up,1"; \
2884 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2885 after: "button_unclick_anim"; \
2887 program { name: "button_unclick_anim"; \
2888 action: STATE_SET "default" 0.0; \
2889 target: "button_image"; \
2890 target: "button_center_part"; \
2891 target: "icon_clipper"; \
2893 program { name: "touch_snd"; \
2894 signal: "mouse,clicked,1"; \
2896 action: PLAY_SAMPLE "touch_sound" 1.0; \
2897 after: button_unclick3; \
2899 program { name: "button_unclick3"; \
2900 action: SIGNAL_EMIT "elm,action,click" ""; \
2902 program { name: "disable"; \
2903 signal: "elm,state,disabled"; \
2905 action: STATE_SET "disabled" 0.0; \
2906 target: "disabler"; \
2907 target: "button_image"; \
2908 target: "button_center_part"; \
2909 target: "icon_clipper"; \
2911 program { name: "enable"; \
2912 signal: "elm,state,enabled"; \
2914 action: STATE_SET "default" 0.0; \
2915 target: "disabler"; \
2916 target: "button_image"; \
2917 target: "button_center_part"; \
2918 target: "icon_clipper"; \
2922 ///////////////////////////////////////////////////////////////////////////////////////
2923 BUTTON_EDIT_STYLES("icon_plus", "00_button_plus.png", "00_button_plus_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2925 ///////////////////////////////////////////////////////////////////////////////////////
2926 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_plus.png", "00_button_plus_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2928 ///////////////////////////////////////////////////////////////////////////////////////
2929 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)
2931 ///////////////////////////////////////////////////////////////////////////////////////
2932 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)
2934 ///////////////////////////////////////////////////////////////////////////////////////
2935 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)
2937 ///////////////////////////////////////////////////////////////////////////////////////
2938 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)
2940 ///////////////////////////////////////////////////////////////////////////////////////
2942 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
2943 group { name: "elm/button/base/contacts/"style_name; \
2944 alias: "elm/button/base/"style_name; \
2945 inherit: "elm/button/base/contacts/icon_plus"; \
2947 image: "00_circle_delete_button.png" COMP; \
2948 image: "00_circle_delete_button_press.png" COMP; \
2949 image: "00_circle_delete_button_dim.png" COMP; \
2950 image: "00_button_expand_minus.png" COMP; \
2951 image: "00_button_expand_minus_press.png" COMP; \
2954 part { name: "button_image"; \
2956 description { state: "default" 0.0; \
2957 image.normal: "00_circle_delete_button.png"; \
2959 description { state: "clicked" 0.0; \
2960 inherit: "default" 0.0; \
2961 image.normal: "00_circle_delete_button_press.png"; \
2963 description { state: "disabled" 0.0; \
2964 inherit: "default" 0.0; \
2965 image.normal: "00_circle_delete_button_dim.png"; \
2968 part { name: "button_center_part"; \
2971 clip_to: "icon_clipper"; \
2972 description { state: "default" 0.0; \
2973 image.normal: "00_button_expand_minus.png"; \
2976 state: "clicked" 0.0; \
2977 inherit: "default" 0.0; \
2978 image.normal: "00_button_expand_minus_press.png"; \
2980 description { state: "disabled" 0.0; \
2981 inherit: "default" 0.0; \
2984 part { name: "icon_clipper"; \
2987 description { state: "default" 0.0; \
2988 color: 248 246 239 255; \
2990 description { state: "clicked" 0.0; \
2991 color: 248 246 239 255; \
2993 description { state: "disabled" 0.0; \
2994 color: 248 246 239 76; \
2997 part { name: "over1"; \
3000 ignore_flags: ON_HOLD; \
3001 description { state: "default" 0.0; \
3003 min: min_width min_height; \
3009 ///////////////////////////////////////////////////////////////////////////////////////
3010 BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3012 ///////////////////////////////////////////////////////////////////////////////////////
3013 BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3016 ////////////////////////////////////////////////////////////////////////
3017 group { name: "elm/button/base/default";
3019 image: "00_button_01.png" COMP;
3020 image: "00_button_01_press.png" COMP;
3021 image: "00_button_01_dim.png" COMP;
3024 public button_state = BUTTON_STATE_ENABLED;
3027 part { name: "button_image";
3029 description { state: "default" 0.0;
3030 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3032 normal: "00_button_01.png";
3033 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3037 description { state: "clicked" 0.0;
3038 inherit: "default" 0.0;
3039 image.normal: "00_button_01_press.png";
3041 description { state: "disabled" 0.0;
3042 inherit: "default" 0.0;
3043 image.normal: "00_button_01_dim.png";
3045 description { state: "focused" 0.0;
3046 inherit: "default" 0.0;
3047 image.normal: "00_button_01_press.png";
3050 part { name: "padding_left_top";
3054 description { state: "default" 0.0;
3056 rel2.relative: 0.0 0.0;
3057 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3062 part { name: "padding_right_bottom";
3066 description { state: "default" 0.0;
3068 rel1.relative: 1.0 1.0;
3069 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3074 part { name: "padding_icon_text";
3078 description { state: "default" 0.0; //when only icon or no icon is there
3084 to: "elm.swallow.content";
3086 rel2.to: "elm.swallow.content";
3089 description { state: "icononly" 0.0;
3090 inherit: "default" 0.0;
3092 description { state: "visible" 0.0; //when icon is visible
3093 inherit: "default" 0.0;
3094 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3097 part { name: "elm.swallow.content";
3101 description { state: "default" 0.0;
3107 to: "padding_left_top";
3111 to_x: "padding_left_top";
3112 to_y: "padding_right_bottom";
3115 description { state: "visible" 0.0;
3116 inherit: "default" 0.0;
3119 aspect_preference: VERTICAL;
3121 description { state: "icononly" 0.0;
3122 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3125 to_x: "padding_left_top";
3129 to_x: "padding_right_bottom";
3132 aspect_preference: VERTICAL;
3135 part { name: "elm.text";
3140 effect: FAR_SHADOW BOTTOM;
3141 description { state: "default" 0.0;
3146 to_x: "padding_icon_text";
3147 to_y: "padding_left_top";
3151 to: "padding_right_bottom";
3153 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3154 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
3156 font: "Tizen:style=Regular";
3157 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3159 text_class: "tizen";
3162 description { state: "visible" 0.0;
3163 inherit: "default" 0.0;
3165 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3167 description { state: "clicked" 0.0;
3168 inherit: "default" 0.0;
3170 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3171 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3173 description { state: "disabled" 0.0;
3174 inherit: "default" 0.0;
3176 description { state: "disabled_visible" 0.0;
3177 inherit: "default" 0.0;
3178 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3179 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
3181 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3183 description { state: "focused" 0.0;
3184 inherit: "default" 0.0;
3187 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3190 part { name: "over2";
3193 ignore_flags: ON_HOLD;
3194 description { state: "default" 0.0;
3198 part { name: "over3";
3201 description { state: "default" 0.0;
3205 part { name: "disclip";
3207 description { state: "default" 0.0;
3208 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3210 description { state: "disabled" 0.0;
3211 inherit: "default" 0.0;
3212 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3215 part { name: "disabler";
3217 description { state: "default" 0.0;
3221 description { state: "disabled" 0.0;
3222 inherit: "default" 0.0;
3228 program { name: "button_click";
3229 signal: "mouse,down,1";
3231 action: SIGNAL_EMIT "elm,action,press" "";
3232 after: "button_click_anim";
3234 program { name: "button_click_anim";
3235 action: STATE_SET "clicked" 0.0;
3236 target: "button_image";
3237 after: "text_clicked";
3239 program { name: "text_clicked";
3243 get_state(PART:"elm.text", st, 30, vl);
3244 if (!strcmp(st, "visible"))
3245 set_state(PART:"elm.text", "clicked", 0.0);
3248 program { name: "button_unpress";
3249 action: SIGNAL_EMIT "elm,action,unpress" "";
3251 program { name: "button_mouseout_clicked";
3252 signal: "mouse,up,1";
3257 get_state(PART:"elm.swallow.content", st, 30, vl);
3258 if (strcmp(st, "icononly"))
3260 emit("elm,action,default,text,set", "");
3261 set_state(PART:"elm.text", "visible", 0.0);
3263 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3264 set_state(PART:"button_image", "default", 0.0);
3266 after: button_unpress;
3268 program { name: "touch_snd";
3269 signal: "mouse,clicked,1";
3271 action: PLAY_SAMPLE "touch_sound" 1.0;
3272 after: button_unclick3;
3274 program { name: "button_unclick3";
3275 action: SIGNAL_EMIT "elm,action,click" "";
3277 program { name: "text_show";
3278 signal: "elm,state,text,visible";
3283 get_state(PART:"elm.swallow.content", st, 30, vl);
3284 if (!strcmp(st, "icononly"))
3286 set_state(PART:"elm.swallow.content", "visible", 0.0);
3287 set_state(PART:"padding_icon_text", "visible", 0.0);
3289 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3290 set_state(PART:"elm.text", "visible", 0.0);
3292 set_state(PART:"elm.text", "disabled_visible", 0.0);
3295 program { name: "text_hide";
3296 signal: "elm,state,text,hidden";
3301 get_state(PART:"elm.swallow.content", st, 30, vl);
3302 if (!strcmp(st, "visible"))
3304 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3305 set_state(PART:"padding_icon_text", "icononly", 0.0);
3307 set_state(PART:"elm.text", "default", 0.0);
3310 program { name: "icon_show";
3311 signal: "elm,state,icon,visible";
3316 get_state(PART:"elm.text", st, 30, vl);
3317 if (!strcmp(st, "visible"))
3319 set_state(PART:"elm.swallow.content", "visible", 0.0);
3320 set_state(PART:"padding_icon_text", "visible", 0.0);
3324 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3325 set_state(PART:"padding_icon_text", "icononly", 0.0);
3329 program { name: "icon_hide";
3330 signal: "elm,state,icon,hidden";
3332 action: STATE_SET "default" 0.0;
3333 target: "elm.swallow.content";
3334 target: "padding_icon_text";
3336 program { name: "disable";
3337 signal: "elm,state,disabled";
3339 action: STATE_SET "disabled" 0.0;
3340 target: "button_image";
3343 after: "disable_text";
3345 program { name: "disable_text";
3349 get_state(PART:"elm.text", st, 30, vl);
3350 if (!strcmp(st, "visible"))
3351 set_state(PART:"elm.text", "disabled_visible", 0.0);
3353 set_state(PART:"elm.text", "disabled", 0.0);
3354 set_int(button_state, BUTTON_STATE_DISABLED);
3357 program { name: "enable";
3358 signal: "elm,state,enabled";
3360 action: STATE_SET "default" 0.0;
3361 target: "button_image";
3364 after: "enable_text";
3366 program { name: "enable_text";
3370 get_state(PART:"elm.text", st, 30, vl);
3371 if (!strcmp(st, "disabled_visible"))
3372 set_state(PART:"elm.text", "visible", 0.0);
3374 set_state(PART:"elm.text", "default", 0.0);
3375 set_int(button_state, BUTTON_STATE_ENABLED);
3378 program { name: "focused";
3379 //signal: "elm,action,focus";
3381 action: STATE_SET "focused" 0.0;
3382 target: "button_image";
3385 program { name: "unfocused";
3386 //signal: "elm,action,unfocus";
3388 action: STATE_SET "default" 0.0;
3389 target: "button_image";
3390 after: "unfocus_text";
3392 program { name: "unfocus_text";
3393 action: STATE_SET "visible" 0.0;
3399 ///////////////////////////////////////////////////////////////////////////////////////
3400 group { name: "elm/button/base/multiline";
3401 alias: "elm/button/base/text_only/multiline";
3402 inherit: "elm/button/base/default";
3404 style { name: "btn_multiline_style";
3405 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";
3412 part { name: "button_image";
3414 description { state: "default" 0.0;
3415 min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3417 normal: "00_button_01.png";
3418 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3422 description { state: "clicked" 0.0;
3423 inherit: "default" 0.0;
3424 image.normal: "00_button_01_press.png";
3426 description { state: "disabled" 0.0;
3427 inherit: "default" 0.0;
3428 image.normal: "00_button_01_dim.png";
3430 description { state: "focused" 0.0;
3431 inherit: "default" 0.0;
3432 image.normal: "00_button_01_press.png";
3435 part { name: "padding_left_top";
3439 description { state: "default" 0.0;
3441 rel2.relative: 0.0 0.0;
3442 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3447 part { name: "padding_right_bottom";
3451 description { state: "default" 0.0;
3453 rel1.relative: 1.0 1.0;
3454 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3459 part { name: "elm.text";
3464 description { state: "default" 0.0;
3468 to_x: "padding_icon_text";
3469 to_y: "padding_left_top";
3473 to: "padding_right_bottom";
3475 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3477 style: "btn_multiline_style";
3480 description { state: "visible" 0.0;
3481 inherit: "default" 0.0;
3485 description { state: "clicked" 0.0;
3486 inherit: "default" 0.0;
3489 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3491 description { state: "disabled" 0.0;
3492 inherit: "default" 0.0;
3494 description { state: "disabled_visible" 0.0;
3495 inherit: "default" 0.0;
3496 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3500 description { state: "focused" 0.0;
3501 inherit: "default" 0.0;
3504 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3510 ///////////////////////////////////////////////////////////////////////////////////////
3511 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
3512 group { name: "elm/button/base/"style_name; \
3514 image: image_normal COMP; \
3515 image: image_press COMP; \
3516 image: image_dim COMP; \
3517 image: "00_button_01.png" COMP; \
3518 image: "00_button_01_press.png" COMP; \
3521 part { name: "button_image"; \
3523 description { state: "default" 0.0; \
3524 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3525 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3527 normal: "00_button_01.png"; \
3528 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3533 state: "clicked" 0.0; \
3534 inherit: "default" 0.0; \
3535 image.normal: "00_button_01_press.png"; \
3538 state: "disabled" 0.0; \
3539 inherit: "default" 0.0; \
3540 image.normal: "00_button_01_dim.png"; \
3543 state: "focused" 0.0; \
3544 inherit: "default" 0.0; \
3545 image.normal: "00_button_01_press.png"; \
3548 part { name: "button_center_part"; \
3550 clip_to: "icon_clipper"; \
3551 description { state: "default" 0.0; \
3552 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3553 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3554 image.normal: image_normal; \
3557 state: "clicked" 0.0; \
3558 inherit: "default" 0.0; \
3559 image.normal: image_press; \
3562 state: "disabled" 0.0; \
3563 inherit: "default" 0.0; \
3566 part { name: "icon_clipper"; \
3569 description { state: "default" 0.0; \
3570 color: 50 50 50 255; \
3572 description { state: "clicked" 0.0; \
3573 color: 248 246 239 255; \
3575 description { state: "disabled" 0.0; \
3576 color: 50 50 50 76; \
3579 part { name: "over1"; \
3581 ignore_flags: ON_HOLD; \
3582 description { state: "default" 0.0; \
3586 part { name: "over2"; \
3588 description { state: "default" 0.0; \
3592 part { name: "disabler"; \
3594 description { state: "default" 0.0; \
3598 description { state: "disabled" 0.0; \
3599 inherit: "default" 0.0; \
3605 program { name: "button_click"; \
3606 signal: "mouse,down,1"; \
3608 action: SIGNAL_EMIT "elm,action,press" ""; \
3609 after: "button_click_anim"; \
3611 program { name: "button_click_anim"; \
3612 action: STATE_SET "clicked" 0.0; \
3613 target: "button_image"; \
3614 target: "button_center_part"; \
3615 target: ""icon_clipper""; \
3617 program { name: "button_unclick"; \
3618 signal: "mouse,up,1"; \
3620 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3621 after: "button_unclick_anim"; \
3623 program { name: "button_unclick_anim"; \
3624 action: STATE_SET "default" 0.0; \
3625 target: "button_image"; \
3626 target: "button_center_part"; \
3627 target: ""icon_clipper""; \
3629 program { name: "touch_snd"; \
3630 signal: "mouse,clicked,1"; \
3632 action: PLAY_SAMPLE "touch_sound" 1.0; \
3633 after: button_unclick3; \
3635 program { name: "button_unclick3"; \
3636 action: SIGNAL_EMIT "elm,action,click" ""; \
3638 program { name: "disable"; \
3639 signal: "elm,state,disabled"; \
3641 action: STATE_SET "disabled" 0.0; \
3642 target: "disabler"; \
3643 target: "button_image"; \
3644 target: "button_center_part"; \
3645 target: ""icon_clipper""; \
3647 program { name: "enable"; \
3648 signal: "elm,state,enabled"; \
3650 action: STATE_SET "default" 0.0; \
3651 target: "disabler"; \
3652 target: "button_image"; \
3653 target: "button_center_part"; \
3654 target: ""icon_clipper""; \
3658 ///////////////////////////////////////////////////////////////////////////////////////
3659 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
3660 ///////////////////////////////////////////////////////////////////////////////////////
3661 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
3662 ///////////////////////////////////////////////////////////////////////////////////////
3664 group { name: "elm/button/base/contact";
3665 alias: "elm/button/base/text_only/contact";
3667 image: "00_contacts_button.png" COMP;
3668 image: "00_contacts_button_press.png" COMP;
3671 public button_state = BUTTON_STATE_ENABLED;
3674 part { name: "button_image";
3676 description { state: "default" 0.0;
3678 to_x: "padding.left";
3682 to_x: "padding.right";
3685 min: BUTTON_CONTACT_BG_MIN_INC;
3687 normal: "00_contacts_button.png";
3688 border: BUTTON_CONTACT_BG_BORDER_INC;
3692 description { state: "clicked" 0.0;
3693 inherit: "default" 0.0;
3694 image.normal: "00_contacts_button_press.png";
3696 description { state: "disabled" 0.0;
3697 inherit: "default" 0.0;
3699 description { state: "focused" 0.0;
3700 inherit: "default" 0.0;
3701 image.normal: "00_contacts_button_press.png";
3704 part { name: "padding.left";
3707 description { state: "default" 0.0;
3709 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
3719 part { name: "padding.right";
3722 description { state: "default" 0.0;
3724 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
3734 part { name: "elm.text";
3738 description { state: "default" 0.0;
3741 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
3743 font: "Tizen:style=Regular";
3744 size: BUTTON_CONTACT_FONT_SIZE_INC;
3746 text_class: "tizen";
3749 description { state: "visible" 0.0;
3750 inherit: "default" 0.0;
3754 description { state: "clicked" 0.0;
3755 inherit: "default" 0.0;
3758 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
3760 description { state: "disabled" 0.0;
3761 inherit: "default" 0.0;
3763 description { state: "disabled_visible" 0.0;
3764 inherit: "default" 0.0;
3765 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
3769 description { state: "focused" 0.0;
3770 inherit: "default" 0.0;
3773 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
3776 part { name: "over1";
3778 description { state: "default" 0.0;
3779 rel2.relative: 1.0 0.5;
3782 part { name: "over2";
3784 ignore_flags: ON_HOLD;
3785 description { state: "default" 0.0;
3786 rel1.to: "button_image";
3787 rel2.to: "button_image";
3790 part { name: "over3";
3792 description { state: "default" 0.0;
3793 rel1.to: "button_image";
3794 rel2.to: "button_image";
3798 part { name: "disabler";
3800 description { state: "default" 0.0;
3801 rel1.to: "button_image";
3802 rel2.to: "button_image";
3806 description { state: "disabled" 0.0;
3807 inherit: "default" 0.0;
3813 program { name: "button_click";
3814 signal: "mouse,down,1";
3816 action: SIGNAL_EMIT "elm,action,press" "";
3817 after: "button_click_anim";
3819 program { name: "button_click_anim";
3820 action: STATE_SET "clicked" 0.0;
3821 target: "button_image";
3824 program { name: "button_unpress";
3825 action: SIGNAL_EMIT "elm,action,unpress" "";
3827 program { name: "button_mouseout_clicked";
3828 signal: "mouse,up,1";
3833 get_state(PART:"elm.text", st, 30, vl);
3834 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
3836 emit("elm,action,default,text,set", "");
3837 set_state(PART:"elm.text", "visible", 0.0);
3839 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3840 set_state(PART:"button_image", "default", 0.0);
3842 after: button_unpress;
3844 program { name: "touch_snd";
3845 signal: "mouse,clicked,1";
3847 action: PLAY_SAMPLE "touch_sound" 1.0;
3848 after: button_unclick3;
3850 program { name: "button_unclick3";
3851 action: SIGNAL_EMIT "elm,action,click" "";
3853 program { name: "text_show";
3854 signal: "elm,state,text,visible";
3857 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3858 set_state(PART:"elm.text", "visible", 0.0);
3860 set_state(PART:"elm.text", "disabled_visible", 0.0);
3863 program { name: "text_hide";
3864 signal: "elm,state,text,hidden";
3866 action: STATE_SET "default" 0.0;
3869 program { name: "disable";
3870 signal: "elm,state,disabled";
3872 action: STATE_SET "disabled" 0.0;
3873 target: "button_image";
3875 after: "disable_text";
3877 program { name: "disable_text";
3881 get_state(PART:"elm.text", st, 30, vl);
3882 if (!strcmp(st, "visible"))
3883 set_state(PART:"elm.text", "disabled_visible", 0.0);
3885 set_state(PART:"elm.text", "disabled", 0.0);
3886 set_int(button_state, BUTTON_STATE_DISABLED);
3889 program { name: "enable";
3890 signal: "elm,state,enabled";
3892 action: STATE_SET "default" 0.0;
3893 target: "button_image";
3895 after: "enable_text";
3897 program { name: "enable_text";
3901 get_state(PART:"elm.text", st, 30, vl);
3902 if (!strcmp(st, "disabled_visible"))
3903 set_state(PART:"elm.text", "visible", 0.0);
3905 set_state(PART:"elm.text", "default", 0.0);
3906 set_int(button_state, BUTTON_STATE_ENABLED);
3909 program { name: "focused";
3910 //signal: "elm,action,focus";
3912 action: STATE_SET "focused" 0.0;
3913 target: "button_image";
3916 program { name: "unfocused";
3917 //signal: "elm,action,unfocus";
3919 action: STATE_SET "default" 0.0;
3920 target: "button_image";
3921 action: STATE_SET "visible" 0.0;
3927 ///////////////////////////////////////////////////////////////////////////////////////
3928 group { name: "elm/button/base/naviframe/back_btn/default";
3929 alias: "elm/button/base/naviframe/prev_btn/default";
3930 alias: "elm/button/base/naviframe/end_btn/default";
3932 image: "00_icon_Back.png" COMP;
3933 image: "00_icon_Back_press.png" COMP;
3934 image: "00_icon_Back_dim.png" COMP;
3937 part { name: "button_image";
3940 description { state: "default" 0.0;
3941 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
3942 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
3945 description { state: "clicked" 0.0;
3946 inherit: "default" 0.0;
3948 description { state: "disabled" 0.0;
3949 inherit: "default" 0.0;
3951 description { state: "focused" 0.0;
3952 inherit: "default" 0.0;
3955 part { name: "back_button";
3958 description { state: "default" 0.0;
3959 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
3960 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
3961 rel1.to: "button_image";
3962 rel2.to: "button_image";
3963 image.normal: "00_icon_Back.png";
3965 description { state: "clicked" 0.0;
3966 inherit: "default" 0.0;
3967 image.normal: "00_icon_Back_press.png";
3969 description { state: "disabled" 0.0;
3970 inherit: "default" 0.0;
3971 image.normal: "00_icon_Back_dim.png";
3974 part { name: "over2";
3976 ignore_flags: ON_HOLD;
3977 description { state: "default" 0.0;
3981 part { name: "over3";
3984 description { state: "default" 0.0;
3988 part { name: "disabler";
3990 description { state: "default" 0.0;
3994 description { state: "disabled" 0.0;
3995 inherit: "default" 0.0;
4001 program { name: "button_click";
4002 signal: "mouse,down,1";
4004 action: SIGNAL_EMIT "elm,action,press" "";
4005 after: "button_click_anim";
4007 program { name: "button_click_anim";
4008 action: STATE_SET "clicked" 0.0;
4009 target: "button_image";
4010 target: "back_button";
4012 program { name: "button_unclick";
4013 signal: "mouse,up,1";
4015 action: SIGNAL_EMIT "elm,action,unpress" "";
4016 after: "button_unclick_anim";
4018 program { name: "button_unclick_anim";
4019 action: STATE_SET "default" 0.0;
4020 target: "button_image";
4021 target: "back_button";
4023 program { name: "touch_snd";
4024 signal: "mouse,clicked,1";
4026 action: PLAY_SAMPLE "touch_sound" 1.0;
4027 after: button_unclick3;
4029 program { name: "button_unclick3";
4030 action: SIGNAL_EMIT "elm,action,click" "";
4032 program { name: "disable";
4033 signal: "elm,state,disabled";
4035 action: STATE_SET "disabled" 0.0;
4036 target: "button_image";
4038 target: "back_button";
4040 program { name: "enable";
4041 signal: "elm,state,enabled";
4043 action: STATE_SET "default" 0.0;
4044 target: "button_image";
4046 target: "back_button";
4051 //////////////////////////////////////////////////////////////
4052 group { name: "elm/button/base/naviframe/toolbar/default";
4053 alias: "elm/button/base/naviframe/title/default";
4055 image: "00_toolbar_button.png" COMP;
4056 image: "00_toolbar_button_press.png" COMP;
4057 image: "00_toolbar_button_dim.png" COMP;
4058 image: "00_badge_bg.png" COMP;
4061 style { name: "btn_naviframe_toolbar";
4062 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color=#ffffff ellipsis=1.0 wrap=none text_class=tizen";
4069 public button_state = BUTTON_STATE_ENABLED;
4072 part { name: "button_image";
4074 description { state: "default" 0.0;
4075 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4076 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4078 rel1.to: "padding_text_left_top";
4079 rel2.to: "padding_text_right_bottom";
4081 normal: "00_toolbar_button.png";
4082 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4086 description { state: "clicked" 0.0;
4087 inherit: "default" 0.0;
4088 image.normal: "00_toolbar_button_press.png";
4090 description { state: "disabled" 0.0;
4091 inherit: "default" 0.0;
4092 image.normal: "00_toolbar_button_dim.png";
4094 description { state: "focused" 0.0;
4095 inherit: "default" 0.0;
4096 image.normal: "00_toolbar_button_press.png";
4099 part { name: "padding_left_top";
4103 description { state: "default" 0.0;
4106 rel2.relative: 0.0 0.0;
4107 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4111 part { name: "padding_right_bottom";
4115 description { state: "default" 0.0;
4117 rel1.relative: 1.0 1.0;
4118 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4123 part { name: "padding_text_left_top";
4127 description { state: "default" 0.0;
4129 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4131 rel1.to: "elm.text";
4139 part { name: "padding_text_right_bottom";
4143 description { state: "default" 0.0;
4144 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4151 rel2.to: "elm.text";
4155 part { name: "elm.text";
4159 effect: FAR_SHADOW BOTTOM;
4161 description { state: "default" 0.0;
4164 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4167 to: "padding_left_top";
4171 to: "padding_right_bottom";
4173 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4174 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4178 style: "btn_naviframe_toolbar";
4181 description { state: "visible" 0.0;
4182 inherit: "default" 0.0;
4185 description { state: "clicked" 0.0;
4186 inherit: "default" 0.0;
4188 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4190 description { state: "disabled" 0.0;
4191 inherit: "default" 0.0;
4193 description { state: "disabled_visible" 0.0;
4194 inherit: "default" 0.0;
4195 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4196 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4199 description { state: "focused" 0.0;
4200 inherit: "default" 0.0;
4202 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4205 part { name: "disclip";
4207 description { state: "default" 0.0;
4208 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4210 description { state: "disabled" 0.0;
4211 inherit: "default" 0.0;
4212 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4215 part { name: "over2";
4218 ignore_flags: ON_HOLD;
4219 description { state: "default" 0.0;
4220 rel1.to: "button_image";
4221 rel2.to: "button_image";
4225 part { name: "over3";
4228 description { state: "default" 0.0;
4229 rel1.to: "button_image";
4230 rel2.to: "button_image";
4234 part { name: "disabler";
4236 description { state: "default" 0.0;
4237 rel1.to: "button_image";
4238 rel2.to: "button_image";
4242 description { state: "disabled" 0.0;
4243 inherit: "default" 0.0;
4249 program { name: "button_click";
4250 signal: "mouse,down,1";
4252 action: SIGNAL_EMIT "elm,action,press" "";
4253 after: "button_click_anim";
4255 program { name: "button_click_anim";
4256 action: STATE_SET "clicked" 0.0;
4257 target: "button_image";
4260 program { name: "button_unpress";
4261 action: SIGNAL_EMIT "elm,action,unpress" "";
4263 program { name: "button_mouseout_clicked";
4264 signal: "mouse,up,1";
4269 get_state(PART:"elm.text", st, 30, vl);
4270 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4272 emit("elm,action,default,text,set", "");
4273 set_state(PART:"elm.text", "visible", 0.0);
4275 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4276 set_state(PART:"button_image", "default", 0.0);
4278 after: button_unpress;
4280 program { name: "touch_snd";
4281 signal: "mouse,clicked,1";
4283 action: PLAY_SAMPLE "touch_sound" 1.0;
4284 after: button_unclick3;
4286 program { name: "button_unclick3";
4287 action: SIGNAL_EMIT "elm,action,click" "";
4289 program { name: "text_show";
4290 signal: "elm,state,text,visible";
4293 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4294 set_state(PART:"elm.text", "visible", 0.0);
4296 set_state(PART:"elm.text", "disabled_visible", 0.0);
4299 program { name: "text_hide";
4300 signal: "elm,state,text,hidden";
4302 action: STATE_SET "default" 0.0;
4305 program { name: "disable";
4306 signal: "elm,state,disabled";
4308 action: STATE_SET "disabled" 0.0;
4309 target: "button_image";
4312 after: "disable_text";
4314 program { name: "disable_text";
4318 get_state(PART:"elm.text", st, 30, vl);
4319 if (!strcmp(st, "visible"))
4320 set_state(PART:"elm.text", "disabled_visible", 0.0);
4322 set_state(PART:"elm.text", "disabled", 0.0);
4323 set_int(button_state, BUTTON_STATE_DISABLED);
4326 program { name: "enable";
4327 signal: "elm,state,enabled";
4329 action: STATE_SET "default" 0.0;
4330 target: "button_image";
4333 after: "enable_text";
4335 program { name: "enable_text";
4339 get_state(PART:"elm.text", st, 30, vl);
4340 if (!strcmp(st, "disabled_visible"))
4341 set_state(PART:"elm.text", "visible", 0.0);
4343 set_state(PART:"elm.text", "default", 0.0);
4344 set_int(button_state, BUTTON_STATE_ENABLED);
4347 program { name: "focused";
4348 //signal: "elm,action,focus";
4350 action: STATE_SET "focused" 0.0;
4351 target: "button_image";
4354 program { name: "unfocused";
4355 //signal: "elm,action,unfocus";
4357 action: STATE_SET "default" 0.0;
4358 target: "button_image";
4359 action: STATE_SET "visible" 0.0;
4365 //////////////////////////////////////////////////////////////
4366 group { name: "elm/button/base/naviframe/toolbar/left";
4367 inherit: "elm/button/base/naviframe/toolbar/default";
4369 part { name: "button_image";
4371 description { state: "default" 0.0;
4372 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4373 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4375 rel1.to: "padding_text_left_top";
4376 rel2.to: "padding_text_right_bottom";
4379 normal: "00_toolbar_button.png";
4380 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4384 description { state: "clicked" 0.0;
4385 inherit: "default" 0.0;
4386 image.normal: "00_toolbar_button_press.png";
4388 description { state: "disabled" 0.0;
4389 inherit: "default" 0.0;
4390 image.normal: "00_toolbar_button_dim.png";
4392 description { state: "focused" 0.0;
4393 inherit: "default" 0.0;
4394 image.normal: "00_toolbar_button_press.png";
4397 part { name: "elm.text";
4401 effect: FAR_SHADOW BOTTOM;
4403 description { state: "default" 0.0;
4406 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4409 to: "padding_left_top";
4413 to: "padding_right_bottom";
4416 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4417 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4421 style: "btn_naviframe_toolbar";
4424 description { state: "visible" 0.0;
4425 inherit: "default" 0.0;
4428 description { state: "clicked" 0.0;
4429 inherit: "default" 0.0;
4431 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4433 description { state: "disabled" 0.0;
4434 inherit: "default" 0.0;
4436 description { state: "disabled_visible" 0.0;
4437 inherit: "default" 0.0;
4438 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4439 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4442 description { state: "focused" 0.0;
4443 inherit: "default" 0.0;
4445 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4451 //////////////////////////////////////////////////////////////
4452 group { name: "elm/button/base/naviframe/toolbar/right";
4453 inherit: "elm/button/base/naviframe/toolbar/default";
4455 part { name: "button_image";
4457 description { state: "default" 0.0;
4458 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4459 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4461 rel1.to: "padding_text_left_top";
4462 rel2.to: "padding_text_right_bottom";
4465 normal: "00_toolbar_button.png";
4466 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4470 description { state: "clicked" 0.0;
4471 inherit: "default" 0.0;
4472 image.normal: "00_toolbar_button_press.png";
4474 description { state: "disabled" 0.0;
4475 inherit: "default" 0.0;
4476 image.normal: "00_toolbar_button_dim.png";
4478 description { state: "focused" 0.0;
4479 inherit: "default" 0.0;
4480 image.normal: "00_toolbar_button_press.png";
4483 part { name: "elm.text";
4487 effect: FAR_SHADOW BOTTOM;
4489 description { state: "default" 0.0;
4492 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4495 to: "padding_left_top";
4499 to: "padding_right_bottom";
4502 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4503 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4507 style: "btn_naviframe_toolbar";
4510 description { state: "visible" 0.0;
4511 inherit: "default" 0.0;
4514 description { state: "clicked" 0.0;
4515 inherit: "default" 0.0;
4517 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4519 description { state: "disabled" 0.0;
4520 inherit: "default" 0.0;
4522 description { state: "disabled_visible" 0.0;
4523 inherit: "default" 0.0;
4524 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4525 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4528 description { state: "focused" 0.0;
4529 inherit: "default" 0.0;
4531 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4537 ////////////////////////////////////////////////////////////////////
4538 group { name: "elm/button/base/naviframe/title_icon";
4540 part { name: "button_image";
4543 description { state: "default" 0.0;
4545 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
4546 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
4548 description { state: "clicked" 0.0;
4549 inherit: "default" 0.0;
4551 description { state: "disabled" 0.0;
4552 inherit: "default" 0.0;
4555 part { name: "top_padding";
4558 description { state: "default" 0.0;
4560 min: BUTTON_NAVIFRAME_TITLE_ICON_TOP_PADDING_INC;
4563 rel1 { relative: 0.0 0.0; to: "button_image"; }
4564 rel2 { relative: 1.0 0.0; to: "button_image"; }
4567 part { name: "elm.swallow.content";
4570 clip_to: "elm.icon.clipper";
4571 description { state: "default" 0.0;
4573 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
4576 rel1 { relative: 0.0 1.0; to: "top_padding"; }
4577 rel2 { relative: 1.0 1.0; to: "button_image"; }
4579 description { state: "visible" 0.0;
4580 inherit: "default" 0.0;
4584 part { name: "elm.swallow.icon.proxy";
4587 clip_to: "elm.icon.proxy.clipper";
4588 description { state: "default" 0.0;
4589 source: "elm.swallow.content";
4590 rel1.to: "elm.swallow.content";
4592 rel2.to: "elm.swallow.content";
4596 part { name: "elm.icon.proxy.clipper";
4598 description { state: "default" 0.0;
4599 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4601 description { state: "clicked" 0.0;
4602 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4604 description { state: "disabled" 0.0;
4605 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4608 part { name: "elm.icon.clipper";
4610 description { state: "default" 0.0;
4611 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
4613 description { state: "clicked" 0.0;
4614 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
4616 description { state: "disabled" 0.0;
4617 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4620 part { name: "over2";
4622 ignore_flags: ON_HOLD;
4623 description { state: "default" 0.0;
4627 part { name: "over3";
4630 description { state: "default" 0.0;
4634 part { name: "disabler";
4636 description { state: "default" 0.0;
4640 description { state: "disabled" 0.0;
4641 inherit: "default" 0.0;
4647 program { name: "button_click";
4648 signal: "mouse,down,1";
4650 action: SIGNAL_EMIT "elm,action,press" "";
4651 after: "button_click_anim";
4653 program { name: "button_click_anim";
4654 action: STATE_SET "clicked" 0.0;
4655 target: "button_image";
4656 target: "elm.icon.clipper";
4657 target: "elm.icon.proxy.clipper";
4659 program { name: "button_unpress";
4660 action: SIGNAL_EMIT "elm,action,unpress" "";
4662 program { name: "button_mouseout_clicked";
4663 signal: "mouse,up,1";
4665 action: STATE_SET "default" 0.0;
4666 target: "elm.icon.clipper";
4667 target: "elm.icon.proxy.clipper";
4668 after: button_unpress;
4670 program { name: "touch_snd";
4671 signal: "mouse,clicked,1";
4673 action: PLAY_SAMPLE "touch_sound" 1.0;
4674 after: button_unclick3;
4676 program { name: "button_unclick3";
4677 action: SIGNAL_EMIT "elm,action,click" "";
4679 program { name: "icon_show";
4680 signal: "elm,state,icon,visible";
4682 action: STATE_SET "visible" 0.0;
4683 target: "elm.swallow.content";
4685 program { name: "icon_hide";
4686 signal: "elm,state,icon,hidden";
4688 action: STATE_SET "default" 0.0;
4689 target: "elm.swallow.content";
4691 program { name: "disable";
4692 signal: "elm,state,disabled";
4694 action: STATE_SET "disabled" 0.0;
4695 target: "button_image";
4697 target: "elm.icon.clipper";
4698 target: "elm.icon.proxy.clipper";
4700 program { name: "enable";
4701 signal: "elm,state,enabled";
4703 action: STATE_SET "default" 0.0;
4704 target: "button_image";
4705 target: "elm.icon.clipper";
4706 target: "elm.icon.proxy.clipper";
4712 /////////////////////////////////////////////////////////////////////////////////////////
4713 group { name: "elm/button/base/naviframe/more/default";
4715 image: "00_icon_more.png" COMP;
4716 image: "00_icon_more_press.png" COMP;
4717 image: "00_icon_more_dim.png" COMP;
4720 part { name: "button_image";
4723 description { state: "default" 0.0;
4724 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
4725 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
4728 description { state: "clicked" 0.0;
4729 inherit: "default" 0.0;
4731 description { state: "disabled" 0.0;
4732 inherit: "default" 0.0;
4734 description { state: "focused" 0.0;
4735 inherit: "default" 0.0;
4738 part { name: "more_image";
4741 description { state: "default" 0.0;
4742 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
4743 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
4744 rel1.to: "button_image";
4745 rel2.to: "button_image";
4746 image.normal: "00_icon_more.png";
4748 description { state: "clicked" 0.0;
4749 inherit: "default" 0.0;
4750 image.normal: "00_icon_more_press.png";
4752 description { state: "disabled" 0.0;
4753 inherit: "default" 0.0;
4754 image.normal: "00_icon_more_dim.png";
4757 part { name: "elm.text.badge.bg";
4761 state: "default" 0.0;
4764 to: "left.padding.text.badge";
4768 to: "right.padding.text.badge";
4773 normal: "00_badge_bg.png";
4778 description { state: "visible" 0.0;
4779 inherit: "default" 0.0;
4783 part { name: "left.padding.text.badge";
4787 state: "default" 0.0;
4792 to: "elm.text.badge";
4796 to: "elm.text.badge";
4802 part { name: "right.padding.text.badge";
4806 state: "default" 0.0;
4821 part { name: "elm.text.badge";
4826 state: "default" 0.0;
4834 to: "right.padding.text.badge";
4838 color: 10 100 208 255;
4840 font: "Tizen:style=Bold";
4846 description { state: "visible" 0.0;
4847 inherit: "default" 0.0;
4851 part { name: "over2";
4853 ignore_flags: ON_HOLD;
4854 description { state: "default" 0.0;
4858 part { name: "over3";
4861 description { state: "default" 0.0;
4865 part { name: "disabler";
4867 description { state: "default" 0.0;
4871 description { state: "disabled" 0.0;
4872 inherit: "default" 0.0;
4878 program { name: "button_click";
4879 signal: "mouse,down,1";
4881 action: SIGNAL_EMIT "elm,action,press" "";
4882 after: "button_click_anim";
4884 program { name: "button_click_anim";
4885 action: STATE_SET "clicked" 0.0;
4886 target: "button_image";
4887 target: "more_image";
4889 program { name: "button_unclick";
4890 signal: "mouse,up,1";
4892 action: SIGNAL_EMIT "elm,action,unpress" "";
4893 after: "button_unclick_anim";
4895 program { name: "button_unclick_anim";
4896 action: STATE_SET "default" 0.0;
4897 target: "button_image";
4898 target: "more_image";
4900 program { name: "touch_snd";
4901 signal: "mouse,clicked,1";
4903 action: PLAY_SAMPLE "touch_sound" 1.0;
4904 after: button_unclick3;
4906 program { name: "button_unclick3";
4907 action: SIGNAL_EMIT "elm,action,click" "";
4909 program { name: "badge_text_show";
4910 signal: "elm,state,elm.text.badge,visible";
4912 action: STATE_SET "visible" 0.0;
4913 target: "elm.text.badge";
4914 target: "elm.text.badge.bg";
4916 program { name: "badge_text_hide";
4917 signal: "elm,state,elm.text.badge,hidden";
4919 action: STATE_SET "default" 0.0;
4920 target: "elm.text.badge";
4921 target: "elm.text.badge.bg";
4923 program { name: "disable";
4924 signal: "elm,state,disabled";
4926 action: STATE_SET "disabled" 0.0;
4928 target: "button_image";
4929 target: "more_image";
4931 program { name: "enable";
4932 signal: "elm,state,enabled";
4934 action: STATE_SET "default" 0.0;
4936 target: "button_image";
4937 target: "more_image";
4942 ///////////////////////////////////////////////////////////////////////////////////////
4943 group { name: "elm/button/base/tickernoti";
4945 image: "00_notification_button_bg.png" COMP;
4946 image: "00_notification_button_bg_press.png" COMP;
4947 image: "00_notification_button_bg_dim.png" COMP;
4950 public button_state = BUTTON_STATE_ENABLED;
4953 part { name: "button_image";
4955 description { state: "default" 0.0;
4956 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
4957 max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
4959 normal: "00_notification_button_bg.png";
4960 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
4964 description { state: "clicked" 0.0;
4965 inherit: "default" 0.0;
4966 image.normal: "00_notification_button_bg_press.png";
4968 description { state: "disabled" 0.0;
4969 inherit: "default" 0.0;
4970 image.normal: "00_notification_button_bg_dim.png";
4972 description { state: "focused" 0.0;
4973 inherit: "default" 0.0;
4974 image.normal: "00_notification_button_bg_press.png";
4977 part { name: "padding_left_top";
4981 description { state: "default" 0.0;
4984 rel2.relative: 0.0 0.0;
4985 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
4993 description { state: "default" 0.0;
4994 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
4997 description { state: "visible" 0.0;
4998 inherit: "default" 0.0;
5000 description { state: "icononly" 0.0;
5001 inherit: "default" 0.0;
5004 part { name: "padding_right_bottom";
5008 description { state: "default" 0.0;
5010 rel1.relative: 1.0 1.0;
5011 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5016 part { name: "icon_rect";
5020 description { state: "default" 0.0;
5026 to: "padding_left_top";
5030 to_x: "padding_left_top";
5031 to_y: "padding_right_bottom";
5035 description { state: "visible" 0.0;
5036 inherit: "default" 0.0;
5037 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5038 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5040 description { state: "icononly" 0.0;
5041 inherit: "default" 0.0;
5044 part { name: "padding_after_icon";
5048 description { state: "default" 0.0; //when only icon or no icon is there
5057 rel2.to: "icon_rect";
5059 description { state: "visible" 0.0;
5060 inherit: "default" 0.0;
5061 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5063 description { state: "icononly" 0.0;
5064 inherit: "default" 0.0;
5067 part { name: "padding_before_text";
5071 description { state: "default" 0.0; //when only icon or no icon is there
5075 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5079 to_y: "padding_left_top";
5084 to_y: "padding_right_bottom";
5088 part { name: "elm.swallow.content";
5092 description { state: "default" 0.0;
5098 to: "padding_left_top";
5102 to_x: "padding_left_top";
5103 to_y: "padding_right_bottom";
5106 description { state: "visible" 0.0;
5108 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5109 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5113 to_x: "padding_before_text";
5114 to_y: "padding_left_top";
5118 to_x: "padding_before_text";
5119 to_y: "padding_right_bottom";
5122 description { state: "icononly" 0.0;
5123 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5124 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5127 part { name: "elm.text";
5130 effect: FAR_SHADOW BOTTOM;
5133 description { state: "default" 0.0;
5137 to_x: "padding_after_icon";
5138 to_y: "padding_left_top";
5142 to: "padding_right_bottom";
5144 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
5145 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5147 font: "Tizen:style=Regular";
5148 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
5151 text_class: "tizen";
5154 description { state: "visible" 0.0;
5155 inherit: "default" 0.0;
5158 description { state: "clicked" 0.0;
5159 inherit: "default" 0.0;
5161 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5163 description { state: "disabled" 0.0;
5164 inherit: "default" 0.0;
5166 description { state: "disabled_visible" 0.0;
5167 inherit: "default" 0.0;
5168 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
5169 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5172 description { state: "focused" 0.0;
5173 inherit: "default" 0.0;
5175 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5178 part { name: "over2";
5181 ignore_flags: ON_HOLD;
5182 description { state: "default" 0.0;
5186 part { name: "over3";
5189 description { state: "default" 0.0;
5193 part { name: "clipper";
5195 description { state: "default" 0.0;
5196 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5198 description { state: "disabled" 0.0;
5199 inherit: "default" 0.0;
5200 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5203 part { name: "disabler";
5205 description { state: "default" 0.0;
5209 description { state: "disabled" 0.0;
5210 inherit: "default" 0.0;
5216 program { name: "button_click";
5217 signal: "mouse,down,1";
5219 action: SIGNAL_EMIT "elm,action,press" "";
5220 after: "button_click_anim";
5222 program { name: "button_click_anim";
5223 action: STATE_SET "clicked" 0.0;
5224 target: "button_image";
5225 after: "text_clicked";
5227 program { name: "text_clicked";
5231 get_state(PART:"elm.text", st, 30, vl);
5232 if (!strcmp(st, "visible"))
5233 set_state(PART:"elm.text", "clicked", 0.0);
5236 program { name: "button_unpress";
5237 action: SIGNAL_EMIT "elm,action,unpress" "";
5239 program { name: "button_mouseout_clicked";
5240 signal: "mouse,up,1";
5245 get_state(PART:"elm.swallow.content", st, 30, vl);
5246 if (strcmp(st, "icononly"))
5248 emit("elm,action,default,text,set", "");
5249 set_state(PART:"elm.text", "visible", 0.0);
5251 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5252 set_state(PART:"button_image", "default", 0.0);
5254 after: button_unpress;
5256 program { name: "touch_snd";
5257 signal: "mouse,clicked,1";
5259 action: PLAY_SAMPLE "touch_sound" 1.0;
5260 after: button_unclick3;
5262 program { name: "button_unclick3";
5263 action: SIGNAL_EMIT "elm,action,click" "";
5265 program { name: "text_show";
5266 signal: "elm,state,text,visible";
5271 get_state(PART:"elm.swallow.content", st, 30, vl);
5272 if (!strcmp(st, "icononly"))
5274 set_state(PART:"elm.swallow.content", "visible", 0.0);
5275 set_state(PART:"icon_rect", "visible", 0.0);
5276 set_state(PART:"padding_after_icon", "visible", 0.0);
5277 set_state(PART:"bg", "visible", 0.0);
5279 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5280 set_state(PART:"elm.text", "visible", 0.0);
5282 set_state(PART:"elm.text", "disabled_visible", 0.0);
5285 program { name: "text_hide";
5286 signal: "elm,state,text,hidden";
5291 get_state(PART:"elm.swallow.content", st, 30, vl);
5292 if (!strcmp(st, "visible"))
5294 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5295 set_state(PART:"icon_rect", "icononly", 0.0);
5296 set_state(PART:"padding_after_icon", "icononly", 0.0);
5297 set_state(PART:"bg", "icononly", 0.0);
5299 set_state(PART:"elm.text", "default", 0.0);
5302 program { name: "icon_show";
5303 signal: "elm,state,icon,visible";
5308 get_state(PART:"elm.text", st, 30, vl);
5309 if (!strcmp(st, "visible"))
5311 set_state(PART:"elm.swallow.content", "visible", 0.0);
5312 set_state(PART:"icon_rect", "visible", 0.0);
5313 set_state(PART:"padding_after_icon", "visible", 0.0);
5314 set_state(PART:"bg", "visible", 0.0);
5318 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5319 set_state(PART:"icon_rect", "icononly", 0.0);
5320 set_state(PART:"padding_after_icon", "icononly", 0.0);
5321 set_state(PART:"bg", "icononly", 0.0);
5325 program { name: "icon_hide";
5326 signal: "elm,state,icon,hidden";
5328 action: STATE_SET "default" 0.0;
5329 target: "elm.swallow.content";
5330 target: "padding_after_icon";
5331 target: "icon_rect";
5334 program { name: "disable";
5335 signal: "elm,state,disabled";
5337 action: STATE_SET "disabled" 0.0;
5338 target: "button_image";
5341 after: "disable_text";
5343 program { name: "disable_text";
5347 get_state(PART:"elm.text", st, 30, vl);
5348 if (!strcmp(st, "visible"))
5349 set_state(PART:"elm.text", "disabled_visible", 0.0);
5351 set_state(PART:"elm.text", "disabled", 0.0);
5352 set_int(button_state, BUTTON_STATE_DISABLED);
5355 program { name: "enable";
5356 signal: "elm,state,enabled";
5358 action: STATE_SET "default" 0.0;
5359 target: "button_image";
5362 after: "enable_text";
5364 program { name: "enable_text";
5368 get_state(PART:"elm.text", st, 30, vl);
5369 if (!strcmp(st, "disabled_visible"))
5370 set_state(PART:"elm.text", "visible", 0.0);
5372 set_state(PART:"elm.text", "default", 0.0);
5373 set_int(button_state, BUTTON_STATE_ENABLED);
5376 program { name: "focused";
5377 //signal: "elm,action,focus";
5379 action: STATE_SET "focused" 0.0;
5380 target: "button_image";
5383 program { name: "unfocused";
5384 //signal: "elm,action,unfocus";
5386 action: STATE_SET "default" 0.0;
5387 target: "button_image";
5388 after: "unfocus_text";
5390 program { name: "unfocus_text";
5391 action: STATE_SET "visible" 0.0;
5397 ///////////////////////////////////////////////////////////////////////////////////////
5398 group { name: "elm/button/base/expandable_number";
5399 alias: "elm/button/base/text_only/expandable_number";
5401 image: "00_button_02.png" COMP;
5402 image: "00_button_02_press.png" COMP;
5403 image: "00_button_02_dim.png" COMP;
5404 image: "00_arrow_expand.png" COMP;
5407 public button_state = BUTTON_STATE_ENABLED;
5410 part { name: "button_image";
5412 description { state: "default" 0.0;
5413 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5414 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5416 normal: "00_button_02.png";
5417 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
5421 description { state: "clicked" 0.0;
5422 inherit: "default" 0.0;
5423 image.normal: "00_button_02_press.png";
5425 description { state: "disabled" 0.0;
5426 inherit: "default" 0.0;
5427 image.normal: "00_button_02_dim.png";
5429 description { state: "focused" 0.0;
5430 inherit: "default" 0.0;
5431 image.normal: "00_button_02_press.png";
5434 part { name: "padding_left_top";
5438 description { state: "default" 0.0;
5441 rel2.relative: 0.0 0.0;
5442 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
5446 part { name: "padding_right_bottom";
5450 description { state: "default" 0.0;
5453 rel1.relative: 1.0 1.0;
5454 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
5458 part { name: "icon_rect";
5462 description { state: "default" 0.0;
5464 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5465 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5469 to_x: "padding_right_bottom";
5470 to_y: "padding_left_top";
5474 to: "padding_right_bottom";
5479 part { name: "arrow_expand";
5481 clip_to: "icon_clipper";
5483 description { state: "default" 0.0;
5485 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5486 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5488 rel1.to: "icon_rect";
5489 rel2.to: "icon_rect";
5490 image.normal:"00_arrow_expand.png";
5493 part { name: "elm.text";
5496 effect: SHADOW BOTTOM;
5498 description { state: "default" 0.0;
5499 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
5500 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
5504 to: "padding_left_top";
5508 to_x:"padding_left_top";
5509 to_y:"padding_right_bottom";
5512 color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
5513 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
5515 font: "Tizen:style=Regular";
5516 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
5520 text_class: "tizen";
5523 description { state: "visible" 0.0;
5524 inherit: "default" 0.0;
5526 description { state: "clicked" 0.0;
5527 inherit: "default" 0.0;
5528 color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
5530 description { state: "disabled" 0.0;
5531 inherit: "default" 0.0;
5533 description { state: "disabled_visible" 0.0;
5534 inherit: "default" 0.0;
5535 color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
5536 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
5538 description { state: "focused" 0.0;
5539 inherit: "default" 0.0;
5540 color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
5543 part { name: "icon_clipper";
5546 description { state: "default" 0.0;
5547 color: 58 58 58 255;
5549 description { state: "clicked" 0.0;
5550 color: 248 246 239 255;
5552 description { state: "disabled" 0.0;
5556 part { name: "over2";
5559 ignore_flags: ON_HOLD;
5560 description { state: "default" 0.0;
5564 part { name: "over3";
5567 description { state: "default" 0.0;
5571 part { name: "disabler";
5573 description { state: "default" 0.0;
5577 description { state: "disabled" 0.0;
5578 inherit: "default" 0.0;
5584 program { name: "button_click";
5585 signal: "mouse,down,1";
5587 action: SIGNAL_EMIT "elm,action,press" "";
5588 after: "button_click_anim";
5590 program { name: "button_click_anim";
5591 action: STATE_SET "clicked" 0.0;
5592 target: "button_image";
5593 target: "icon_clipper";
5594 after: "text_clicked";
5596 program { name: "text_clicked";
5600 get_state(PART:"elm.text", st, 30, vl);
5601 if (!strcmp(st, "visible"))
5602 set_state(PART:"elm.text", "clicked", 0.0);
5605 program { name: "button_unpress";
5606 action: SIGNAL_EMIT "elm,action,unpress" "";
5608 program { name: "button_mouseout_clicked";
5609 signal: "mouse,up,1";
5612 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5614 set_state(PART:"button_image", "default", 0.0);
5615 set_state(PART:"elm.text", "visible", 0.0);
5616 set_state(PART:"icon_clipper", "default", 0.0);
5619 after: button_unpress;
5621 program { name: "touch_snd";
5622 signal: "mouse,clicked,1";
5624 action: PLAY_SAMPLE "touch_sound" 1.0;
5625 after: button_unclick3;
5627 program { name: "button_unclick3";
5628 action: SIGNAL_EMIT "elm,action,click" "";
5630 program { name: "text_show";
5631 signal: "elm,state,text,visible";
5634 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5635 set_state(PART:"elm.text", "visible", 0.0);
5637 set_state(PART:"elm.text", "disabled_visible", 0.0);
5640 program { name: "text_hide";
5641 signal: "elm,state,text,hidden";
5644 set_state(PART:"elm.text", "default", 0.0);
5647 program { name: "disable";
5648 signal: "elm,state,disabled";
5650 action: STATE_SET "disabled" 0.0;
5651 target: "button_image";
5653 target: "icon_clipper";
5654 after: "disable_text";
5656 program { name: "disable_text";
5660 get_state(PART:"elm.text", st, 30, vl);
5661 if (!strcmp(st, "visible"))
5662 set_state(PART:"elm.text", "disabled_visible", 0.0);
5664 set_state(PART:"elm.text", "disabled", 0.0);
5665 set_int(button_state, BUTTON_STATE_DISABLED);
5668 program { name: "enable";
5669 signal: "elm,state,enabled";
5671 action: STATE_SET "default" 0.0;
5672 target: "button_image";
5674 target: "icon_clipper";
5675 after: "enable_text";
5677 program { name: "enable_text";
5681 get_state(PART:"elm.text", st, 30, vl);
5682 if (!strcmp(st, "disabled_visible"))
5683 set_state(PART:"elm.text", "visible", 0.0);
5685 set_state(PART:"elm.text", "default", 0.0);
5686 set_int(button_state, BUTTON_STATE_ENABLED);
5689 program { name: "focused";
5690 //signal: "elm,action,focus";
5692 action: STATE_SET "focused" 0.0;
5693 target: "button_image";
5696 program { name: "unfocused";
5697 //signal: "elm,action,unfocus";
5699 action: STATE_SET "default" 0.0;
5700 target: "button_image";
5701 after: "unfocus_text";
5703 program { name: "unfocus_text";
5704 action: STATE_SET "visible" 0.0;
5710 ////////////////////////////////////////////////////////////////////////
5711 group { name: "elm/button/base/bubble_sent";
5712 inherit: "elm/button/base/style1";
5714 image: "00_messagebubble_button_sent.png" COMP;
5715 image: "00_messagebubble_button_sent_press.png" COMP;
5716 image: "00_messagebubble_button_sent_dim.png" COMP;
5719 part { name: "button_image";
5721 description { state: "default" 0.0;
5723 normal: "00_messagebubble_button_sent.png";
5724 border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
5728 description { state: "clicked" 0.0;
5729 inherit: "default" 0.0;
5730 image.normal: "00_messagebubble_button_sent_press.png";
5732 description { state: "disabled" 0.0;
5733 inherit: "default" 0.0;
5734 image.normal: "00_messagebubble_button_sent_dim.png";
5736 description { state: "focused" 0.0;
5737 inherit: "default" 0.0;
5738 image.normal: "00_messagebubble_button_sent_press.png";
5741 part { name: "elm.text";
5744 effect: FAR_SHADOW BOTTOM;
5747 description { state: "default" 0.0;
5751 to_x: "padding_after_icon";
5752 to_y: "padding_left_top";
5756 to: "padding_right_bottom";
5758 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
5759 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
5761 font: "Tizen:style=Regular";
5762 size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
5765 text_class: "tizen";
5768 description { state: "visible" 0.0;
5769 inherit: "default" 0.0;
5772 description { state: "clicked" 0.0;
5773 inherit: "default" 0.0;
5775 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
5777 description { state: "disabled" 0.0;
5778 inherit: "default" 0.0;
5780 description { state: "disabled_visible" 0.0;
5781 inherit: "default" 0.0;
5782 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
5785 description { state: "focused" 0.0;
5786 inherit: "default" 0.0;
5788 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
5794 ////////////////////////////////////////////////////////////////////////
5795 group { name: "elm/button/base/bubble_sent/multiline";
5796 inherit: "elm/button/base/bubble_sent";
5798 style { name: "bubble_sent_multiline";
5799 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";
5806 part { name: "elm.text";
5809 effect: FAR_SHADOW BOTTOM;
5812 description { state: "default" 0.0;
5817 to_x: "padding_after_icon";
5818 to_y: "padding_left_top";
5822 to: "padding_right_bottom";
5824 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
5825 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
5827 style: "bubble_sent_multiline";
5830 description { state: "visible" 0.0;
5831 inherit: "default" 0.0;
5834 description { state: "clicked" 0.0;
5835 inherit: "default" 0.0;
5837 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
5839 description { state: "disabled" 0.0;
5840 inherit: "default" 0.0;
5842 description { state: "disabled_visible" 0.0;
5843 inherit: "default" 0.0;
5844 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
5847 description { state: "focused" 0.0;
5848 inherit: "default" 0.0;
5850 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
5856 ///////////////////////////////////////////////////////////////////////
5857 group { name: "elm/button/base/bubble_receive";
5858 inherit: "elm/button/base/style1";
5860 image: "00_messagebubble_button_receive.png" COMP;
5861 image: "00_messagebubble_button_receive_press.png" COMP;
5862 image: "00_messagebubble_button_receive_dim.png" COMP;
5865 part { name: "button_image";
5867 description { state: "default" 0.0;
5869 normal: "00_messagebubble_button_receive.png";
5870 border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
5874 description { state: "clicked" 0.0;
5875 inherit: "default" 0.0;
5876 image.normal: "00_messagebubble_button_receive_press.png";
5878 description { state: "disabled" 0.0;
5879 inherit: "default" 0.0;
5880 image.normal: "00_messagebubble_button_receive_dim.png";
5882 description { state: "focused" 0.0;
5883 inherit: "default" 0.0;
5884 image.normal: "00_messagebubble_button_receive_press.png";
5887 part { name: "elm.text";
5890 effect: SHADOW BOTTOM;
5893 description { state: "default" 0.0;
5897 to_x: "padding_after_icon";
5898 to_y: "padding_left_top";
5902 to: "padding_right_bottom";
5904 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
5905 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
5907 font: "Tizen:style=Regular";
5908 size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
5911 text_class: "tizen";
5914 description { state: "visible" 0.0;
5915 inherit: "default" 0.0;
5918 description { state: "clicked" 0.0;
5919 inherit: "default" 0.0;
5921 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
5923 description { state: "disabled" 0.0;
5924 inherit: "default" 0.0;
5926 description { state: "disabled_visible" 0.0;
5927 inherit: "default" 0.0;
5928 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
5931 description { state: "focused" 0.0;
5932 inherit: "default" 0.0;
5934 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
5940 ///////////////////////////////////////////////////////////////////////
5941 group { name: "elm/button/base/bubble_receive/multiline";
5942 inherit: "elm/button/base/bubble_receive";
5944 style { name: "bubble_receive_multiline";
5945 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";
5952 part { name: "elm.text";
5955 effect: SHADOW BOTTOM;
5958 description { state: "default" 0.0;
5963 to_x: "padding_after_icon";
5964 to_y: "padding_left_top";
5968 to: "padding_right_bottom";
5970 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
5971 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
5973 style: "btn_style1_multiline";
5976 description { state: "visible" 0.0;
5977 inherit: "default" 0.0;
5980 description { state: "clicked" 0.0;
5981 inherit: "default" 0.0;
5983 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
5985 description { state: "disabled" 0.0;
5986 inherit: "default" 0.0;
5988 description { state: "disabled_visible" 0.0;
5989 inherit: "default" 0.0;
5990 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
5993 description { state: "focused" 0.0;
5994 inherit: "default" 0.0;
5996 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6002 ///////////////////////////////////////////////////////////////////////
6003 group { name: "elm/button/base/bubble_circle/receive";
6005 image: "00_messagebubble_circle_receive.png" COMP;
6006 image: "00_messagebubble_circle_receive_press.png" COMP;
6007 image: "00_button_right.png" COMP;
6008 image: "00_button_right_press.png" COMP;
6011 part { name: "button_image";
6013 description { state: "default" 0.0;
6014 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6015 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6016 image.normal: "00_messagebubble_circle_receive.png";
6019 state: "clicked" 0.0;
6020 inherit: "default" 0.0;
6021 image.normal: "00_messagebubble_circle_receive_press.png";
6024 state: "disabled" 0.0;
6025 inherit: "default" 0.0;
6028 part { name: "image";
6030 clip_to: "icon_clipper";
6031 description { state: "default" 0.0;
6032 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6033 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6034 image.normal: "00_button_right.png";
6037 state: "clicked" 0.0;
6038 inherit: "default" 0.0;
6039 image.normal: "00_button_right_press.png";
6042 state: "disabled" 0.0;
6043 inherit: "default" 0.0;
6046 part { name: "icon_clipper";
6049 description { state: "default" 0.0;
6050 color: 248 246 239 255;
6052 description { state: "clicked" 0.0;
6053 color: 248 246 239 255;
6055 description { state: "disabled" 0.0;
6056 color: 248 246 239 76;
6059 part { name: "over1";
6061 ignore_flags: ON_HOLD;
6062 description { state: "default" 0.0;
6066 part { name: "over2";
6068 description { state: "default" 0.0;
6072 part { name: "disabler";
6074 description { state: "default" 0.0;
6078 description { state: "disabled" 0.0;
6079 inherit: "default" 0.0;
6085 program { name: "button_click";
6086 signal: "mouse,down,1";
6088 action: SIGNAL_EMIT "elm,action,press" "";
6089 after: "button_click_anim";
6091 program { name: "button_click_anim";
6092 action: STATE_SET "clicked" 0.0;
6093 target: "button_image";
6095 target: "icon_clipper";
6097 program { name: "button_unclick";
6098 signal: "mouse,up,1";
6100 action: SIGNAL_EMIT "elm,action,unpress" "";
6101 after: "button_unclick_anim";
6103 program { name: "button_unclick_anim";
6104 action: STATE_SET "default" 0.0;
6105 target: "button_image";
6107 target: "icon_clipper";
6109 program { name: "touch_snd";
6110 signal: "mouse,clicked,1";
6112 action: PLAY_SAMPLE "touch_sound" 1.0;
6113 after: button_unclick3;
6115 program { name: "button_unclick3";
6116 action: SIGNAL_EMIT "elm,action,click" "";
6118 program { name: "disable";
6119 signal: "elm,state,disabled";
6121 action: STATE_SET "disabled" 0.0;
6123 target: "button_image";
6124 target: "icon_clipper";
6127 program { name: "enable";
6128 signal: "elm,state,enabled";
6130 action: STATE_SET "default" 0.0;
6132 target: "button_image";
6133 target: "icon_clipper";
6138 ///////////////////////////////////////////////////////////////////////
6139 group { name: "elm/button/base/bubble_circle/sent";
6141 image: "00_messagebubble_circle_sent.png" COMP;
6142 image: "00_messagebubble_circle_sent_press.png" COMP;
6143 image: "00_button_right.png" COMP;
6144 image: "00_button_right_press.png" COMP;
6147 part { name: "button_image";
6149 description { state: "default" 0.0;
6150 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6151 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6152 image.normal: "00_messagebubble_circle_sent.png";
6155 state: "clicked" 0.0;
6156 inherit: "default" 0.0;
6157 image.normal: "00_messagebubble_circle_sent_press.png";
6160 state: "disabled" 0.0;
6161 inherit: "default" 0.0;
6164 part { name: "image";
6166 clip_to: "icon_clipper";
6167 description { state: "default" 0.0;
6168 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6169 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6170 image.normal: "00_button_right.png";
6173 state: "clicked" 0.0;
6174 inherit: "default" 0.0;
6175 image.normal: "00_button_right_press.png";
6178 state: "disabled" 0.0;
6179 inherit: "default" 0.0;
6182 part { name: "icon_clipper";
6185 description { state: "default" 0.0;
6186 color: 101 101 101 255;
6188 description { state: "clicked" 0.0;
6189 color: 248 246 239 255;
6191 description { state: "disabled" 0.0;
6192 color: 101 101 101 76;
6195 part { name: "over1";
6197 ignore_flags: ON_HOLD;
6198 description { state: "default" 0.0;
6202 part { name: "over2";
6204 description { state: "default" 0.0;
6208 part { name: "disabler";
6210 description { state: "default" 0.0;
6214 description { state: "disabled" 0.0;
6215 inherit: "default" 0.0;
6221 program { name: "button_click";
6222 signal: "mouse,down,1";
6224 action: SIGNAL_EMIT "elm,action,press" "";
6225 after: "button_click_anim";
6227 program { name: "button_click_anim";
6228 action: STATE_SET "clicked" 0.0;
6229 target: "button_image";
6231 target: "icon_clipper";
6233 program { name: "button_unclick";
6234 signal: "mouse,up,1";
6236 action: SIGNAL_EMIT "elm,action,unpress" "";
6237 after: "button_unclick_anim";
6239 program { name: "button_unclick_anim";
6240 action: STATE_SET "default" 0.0;
6241 target: "button_image";
6243 target: "icon_clipper";
6245 program { name: "touch_snd";
6246 signal: "mouse,clicked,1";
6248 action: PLAY_SAMPLE "touch_sound" 1.0;
6249 after: button_unclick3;
6251 program { name: "button_unclick3";
6252 action: SIGNAL_EMIT "elm,action,click" "";
6254 program { name: "disable";
6255 signal: "elm,state,disabled";
6257 action: STATE_SET "disabled" 0.0;
6259 target: "button_image";
6260 target: "icon_clipper";
6262 program { name: "enable";
6263 signal: "elm,state,enabled";
6265 action: STATE_SET "default" 0.0;
6267 target: "button_image";
6268 target: "icon_clipper";
6273 ///////////////////////////////////////////////////////////////////////////////////////
6275 group { name: "elm/button/base/contacts/delete";
6277 image: "00_button_edit_Delete.png" COMP;
6278 image: "00_button_edit_Delete_press.png" COMP;
6279 image: "00_button_edit_dim.png" COMP;
6280 image: "00_button_edit_focus.png" COMP;
6283 public button_state = BUTTON_STATE_ENABLED;
6286 part { name: "button_image";
6288 description { state: "default" 0.0;
6289 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
6291 normal: "00_button_edit_Delete.png";
6292 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
6296 description { state: "clicked" 0.0;
6297 inherit: "default" 0.0;
6298 image.normal: "00_button_edit_Delete_press.png";
6300 description { state: "disabled" 0.0;
6301 inherit: "default" 0.0;
6302 image.normal: "00_button_edit_dim.png";
6304 description { state: "focused" 0.0;
6305 inherit: "default" 0.0;
6306 image.normal: "00_button_edit_focus.png";
6309 part { name: "padding_left_top";
6313 description { state: "default" 0.0;
6315 rel2.relative: 0.0 0.0;
6316 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
6321 part { name: "padding_right_bottom";
6325 description { state: "default" 0.0;
6327 rel1.relative: 1.0 1.0;
6328 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
6333 part { name: "padding_icon_text";
6337 description { state: "default" 0.0; //when only icon or no icon is there
6341 to: "elm.swallow.content";
6343 rel2.to: "elm.swallow.content";
6348 description { state: "icononly" 0.0;
6349 inherit: "default" 0.0;
6351 description { state: "visible" 0.0; //when icon is visible
6352 inherit: "default" 0.0;
6353 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
6356 part { name: "elm.swallow.content";
6360 description { state: "default" 0.0;
6365 to: "padding_left_top";
6369 to_x: "padding_left_top";
6370 to_y: "padding_right_bottom";
6374 description { state: "visible" 0.0;
6379 to: "padding_left_top";
6383 to_x: "padding_left_top";
6384 to_y: "padding_right_bottom";
6387 aspect_preference: VERTICAL;
6389 description { state: "icononly" 0.0;
6390 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
6393 to: "padding_left_top";
6397 to: "padding_right_bottom";
6400 aspect_preference: VERTICAL;
6403 part { name: "elm.text";
6408 description { state: "default" 0.0;
6411 to_x: "padding_icon_text";
6412 to_y: "padding_left_top";
6416 to: "padding_right_bottom";
6418 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
6420 font: "Tizen:style=Regular";
6421 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
6425 text_class: "tizen";
6428 description { state: "visible" 0.0;
6429 inherit: "default" 0.0;
6431 description { state: "clicked" 0.0;
6432 inherit: "default" 0.0;
6433 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
6435 description { state: "disabled" 0.0;
6436 inherit: "default" 0.0;
6438 description { state: "disabled_visible" 0.0;
6439 inherit: "default" 0.0;
6440 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
6442 description { state: "focused" 0.0;
6443 inherit: "default" 0.0;
6445 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
6448 part { name: "over2";
6451 ignore_flags: ON_HOLD;
6452 description { state: "default" 0.0;
6456 part { name: "over3";
6459 description { state: "default" 0.0;
6463 part { name: "clipper";
6465 description { state: "default" 0.0;
6466 color: 255 255 255 255;
6469 part { name: "disabler";
6471 description { state: "default" 0.0;
6475 description { state: "disabled" 0.0;
6476 inherit: "default" 0.0;
6482 program { name: "button_click";
6483 signal: "mouse,down,1";
6485 action: SIGNAL_EMIT "elm,action,press" "";
6486 after: "button_click_anim";
6488 program { name: "button_click_anim";
6489 action: STATE_SET "clicked" 0.0;
6490 target: "button_image";
6491 after: "text_clicked";
6493 program { name: "text_clicked";
6497 get_state(PART:"elm.text", st, 30, vl);
6498 if (!strcmp(st, "visible"))
6499 set_state(PART:"elm.text", "clicked", 0.0);
6502 program { name: "button_unpress";
6503 action: SIGNAL_EMIT "elm,action,unpress" "";
6505 program { name: "button_mouseout_clicked";
6506 signal: "mouse,up,1";
6511 get_state(PART:"elm.swallow.content", st, 30, vl);
6512 if (strcmp(st, "icononly"))
6514 emit("elm,action,default,text,set", "");
6515 set_state(PART:"elm.text", "visible", 0.0);
6517 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6518 set_state(PART:"button_image", "default", 0.0);
6520 after: button_unpress;
6522 program { name: "touch_snd";
6523 signal: "mouse,clicked,1";
6525 action: PLAY_SAMPLE "touch_sound" 1.0;
6526 after: button_unclick3;
6528 program { name: "button_unclick3";
6529 action: SIGNAL_EMIT "elm,action,click" "";
6531 program { name: "text_show";
6532 signal: "elm,state,text,visible";
6537 get_state(PART:"elm.swallow.content", st, 30, vl);
6538 if (!strcmp(st, "icononly"))
6540 set_state(PART:"elm.swallow.content", "visible", 0.0);
6541 set_state(PART:"padding_icon_text", "visible", 0.0);
6543 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6544 set_state(PART:"elm.text", "visible", 0.0);
6546 set_state(PART:"elm.text", "disabled_visible", 0.0);
6549 program { name: "text_hide";
6550 signal: "elm,state,text,hidden";
6555 get_state(PART:"elm.swallow.content", st, 30, vl);
6556 if (!strcmp(st, "visible"))
6558 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6559 set_state(PART:"padding_icon_text", "icononly", 0.0);
6561 set_state(PART:"elm.text", "default", 0.0);
6564 program { name: "icon_show";
6565 signal: "elm,state,icon,visible";
6570 get_state(PART:"elm.text", st, 30, vl);
6571 if (!strcmp(st, "visible"))
6573 set_state(PART:"elm.swallow.content", "visible", 0.0);
6574 set_state(PART:"padding_icon_text", "visible", 0.0);
6578 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6579 set_state(PART:"padding_icon_text", "icononly", 0.0);
6583 program { name: "icon_hide";
6584 signal: "elm,state,icon,hidden";
6586 action: STATE_SET "default" 0.0;
6587 target: "elm.swallow.content";
6588 target: "padding_icon_text";
6590 program { name: "disable";
6591 signal: "elm,state,disabled";
6593 action: STATE_SET "disabled" 0.0;
6594 target: "button_image";
6596 after: "disable_text";
6598 program { name: "disable_text";
6602 get_state(PART:"elm.text", st, 30, vl);
6603 if (!strcmp(st, "visible"))
6604 set_state(PART:"elm.text", "disabled_visible", 0.0);
6606 set_state(PART:"elm.text", "disabled", 0.0);
6607 set_int(button_state, BUTTON_STATE_DISABLED);
6610 program { name: "enable";
6611 signal: "elm,state,enabled";
6613 action: STATE_SET "default" 0.0;
6614 target: "button_image";
6616 after: "enable_text";
6618 program { name: "enable_text";
6622 get_state(PART:"elm.text", st, 30, vl);
6623 if (!strcmp(st, "disabled_visible"))
6624 set_state(PART:"elm.text", "visible", 0.0);
6626 set_state(PART:"elm.text", "default", 0.0);
6627 set_int(button_state, BUTTON_STATE_ENABLED);
6630 program { name: "focused";
6631 //signal: "elm,action,focus";
6633 action: STATE_SET "focused" 0.0;
6634 target: "button_image";
6637 program { name: "unfocused";
6638 //signal: "elm,action,unfocus";
6640 action: STATE_SET "default" 0.0;
6641 target: "button_image";
6642 after: "unfocus_text";
6644 program { name: "unfocus_text";
6645 action: STATE_SET "visible" 0.0;
6651 /////////////////////////////////////////////////////////////////////
6652 #define BUTTON_CONTACT_STYLES(style_name, image_normal, image_press) \
6653 group { name: "elm/button/base/contact/"style_name; \
6655 image: "00_circle_button.png" COMP; \
6656 image: "00_circle_button_press.png" COMP; \
6657 image: image_normal COMP; \
6658 image: image_press COMP; \
6661 part { name: "button_image"; \
6663 description { state: "default" 0.0; \
6664 min: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
6665 max: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
6666 image.normal: "00_circle_button.png"; \
6669 state: "clicked" 0.0; \
6670 inherit: "default" 0.0; \
6671 image.normal: "00_circle_button_press.png"; \
6674 state: "disabled" 0.0; \
6675 inherit: "default" 0.0; \
6676 image.normal: "00_circle_button.png"; \
6679 part { name: "button_center_part"; \
6681 clip_to: "disclip"; \
6682 description { state: "default" 0.0; \
6683 min: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
6684 max: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
6685 image.normal: image_normal; \
6688 state: "clicked" 0.0; \
6689 inherit: "default" 0.0; \
6690 image.normal: image_press; \
6693 state: "disabled" 0.0; \
6694 inherit: "default" 0.0; \
6697 part { name: "over1"; \
6699 ignore_flags: ON_HOLD; \
6700 description { state: "default" 0.0; \
6704 part { name: "over2"; \
6706 description { state: "default" 0.0; \
6710 part { name: "disclip"; \
6713 description { state: "default" 0.0; \
6714 color: BUTTON_DISCLIP_NORMAL_COLOR_INC; \
6716 description { state: "disabled" 0.0; \
6717 inherit: "default" 0.0; \
6718 color: BUTTON_DISCLIP_DISABLED_COLOR_INC; \
6721 part { name: "disabler"; \
6723 description { state: "default" 0.0; \
6727 description { state: "disabled" 0.0; \
6728 inherit: "default" 0.0; \
6734 program { name: "button_click"; \
6735 signal: "mouse,down,1"; \
6737 action: SIGNAL_EMIT "elm,action,press" ""; \
6738 after: "button_click_anim"; \
6740 program { name: "button_click_anim"; \
6741 action: STATE_SET "clicked" 0.0; \
6742 target: "button_image"; \
6743 target: "button_center_part"; \
6745 program { name: "button_unclick"; \
6746 signal: "mouse,up,1"; \
6748 action: SIGNAL_EMIT "elm,action,unpress" ""; \
6749 after: "button_unclick_anim"; \
6751 program { name: "button_unclick_anim"; \
6752 action: STATE_SET "default" 0.0; \
6753 target: "button_image"; \
6754 target: "button_center_part"; \
6756 program { name: "touch_snd"; \
6757 signal: "mouse,clicked,1"; \
6759 action: PLAY_SAMPLE "touch_sound" 1.0; \
6760 after: button_unclick3; \
6762 program { name: "button_unclick3"; \
6763 action: SIGNAL_EMIT "elm,action,click" ""; \
6765 program { name: "disable"; \
6766 signal: "elm,state,disabled"; \
6768 action: STATE_SET "disabled" 0.0; \
6769 target: "disabler"; \
6770 target: "disclip"; \
6771 target: "button_image"; \
6772 target: "button_center_part"; \
6774 program { name: "enable"; \
6775 signal: "elm,state,enabled"; \
6777 action: STATE_SET "default" 0.0; \
6778 target: "disabler"; \
6779 target: "disclip"; \
6780 target: "button_image"; \
6781 target: "button_center_part"; \
6786 ///////////////////////////////////////////////////////////////////////////////////////
6787 BUTTON_CONTACT_STYLES("expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png")
6789 BUTTON_CONTACT_STYLES("expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png")
6791 BUTTON_CONTACT_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png")
6793 ///////////////////////////////////////////////////////////////////////////////////////
6796 #undef BUTTON_STATE_ENABLED
6797 #undef BUTTON_STATE_DISABLED