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_double_click";
331 signal: "mouse,down,1,double";
333 after: "button_click_anim";
335 program { name: "button_unpress";
336 action: SIGNAL_EMIT "elm,action,unpress" "";
338 program { name: "button_mouseout_clicked";
339 signal: "mouse,up,1";
344 get_state(PART:"elm.swallow.content", st, 30, vl);
345 if (strcmp(st, "icononly"))
347 emit("elm,action,default,text,set", "");
348 set_state(PART:"elm.text", "visible", 0.0);
350 if (get_int(button_state) != BUTTON_STATE_DISABLED)
351 set_state(PART:"button_image", "default", 0.0);
353 after: button_unpress;
355 program { name: "touch_snd";
356 signal: "mouse,clicked,1";
358 action: PLAY_SAMPLE "touch_sound" 1.0;
359 after: button_unclick3;
361 program { name: "button_unclick3";
362 action: SIGNAL_EMIT "elm,action,click" "";
364 program { name: "text_show";
365 signal: "elm,state,text,visible";
370 get_state(PART:"elm.swallow.content", st, 30, vl);
371 if (!strcmp(st, "icononly"))
373 set_state(PART:"elm.swallow.content", "visible", 0.0);
374 set_state(PART:"icon_rect", "visible", 0.0);
375 set_state(PART:"padding_after_icon", "visible", 0.0);
376 set_state(PART:"bg", "visible", 0.0);
378 if (get_int(button_state) != BUTTON_STATE_DISABLED)
379 set_state(PART:"elm.text", "visible", 0.0);
381 set_state(PART:"elm.text", "disabled_visible", 0.0);
384 program { name: "text_hide";
385 signal: "elm,state,text,hidden";
390 get_state(PART:"elm.swallow.content", st, 30, vl);
391 if (!strcmp(st, "visible"))
393 set_state(PART:"elm.swallow.content", "icononly", 0.0);
394 set_state(PART:"icon_rect", "icononly", 0.0);
395 set_state(PART:"padding_after_icon", "icononly", 0.0);
396 set_state(PART:"bg", "icononly", 0.0);
398 set_state(PART:"elm.text", "default", 0.0);
401 program { name: "icon_show";
402 signal: "elm,state,icon,visible";
407 get_state(PART:"elm.text", st, 30, vl);
408 if (!strcmp(st, "visible"))
410 set_state(PART:"elm.swallow.content", "visible", 0.0);
411 set_state(PART:"icon_rect", "visible", 0.0);
412 set_state(PART:"padding_after_icon", "visible", 0.0);
413 set_state(PART:"bg", "visible", 0.0);
417 set_state(PART:"elm.swallow.content", "icononly", 0.0);
418 set_state(PART:"icon_rect", "icononly", 0.0);
419 set_state(PART:"padding_after_icon", "icononly", 0.0);
420 set_state(PART:"bg", "icononly", 0.0);
424 program { name: "icon_hide";
425 signal: "elm,state,icon,hidden";
427 action: STATE_SET "default" 0.0;
428 target: "elm.swallow.content";
429 target: "padding_after_icon";
433 program { name: "disable";
434 signal: "elm,state,disabled";
436 action: STATE_SET "disabled" 0.0;
437 target: "button_image";
440 after: "disable_text";
442 program { name: "disable_text";
446 get_state(PART:"elm.text", st, 30, vl);
447 if (!strcmp(st, "visible"))
448 set_state(PART:"elm.text", "disabled_visible", 0.0);
450 set_state(PART:"elm.text", "disabled", 0.0);
451 set_int(button_state, BUTTON_STATE_DISABLED);
454 program { name: "enable";
455 signal: "elm,state,enabled";
457 action: STATE_SET "default" 0.0;
458 target: "button_image";
461 after: "enable_text";
463 program { name: "enable_text";
467 get_state(PART:"elm.text", st, 30, vl);
468 if (!strcmp(st, "disabled_visible"))
469 set_state(PART:"elm.text", "visible", 0.0);
471 set_state(PART:"elm.text", "default", 0.0);
472 set_int(button_state, BUTTON_STATE_ENABLED);
475 program { name: "focused";
476 //signal: "elm,action,focus";
478 action: STATE_SET "focused" 0.0;
479 target: "button_image";
482 program { name: "unfocused";
483 //signal: "elm,action,unfocus";
485 action: STATE_SET "default" 0.0;
486 target: "button_image";
487 after: "unfocus_text";
489 program { name: "unfocus_text";
490 action: STATE_SET "visible" 0.0;
496 //////////////////////////////////////////////////////////////
497 group { name: "elm/button/base/style1/auto_expand";
498 inherit: "elm/button/base/style1";
500 part { name: "elm.text";
503 effect: SHADOW BOTTOM;
506 description { state: "default" 0.0;
510 to_x: "padding_after_icon";
511 to_y: "padding_left_top";
515 to: "padding_right_bottom";
517 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
518 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
520 font: "Tizen:style=Regular";
521 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
527 description { state: "visible" 0.0;
528 inherit: "default" 0.0;
531 description { state: "clicked" 0.0;
532 inherit: "default" 0.0;
534 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
535 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
537 description { state: "disabled" 0.0;
538 inherit: "default" 0.0;
540 description { state: "disabled_visible" 0.0;
541 inherit: "default" 0.0;
542 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
543 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
546 description { state: "focused" 0.0;
547 inherit: "default" 0.0;
549 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
555 //////////////////////////////////////////////////////////////////////////////////////
556 group { name: "elm/button/base/datetime/ampm/default";
557 alias: "elm/button/base/datetime_ampm/default";
558 inherit: "elm/button/base/style1/auto_expand";
560 part { name: "button_image";
562 description { state: "default" 0.0;
564 normal: "00_button_01.png";
565 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
568 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
569 max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
571 description { state: "clicked" 0.0;
572 inherit: "default" 0.0;
573 image.normal: "00_button_01_press.png";
575 description { state: "disabled" 0.0;
576 inherit: "default" 0.0;
577 image.normal: "00_button_01_dim.png";
579 description { state: "focused" 0.0;
580 inherit: "default" 0.0;
581 image.normal: "00_button_01_press.png";
588 description { state: "default" 0.0;
592 description { state: "visible" 0.0;
593 inherit: "default" 0.0;
594 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
596 description { state: "icononly" 0.0;
597 inherit: "default" 0.0;
600 part { name: "elm.text";
603 effect: SHADOW BOTTOM;
606 description { state: "default" 0.0;
609 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
610 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
611 text.size: BUTTON_DATETIME_AMPM_TEXT_FONT_SIZE_INC;
614 description { state: "visible" 0.0;
615 inherit: "default" 0.0;
618 description { state: "clicked" 0.0;
619 inherit: "default" 0.0;
621 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
622 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
624 description { state: "disabled" 0.0;
625 inherit: "default" 0.0;
627 description { state: "disabled_visible" 0.0;
628 inherit: "default" 0.0;
629 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
630 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
633 description { state: "focused" 0.0;
634 inherit: "default" 0.0;
636 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
642 ///////////////////////////////////////////////////////////////////////////////////////
643 group { name: "elm/button/base/style1/delete";
644 inherit: "elm/button/base/style1";
646 image: "00_button_01_Delete.png" COMP;
647 image: "00_button_01_Delete_dim.png" COMP;
648 image: "00_button_01_Delete_press.png" COMP;
651 part { name: "button_image";
653 description { state: "default" 0.0;
655 normal: "00_button_01_Delete.png";
656 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
660 description { state: "clicked" 0.0;
661 inherit: "default" 0.0;
662 image.normal: "00_button_01_Delete_press.png";
664 description { state: "disabled" 0.0;
665 inherit: "default" 0.0;
666 image.normal: "00_button_01_Delete_dim.png";
668 description { state: "focused" 0.0;
669 inherit: "default" 0.0;
670 image.normal: "00_button_01_Delete_press.png";
673 part { name: "elm.text";
676 effect: SHADOW BOTTOM;
679 description { state: "default" 0.0;
683 to_x: "padding_after_icon";
684 to_y: "padding_left_top";
688 to: "padding_right_bottom";
690 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
691 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
693 font: "Tizen:style=Regular";
694 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
700 description { state: "visible" 0.0;
701 inherit: "default" 0.0;
704 description { state: "clicked" 0.0;
705 inherit: "default" 0.0;
707 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
708 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
710 description { state: "disabled" 0.0;
711 inherit: "default" 0.0;
713 description { state: "disabled_visible" 0.0;
714 inherit: "default" 0.0;
715 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
716 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
719 description { state: "focused" 0.0;
720 inherit: "default" 0.0;
722 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
728 ///////////////////////////////////////////////////////////////////////////////////////
729 group { name: "elm/button/base/search_button/text";
730 alias: "elm/button/base/searchbar/default";
731 inherit: "elm/button/base/style1";
733 image: "00_button_01.png" COMP;
734 image: "00_button_01_dim.png" COMP;
735 image: "00_button_01_press.png" COMP;
738 part { name: "button_image";
740 description { state: "default" 0.0;
742 normal: "00_button_01.png";
743 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
747 description { state: "clicked" 0.0;
748 inherit: "default" 0.0;
749 image.normal: "00_button_01_press.png";
751 description { state: "disabled" 0.0;
752 inherit: "default" 0.0;
753 image.normal: "00_button_01_dim.png";
755 description { state: "focused" 0.0;
756 inherit: "default" 0.0;
757 image.normal: "00_button_01_press.png";
764 description { state: "default" 0.0;
765 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
768 description { state: "visible" 0.0;
769 inherit: "default" 0.0;
770 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
772 description { state: "icononly" 0.0;
773 inherit: "default" 0.0;
774 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
777 part { name: "elm.text";
780 effect: SHADOW BOTTOM;
783 description { state: "default" 0.0;
787 to_x: "padding_after_icon";
788 to_y: "padding_left_top";
792 to: "padding_right_bottom";
794 color: BUTTON_SEARCH_BUTTON_TEXT_NORMAL_COLOR_INC;
796 font: "Tizen:style=Regular";
797 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
803 description { state: "visible" 0.0;
804 inherit: "default" 0.0;
807 description { state: "clicked" 0.0;
808 inherit: "default" 0.0;
810 color: BUTTON_SEARCH_BUTTON_TEXT_PRESSED_COLOR_INC;
811 color2: BUTTON_SEARCH_BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
813 description { state: "disabled" 0.0;
814 inherit: "default" 0.0;
816 description { state: "disabled_visible" 0.0;
817 inherit: "default" 0.0;
818 color: BUTTON_SEARCH_BUTTON_TEXT_DISABLED_COLOR_INC;
821 description { state: "focused" 0.0;
822 inherit: "default" 0.0;
824 color: BUTTON_SEARCH_BUTTON_TEXT_FOCUSED_COLOR_INC;
830 ///////////////////////////////////////////////////////////////////////////////////////
831 group { name: "elm/button/base/search_button/send";
832 inherit: "elm/button/base/style1";
834 image: "00_button_01_send.png" COMP;
835 image: "00_button_01_send_dim.png" COMP;
836 image: "00_button_01_send_press.png" COMP;
839 part { name: "button_image";
841 description { state: "default" 0.0;
843 normal: "00_button_01_send.png";
844 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
848 description { state: "clicked" 0.0;
849 inherit: "default" 0.0;
850 image.normal: "00_button_01_send_press.png";
852 description { state: "disabled" 0.0;
853 inherit: "default" 0.0;
854 image.normal: "00_button_01_send_dim.png";
856 description { state: "focused" 0.0;
857 inherit: "default" 0.0;
858 image.normal: "00_button_01_send_press.png";
865 description { state: "default" 0.0;
866 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
869 description { state: "visible" 0.0;
870 inherit: "default" 0.0;
871 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
873 description { state: "icononly" 0.0;
874 inherit: "default" 0.0;
875 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
878 part { name: "elm.text";
881 effect: SHADOW BOTTOM;
884 description { state: "default" 0.0;
888 to_x: "padding_after_icon";
889 to_y: "padding_left_top";
893 to: "padding_right_bottom";
895 color: BUTTON_SEARCH_BUTTON_SEND_NORMAL_COLOR_INC;
896 color2: BUTTON_SEARCH_BUTTON_SEND_SHADOW_NORMAL_COLOR_INC;
898 font: "Tizen:style=Regular";
899 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
905 description { state: "visible" 0.0;
906 inherit: "default" 0.0;
909 description { state: "clicked" 0.0;
910 inherit: "default" 0.0;
912 color: BUTTON_SEARCH_BUTTON_SEND_PRESSED_COLOR_INC;
914 description { state: "disabled" 0.0;
915 inherit: "default" 0.0;
917 description { state: "disabled_visible" 0.0;
918 inherit: "default" 0.0;
919 color: BUTTON_SEARCH_BUTTON_SEND_DISABLED_COLOR_INC;
922 description { state: "focused" 0.0;
923 inherit: "default" 0.0;
925 color: BUTTON_SEARCH_BUTTON_SEND_FOCUSED_COLOR_INC;
931 ///////////////////////////////////////////////////////////////////////////////////////
932 group { name: "elm/button/base/search_button/cancel";
933 inherit: "elm/button/base/style1";
935 image: "00_button_01_Delete.png" COMP;
936 image: "00_button_01_Delete_dim.png" COMP;
937 image: "00_button_01_Delete_press.png" COMP;
940 part { name: "button_image";
942 description { state: "default" 0.0;
944 normal: "00_button_01_Delete.png";
945 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
949 description { state: "clicked" 0.0;
950 inherit: "default" 0.0;
951 image.normal: "00_button_01_Delete_press.png";
953 description { state: "disabled" 0.0;
954 inherit: "default" 0.0;
955 image.normal: "00_button_01_Delete_dim.png";
957 description { state: "focused" 0.0;
958 inherit: "default" 0.0;
959 image.normal: "00_button_01_Delete_press.png";
966 description { state: "default" 0.0;
967 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
970 description { state: "visible" 0.0;
971 inherit: "default" 0.0;
972 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
974 description { state: "icononly" 0.0;
975 inherit: "default" 0.0;
976 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
979 part { name: "elm.text";
982 effect: SHADOW BOTTOM;
985 description { state: "default" 0.0;
989 to_x: "padding_after_icon";
990 to_y: "padding_left_top";
994 to: "padding_right_bottom";
996 color: BUTTON_SEARCH_BUTTON_CANCEL_NORMAL_COLOR_INC;
997 color2: BUTTON_SEARCH_BUTTON_CANCEL_SHADOW_NORMAL_COLOR_INC;
999 font: "Tizen:style=Regular";
1000 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
1003 text_class: "tizen";
1006 description { state: "visible" 0.0;
1007 inherit: "default" 0.0;
1010 description { state: "clicked" 0.0;
1011 inherit: "default" 0.0;
1013 color: BUTTON_SEARCH_BUTTON_CANCEL_PRESSED_COLOR_INC;
1015 description { state: "disabled" 0.0;
1016 inherit: "default" 0.0;
1018 description { state: "disabled_visible" 0.0;
1019 inherit: "default" 0.0;
1020 color: BUTTON_SEARCH_BUTTON_CANCEL_DISABLED_COLOR_INC;
1023 description { state: "focused" 0.0;
1024 inherit: "default" 0.0;
1026 color: BUTTON_SEARCH_BUTTON_CANCEL_FOCUSED_COLOR_INC;
1032 ///////////////////////////////////////////////////////////////////////////////////////
1033 group { name: "elm/button/base/style2";
1034 alias: "elm/button/base/text_only/style2";
1035 alias: "elm/button/base/style2/multiline";
1037 image: "00_button_01.png" COMP;
1038 image: "00_button_01_press.png" COMP;
1039 image: "00_button_01_dim.png" COMP;
1042 public button_state = BUTTON_STATE_ENABLED;
1045 part { name: "button_image";
1047 description { state: "default" 0.0;
1049 normal: "00_button_01.png";
1050 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1054 description { state: "clicked" 0.0;
1055 inherit: "default" 0.0;
1056 image.normal: "00_button_01_press.png";
1058 description { state: "disabled" 0.0;
1059 inherit: "default" 0.0;
1060 image.normal: "00_button_01_dim.png";
1062 description { state: "focused" 0.0;
1063 inherit: "default" 0.0;
1064 image.normal: "00_button_01_press.png";
1067 part { name: "padding_left_top";
1071 description { state: "default" 0.0;
1073 rel2.relative: 0.0 0.0;
1074 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1083 description { state: "default" 0.0;
1084 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1087 description { state: "visible" 0.0;
1088 inherit: "default" 0.0;
1089 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1091 description { state: "icononly" 0.0;
1092 inherit: "default" 0.0;
1093 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1096 part { name: "padding_right_bottom";
1100 description { state: "default" 0.0;
1102 rel1.relative: 1.0 1.0;
1103 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1108 part { name: "icon_rect";
1112 description { state: "default" 0.0;
1118 to: "padding_left_top";
1122 to_x: "padding_left_top";
1123 to_y: "padding_right_bottom";
1127 description { state: "visible" 0.0;
1128 inherit: "default" 0.0;
1129 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1130 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1132 description { state: "icononly" 0.0;
1133 inherit: "default" 0.0;
1136 part { name: "padding_after_icon";
1140 description { state: "default" 0.0; //when only icon or no icon is there
1148 rel2.to: "icon_rect";
1151 description { state: "visible" 0.0;
1152 inherit: "default" 0.0;
1153 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1155 description { state: "icononly" 0.0;
1156 inherit: "default" 0.0;
1159 part { name: "padding_before_text";
1163 description { state: "default" 0.0; //when only icon or no icon is there
1168 to_y: "padding_left_top";
1173 to_y: "padding_right_bottom";
1176 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1180 part { name: "elm.swallow.content";
1184 description { state: "default" 0.0;
1189 to: "padding_left_top";
1193 to_x: "padding_left_top";
1194 to_y: "padding_right_bottom";
1198 description { state: "visible" 0.0;
1200 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1201 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1205 to_x: "padding_before_text";
1206 to_y: "padding_left_top";
1210 to_x: "padding_before_text";
1211 to_y: "padding_right_bottom";
1214 description { state: "icononly" 0.0;
1215 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1216 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1219 part { name: "elm.text";
1224 effect: SHADOW BOTTOM;
1225 description { state: "default" 0.0;
1229 to_x: "padding_after_icon";
1230 to_y: "padding_left_top";
1234 to: "padding_right_bottom";
1236 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1237 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1239 font: "Tizen:style=Regular";
1240 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1243 text_class: "tizen";
1246 description { state: "visible" 0.0;
1247 inherit: "default" 0.0;
1250 description { state: "clicked" 0.0;
1251 inherit: "default" 0.0;
1253 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1254 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1256 description { state: "disabled" 0.0;
1257 inherit: "default" 0.0;
1259 description { state: "disabled_visible" 0.0;
1260 inherit: "default" 0.0;
1261 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1262 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1265 description { state: "focused" 0.0;
1266 inherit: "default" 0.0;
1268 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1271 part { name: "over2";
1274 ignore_flags: ON_HOLD;
1275 description { state: "default" 0.0;
1279 part { name: "over3";
1282 description { state: "default" 0.0;
1286 part { name: "clipper";
1288 description { state: "default" 0.0;
1289 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1291 description { state: "disabled" 0.0;
1292 inherit: "default" 0.0;
1293 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1296 part { name: "disabler";
1298 description { state: "default" 0.0;
1302 description { state: "disabled" 0.0;
1303 inherit: "default" 0.0;
1309 program { name: "button_click";
1310 signal: "mouse,down,1";
1312 action: SIGNAL_EMIT "elm,action,press" "";
1313 after: "button_click_anim";
1315 program { name: "button_click_anim";
1316 action: STATE_SET "clicked" 0.0;
1317 target: "button_image";
1318 after: "text_clicked";
1320 program { name: "text_clicked";
1324 get_state(PART:"elm.text", st, 30, vl);
1325 if (!strcmp(st, "visible"))
1326 set_state(PART:"elm.text", "clicked", 0.0);
1329 program { name: "button_double_click";
1330 signal: "mouse,down,1,double";
1332 after: "button_click_anim";
1334 program { name: "button_unpress";
1335 action: SIGNAL_EMIT "elm,action,unpress" "";
1337 program { name: "button_mouseout_clicked";
1338 signal: "mouse,up,1";
1343 get_state(PART:"elm.swallow.content", st, 30, vl);
1344 if (strcmp(st, "icononly"))
1346 emit("elm,action,default,text,set", "");
1347 set_state(PART:"elm.text", "visible", 0.0);
1349 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1350 set_state(PART:"button_image", "default", 0.0);
1352 after: button_unpress;
1354 program { name: "touch_snd";
1355 signal: "mouse,clicked,1";
1357 action: PLAY_SAMPLE "touch_sound" 1.0;
1358 after: button_unclick3;
1360 program { name: "button_unclick3";
1361 action: SIGNAL_EMIT "elm,action,click" "";
1363 program { name: "text_show";
1364 signal: "elm,state,text,visible";
1369 get_state(PART:"elm.swallow.content", st, 30, vl);
1370 if (!strcmp(st, "icononly"))
1372 set_state(PART:"elm.swallow.content", "visible", 0.0);
1373 set_state(PART:"icon_rect", "visible", 0.0);
1374 set_state(PART:"padding_after_icon", "visible", 0.0);
1375 set_state(PART:"bg", "visible", 0.0);
1377 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1378 set_state(PART:"elm.text", "visible", 0.0);
1380 set_state(PART:"elm.text", "disabled_visible", 0.0);
1383 program { name: "text_hide";
1384 signal: "elm,state,text,hidden";
1389 get_state(PART:"elm.swallow.content", st, 30, vl);
1390 if (!strcmp(st, "visible"))
1392 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1393 set_state(PART:"icon_rect", "icononly", 0.0);
1394 set_state(PART:"padding_after_icon", "icononly", 0.0);
1395 set_state(PART:"bg", "icononly", 0.0);
1397 set_state(PART:"elm.text", "default", 0.0);
1400 program { name: "icon_show";
1401 signal: "elm,state,icon,visible";
1406 get_state(PART:"elm.text", st, 30, vl);
1407 if (!strcmp(st, "visible"))
1409 set_state(PART:"elm.swallow.content", "visible", 0.0);
1410 set_state(PART:"icon_rect", "visible", 0.0);
1411 set_state(PART:"padding_after_icon", "visible", 0.0);
1412 set_state(PART:"bg", "visible", 0.0);
1416 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1417 set_state(PART:"icon_rect", "icononly", 0.0);
1418 set_state(PART:"padding_after_icon", "icononly", 0.0);
1419 set_state(PART:"bg", "icononly", 0.0);
1423 program { name: "icon_hide";
1424 signal: "elm,state,icon,hidden";
1426 action: STATE_SET "default" 0.0;
1427 target: "elm.swallow.content";
1428 target: "padding_after_icon";
1429 target: "icon_rect";
1432 program { name: "disable";
1433 signal: "elm,state,disabled";
1435 action: STATE_SET "disabled" 0.0;
1436 target: "button_image";
1439 after: "disable_text";
1441 program { name: "disable_text";
1445 get_state(PART:"elm.text", st, 30, vl);
1446 if (!strcmp(st, "visible"))
1447 set_state(PART:"elm.text", "disabled_visible", 0.0);
1449 set_state(PART:"elm.text", "disabled", 0.0);
1450 set_int(button_state, BUTTON_STATE_DISABLED);
1453 program { name: "enable";
1454 signal: "elm,state,enabled";
1456 action: STATE_SET "default" 0.0;
1457 target: "button_image";
1460 after: "enable_text";
1462 program { name: "enable_text";
1466 get_state(PART:"elm.text", st, 30, vl);
1467 if (!strcmp(st, "disabled_visible"))
1468 set_state(PART:"elm.text", "visible", 0.0);
1470 set_state(PART:"elm.text", "default", 0.0);
1471 set_int(button_state, BUTTON_STATE_ENABLED);
1474 program { name: "focused";
1475 //signal: "elm,action,focus";
1477 action: STATE_SET "focused" 0.0;
1478 target: "button_image";
1481 program { name: "unfocused";
1482 //signal: "elm,action,unfocus";
1484 action: STATE_SET "default" 0.0;
1485 target: "button_image";
1486 after: "unfocus_text";
1488 program { name: "unfocus_text";
1489 action: STATE_SET "visible" 0.0;
1495 ///////////////////////////////////////////////////////////////////////////////////////
1496 group { name: "elm/button/base/sweep";
1497 alias: "elm/button/base/text_only/sweep";
1498 alias: "elm/button/base/hidden";
1499 alias: "elm/button/base/sweep/multiline";
1501 image: "00_button_01.png" COMP;
1502 image: "00_button_01_press.png" COMP;
1503 image: "00_button_01_dim.png" COMP;
1506 public button_state = BUTTON_STATE_ENABLED;
1509 style { name: "btn_sweep_multiline";
1510 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";
1517 part { name: "button_image";
1519 description { state: "default" 0.0;
1520 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1522 normal: "00_button_01.png";
1523 border: BUTTON_SWEEP_BG_BORDER_INC;
1527 description { state: "clicked" 0.0;
1528 inherit: "default" 0.0;
1529 image.normal: "00_button_01_press.png";
1531 description { state: "disabled" 0.0;
1532 inherit: "default" 0.0;
1533 image.normal: "00_button_01_dim.png";
1535 description { state: "focused" 0.0;
1536 inherit: "default" 0.0;
1537 image.normal: "00_button_01_press.png";
1540 part { name: "padding_left_top";
1544 description { state: "default" 0.0;
1546 rel2.relative: 0.0 0.0;
1547 min: BUTTON_SWEEP_PADDING_MIN_INC;
1552 part { name: "padding_right_bottom";
1556 description { state: "default" 0.0;
1558 rel1.relative: 1.0 1.0;
1559 min: BUTTON_SWEEP_PADDING_MIN_INC;
1564 part { name: "icon_rect";
1568 description { state: "default" 0.0;
1569 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1573 to_x: "elm.swallow.content";
1574 to_y: "padding_left_top";
1578 to_x: "elm.swallow.content";
1579 to_y: "padding_right_bottom";
1585 part { name: "padding_icon_text";
1589 description { state: "default" 0.0; //when only icon or no icon is there
1597 rel2.to: "icon_rect";
1600 description { state: "visible" 0.0; //when icon is visible
1601 inherit: "default" 0.0;
1602 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1604 description { state: "icononly" 0.0;
1605 inherit: "default" 0.0;
1608 part { name: "elm.swallow.content";
1612 description { state: "default" 0.0;
1617 to: "padding_left_top";
1621 to_x: "padding_left_top";
1622 to_y: "padding_right_bottom";
1626 description { state: "visible" 0.0;
1627 inherit: "default" 0.0;
1628 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1629 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1632 aspect_preference: VERTICAL;
1634 description { state: "icononly" 0.0;
1635 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1636 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1639 part { name: "elm.text";
1642 effect: SHADOW BOTTOM;
1645 description { state: "default" 0.0;
1650 to_x: "padding_icon_text";
1651 to_y: "padding_left_top";
1655 to: "padding_right_bottom";
1657 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1658 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1660 style: "btn_sweep_multiline";
1664 description { state: "visible" 0.0;
1665 inherit: "default" 0.0;
1667 min: BUTTON_SWEEP_TEXT_MIN_INC;
1669 description { state: "clicked" 0.0;
1670 inherit: "default" 0.0;
1673 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1674 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1676 description { state: "disabled" 0.0;
1677 inherit: "default" 0.0;
1679 description { state: "disabled_visible" 0.0;
1680 inherit: "default" 0.0;
1681 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1682 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1684 min: BUTTON_SWEEP_TEXT_MIN_INC;
1686 description { state: "focused" 0.0;
1687 inherit: "default" 0.0;
1690 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1693 part { name: "over2";
1696 ignore_flags: ON_HOLD;
1697 description { state: "default" 0.0;
1701 part { name: "over3";
1704 description { state: "default" 0.0;
1708 part { name: "clipper";
1710 description { state: "default" 0.0;
1711 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1713 description { state: "disabled" 0.0;
1714 inherit: "default" 0.0;
1715 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1718 part { name: "disabler";
1720 description { state: "default" 0.0;
1724 description { state: "disabled" 0.0;
1725 inherit: "default" 0.0;
1731 program { name: "button_click";
1732 signal: "mouse,down,1";
1734 action: SIGNAL_EMIT "elm,action,press" "";
1735 after: "button_click_anim";
1737 program { name: "button_click_anim";
1738 action: STATE_SET "clicked" 0.0;
1739 target: "button_image";
1740 after: "text_clicked";
1742 program { name: "text_clicked";
1746 get_state(PART:"elm.text", st, 30, vl);
1747 if (!strcmp(st, "visible"))
1748 set_state(PART:"elm.text", "clicked", 0.0);
1751 program { name: "button_double_click";
1752 signal: "mouse,down,1,double";
1754 after: "button_click_anim";
1756 program { name: "button_unpress";
1757 action: SIGNAL_EMIT "elm,action,unpress" "";
1759 program { name: "button_mouseout_clicked";
1760 signal: "mouse,up,1";
1765 get_state(PART:"elm.swallow.content", st, 30, vl);
1766 if (strcmp(st, "icononly"))
1768 emit("elm,action,default,text,set", "");
1769 set_state(PART:"elm.text", "visible", 0.0);
1771 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1772 set_state(PART:"button_image", "default", 0.0);
1774 after: button_unpress;
1776 program { name: "touch_snd";
1777 signal: "mouse,clicked,1";
1779 action: PLAY_SAMPLE "touch_sound" 1.0;
1780 after: button_unclick3;
1782 program { name: "button_unclick3";
1783 action: SIGNAL_EMIT "elm,action,click" "";
1785 program { name: "text_show";
1786 signal: "elm,state,text,visible";
1791 get_state(PART:"elm.swallow.content", st, 30, vl);
1792 if (!strcmp(st, "icononly"))
1794 set_state(PART:"elm.swallow.content", "visible", 0.0);
1795 set_state(PART:"padding_icon_text", "visible", 0.0);
1797 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1798 set_state(PART:"elm.text", "visible", 0.0);
1800 set_state(PART:"elm.text", "disabled_visible", 0.0);
1803 program { name: "text_hide";
1804 signal: "elm,state,text,hidden";
1809 get_state(PART:"elm.swallow.content", st, 30, vl);
1810 if (!strcmp(st, "visible"))
1812 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1813 set_state(PART:"padding_icon_text", "icononly", 0.0);
1815 set_state(PART:"elm.text", "default", 0.0);
1818 program { name: "icon_show";
1819 signal: "elm,state,icon,visible";
1824 get_state(PART:"elm.text", st, 30, vl);
1825 if (!strcmp(st, "visible"))
1827 set_state(PART:"elm.swallow.content", "visible", 0.0);
1828 set_state(PART:"padding_icon_text", "visible", 0.0);
1832 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1833 set_state(PART:"padding_icon_text", "icononly", 0.0);
1837 program { name: "icon_hide";
1838 signal: "elm,state,icon,hidden";
1840 action: STATE_SET "default" 0.0;
1841 target: "elm.swallow.content";
1842 target: "padding_icon_text";
1844 program { name: "disable";
1845 signal: "elm,state,disabled";
1847 action: STATE_SET "disabled" 0.0;
1848 target: "button_image";
1851 after: "disable_text";
1853 program { name: "disable_text";
1857 get_state(PART:"elm.text", st, 30, vl);
1858 if (!strcmp(st, "visible"))
1859 set_state(PART:"elm.text", "disabled_visible", 0.0);
1861 set_state(PART:"elm.text", "disabled", 0.0);
1862 set_int(button_state, BUTTON_STATE_DISABLED);
1865 program { name: "enable";
1866 signal: "elm,state,enabled";
1868 action: STATE_SET "default" 0.0;
1869 target: "button_image";
1872 after: "enable_text";
1874 program { name: "enable_text";
1878 get_state(PART:"elm.text", st, 30, vl);
1879 if (!strcmp(st, "disabled_visible"))
1880 set_state(PART:"elm.text", "visible", 0.0);
1882 set_state(PART:"elm.text", "default", 0.0);
1883 set_int(button_state, BUTTON_STATE_ENABLED);
1886 program { name: "focused";
1887 //signal: "elm,action,focus";
1889 action: STATE_SET "focused" 0.0;
1890 target: "button_image";
1893 program { name: "unfocused";
1894 //signal: "elm,action,unfocus";
1896 action: STATE_SET "default" 0.0;
1897 target: "button_image";
1898 after: "unfocus_text";
1900 program { name: "unfocus_text";
1901 action: STATE_SET "visible" 0.0;
1907 ///////////////////////////////////////////////////////////////////////////////////////
1908 group { name: "elm/button/base/sweep/delete";
1909 inherit: "elm/button/base/sweep";
1910 alias: "elm/button/base/sweep/delete/multiline";
1912 image: "00_button_01_Delete_press.png" COMP;
1913 image: "00_button_01_Delete.png" COMP;
1914 image: "00_button_01_Delete_dim.png" COMP;
1917 style { name: "btn_sweep_delete_multiline";
1918 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";
1925 part { name: "button_image";
1927 description { state: "default" 0.0;
1928 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1930 normal: "00_button_01_Delete.png";
1931 border: BUTTON_SWEEP_BG_BORDER_INC;
1935 description { state: "clicked" 0.0;
1936 inherit: "default" 0.0;
1937 image.normal: "00_button_01_Delete_press.png";
1939 description { state: "disabled" 0.0;
1940 inherit: "default" 0.0;
1941 image.normal: "00_button_01_Delete_dim.png";
1943 description { state: "focused" 0.0;
1944 inherit: "default" 0.0;
1945 image.normal: "00_button_01_Delete_press.png";
1948 part { name: "elm.text";
1951 effect: SHADOW BOTTOM;
1954 description { state: "default" 0.0;
1959 to_x: "padding_icon_text";
1960 to_y: "padding_left_top";
1964 to: "padding_right_bottom";
1966 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
1967 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1969 style: "btn_sweep_multiline";
1973 description { state: "visible" 0.0;
1974 inherit: "default" 0.0;
1976 min: BUTTON_SWEEP_TEXT_MIN_INC;
1978 description { state: "clicked" 0.0;
1979 inherit: "default" 0.0;
1982 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
1983 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1985 description { state: "disabled" 0.0;
1986 inherit: "default" 0.0;
1988 description { state: "disabled_visible" 0.0;
1989 inherit: "default" 0.0;
1990 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
1991 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1993 min: BUTTON_SWEEP_TEXT_MIN_INC;
1995 description { state: "focused" 0.0;
1996 inherit: "default" 0.0;
1999 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
2005 ///////////////////////////////////////////////////////////////////////////////////////
2006 group { name: "elm/button/base/popup_button/default";
2007 alias: "elm/button/base/popup_button/menustyle";
2008 alias: "elm/button/base/popup_button/liststyle";
2009 alias: "elm/button/base/popup_button/volumebarstyle";
2010 alias: "elm/button/base/popup_button/customstyle";
2011 alias: "elm/button/base/popup_button/verticalbuttonstyle";
2012 alias: "elm/button/base/popup_button/default/multiline";
2014 image: "00_button_01.png" COMP;
2015 image: "00_button_01_dim.png" COMP;
2016 image: "00_button_01_press.png" COMP;
2019 public button_state = BUTTON_STATE_ENABLED;
2022 part { name: "button_image";
2024 description { state: "default" 0.0;
2025 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2027 normal: "00_button_01.png";
2028 border: BUTTON_POPUP_BG_BORDER_INC;
2032 description { state: "clicked" 0.0;
2033 inherit: "default" 0.0;
2034 image.normal: "00_button_01_press.png";
2036 description { state: "disabled" 0.0;
2037 inherit: "default" 0.0;
2038 image.normal: "00_button_01_dim.png";
2040 description { state: "focused" 0.0;
2041 inherit: "default" 0.0;
2042 image.normal: "00_button_01_press.png";
2045 part { name: "padding_left_top";
2049 description { state: "default" 0.0;
2051 rel2.relative: 0.0 0.0;
2052 min: BUTTON_POPUP_PADDING_MIN_INC;
2057 part { name: "padding_right_bottom";
2060 description { state: "default" 0.0;
2062 rel1.relative: 1.0 1.0;
2063 min: BUTTON_POPUP_PADDING_MIN_INC;
2068 part { name: "padding_icon_text";
2071 description { state: "default" 0.0; //when only icon or no icon is there
2075 to: "elm.swallow.content";
2077 rel2.to: "elm.swallow.content";
2082 description { state: "icononly" 0.0;
2083 inherit: "default" 0.0;
2085 description { state: "visible" 0.0; //when icon is visible
2086 inherit: "default" 0.0;
2087 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2090 part { name: "elm.swallow.content";
2094 description { state: "default" 0.0;
2099 to: "padding_left_top";
2103 to_x: "padding_left_top";
2104 to_y: "padding_right_bottom";
2108 description { state: "visible" 0.0;
2109 inherit: "default" 0.0;
2113 aspect_preference: VERTICAL;
2115 description { state: "icononly" 0.0;
2116 inherit: "default" 0.0;
2117 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2122 part { name: "elm.text";
2127 effect: SHADOW BOTTOM;
2128 description { state: "default" 0.0;
2132 to_x: "padding_icon_text";
2133 to_y: "padding_left_top";
2137 to: "padding_right_bottom";
2139 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
2140 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2142 font: "Tizen:style=Regular";
2143 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
2145 text_class: "tizen";
2148 description { state: "visible" 0.0;
2149 inherit: "default" 0.0;
2151 min: BUTTON_POPUP_TEXT_MIN_INC;
2153 description { state: "clicked" 0.0;
2154 inherit: "default" 0.0;
2157 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
2158 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
2160 description { state: "disabled" 0.0;
2161 inherit: "default" 0.0;
2163 description { state: "disabled_visible" 0.0;
2164 inherit: "default" 0.0;
2165 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
2166 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2168 min: BUTTON_POPUP_TEXT_MIN_INC;
2170 description { state: "focused" 0.0;
2171 inherit: "default" 0.0;
2174 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2177 part { name: "over2";
2180 ignore_flags: ON_HOLD;
2181 description { state: "default" 0.0;
2185 part { name: "over3";
2188 description { state: "default" 0.0;
2192 part { name: "clipper";
2194 description { state: "default" 0.0;
2195 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
2197 description { state: "disabled" 0.0;
2198 inherit: "default" 0.0;
2199 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
2202 part { name: "disabler";
2204 description { state: "default" 0.0;
2208 description { state: "disabled" 0.0;
2209 inherit: "default" 0.0;
2215 program { name: "button_click";
2216 signal: "mouse,down,1";
2218 action: SIGNAL_EMIT "elm,action,press" "";
2219 after: "button_click_anim";
2221 program { name: "button_click_anim";
2222 action: STATE_SET "clicked" 0.0;
2223 target: "button_image";
2224 after: "text_clicked";
2226 program { name: "text_clicked";
2230 get_state(PART:"elm.text", st, 30, vl);
2231 if (!strcmp(st, "visible"))
2232 set_state(PART:"elm.text", "clicked", 0.0);
2235 program { name: "button_double_click";
2236 signal: "mouse,down,1,double";
2238 after: "button_click_anim";
2240 program { name: "button_unpress";
2241 action: SIGNAL_EMIT "elm,action,unpress" "";
2243 program { name: "button_mouseout_clicked";
2244 signal: "mouse,up,1";
2249 get_state(PART:"elm.swallow.content", st, 30, vl);
2250 if (strcmp(st, "icononly"))
2252 emit("elm,action,default,text,set", "");
2253 set_state(PART:"elm.text", "visible", 0.0);
2255 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2256 set_state(PART:"button_image", "default", 0.0);
2258 after: button_unpress;
2260 program { name: "touch_snd";
2261 signal: "mouse,clicked,1";
2263 action: PLAY_SAMPLE "touch_sound" 1.0;
2264 after: button_unclick3;
2266 program { name: "button_unclick3";
2267 action: SIGNAL_EMIT "elm,action,click" "";
2269 program { name: "text_show";
2270 signal: "elm,state,text,visible";
2275 get_state(PART:"elm.swallow.content", st, 30, vl);
2276 if (!strcmp(st, "icononly"))
2278 set_state(PART:"elm.swallow.content", "visible", 0.0);
2279 set_state(PART:"padding_icon_text", "visible", 0.0);
2281 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2282 set_state(PART:"elm.text", "visible", 0.0);
2284 set_state(PART:"elm.text", "disabled_visible", 0.0);
2287 program { name: "text_hide";
2288 signal: "elm,state,text,hidden";
2293 get_state(PART:"elm.swallow.content", st, 30, vl);
2294 if (!strcmp(st, "visible"))
2296 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2297 set_state(PART:"padding_icon_text", "icononly", 0.0);
2299 set_state(PART:"elm.text", "default", 0.0);
2302 program { name: "icon_show";
2303 signal: "elm,state,icon,visible";
2308 get_state(PART:"elm.text", st, 30, vl);
2309 if (!strcmp(st, "visible"))
2311 set_state(PART:"elm.swallow.content", "visible", 0.0);
2312 set_state(PART:"padding_icon_text", "visible", 0.0);
2316 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2317 set_state(PART:"padding_icon_text", "icononly", 0.0);
2321 program { name: "icon_hide";
2322 signal: "elm,state,icon,hidden";
2324 action: STATE_SET "default" 0.0;
2325 target: "elm.swallow.content";
2326 target: "padding_icon_text";
2328 program { name: "disable";
2329 signal: "elm,state,disabled";
2331 action: STATE_SET "disabled" 0.0;
2332 target: "button_image";
2335 after: "disable_text";
2337 program { name: "disable_text";
2341 get_state(PART:"elm.text", st, 30, vl);
2342 if (!strcmp(st, "visible"))
2343 set_state(PART:"elm.text", "disabled_visible", 0.0);
2345 set_state(PART:"elm.text", "disabled", 0.0);
2346 set_int(button_state, BUTTON_STATE_DISABLED);
2349 program { name: "enable";
2350 signal: "elm,state,enabled";
2352 action: STATE_SET "default" 0.0;
2353 target: "button_image";
2356 after: "enable_text";
2358 program { name: "enable_text";
2362 get_state(PART:"elm.text", st, 30, vl);
2363 if (!strcmp(st, "disabled_visible"))
2364 set_state(PART:"elm.text", "visible", 0.0);
2366 set_state(PART:"elm.text", "default", 0.0);
2367 set_int(button_state, BUTTON_STATE_ENABLED);
2370 program { name: "focused";
2371 //signal: "elm,action,focus";
2373 action: STATE_SET "focused" 0.0;
2374 target: "button_image";
2377 program { name: "unfocused";
2378 //signal: "elm,action,unfocus";
2380 action: STATE_SET "default" 0.0;
2381 target: "button_image";
2382 after: "unfocus_text";
2384 program { name: "unfocus_text";
2385 action: STATE_SET "visible" 0.0;
2391 ///////////////////////////////////////////////////////////////////////////////////////
2392 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2393 group { name: "elm/button/base/"style_name; \
2395 image: "00_circle_button.png" COMP; \
2396 image: "00_circle_button_press.png" COMP; \
2397 image: "00_circle_button_dim.png" COMP; \
2398 image: image_normal COMP; \
2399 image: image_press COMP; \
2402 part { name: "button_image"; \
2404 description { state: "default" 0.0; \
2405 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2406 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2407 image.normal: "00_circle_button.png"; \
2410 state: "clicked" 0.0; \
2411 inherit: "default" 0.0; \
2412 image.normal: "00_circle_button_press.png"; \
2415 state: "disabled" 0.0; \
2416 inherit: "default" 0.0; \
2417 image.normal: "00_circle_button_dim.png"; \
2420 part { name: "left_top_padding"; \
2423 description { state: "default" 0.0; \
2424 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2425 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2428 rel1.to: "button_image"; \
2429 rel2.to: "button_image"; \
2432 part { name: "right_bottom_padding"; \
2435 description { state: "default" 0.0; \
2436 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2437 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2441 relative: 1.0 1.0; \
2442 to: "button_image"; \
2444 rel2.to: "button_image"; \
2447 part { name: "button_center_part"; \
2449 clip_to: "icon_clipper"; \
2450 description { state: "default" 0.0; \
2451 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2452 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2453 image.normal: image_normal; \
2455 relative: 1.0 1.0; \
2456 to: "left_top_padding"; \
2459 relative: 0.0 0.0; \
2460 to: "right_bottom_padding"; \
2463 description { state: "clicked" 0.0; \
2464 inherit: "default"; \
2465 image.normal: image_press; \
2467 description { state: "disabled" 0.0; \
2468 inherit: "default"; \
2471 part { name: "icon_clipper"; \
2474 description { state: "default" 0.0; \
2475 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2477 description { state: "clicked" 0.0; \
2478 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2480 description { state: "disabled" 0.0; \
2481 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2484 part { name: "over1"; \
2486 ignore_flags: ON_HOLD; \
2487 description { state: "default" 0.0; \
2489 min: min_width min_height; \
2492 part { name: "over2"; \
2495 description { state: "default" 0.0; \
2499 part { name: "disabler"; \
2501 description { state: "default" 0.0; \
2505 description { state: "disabled" 0.0; \
2506 inherit: "default" 0.0; \
2512 program { name: "button_click"; \
2513 signal: "mouse,down,1"; \
2515 action: SIGNAL_EMIT "elm,action,press" ""; \
2516 after: "button_click_anim"; \
2518 program { name: "button_click_anim"; \
2519 action: STATE_SET "clicked" 0.0; \
2520 target: "button_image"; \
2521 target: "button_center_part"; \
2522 target: "icon_clipper"; \
2524 program { name: "button_double_click"; \
2525 signal: "mouse,down,1,double"; \
2527 after: "button_click_anim"; \
2529 program { name: "button_unclick"; \
2530 signal: "mouse,up,1"; \
2532 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2533 after: "button_unclick_anim"; \
2535 program { name: "button_unclick_anim"; \
2536 action: STATE_SET "default" 0.0; \
2537 target: "button_image"; \
2538 target: "button_center_part"; \
2539 target: "icon_clipper"; \
2541 program { name: "touch_snd"; \
2542 signal: "mouse,clicked,1"; \
2544 action: PLAY_SAMPLE "touch_sound" 1.0; \
2545 after: button_unclick3; \
2547 program { name: "button_unclick3"; \
2548 action: SIGNAL_EMIT "elm,action,click" ""; \
2550 program { name: "disable"; \
2551 signal: "elm,state,disabled"; \
2553 action: STATE_SET "disabled" 0.0; \
2554 target: "disabler"; \
2555 target: "button_image"; \
2556 target: "button_center_part"; \
2557 target: "icon_clipper"; \
2559 program { name: "enable"; \
2560 signal: "elm,state,enabled"; \
2562 action: STATE_SET "default" 0.0; \
2563 target: "disabler"; \
2564 target: "button_image"; \
2565 target: "button_center_part"; \
2566 target: "icon_clipper"; \
2571 ///////////////////////////////////////////////////////////////////////////////////////
2572 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)
2574 ///////////////////////////////////////////////////////////////////////////////////////
2575 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)
2577 ///////////////////////////////////////////////////////////////////////////////////////
2578 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)
2580 ///////////////////////////////////////////////////////////////////////////////////////
2581 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)
2583 ///////////////////////////////////////////////////////////////////////////////////////
2584 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)
2586 ///////////////////////////////////////////////////////////////////////////////////////
2587 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)
2589 ///////////////////////////////////////////////////////////////////////////////////////
2590 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)
2592 ///////////////////////////////////////////////////////////////////////////////////////
2593 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)
2595 ///////////////////////////////////////////////////////////////////////////////////////
2596 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)
2598 ///////////////////////////////////////////////////////////////////////////////////////
2599 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)
2601 ///////////////////////////////////////////////////////////////////////////////////////
2602 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)
2604 ///////////////////////////////////////////////////////////////////////////////////////
2605 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)
2607 ///////////////////////////////////////////////////////////////////////////////////////
2608 BUTTON_CIRCLE_STYLES("plus", "00_button_add.png", "00_button_add_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2610 ///////////////////////////////////////////////////////////////////////////////////////
2611 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_add.png", "00_button_add_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2613 ///////////////////////////////////////////////////////////////////////////////////////
2614 BUTTON_CIRCLE_STYLES("minus", "00_button_delete.png", "00_button_delete_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2616 ///////////////////////////////////////////////////////////////////////////////////////
2617 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_delete.png", "00_button_delete_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2619 ///////////////////////////////////////////////////////////////////////////////////////
2620 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)
2622 ///////////////////////////////////////////////////////////////////////////////////////
2623 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)
2625 ///////////////////////////////////////////////////////////////////////////////////////
2626 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)
2628 ///////////////////////////////////////////////////////////////////////////////////////
2629 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)
2630 ///////////////////////////////////////////////////////////////////////////////////////
2632 ///////////////////////////////////////////////////////////////////////////////////////
2633 BUTTON_CIRCLE_STYLES("contact", "00_button_contact.png", "00_button_contact_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2634 ///////////////////////////////////////////////////////////////////////////////////////
2636 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2637 group { name: "elm/button/base/"style_name; \
2638 inherit: "elm/button/base/info"; \
2640 image: "00_circle_button_delete.png" COMP; \
2641 image: "00_circle_button_delete_press.png" COMP; \
2642 image: "00_circle_button_delete_dim.png" COMP; \
2643 image: "00_button_warning.png" COMP; \
2644 image: "00_button_warning_press.png" COMP; \
2647 part { name: "button_image"; \
2649 description { state: "default" 0.0; \
2650 image.normal: "00_circle_button_delete.png"; \
2653 state: "clicked" 0.0; \
2654 inherit: "default" 0.0; \
2655 image.normal: "00_circle_button_delete_press.png"; \
2658 state: "disabled" 0.0; \
2659 inherit: "default" 0.0; \
2660 image.normal: "00_circle_button_delete_dim.png"; \
2663 part { name: "button_center_part"; \
2665 clip_to: "icon_clipper"; \
2666 description { state: "default" 0.0; \
2667 image.normal: "00_button_warning.png"; \
2669 description { state: "clicked" 0.0; \
2670 inherit: "default"; \
2671 image.normal: "00_button_warning_press.png"; \
2673 description { state: "disabled" 0.0; \
2674 inherit: "default"; \
2677 part { name: "icon_clipper"; \
2680 description { state: "default" 0.0; \
2681 color: BUTTON_CIRCLE_STYLE_WARNING_NORMAL_COLOR_INC; \
2683 description { state: "clicked" 0.0; \
2684 color: BUTTON_CIRCLE_STYLE_WARNING_PRESSED_COLOR_INC; \
2686 description { state: "disabled" 0.0; \
2687 color: BUTTON_CIRCLE_STYLE_WARNING_DISABLED_COLOR_INC; \
2690 part { name: "over1"; \
2692 ignore_flags: ON_HOLD; \
2693 description { state: "default" 0.0; \
2695 min: min_width min_height; \
2701 ///////////////////////////////////////////////////////////////////////////////////////
2702 BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2704 ///////////////////////////////////////////////////////////////////////////////////////
2705 BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2707 ///////////////////////////////////////////////////////////////////////////////////////
2708 group { name: "elm/button/base/circle/empty";
2710 image: "00_circle_button.png" COMP;
2711 image: "00_circle_button_press.png" COMP;
2712 image: "00_circle_button_dim.png" COMP;
2715 part { name: "button_image";
2717 description { state: "default" 0.0;
2718 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2719 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2721 image.normal: "00_circle_button.png";
2723 description { state: "clicked" 0.0;
2724 inherit: "default" 0.0;
2725 image.normal: "00_circle_button_press.png";
2727 description { state: "disabled" 0.0;
2728 inherit: "default" 0.0;
2729 image.normal: "00_circle_button_dim.png";
2732 part { name: "left_top_padding";
2735 description { state: "default" 0.0;
2736 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2737 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2740 rel1.to: "button_image";
2741 rel2.to: "button_image";
2744 part { name: "right_bottom_padding";
2747 description { state: "default" 0.0;
2748 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2749 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2756 rel2.to: "button_image";
2759 part { name: "elm.swallow.content";
2761 clip_to: "icon_clipper";
2763 description { state: "default" 0.0;
2767 to: "left_top_padding";
2771 to: "right_bottom_padding";
2775 description { state: "visible" 0.0;
2776 inherit: "default" 0.0;
2778 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2779 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2782 part { name: "icon_clipper";
2785 description { state: "default" 0.0;
2786 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2788 description { state: "clicked" 0.0;
2789 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2791 description { state: "disabled" 0.0;
2792 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2795 part { name: "over1";
2797 ignore_flags: ON_HOLD;
2798 description { state: "default" 0.0;
2802 part { name: "over2";
2805 description { state: "default" 0.0;
2809 part { name: "disabler";
2811 description { state: "default" 0.0;
2815 description { state: "disabled" 0.0;
2816 inherit: "default" 0.0;
2822 program { name: "button_click";
2823 signal: "mouse,down,1";
2825 action: SIGNAL_EMIT "elm,action,press" "";
2826 after: "button_click_anim";
2828 program { name: "button_click_anim";
2829 action: STATE_SET "clicked" 0.0;
2830 target: "button_image";
2831 target: "icon_clipper";
2833 program { name: "button_double_click";
2834 signal: "mouse,down,1,double";
2836 after: "button_click_anim";
2838 program { name: "touch_snd";
2839 signal: "mouse,clicked,1";
2841 action: PLAY_SAMPLE "touch_sound" 1.0;
2842 after: button_unclick2;
2844 program { name: "button_unclick2";
2845 action: SIGNAL_EMIT "elm,action,click" "";
2847 program { name: "button_unclick";
2848 signal: "mouse,up,1";
2850 action: SIGNAL_EMIT "elm,action,unpress" "";
2851 after: "button_unclick_anim";
2853 program { name: "button_unclick_anim";
2854 action: STATE_SET "default" 0.0;
2855 target: "button_image";
2856 target: "icon_clipper";
2858 program { name: "disable";
2859 signal: "elm,state,disabled";
2861 action: STATE_SET "disabled" 0.0;
2863 target: "button_image";
2864 target: "icon_clipper";
2866 program { name: "enable";
2867 signal: "elm,state,enabled";
2869 action: STATE_SET "default" 0.0;
2871 target: "button_image";
2872 target: "icon_clipper";
2874 program { name: "icon_show";
2875 signal: "elm,state,icon,visible";
2877 action: STATE_SET "visible" 0.0;
2878 target: "elm.swallow.content";
2880 program { name: "icon_hide";
2881 signal: "elm,state,icon,hidden";
2883 action: STATE_SET "default" 0.0;
2884 target: "elm.swallow.content";
2889 ///////////////////////////////////////////////////////////////////////////////////////
2890 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2891 group { name: "elm/button/base/contacts/"style_name; \
2892 alias: "elm/button/base/"style_name; \
2894 image: "00_circle_button.png" COMP; \
2895 image: "00_circle_button_press.png" COMP; \
2896 image: "00_circle_button_dim.png" COMP; \
2897 image: edit_normal COMP; \
2898 image: edit_press COMP; \
2901 part { name: "button_image"; \
2903 description { state: "default" 0.0; \
2904 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2905 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2906 image.normal: "00_circle_button.png"; \
2908 description { state: "clicked" 0.0; \
2909 inherit: "default" 0.0; \
2910 image.normal: "00_circle_button_press.png"; \
2912 description { state: "disabled" 0.0; \
2913 inherit: "default" 0.0; \
2914 image.normal: "00_circle_button_dim.png"; \
2917 part { name: "button_center_part"; \
2920 clip_to: "icon_clipper"; \
2921 description { state: "default" 0.0; \
2922 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2923 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2924 image.normal: image_normal; \
2927 state: "clicked" 0.0; \
2928 inherit: "default" 0.0; \
2929 image.normal: image_press; \
2931 description { state: "disabled" 0.0; \
2932 inherit: "default" 0.0; \
2935 part { name: "icon_clipper"; \
2938 description { state: "default" 0.0; \
2939 color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
2941 description { state: "clicked" 0.0; \
2942 color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
2944 description { state: "disabled" 0.0; \
2945 color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
2948 part { name: "over1"; \
2951 ignore_flags: ON_HOLD; \
2952 description { state: "default" 0.0; \
2954 min: min_width min_height; \
2957 part { name: "over2"; \
2960 description { state: "default" 0.0; \
2964 part { name: "disabler"; \
2966 description { state: "default" 0.0; \
2970 description { state: "disabled" 0.0; \
2971 inherit: "default" 0.0; \
2977 program { name: "button_click"; \
2978 signal: "mouse,down,1"; \
2980 action: SIGNAL_EMIT "elm,action,press" ""; \
2981 after: "button_click_anim"; \
2983 program { name: "button_click_anim"; \
2984 action: STATE_SET "clicked" 0.0; \
2985 target: "button_image"; \
2986 target: "button_center_part"; \
2987 target: "icon_clipper"; \
2989 program { name: "button_double_click"; \
2990 signal: "mouse,down,1,double"; \
2992 after: "button_click_anim"; \
2994 program { name: "button_unclick"; \
2995 signal: "mouse,up,1"; \
2997 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2998 after: "button_unclick_anim"; \
3000 program { name: "button_unclick_anim"; \
3001 action: STATE_SET "default" 0.0; \
3002 target: "button_image"; \
3003 target: "button_center_part"; \
3004 target: "icon_clipper"; \
3006 program { name: "touch_snd"; \
3007 signal: "mouse,clicked,1"; \
3009 action: PLAY_SAMPLE "touch_sound" 1.0; \
3010 after: button_unclick3; \
3012 program { name: "button_unclick3"; \
3013 action: SIGNAL_EMIT "elm,action,click" ""; \
3015 program { name: "disable"; \
3016 signal: "elm,state,disabled"; \
3018 action: STATE_SET "disabled" 0.0; \
3019 target: "disabler"; \
3020 target: "button_image"; \
3021 target: "button_center_part"; \
3022 target: "icon_clipper"; \
3024 program { name: "enable"; \
3025 signal: "elm,state,enabled"; \
3027 action: STATE_SET "default" 0.0; \
3028 target: "disabler"; \
3029 target: "button_image"; \
3030 target: "button_center_part"; \
3031 target: "icon_clipper"; \
3035 ///////////////////////////////////////////////////////////////////////////////////////
3036 BUTTON_EDIT_STYLES("icon_plus", "00_button_add.png", "00_button_add_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3038 ///////////////////////////////////////////////////////////////////////////////////////
3039 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_add.png", "00_button_add_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3041 ///////////////////////////////////////////////////////////////////////////////////////
3042 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)
3044 ///////////////////////////////////////////////////////////////////////////////////////
3045 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)
3047 ///////////////////////////////////////////////////////////////////////////////////////
3048 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)
3050 ///////////////////////////////////////////////////////////////////////////////////////
3051 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)
3053 ///////////////////////////////////////////////////////////////////////////////////////
3055 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
3056 group { name: "elm/button/base/contacts/"style_name; \
3057 alias: "elm/button/base/"style_name; \
3058 inherit: "elm/button/base/contacts/icon_plus"; \
3060 image: "00_circle_button_delete.png" COMP; \
3061 image: "00_circle_button_delete_press.png" COMP; \
3062 image: "00_circle_button_delete_dim.png" COMP; \
3063 image: "00_button_delete.png" COMP; \
3064 image: "00_button_delete_press.png" COMP; \
3067 part { name: "button_image"; \
3069 description { state: "default" 0.0; \
3070 image.normal: "00_circle_button_delete.png"; \
3072 description { state: "clicked" 0.0; \
3073 inherit: "default" 0.0; \
3074 image.normal: "00_circle_button_delete_press.png"; \
3076 description { state: "disabled" 0.0; \
3077 inherit: "default" 0.0; \
3078 image.normal: "00_circle_button_delete_dim.png"; \
3081 part { name: "button_center_part"; \
3084 clip_to: "icon_clipper"; \
3085 description { state: "default" 0.0; \
3086 image.normal: "00_button_delete.png"; \
3089 state: "clicked" 0.0; \
3090 inherit: "default" 0.0; \
3091 image.normal: "00_button_delete_press.png"; \
3093 description { state: "disabled" 0.0; \
3094 inherit: "default" 0.0; \
3097 part { name: "icon_clipper"; \
3100 description { state: "default" 0.0; \
3101 color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
3103 description { state: "clicked" 0.0; \
3104 color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
3106 description { state: "disabled" 0.0; \
3107 color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
3110 part { name: "over1"; \
3113 ignore_flags: ON_HOLD; \
3114 description { state: "default" 0.0; \
3116 min: min_width min_height; \
3122 ///////////////////////////////////////////////////////////////////////////////////////
3123 BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3125 ///////////////////////////////////////////////////////////////////////////////////////
3126 BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3128 ///////////////////////////////////////////////////////////////////////////////////////
3129 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
3130 group { name: "elm/button/base/"style_name; \
3132 image: "00_button_01.png" COMP; \
3133 image: "00_button_01_press.png" COMP; \
3134 image: "00_button_01_dim.png" COMP; \
3135 image: image_normal COMP; \
3138 part { name: "button_image";\
3141 description { state: "default" 0.0; \
3142 min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
3144 normal: "00_button_01.png"; \
3145 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3149 description { state: "clicked" 0.0; \
3150 inherit: "default" 0.0; \
3151 image.normal: "00_button_01_press.png"; \
3153 description { state: "disabled" 0.0; \
3154 inherit: "default" 0.0; \
3155 image.normal: "00_button_01_dim.png"; \
3158 part { name: "padding_left_top"; \
3161 description { state: "default" 0.0; \
3163 rel2.relative: 0.0 0.0; \
3164 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3168 part { name: "padding_right_bottom"; \
3171 description { state: "default" 0.0; \
3173 rel1.relative: 1.0 1.0; \
3174 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3178 part { name: "jump_image"; \
3181 description { state: "default" 0.0; \
3182 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3185 relative: 1.0 0.0; \
3186 to_x: "padding_left_top"; \
3189 relative: 0.0 1.0; \
3190 to_x: "padding_right_bottom"; \
3192 image.normal: image_normal; \
3194 aspect_preference: VERTICAL; \
3195 color: BUTTON_JUMP_ICON_NORMAL_COLOR_INC; \
3197 description { state: "clicked" 0.0; \
3198 inherit: "default" 0.0; \
3199 color: BUTTON_JUMP_ICON_PRESSED_COLOR_INC; \
3201 description { state: "disabled" 0.0; \
3202 inherit: "default" 0.0; \
3203 color: BUTTON_JUMP_ICON_DIM_COLOR_INC; \
3206 part { name: "over1"; \
3209 ignore_flags: ON_HOLD; \
3210 description { state: "default" 0.0; \
3212 rel1.relative: 0.0 0.0; \
3213 rel2.relative: 1.0 1.0; \
3216 part { name: "over2"; \
3219 description { state: "default" 0.0; \
3225 program { name: "button_click"; \
3226 signal: "mouse,down,1"; \
3228 action: SIGNAL_EMIT "elm,action,press" ""; \
3229 after: "button_click_anim"; \
3231 program { name: "button_click_anim"; \
3232 action: STATE_SET "clicked" 0.0; \
3233 target: "button_image"; \
3234 target: "jump_image"; \
3236 program { name: "button_double_click"; \
3237 signal: "mouse,down,1,double"; \
3239 after: "button_click_anim"; \
3241 program { name: "button_unclick"; \
3242 signal: "mouse,up,1"; \
3244 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3245 after: "button_unclick_anim"; \
3247 program { name: "button_unclick_anim"; \
3248 action: STATE_SET "default" 0.0; \
3249 target: "button_image"; \
3250 target: "jump_image"; \
3252 program { name: "touch_snd"; \
3253 signal: "mouse,clicked,1"; \
3255 action: PLAY_SAMPLE "touch_sound" 1.0; \
3256 after: button_unclick3; \
3258 program { name: "button_unclick3"; \
3259 action: SIGNAL_EMIT "elm,action,click" ""; \
3261 program { name: "disable"; \
3262 signal: "elm,state,disabled"; \
3264 action: STATE_SET "disabled" 0.0; \
3265 target: "button_image"; \
3266 target: "jump_image"; \
3268 program { name: "enable"; \
3269 signal: "elm,state,enabled"; \
3271 action: STATE_SET "default" 0.0; \
3272 target: "button_image"; \
3273 target: "jump_image"; \
3278 ////////////////////////////////////////////////////////////////////////
3279 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3280 ////////////////////////////////////////////////////////////////////////
3281 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3283 ////////////////////////////////////////////////////////////////////////
3284 group { name: "elm/button/base/default";
3286 image: "00_button_01.png" COMP;
3287 image: "00_button_01_press.png" COMP;
3288 image: "00_button_01_dim.png" COMP;
3291 public button_state = BUTTON_STATE_ENABLED;
3294 part { name: "button_image";
3296 description { state: "default" 0.0;
3297 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3299 normal: "00_button_01.png";
3300 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3304 description { state: "clicked" 0.0;
3305 inherit: "default" 0.0;
3306 image.normal: "00_button_01_press.png";
3308 description { state: "disabled" 0.0;
3309 inherit: "default" 0.0;
3310 image.normal: "00_button_01_dim.png";
3312 description { state: "focused" 0.0;
3313 inherit: "default" 0.0;
3314 image.normal: "00_button_01_press.png";
3317 part { name: "padding_left_top";
3321 description { state: "default" 0.0;
3323 rel2.relative: 0.0 0.0;
3324 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3329 part { name: "padding_right_bottom";
3333 description { state: "default" 0.0;
3335 rel1.relative: 1.0 1.0;
3336 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3341 part { name: "padding_icon_text";
3345 description { state: "default" 0.0; //when only icon or no icon is there
3351 to: "elm.swallow.content";
3353 rel2.to: "elm.swallow.content";
3356 description { state: "icononly" 0.0;
3357 inherit: "default" 0.0;
3359 description { state: "visible" 0.0; //when icon is visible
3360 inherit: "default" 0.0;
3361 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3364 part { name: "elm.swallow.content";
3368 description { state: "default" 0.0;
3374 to: "padding_left_top";
3378 to_x: "padding_left_top";
3379 to_y: "padding_right_bottom";
3382 description { state: "visible" 0.0;
3383 inherit: "default" 0.0;
3386 aspect_preference: VERTICAL;
3388 description { state: "icononly" 0.0;
3389 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3392 to_x: "padding_left_top";
3396 to_x: "padding_right_bottom";
3399 aspect_preference: VERTICAL;
3402 part { name: "elm.text";
3407 effect: SHADOW BOTTOM;
3408 description { state: "default" 0.0;
3413 to_x: "padding_icon_text";
3414 to_y: "padding_left_top";
3418 to: "padding_right_bottom";
3420 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3421 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
3423 font: "Tizen:style=Regular";
3424 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3426 text_class: "tizen";
3429 description { state: "visible" 0.0;
3430 inherit: "default" 0.0;
3432 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3434 description { state: "clicked" 0.0;
3435 inherit: "default" 0.0;
3437 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3438 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3440 description { state: "disabled" 0.0;
3441 inherit: "default" 0.0;
3443 description { state: "disabled_visible" 0.0;
3444 inherit: "default" 0.0;
3445 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3446 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
3448 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3450 description { state: "focused" 0.0;
3451 inherit: "default" 0.0;
3454 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3457 part { name: "over2";
3460 ignore_flags: ON_HOLD;
3461 description { state: "default" 0.0;
3465 part { name: "over3";
3468 description { state: "default" 0.0;
3472 part { name: "disclip";
3474 description { state: "default" 0.0;
3475 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3477 description { state: "disabled" 0.0;
3478 inherit: "default" 0.0;
3479 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3482 part { name: "disabler";
3484 description { state: "default" 0.0;
3488 description { state: "disabled" 0.0;
3489 inherit: "default" 0.0;
3495 program { name: "button_click";
3496 signal: "mouse,down,1";
3498 action: SIGNAL_EMIT "elm,action,press" "";
3499 after: "button_click_anim";
3501 program { name: "button_click_anim";
3502 action: STATE_SET "clicked" 0.0;
3503 target: "button_image";
3504 after: "text_clicked";
3506 program { name: "text_clicked";
3510 get_state(PART:"elm.text", st, 30, vl);
3511 if (!strcmp(st, "visible"))
3512 set_state(PART:"elm.text", "clicked", 0.0);
3515 program { name: "button_double_click";
3516 signal: "mouse,down,1,double";
3518 after: "button_click_anim";
3520 program { name: "button_unpress";
3521 action: SIGNAL_EMIT "elm,action,unpress" "";
3523 program { name: "button_mouseout_clicked";
3524 signal: "mouse,up,1";
3529 get_state(PART:"elm.swallow.content", st, 30, vl);
3530 if (strcmp(st, "icononly"))
3532 emit("elm,action,default,text,set", "");
3533 set_state(PART:"elm.text", "visible", 0.0);
3535 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3536 set_state(PART:"button_image", "default", 0.0);
3538 after: button_unpress;
3540 program { name: "touch_snd";
3541 signal: "mouse,clicked,1";
3543 action: PLAY_SAMPLE "touch_sound" 1.0;
3544 after: button_unclick3;
3546 program { name: "button_unclick3";
3547 action: SIGNAL_EMIT "elm,action,click" "";
3549 program { name: "text_show";
3550 signal: "elm,state,text,visible";
3555 get_state(PART:"elm.swallow.content", st, 30, vl);
3556 if (!strcmp(st, "icononly"))
3558 set_state(PART:"elm.swallow.content", "visible", 0.0);
3559 set_state(PART:"padding_icon_text", "visible", 0.0);
3561 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3562 set_state(PART:"elm.text", "visible", 0.0);
3564 set_state(PART:"elm.text", "disabled_visible", 0.0);
3567 program { name: "text_hide";
3568 signal: "elm,state,text,hidden";
3573 get_state(PART:"elm.swallow.content", st, 30, vl);
3574 if (!strcmp(st, "visible"))
3576 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3577 set_state(PART:"padding_icon_text", "icononly", 0.0);
3579 set_state(PART:"elm.text", "default", 0.0);
3582 program { name: "icon_show";
3583 signal: "elm,state,icon,visible";
3588 get_state(PART:"elm.text", st, 30, vl);
3589 if (!strcmp(st, "visible"))
3591 set_state(PART:"elm.swallow.content", "visible", 0.0);
3592 set_state(PART:"padding_icon_text", "visible", 0.0);
3596 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3597 set_state(PART:"padding_icon_text", "icononly", 0.0);
3601 program { name: "icon_hide";
3602 signal: "elm,state,icon,hidden";
3604 action: STATE_SET "default" 0.0;
3605 target: "elm.swallow.content";
3606 target: "padding_icon_text";
3608 program { name: "disable";
3609 signal: "elm,state,disabled";
3611 action: STATE_SET "disabled" 0.0;
3612 target: "button_image";
3615 after: "disable_text";
3617 program { name: "disable_text";
3621 get_state(PART:"elm.text", st, 30, vl);
3622 if (!strcmp(st, "visible"))
3623 set_state(PART:"elm.text", "disabled_visible", 0.0);
3625 set_state(PART:"elm.text", "disabled", 0.0);
3626 set_int(button_state, BUTTON_STATE_DISABLED);
3629 program { name: "enable";
3630 signal: "elm,state,enabled";
3632 action: STATE_SET "default" 0.0;
3633 target: "button_image";
3636 after: "enable_text";
3638 program { name: "enable_text";
3642 get_state(PART:"elm.text", st, 30, vl);
3643 if (!strcmp(st, "disabled_visible"))
3644 set_state(PART:"elm.text", "visible", 0.0);
3646 set_state(PART:"elm.text", "default", 0.0);
3647 set_int(button_state, BUTTON_STATE_ENABLED);
3650 program { name: "focused";
3651 //signal: "elm,action,focus";
3653 action: STATE_SET "focused" 0.0;
3654 target: "button_image";
3657 program { name: "unfocused";
3658 //signal: "elm,action,unfocus";
3660 action: STATE_SET "default" 0.0;
3661 target: "button_image";
3662 after: "unfocus_text";
3664 program { name: "unfocus_text";
3665 action: STATE_SET "visible" 0.0;
3671 ///////////////////////////////////////////////////////////////////////////////////////
3672 group { name: "elm/button/base/multiline";
3673 alias: "elm/button/base/text_only/multiline";
3674 inherit: "elm/button/base/default";
3676 style { name: "btn_multiline_style";
3677 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";
3684 part { name: "button_image";
3686 description { state: "default" 0.0;
3687 min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3689 normal: "00_button_01.png";
3690 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3694 description { state: "clicked" 0.0;
3695 inherit: "default" 0.0;
3696 image.normal: "00_button_01_press.png";
3698 description { state: "disabled" 0.0;
3699 inherit: "default" 0.0;
3700 image.normal: "00_button_01_dim.png";
3702 description { state: "focused" 0.0;
3703 inherit: "default" 0.0;
3704 image.normal: "00_button_01_press.png";
3707 part { name: "padding_left_top";
3711 description { state: "default" 0.0;
3713 rel2.relative: 0.0 0.0;
3714 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3719 part { name: "padding_right_bottom";
3723 description { state: "default" 0.0;
3725 rel1.relative: 1.0 1.0;
3726 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3731 part { name: "elm.text";
3736 description { state: "default" 0.0;
3740 to_x: "padding_icon_text";
3741 to_y: "padding_left_top";
3745 to: "padding_right_bottom";
3747 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3749 style: "btn_multiline_style";
3752 description { state: "visible" 0.0;
3753 inherit: "default" 0.0;
3757 description { state: "clicked" 0.0;
3758 inherit: "default" 0.0;
3761 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3763 description { state: "disabled" 0.0;
3764 inherit: "default" 0.0;
3766 description { state: "disabled_visible" 0.0;
3767 inherit: "default" 0.0;
3768 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3772 description { state: "focused" 0.0;
3773 inherit: "default" 0.0;
3776 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3782 ///////////////////////////////////////////////////////////////////////////////////////
3783 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
3784 group { name: "elm/button/base/"style_name; \
3786 image: image_normal COMP; \
3787 image: image_press COMP; \
3788 image: image_dim COMP; \
3789 image: "00_button_01.png" COMP; \
3790 image: "00_button_01_press.png" COMP; \
3793 part { name: "button_image"; \
3795 description { state: "default" 0.0; \
3796 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3797 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3799 normal: "00_button_01.png"; \
3800 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3805 state: "clicked" 0.0; \
3806 inherit: "default" 0.0; \
3807 image.normal: "00_button_01_press.png"; \
3810 state: "disabled" 0.0; \
3811 inherit: "default" 0.0; \
3812 image.normal: "00_button_01_dim.png"; \
3815 state: "focused" 0.0; \
3816 inherit: "default" 0.0; \
3817 image.normal: "00_button_01_press.png"; \
3820 part { name: "button_center_part"; \
3822 clip_to: "icon_clipper"; \
3823 description { state: "default" 0.0; \
3824 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3825 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3826 image.normal: image_normal; \
3829 state: "clicked" 0.0; \
3830 inherit: "default" 0.0; \
3831 image.normal: image_press; \
3834 state: "disabled" 0.0; \
3835 inherit: "default" 0.0; \
3838 part { name: "icon_clipper"; \
3841 description { state: "default" 0.0; \
3842 color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
3844 description { state: "clicked" 0.0; \
3845 color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
3847 description { state: "disabled" 0.0; \
3848 color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
3851 part { name: "over1"; \
3853 ignore_flags: ON_HOLD; \
3854 description { state: "default" 0.0; \
3858 part { name: "over2"; \
3861 description { state: "default" 0.0; \
3865 part { name: "disabler"; \
3867 description { state: "default" 0.0; \
3871 description { state: "disabled" 0.0; \
3872 inherit: "default" 0.0; \
3878 program { name: "button_click"; \
3879 signal: "mouse,down,1"; \
3881 action: SIGNAL_EMIT "elm,action,press" ""; \
3882 after: "button_click_anim"; \
3884 program { name: "button_click_anim"; \
3885 action: STATE_SET "clicked" 0.0; \
3886 target: "button_image"; \
3887 target: "button_center_part"; \
3888 target: ""icon_clipper""; \
3890 program { name: "button_double_click"; \
3891 signal: "mouse,down,1,double"; \
3893 after: "button_click_anim"; \
3895 program { name: "button_unclick"; \
3896 signal: "mouse,up,1"; \
3898 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3899 after: "button_unclick_anim"; \
3901 program { name: "button_unclick_anim"; \
3902 action: STATE_SET "default" 0.0; \
3903 target: "button_image"; \
3904 target: "button_center_part"; \
3905 target: ""icon_clipper""; \
3907 program { name: "touch_snd"; \
3908 signal: "mouse,clicked,1"; \
3910 action: PLAY_SAMPLE "touch_sound" 1.0; \
3911 after: button_unclick3; \
3913 program { name: "button_unclick3"; \
3914 action: SIGNAL_EMIT "elm,action,click" ""; \
3916 program { name: "disable"; \
3917 signal: "elm,state,disabled"; \
3919 action: STATE_SET "disabled" 0.0; \
3920 target: "disabler"; \
3921 target: "button_image"; \
3922 target: "button_center_part"; \
3923 target: ""icon_clipper""; \
3925 program { name: "enable"; \
3926 signal: "elm,state,enabled"; \
3928 action: STATE_SET "default" 0.0; \
3929 target: "disabler"; \
3930 target: "button_image"; \
3931 target: "button_center_part"; \
3932 target: ""icon_clipper""; \
3936 ///////////////////////////////////////////////////////////////////////////////////////
3937 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
3938 ///////////////////////////////////////////////////////////////////////////////////////
3939 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
3940 ///////////////////////////////////////////////////////////////////////////////////////
3942 group { name: "elm/button/base/multibuttonentry";
3943 alias: "elm/button/base/text_only/multibuttonentry";
3945 image: "00_contacts_button.png" COMP;
3946 image: "00_contacts_button_press.png" COMP;
3949 public button_state = BUTTON_STATE_ENABLED;
3952 part { name: "button_image";
3954 description { state: "default" 0.0;
3956 to_x: "padding.left";
3960 to_x: "padding.right";
3963 min: BUTTON_CONTACT_BG_MIN_INC;
3965 normal: "00_contacts_button.png";
3966 border: BUTTON_CONTACT_BG_BORDER_INC;
3970 description { state: "clicked" 0.0;
3971 inherit: "default" 0.0;
3972 image.normal: "00_contacts_button_press.png";
3974 description { state: "disabled" 0.0;
3975 inherit: "default" 0.0;
3977 description { state: "focused" 0.0;
3978 inherit: "default" 0.0;
3979 image.normal: "00_contacts_button_press.png";
3982 part { name: "padding.left";
3985 description { state: "default" 0.0;
3987 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
3997 part { name: "padding.right";
4000 description { state: "default" 0.0;
4002 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
4012 part { name: "elm.text";
4016 description { state: "default" 0.0;
4019 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
4021 font: "Tizen:style=Regular";
4022 size: BUTTON_CONTACT_FONT_SIZE_INC;
4024 text_class: "tizen";
4027 description { state: "visible" 0.0;
4028 inherit: "default" 0.0;
4032 description { state: "clicked" 0.0;
4033 inherit: "default" 0.0;
4036 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
4038 description { state: "disabled" 0.0;
4039 inherit: "default" 0.0;
4041 description { state: "disabled_visible" 0.0;
4042 inherit: "default" 0.0;
4043 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
4047 description { state: "focused" 0.0;
4048 inherit: "default" 0.0;
4051 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
4054 part { name: "over1";
4057 description { state: "default" 0.0;
4058 rel2.relative: 1.0 0.5;
4062 part { name: "over2";
4065 ignore_flags: ON_HOLD;
4066 description { state: "default" 0.0;
4067 rel1.to: "button_image";
4068 rel2.to: "button_image";
4072 part { name: "over3";
4075 description { state: "default" 0.0;
4076 rel1.to: "button_image";
4077 rel2.to: "button_image";
4081 part { name: "disabler";
4083 description { state: "default" 0.0;
4084 rel1.to: "button_image";
4085 rel2.to: "button_image";
4089 description { state: "disabled" 0.0;
4090 inherit: "default" 0.0;
4096 program { name: "button_click";
4097 signal: "mouse,down,1";
4099 action: SIGNAL_EMIT "elm,action,press" "";
4100 after: "button_click_anim";
4102 program { name: "button_click_anim";
4103 action: STATE_SET "clicked" 0.0;
4104 target: "button_image";
4107 program { name: "button_double_click";
4108 signal: "mouse,down,1,double";
4110 after: "button_click_anim";
4112 program { name: "button_unpress";
4113 action: SIGNAL_EMIT "elm,action,unpress" "";
4115 program { name: "button_mouseout_clicked";
4116 signal: "mouse,up,1";
4121 get_state(PART:"elm.text", st, 30, vl);
4122 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4124 emit("elm,action,default,text,set", "");
4125 set_state(PART:"elm.text", "visible", 0.0);
4127 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4128 set_state(PART:"button_image", "default", 0.0);
4130 after: button_unpress;
4132 program { name: "touch_snd";
4133 signal: "mouse,clicked,1";
4135 action: PLAY_SAMPLE "touch_sound" 1.0;
4136 after: button_unclick3;
4138 program { name: "button_unclick3";
4139 action: SIGNAL_EMIT "elm,action,click" "";
4141 program { name: "text_show";
4142 signal: "elm,state,text,visible";
4145 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4146 set_state(PART:"elm.text", "visible", 0.0);
4148 set_state(PART:"elm.text", "disabled_visible", 0.0);
4151 program { name: "text_hide";
4152 signal: "elm,state,text,hidden";
4154 action: STATE_SET "default" 0.0;
4157 program { name: "disable";
4158 signal: "elm,state,disabled";
4160 action: STATE_SET "disabled" 0.0;
4161 target: "button_image";
4163 after: "disable_text";
4165 program { name: "disable_text";
4169 get_state(PART:"elm.text", st, 30, vl);
4170 if (!strcmp(st, "visible"))
4171 set_state(PART:"elm.text", "disabled_visible", 0.0);
4173 set_state(PART:"elm.text", "disabled", 0.0);
4174 set_int(button_state, BUTTON_STATE_DISABLED);
4177 program { name: "enable";
4178 signal: "elm,state,enabled";
4180 action: STATE_SET "default" 0.0;
4181 target: "button_image";
4183 after: "enable_text";
4185 program { name: "enable_text";
4189 get_state(PART:"elm.text", st, 30, vl);
4190 if (!strcmp(st, "disabled_visible"))
4191 set_state(PART:"elm.text", "visible", 0.0);
4193 set_state(PART:"elm.text", "default", 0.0);
4194 set_int(button_state, BUTTON_STATE_ENABLED);
4197 program { name: "focused";
4198 //signal: "elm,action,focus";
4200 action: STATE_SET "focused" 0.0;
4201 target: "button_image";
4204 program { name: "unfocused";
4205 //signal: "elm,action,unfocus";
4207 action: STATE_SET "default" 0.0;
4208 target: "button_image";
4209 action: STATE_SET "visible" 0.0;
4215 ///////////////////////////////////////////////////////////////////////////////////////
4216 group { name: "elm/button/base/naviframe/back_btn/default";
4217 alias: "elm/button/base/naviframe/prev_btn/default";
4218 alias: "elm/button/base/naviframe/end_btn/default";
4220 image: "00_icon_back.png" COMP;
4221 image: "00_icon_SIP_close.png" COMP;
4224 part { name: "button_image";
4227 description { state: "default" 0.0;
4228 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4229 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4232 description { state: "landscape" 0.0;
4233 min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4234 max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4238 part { name: "back_button";
4241 clip_to: "back_button.clipper";
4242 description { state: "default" 0.0;
4243 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4244 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4246 rel1.to: "button_image";
4247 rel2.to: "button_image";
4248 image.normal: "00_icon_back.png";
4250 description { state: "compress" 0.0;
4251 inherit: "default" 0.0;
4252 image.normal: "00_icon_SIP_close.png";
4255 part { name: "back_button.clipper";
4257 description { state: "default" 0.0;
4258 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4260 description { state: "clicked" 0.0;
4261 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4263 description { state: "disabled" 0.0;
4264 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4267 part { name: "over2";
4269 ignore_flags: ON_HOLD;
4270 description { state: "default" 0.0;
4274 part { name: "over3";
4277 description { state: "default" 0.0;
4281 part { name: "disabler";
4283 description { state: "default" 0.0;
4287 description { state: "disabled" 0.0;
4288 inherit: "default" 0.0;
4294 program { name: "button_click";
4295 signal: "mouse,down,1";
4297 action: SIGNAL_EMIT "elm,action,press" "";
4298 after: "button_click_anim";
4300 program { name: "button_click_anim";
4302 set_state(PART:"back_button.clipper", "clicked", 0.0);
4305 program { name: "button_double_click";
4306 signal: "mouse,down,1,double";
4308 after: "button_click_anim";
4310 program { name: "button_unclick";
4311 signal: "mouse,up,1";
4313 action: SIGNAL_EMIT "elm,action,unpress" "";
4314 after: "button_unclick_anim";
4316 program { name: "button_unclick_anim";
4318 set_state(PART:"back_button.clipper", "default", 0.0);
4321 program { name: "touch_snd";
4322 signal: "mouse,clicked,1";
4324 action: PLAY_SAMPLE "touch_sound" 1.0;
4325 after: button_unclick3;
4327 program { name: "button_unclick3";
4328 action: SIGNAL_EMIT "elm,action,click" "";
4330 program { name: "disable";
4331 signal: "elm,state,disabled";
4334 set_state(PART:"back_button.clipper", "disabled", 0.0);
4337 program { name: "enable";
4338 signal: "elm,state,enabled";
4341 set_state(PART:"back_button.clipper", "default", 0.0);
4344 program { name: "change_to_landscape";
4345 signal: "elm,state,landscape";
4347 action: STATE_SET "landscape" 0.0;
4348 target: "button_image";
4350 program { name: "change_to_portrait";
4351 signal: "elm,state,portrait";
4353 action: STATE_SET "default" 0.0;
4354 target: "button_image";
4356 program { name: "landscape_mode";
4358 signal: "elm,state,orient,90";
4359 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4361 program { name: "landscape_mode2";
4363 signal: "elm,state,orient,270";
4364 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4366 program { name: "portrait_mode";
4368 signal: "elm,state,orient,0";
4369 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4371 program { name: "portrait_mode2";
4373 signal: "elm,state,orient,180";
4374 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4376 program { name: "display_compress_mode";
4377 signal: "elm,state,display,compress";
4379 action: STATE_SET "compress" 0.0;
4380 target: "back_button";
4382 program { name: "display_default_mode";
4383 signal: "elm,state,display,default";
4385 action: STATE_SET "default" 0.0;
4386 target: "back_button";
4391 //////////////////////////////////////////////////////////////
4392 group { name: "elm/button/base/naviframe/toolbar/default";
4393 alias: "elm/button/base/naviframe/title/default";
4395 image: "00_toolbar_button.png" COMP;
4396 image: "00_toolbar_button_press.png" COMP;
4397 image: "00_toolbar_button_dim.png" COMP;
4398 image: "00_badge_bg.png" COMP;
4401 style { name: "btn_naviframe_toolbar";
4402 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_NORMAL_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4407 style { name: "btn_naviframe_toolbar_pressed";
4408 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_PRESSED_COLOR_INC" style=shadow,top shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4413 style { name: "btn_naviframe_toolbar_disabled";
4414 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_DISABLED_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4421 public button_state = BUTTON_STATE_ENABLED;
4424 part { name: "button_image";
4426 description { state: "default" 0.0;
4427 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4428 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4430 rel1.to: "padding_text_left_top";
4431 rel2.to: "padding_text_right_bottom";
4433 normal: "00_toolbar_button.png";
4434 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4438 description { state: "clicked" 0.0;
4439 inherit: "default" 0.0;
4440 image.normal: "00_toolbar_button_press.png";
4442 description { state: "disabled" 0.0;
4443 inherit: "default" 0.0;
4444 image.normal: "00_toolbar_button_dim.png";
4446 description { state: "focused" 0.0;
4447 inherit: "default" 0.0;
4448 image.normal: "00_toolbar_button_press.png";
4451 part { name: "padding_left_top";
4455 description { state: "default" 0.0;
4458 rel2.relative: 0.0 0.0;
4459 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4463 part { name: "padding_right_bottom";
4467 description { state: "default" 0.0;
4469 rel1.relative: 1.0 1.0;
4470 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4475 part { name: "padding_text_left_top";
4479 description { state: "default" 0.0;
4481 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4483 rel1.to: "elm.text";
4491 part { name: "padding_text_right_bottom";
4495 description { state: "default" 0.0;
4496 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4503 rel2.to: "elm.text";
4507 part { name: "elm.text";
4512 description { state: "default" 0.0;
4515 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4518 to: "padding_left_top";
4522 to: "padding_right_bottom";
4527 style: "btn_naviframe_toolbar";
4530 description { state: "visible" 0.0;
4531 inherit: "default" 0.0;
4534 description { state: "clicked" 0.0;
4535 inherit: "default" 0.0;
4538 style: "btn_naviframe_toolbar_pressed";
4541 description { state: "disabled" 0.0;
4542 inherit: "default" 0.0;
4544 description { state: "disabled_visible" 0.0;
4545 inherit: "default" 0.0;
4548 style: "btn_naviframe_toolbar_disabled";
4551 description { state: "focused" 0.0;
4552 inherit: "default" 0.0;
4555 style: "btn_naviframe_toolbar_pressed";
4559 part { name: "disclip";
4561 description { state: "default" 0.0;
4562 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4564 description { state: "disabled" 0.0;
4565 inherit: "default" 0.0;
4566 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4569 part { name: "over2";
4572 ignore_flags: ON_HOLD;
4573 description { state: "default" 0.0;
4574 rel1.to: "button_image";
4575 rel2.to: "button_image";
4579 part { name: "over3";
4582 description { state: "default" 0.0;
4583 rel1.to: "button_image";
4584 rel2.to: "button_image";
4588 part { name: "disabler";
4590 description { state: "default" 0.0;
4591 rel1.to: "button_image";
4592 rel2.to: "button_image";
4596 description { state: "disabled" 0.0;
4597 inherit: "default" 0.0;
4603 program { name: "button_click";
4604 signal: "mouse,down,1";
4606 action: SIGNAL_EMIT "elm,action,press" "";
4607 after: "button_click_anim";
4609 program { name: "button_click_anim";
4610 action: STATE_SET "clicked" 0.0;
4611 target: "button_image";
4614 program { name: "button_double_click";
4615 signal: "mouse,down,1,double";
4617 after: "button_click_anim";
4619 program { name: "button_unpress";
4620 action: SIGNAL_EMIT "elm,action,unpress" "";
4622 program { name: "button_mouseout_clicked";
4623 signal: "mouse,up,1";
4628 get_state(PART:"elm.text", st, 30, vl);
4629 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4631 emit("elm,action,default,text,set", "");
4632 set_state(PART:"elm.text", "visible", 0.0);
4634 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4635 set_state(PART:"button_image", "default", 0.0);
4637 after: button_unpress;
4639 program { name: "touch_snd";
4640 signal: "mouse,clicked,1";
4642 action: PLAY_SAMPLE "touch_sound" 1.0;
4643 after: button_unclick3;
4645 program { name: "button_unclick3";
4646 action: SIGNAL_EMIT "elm,action,click" "";
4648 program { name: "text_show";
4649 signal: "elm,state,text,visible";
4652 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4653 set_state(PART:"elm.text", "visible", 0.0);
4655 set_state(PART:"elm.text", "disabled_visible", 0.0);
4658 program { name: "text_hide";
4659 signal: "elm,state,text,hidden";
4661 action: STATE_SET "default" 0.0;
4664 program { name: "disable";
4665 signal: "elm,state,disabled";
4667 action: STATE_SET "disabled" 0.0;
4668 target: "button_image";
4671 after: "disable_text";
4673 program { name: "disable_text";
4677 get_state(PART:"elm.text", st, 30, vl);
4678 if (!strcmp(st, "visible"))
4679 set_state(PART:"elm.text", "disabled_visible", 0.0);
4681 set_state(PART:"elm.text", "disabled", 0.0);
4682 set_int(button_state, BUTTON_STATE_DISABLED);
4685 program { name: "enable";
4686 signal: "elm,state,enabled";
4688 action: STATE_SET "default" 0.0;
4689 target: "button_image";
4692 after: "enable_text";
4694 program { name: "enable_text";
4698 get_state(PART:"elm.text", st, 30, vl);
4699 if (!strcmp(st, "disabled_visible"))
4700 set_state(PART:"elm.text", "visible", 0.0);
4702 set_state(PART:"elm.text", "default", 0.0);
4703 set_int(button_state, BUTTON_STATE_ENABLED);
4706 program { name: "focused";
4707 //signal: "elm,action,focus";
4709 action: STATE_SET "focused" 0.0;
4710 target: "button_image";
4713 program { name: "unfocused";
4714 //signal: "elm,action,unfocus";
4716 action: STATE_SET "default" 0.0;
4717 target: "button_image";
4718 action: STATE_SET "visible" 0.0;
4724 //////////////////////////////////////////////////////////////
4725 group { name: "elm/button/base/naviframe/toolbar/left";
4726 inherit: "elm/button/base/naviframe/toolbar/default";
4728 part { name: "button_image";
4730 description { state: "default" 0.0;
4731 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4732 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4734 rel1.to: "padding_text_left_top";
4735 rel2.to: "padding_text_right_bottom";
4738 normal: "00_toolbar_button.png";
4739 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4743 description { state: "clicked" 0.0;
4744 inherit: "default" 0.0;
4745 image.normal: "00_toolbar_button_press.png";
4747 description { state: "disabled" 0.0;
4748 inherit: "default" 0.0;
4749 image.normal: "00_toolbar_button_dim.png";
4751 description { state: "focused" 0.0;
4752 inherit: "default" 0.0;
4753 image.normal: "00_toolbar_button_press.png";
4756 part { name: "elm.text";
4761 description { state: "default" 0.0;
4764 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4767 to: "padding_left_top";
4771 to: "padding_right_bottom";
4777 style: "btn_naviframe_toolbar";
4780 description { state: "visible" 0.0;
4781 inherit: "default" 0.0;
4784 description { state: "clicked" 0.0;
4785 inherit: "default" 0.0;
4788 style: "btn_naviframe_toolbar_pressed";
4791 description { state: "disabled" 0.0;
4792 inherit: "default" 0.0;
4794 description { state: "disabled_visible" 0.0;
4795 inherit: "default" 0.0;
4798 style: "btn_naviframe_toolbar_disabled";
4801 description { state: "focused" 0.0;
4802 inherit: "default" 0.0;
4805 style: "btn_naviframe_toolbar_pressed";
4812 //////////////////////////////////////////////////////////////
4813 group { name: "elm/button/base/naviframe/toolbar/right";
4814 inherit: "elm/button/base/naviframe/toolbar/default";
4816 part { name: "button_image";
4818 description { state: "default" 0.0;
4819 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4820 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4822 rel1.to: "padding_text_left_top";
4823 rel2.to: "padding_text_right_bottom";
4826 normal: "00_toolbar_button.png";
4827 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4831 description { state: "clicked" 0.0;
4832 inherit: "default" 0.0;
4833 image.normal: "00_toolbar_button_press.png";
4835 description { state: "disabled" 0.0;
4836 inherit: "default" 0.0;
4837 image.normal: "00_toolbar_button_dim.png";
4839 description { state: "focused" 0.0;
4840 inherit: "default" 0.0;
4841 image.normal: "00_toolbar_button_press.png";
4844 part { name: "elm.text";
4849 description { state: "default" 0.0;
4852 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4855 to: "padding_left_top";
4859 to: "padding_right_bottom";
4865 style: "btn_naviframe_toolbar";
4868 description { state: "visible" 0.0;
4869 inherit: "default" 0.0;
4872 description { state: "clicked" 0.0;
4873 inherit: "default" 0.0;
4876 style: "btn_naviframe_toolbar_pressed";
4879 description { state: "disabled" 0.0;
4880 inherit: "default" 0.0;
4882 description { state: "disabled_visible" 0.0;
4883 inherit: "default" 0.0;
4886 style: "btn_naviframe_toolbar_disabled";
4889 description { state: "focused" 0.0;
4890 inherit: "default" 0.0;
4893 style: "btn_naviframe_toolbar_pressed";
4900 ////////////////////////////////////////////////////////////////////
4901 group { name: "elm/button/base/toolbar/segmentedcontrol";
4903 image: "00_toolbar_button.png" COMP;
4904 image: "00_toolbar_button_press.png" COMP;
4905 image: "00_toolbar_button_dim.png" COMP;
4906 image: "00_button_icon_arrow.png" COMP;
4907 image: "00_button_icon_arrow_press.png" COMP;
4910 style { name: "btn_toolbar_segmentedcontrol";
4911 base: "font=Tizen:style=Bold font_size="BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXT_FONT_SIZE_INC" align=center color=#ffffff ellipsis=1.0 wrap=none text_class=tizen";
4918 public button_state = BUTTON_STATE_ENABLED;
4921 part { name: "button_image";
4923 description { state: "default" 0.0;
4924 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
4925 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
4927 rel1.to: "padding_text_left_top";
4928 rel2.to: "padding_text_right_bottom";
4930 normal: "00_toolbar_button.png";
4931 border: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_BORDER_INC;
4935 description { state: "clicked" 0.0;
4936 inherit: "default" 0.0;
4937 image.normal: "00_toolbar_button_press.png";
4939 description { state: "disabled" 0.0;
4940 inherit: "default" 0.0;
4941 image.normal: "00_toolbar_button_dim.png";
4943 description { state: "focused" 0.0;
4944 inherit: "default" 0.0;
4945 image.normal: "00_toolbar_button_press.png";
4948 part { name: "padding_left_top";
4952 description { state: "default" 0.0;
4955 rel2.relative: 0.0 0.0;
4956 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4960 part { name: "padding_right_bottom";
4964 description { state: "default" 0.0;
4966 rel1.relative: 1.0 1.0;
4967 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
4972 part { name: "padding_text_left_top";
4976 description { state: "default" 0.0;
4978 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4980 rel1.to: "elm.text";
4988 part { name: "padding_text_right_bottom";
4992 description { state: "default" 0.0;
4993 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
5009 part { name: "elm.text";
5013 effect: FAR_SHADOW BOTTOM;
5015 description { state: "default" 0.0;
5018 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXTBLOCK_MIN_INC;
5021 to: "padding_left_top";
5025 to: "padding_right_bottom";
5027 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
5028 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5032 style: "btn_toolbar_segmentedcontrol";
5035 description { state: "visible" 0.0;
5036 inherit: "default" 0.0;
5039 description { state: "clicked" 0.0;
5040 inherit: "default" 0.0;
5042 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
5044 description { state: "disabled" 0.0;
5045 inherit: "default" 0.0;
5047 description { state: "disabled_visible" 0.0;
5048 inherit: "default" 0.0;
5049 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
5050 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5053 description { state: "focused" 0.0;
5054 inherit: "default" 0.0;
5056 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
5059 part { name: "icon_padding";
5062 description { state: "default" 0.0;
5071 rel2.to: "elm.text";
5074 part { name: "icon";
5076 clip_to: "icon_clipper";
5077 description { state: "default" 0.0;
5078 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5079 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5084 to_x: "icon_padding";
5090 to_x: "icon_padding";
5093 image.normal: "00_button_icon_arrow.png";
5095 description { state: "clicked" 0.0;
5096 inherit: "default" 0.0;
5097 image.normal: "00_button_icon_arrow_press.png";
5100 part { name: "icon_clipper";
5102 description { state: "default" 0.0;
5103 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_NORMAL_COLOR_INC;
5105 description { state: "clicked" 0.0;
5106 inherit: "default" 0.0;
5107 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_PRESSED_COLOR_INC;
5110 part { name: "disclip";
5112 description { state: "default" 0.0;
5113 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5115 description { state: "disabled" 0.0;
5116 inherit: "default" 0.0;
5117 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5120 part { name: "over2";
5123 ignore_flags: ON_HOLD;
5124 description { state: "default" 0.0;
5125 rel1.to: "button_image";
5126 rel2.to: "button_image";
5130 part { name: "over3";
5133 description { state: "default" 0.0;
5134 rel1.to: "button_image";
5135 rel2.to: "button_image";
5139 part { name: "disabler";
5141 description { state: "default" 0.0;
5142 rel1.to: "button_image";
5143 rel2.to: "button_image";
5147 description { state: "disabled" 0.0;
5148 inherit: "default" 0.0;
5154 program { name: "button_click";
5155 signal: "mouse,down,1";
5157 action: SIGNAL_EMIT "elm,action,press" "";
5158 after: "button_click_anim";
5160 program { name: "button_click_anim";
5161 action: STATE_SET "clicked" 0.0;
5162 target: "button_image";
5165 target: "icon_clipper";
5167 program { name: "button_double_click";
5168 signal: "mouse,down,1,double";
5170 after: "button_click_anim";
5172 program { name: "button_unpress";
5173 action: SIGNAL_EMIT "elm,action,unpress" "";
5175 program { name: "button_mouseout_clicked";
5176 signal: "mouse,up,1";
5181 get_state(PART:"elm.text", st, 30, vl);
5182 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5184 emit("elm,action,default,text,set", "");
5185 set_state(PART:"elm.text", "visible", 0.0);
5187 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5188 set_state(PART:"button_image", "default", 0.0);
5189 set_state(PART:"icon", "default", 0.0);
5190 set_state(PART:"icon_clipper", "default", 0.0);
5192 after: button_unpress;
5194 program { name: "touch_snd";
5195 signal: "mouse,clicked,1";
5197 action: PLAY_SAMPLE "touch_sound" 1.0;
5198 after: button_unclick3;
5200 program { name: "button_unclick3";
5201 action: SIGNAL_EMIT "elm,action,click" "";
5203 program { name: "text_show";
5204 signal: "elm,state,text,visible";
5207 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5208 set_state(PART:"elm.text", "visible", 0.0);
5210 set_state(PART:"elm.text", "disabled_visible", 0.0);
5213 program { name: "text_hide";
5214 signal: "elm,state,text,hidden";
5216 action: STATE_SET "default" 0.0;
5219 program { name: "disable";
5220 signal: "elm,state,disabled";
5222 action: STATE_SET "disabled" 0.0;
5223 target: "button_image";
5226 after: "disable_text";
5228 program { name: "disable_text";
5232 get_state(PART:"elm.text", st, 30, vl);
5233 if (!strcmp(st, "visible"))
5234 set_state(PART:"elm.text", "disabled_visible", 0.0);
5236 set_state(PART:"elm.text", "disabled", 0.0);
5237 set_int(button_state, BUTTON_STATE_DISABLED);
5240 program { name: "enable";
5241 signal: "elm,state,enabled";
5243 action: STATE_SET "default" 0.0;
5244 target: "button_image";
5247 after: "enable_text";
5249 program { name: "enable_text";
5253 get_state(PART:"elm.text", st, 30, vl);
5254 if (!strcmp(st, "disabled_visible"))
5255 set_state(PART:"elm.text", "visible", 0.0);
5257 set_state(PART:"elm.text", "default", 0.0);
5258 set_int(button_state, BUTTON_STATE_ENABLED);
5261 program { name: "focused";
5262 //signal: "elm,action,focus";
5264 action: STATE_SET "focused" 0.0;
5265 target: "button_image";
5268 program { name: "unfocused";
5269 //signal: "elm,action,unfocus";
5271 action: STATE_SET "default" 0.0;
5272 target: "button_image";
5273 action: STATE_SET "visible" 0.0;
5279 ////////////////////////////////////////////////////////////////////
5280 group { name: "elm/button/base/naviframe/title_icon";
5282 part { name: "button_image";
5285 description { state: "default" 0.0;
5287 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5288 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5290 description { state: "landscape" 0.0;
5292 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5293 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5296 part { name: "top_padding";
5299 description { state: "default" 0.0;
5301 min: BUTTON_NAVIFRAME_TITLE_ICON_TOP_PADDING_INC;
5304 rel1 { relative: 0.0 0.0; to: "button_image"; }
5305 rel2 { relative: 1.0 0.0; to: "button_image"; }
5307 description { state: "landscape" 0.0;
5308 inherit: "default" 0.0;
5309 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_TOP_PADDING_INC;
5312 part { name: "elm.swallow.content";
5315 clip_to: "elm.icon.clipper";
5316 description { state: "default" 0.0;
5318 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5321 rel1 { relative: 0.0 1.0; to: "top_padding"; }
5322 rel2 { relative: 1.0 1.0; to: "button_image"; }
5324 description { state: "visible" 0.0;
5325 inherit: "default" 0.0;
5329 part { name: "elm.swallow.icon.proxy";
5332 clip_to: "elm.icon.proxy.clipper";
5333 description { state: "default" 0.0;
5334 source: "elm.swallow.content";
5335 rel1.to: "elm.swallow.content";
5337 rel2.to: "elm.swallow.content";
5341 part { name: "elm.icon.proxy.clipper";
5343 description { state: "default" 0.0;
5344 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5346 description { state: "clicked" 0.0;
5347 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5349 description { state: "disabled" 0.0;
5350 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5353 part { name: "elm.icon.clipper";
5355 description { state: "default" 0.0;
5356 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5358 description { state: "clicked" 0.0;
5359 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5361 description { state: "disabled" 0.0;
5362 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5365 part { name: "over2";
5367 ignore_flags: ON_HOLD;
5368 description { state: "default" 0.0;
5372 part { name: "over3";
5375 description { state: "default" 0.0;
5379 part { name: "disabler";
5381 description { state: "default" 0.0;
5385 description { state: "disabled" 0.0;
5386 inherit: "default" 0.0;
5392 program { name: "button_click";
5393 signal: "mouse,down,1";
5395 action: SIGNAL_EMIT "elm,action,press" "";
5396 after: "button_click_anim";
5398 program { name: "button_click_anim";
5400 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5401 set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0);
5404 program { name: "button_double_click";
5405 signal: "mouse,down,1,double";
5407 after: "button_click_anim";
5409 program { name: "button_unpress";
5410 action: SIGNAL_EMIT "elm,action,unpress" "";
5412 program { name: "button_mouseout_clicked";
5413 signal: "mouse,up,1";
5415 action: STATE_SET "default" 0.0;
5416 target: "elm.icon.clipper";
5417 target: "elm.icon.proxy.clipper";
5418 after: button_unpress;
5420 program { name: "touch_snd";
5421 signal: "mouse,clicked,1";
5423 action: PLAY_SAMPLE "touch_sound" 1.0;
5424 after: button_unclick3;
5426 program { name: "button_unclick3";
5427 action: SIGNAL_EMIT "elm,action,click" "";
5429 program { name: "icon_show";
5430 signal: "elm,state,icon,visible";
5432 action: STATE_SET "visible" 0.0;
5433 target: "elm.swallow.content";
5435 program { name: "icon_hide";
5436 signal: "elm,state,icon,hidden";
5438 action: STATE_SET "default" 0.0;
5439 target: "elm.swallow.content";
5441 program { name: "disable";
5442 signal: "elm,state,disabled";
5445 set_state(PART:"disabler", "disabled", 0.0);
5446 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5447 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
5450 program { name: "enable";
5451 signal: "elm,state,enabled";
5454 set_state(PART:"disabler", "default", 0.0);
5455 set_state(PART:"elm.icon.clipper", "default", 0.0);
5456 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
5459 program { name: "change_to_landscape";
5460 signal: "elm,state,landscape";
5462 action: STATE_SET "landscape" 0.0;
5463 target: "button_image";
5464 target: "top_padding";
5466 program { name: "change_to_portrait";
5467 signal: "elm,state,portrait";
5469 action: STATE_SET "default" 0.0;
5470 target: "button_image";
5471 target: "top_padding";
5473 /* program { name: "landscape_mode";
5475 signal: "elm,state,orient,90";
5476 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5478 program { name: "landscape_mode2";
5480 signal: "elm,state,orient,270";
5481 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5483 program { name: "portrait_mode";
5485 signal: "elm,state,orient,0";
5486 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5488 program { name: "portrait_mode2";
5490 signal: "elm,state,orient,180";
5491 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5496 /////////////////////////////////////////////////////////////////////////////////////////
5497 group { name: "elm/button/base/naviframe/more/default";
5499 image: "00_icon_more.png" COMP;
5502 part { name: "button_image";
5505 description { state: "default" 0.0;
5506 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5507 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5510 description { state: "landscape" 0.0;
5511 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5512 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5516 part { name: "more_image";
5519 clip_to: "more_image.clipper";
5520 description { state: "default" 0.0;
5521 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5522 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5524 rel1.to: "button_image";
5525 rel2.to: "button_image";
5526 image.normal: "00_icon_more.png";
5529 part { name: "more_image.clipper";
5531 description { state: "default" 0.0;
5532 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5534 description { state: "clicked" 0.0;
5535 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5537 description { state: "disabled" 0.0;
5538 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5541 part { name: "elm.text.badge.bg";
5545 state: "default" 0.0;
5548 to: "left.padding.text.badge";
5552 to: "right.padding.text.badge";
5557 normal: "00_badge_bg.png";
5562 description { state: "visible" 0.0;
5563 inherit: "default" 0.0;
5567 part { name: "left.padding.text.badge";
5571 state: "default" 0.0;
5576 to: "elm.text.badge";
5580 to: "elm.text.badge";
5586 part { name: "right.padding.text.badge";
5590 state: "default" 0.0;
5605 part { name: "elm.text.badge";
5610 state: "default" 0.0;
5618 to: "right.padding.text.badge";
5622 color: 10 100 208 255;
5624 font: "Tizen:style=Bold";
5630 description { state: "visible" 0.0;
5631 inherit: "default" 0.0;
5635 part { name: "over2";
5637 ignore_flags: ON_HOLD;
5638 description { state: "default" 0.0;
5642 part { name: "over3";
5645 description { state: "default" 0.0;
5649 part { name: "disabler";
5651 description { state: "default" 0.0;
5655 description { state: "disabled" 0.0;
5656 inherit: "default" 0.0;
5662 program { name: "button_click";
5663 signal: "mouse,down,1";
5665 action: SIGNAL_EMIT "elm,action,press" "";
5666 after: "button_click_anim";
5668 program { name: "button_click_anim";
5670 set_state(PART:"more_image.clipper", "clicked", 0.0);
5673 program { name: "button_double_click";
5674 signal: "mouse,down,1,double";
5676 after: "button_click_anim";
5678 program { name: "button_unclick";
5679 signal: "mouse,up,1";
5681 action: SIGNAL_EMIT "elm,action,unpress" "";
5682 after: "button_unclick_anim";
5684 program { name: "button_unclick_anim";
5686 set_state(PART:"more_image.clipper", "default", 0.0);
5689 program { name: "touch_snd";
5690 signal: "mouse,clicked,1";
5692 action: PLAY_SAMPLE "touch_sound" 1.0;
5693 after: button_unclick3;
5695 program { name: "button_unclick3";
5696 action: SIGNAL_EMIT "elm,action,click" "";
5698 program { name: "badge_text_show";
5699 signal: "elm,state,elm.text.badge,visible";
5701 action: STATE_SET "visible" 0.0;
5702 target: "elm.text.badge";
5703 target: "elm.text.badge.bg";
5705 program { name: "badge_text_hide";
5706 signal: "elm,state,elm.text.badge,hidden";
5708 action: STATE_SET "default" 0.0;
5709 target: "elm.text.badge";
5710 target: "elm.text.badge.bg";
5712 program { name: "disable";
5713 signal: "elm,state,disabled";
5716 set_state(PART:"disabler", "disabled", 0.0);
5717 set_state(PART:"more_image.clipper", "disabled", 0.0);
5720 program { name: "enable";
5721 signal: "elm,state,enabled";
5724 set_state(PART:"disabler", "default", 0.0);
5725 set_state(PART:"more_image.clipper", "default", 0.0);
5728 program { name: "change_to_landscape";
5729 signal: "elm,state,landscape";
5731 action: STATE_SET "landscape" 0.0;
5732 target: "button_image";
5734 program { name: "change_to_portrait";
5735 signal: "elm,state,portrait";
5737 action: STATE_SET "default" 0.0;
5738 target: "button_image";
5740 program { name: "landscape_mode";
5742 signal: "elm,state,orient,90";
5743 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5745 program { name: "landscape_mode2";
5747 signal: "elm,state,orient,270";
5748 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5750 program { name: "portrait_mode";
5752 signal: "elm,state,orient,0";
5753 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5755 program { name: "portrait_mode2";
5757 signal: "elm,state,orient,180";
5758 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5763 ///////////////////////////////////////////////////////////////////////////////////////
5764 group { name: "elm/button/base/tickernoti";
5766 image: "00_notification_button_bg.png" COMP;
5767 image: "00_notification_button_bg_press.png" COMP;
5768 image: "00_notification_button_bg_dim.png" COMP;
5771 public button_state = BUTTON_STATE_ENABLED;
5774 part { name: "button_image";
5776 description { state: "default" 0.0;
5777 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5778 max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5780 normal: "00_notification_button_bg.png";
5781 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
5785 description { state: "clicked" 0.0;
5786 inherit: "default" 0.0;
5787 image.normal: "00_notification_button_bg_press.png";
5789 description { state: "disabled" 0.0;
5790 inherit: "default" 0.0;
5791 image.normal: "00_notification_button_bg_dim.png";
5793 description { state: "focused" 0.0;
5794 inherit: "default" 0.0;
5795 image.normal: "00_notification_button_bg_press.png";
5798 part { name: "padding_left_top";
5802 description { state: "default" 0.0;
5805 rel2.relative: 0.0 0.0;
5806 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5814 description { state: "default" 0.0;
5815 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5818 description { state: "visible" 0.0;
5819 inherit: "default" 0.0;
5821 description { state: "icononly" 0.0;
5822 inherit: "default" 0.0;
5825 part { name: "padding_right_bottom";
5829 description { state: "default" 0.0;
5831 rel1.relative: 1.0 1.0;
5832 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5837 part { name: "icon_rect";
5841 description { state: "default" 0.0;
5847 to: "padding_left_top";
5851 to_x: "padding_left_top";
5852 to_y: "padding_right_bottom";
5856 description { state: "visible" 0.0;
5857 inherit: "default" 0.0;
5858 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5859 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5861 description { state: "icononly" 0.0;
5862 inherit: "default" 0.0;
5865 part { name: "padding_after_icon";
5869 description { state: "default" 0.0; //when only icon or no icon is there
5878 rel2.to: "icon_rect";
5880 description { state: "visible" 0.0;
5881 inherit: "default" 0.0;
5882 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5884 description { state: "icononly" 0.0;
5885 inherit: "default" 0.0;
5888 part { name: "padding_before_text";
5892 description { state: "default" 0.0; //when only icon or no icon is there
5896 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5900 to_y: "padding_left_top";
5905 to_y: "padding_right_bottom";
5909 part { name: "elm.swallow.content";
5913 description { state: "default" 0.0;
5919 to: "padding_left_top";
5923 to_x: "padding_left_top";
5924 to_y: "padding_right_bottom";
5927 description { state: "visible" 0.0;
5929 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5930 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5934 to_x: "padding_before_text";
5935 to_y: "padding_left_top";
5939 to_x: "padding_before_text";
5940 to_y: "padding_right_bottom";
5943 description { state: "icononly" 0.0;
5944 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5945 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5948 part { name: "elm.text";
5951 effect: FAR_SHADOW BOTTOM;
5954 description { state: "default" 0.0;
5958 to_x: "padding_after_icon";
5959 to_y: "padding_left_top";
5963 to: "padding_right_bottom";
5965 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
5966 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5968 font: "Tizen:style=Regular";
5969 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
5970 text_class: "tizen";
5973 description { state: "visible" 0.0;
5974 inherit: "default" 0.0;
5977 description { state: "clicked" 0.0;
5978 inherit: "default" 0.0;
5980 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5982 description { state: "disabled" 0.0;
5983 inherit: "default" 0.0;
5985 description { state: "disabled_visible" 0.0;
5986 inherit: "default" 0.0;
5987 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
5988 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5991 description { state: "focused" 0.0;
5992 inherit: "default" 0.0;
5994 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5997 part { name: "over2";
6000 ignore_flags: ON_HOLD;
6001 description { state: "default" 0.0;
6005 part { name: "over3";
6008 description { state: "default" 0.0;
6012 part { name: "clipper";
6014 description { state: "default" 0.0;
6015 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
6017 description { state: "disabled" 0.0;
6018 inherit: "default" 0.0;
6019 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
6022 part { name: "disabler";
6024 description { state: "default" 0.0;
6028 description { state: "disabled" 0.0;
6029 inherit: "default" 0.0;
6035 program { name: "button_click";
6036 signal: "mouse,down,1";
6038 action: SIGNAL_EMIT "elm,action,press" "";
6039 after: "button_click_anim";
6041 program { name: "button_click_anim";
6042 action: STATE_SET "clicked" 0.0;
6043 target: "button_image";
6044 after: "text_clicked";
6046 program { name: "text_clicked";
6050 get_state(PART:"elm.text", st, 30, vl);
6051 if (!strcmp(st, "visible"))
6052 set_state(PART:"elm.text", "clicked", 0.0);
6055 program { name: "button_double_click";
6056 signal: "mouse,down,1,double";
6058 after: "button_click_anim";
6060 program { name: "button_unpress";
6061 action: SIGNAL_EMIT "elm,action,unpress" "";
6063 program { name: "button_mouseout_clicked";
6064 signal: "mouse,up,1";
6069 get_state(PART:"elm.swallow.content", st, 30, vl);
6070 if (strcmp(st, "icononly"))
6072 emit("elm,action,default,text,set", "");
6073 set_state(PART:"elm.text", "visible", 0.0);
6075 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6076 set_state(PART:"button_image", "default", 0.0);
6078 after: button_unpress;
6080 program { name: "touch_snd";
6081 signal: "mouse,clicked,1";
6083 action: PLAY_SAMPLE "touch_sound" 1.0;
6084 after: button_unclick3;
6086 program { name: "button_unclick3";
6087 action: SIGNAL_EMIT "elm,action,click" "";
6089 program { name: "text_show";
6090 signal: "elm,state,text,visible";
6095 get_state(PART:"elm.swallow.content", st, 30, vl);
6096 if (!strcmp(st, "icononly"))
6098 set_state(PART:"elm.swallow.content", "visible", 0.0);
6099 set_state(PART:"icon_rect", "visible", 0.0);
6100 set_state(PART:"padding_after_icon", "visible", 0.0);
6101 set_state(PART:"bg", "visible", 0.0);
6103 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6104 set_state(PART:"elm.text", "visible", 0.0);
6106 set_state(PART:"elm.text", "disabled_visible", 0.0);
6109 program { name: "text_hide";
6110 signal: "elm,state,text,hidden";
6115 get_state(PART:"elm.swallow.content", st, 30, vl);
6116 if (!strcmp(st, "visible"))
6118 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6119 set_state(PART:"icon_rect", "icononly", 0.0);
6120 set_state(PART:"padding_after_icon", "icononly", 0.0);
6121 set_state(PART:"bg", "icononly", 0.0);
6123 set_state(PART:"elm.text", "default", 0.0);
6126 program { name: "icon_show";
6127 signal: "elm,state,icon,visible";
6132 get_state(PART:"elm.text", st, 30, vl);
6133 if (!strcmp(st, "visible"))
6135 set_state(PART:"elm.swallow.content", "visible", 0.0);
6136 set_state(PART:"icon_rect", "visible", 0.0);
6137 set_state(PART:"padding_after_icon", "visible", 0.0);
6138 set_state(PART:"bg", "visible", 0.0);
6142 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6143 set_state(PART:"icon_rect", "icononly", 0.0);
6144 set_state(PART:"padding_after_icon", "icononly", 0.0);
6145 set_state(PART:"bg", "icononly", 0.0);
6149 program { name: "icon_hide";
6150 signal: "elm,state,icon,hidden";
6152 action: STATE_SET "default" 0.0;
6153 target: "elm.swallow.content";
6154 target: "padding_after_icon";
6155 target: "icon_rect";
6158 program { name: "disable";
6159 signal: "elm,state,disabled";
6161 action: STATE_SET "disabled" 0.0;
6162 target: "button_image";
6165 after: "disable_text";
6167 program { name: "disable_text";
6171 get_state(PART:"elm.text", st, 30, vl);
6172 if (!strcmp(st, "visible"))
6173 set_state(PART:"elm.text", "disabled_visible", 0.0);
6175 set_state(PART:"elm.text", "disabled", 0.0);
6176 set_int(button_state, BUTTON_STATE_DISABLED);
6179 program { name: "enable";
6180 signal: "elm,state,enabled";
6182 action: STATE_SET "default" 0.0;
6183 target: "button_image";
6186 after: "enable_text";
6188 program { name: "enable_text";
6192 get_state(PART:"elm.text", st, 30, vl);
6193 if (!strcmp(st, "disabled_visible"))
6194 set_state(PART:"elm.text", "visible", 0.0);
6196 set_state(PART:"elm.text", "default", 0.0);
6197 set_int(button_state, BUTTON_STATE_ENABLED);
6200 program { name: "focused";
6201 //signal: "elm,action,focus";
6203 action: STATE_SET "focused" 0.0;
6204 target: "button_image";
6207 program { name: "unfocused";
6208 //signal: "elm,action,unfocus";
6210 action: STATE_SET "default" 0.0;
6211 target: "button_image";
6212 after: "unfocus_text";
6214 program { name: "unfocus_text";
6215 action: STATE_SET "visible" 0.0;
6221 ///////////////////////////////////////////////////////////////////////////////////////
6222 group { name: "elm/button/base/expandable_number";
6223 alias: "elm/button/base/text_only/expandable_number";
6225 image: "00_button_01.png" COMP;
6226 image: "00_button_01_press.png" COMP;
6227 image: "00_button_01_dim.png" COMP;
6228 image: "00_arrow_expand.png" COMP;
6231 public button_state = BUTTON_STATE_ENABLED;
6234 part { name: "button_image";
6236 description { state: "default" 0.0;
6237 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6238 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6240 normal: "00_button_01.png";
6241 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6245 description { state: "clicked" 0.0;
6246 inherit: "default" 0.0;
6247 image.normal: "00_button_01_press.png";
6249 description { state: "disabled" 0.0;
6250 inherit: "default" 0.0;
6251 image.normal: "00_button_01_dim.png";
6253 description { state: "focused" 0.0;
6254 inherit: "default" 0.0;
6255 image.normal: "00_button_01_press.png";
6258 part { name: "padding_left_top";
6262 description { state: "default" 0.0;
6265 rel2.relative: 0.0 0.0;
6266 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6270 part { name: "padding_right_bottom";
6274 description { state: "default" 0.0;
6277 rel1.relative: 1.0 1.0;
6278 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6282 part { name: "icon_rect";
6286 description { state: "default" 0.0;
6288 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6289 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6293 to_x: "padding_right_bottom";
6294 to_y: "padding_left_top";
6298 to: "padding_right_bottom";
6303 part { name: "arrow_expand";
6305 clip_to: "icon_clipper";
6307 description { state: "default" 0.0;
6309 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6310 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6312 rel1.to: "icon_rect";
6313 rel2.to: "icon_rect";
6314 image.normal:"00_arrow_expand.png";
6317 part { name: "elm.text";
6320 effect: SHADOW BOTTOM;
6322 description { state: "default" 0.0;
6323 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6324 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6328 to: "padding_left_top";
6332 to_x:"padding_left_top";
6333 to_y:"padding_right_bottom";
6336 color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6337 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6339 font: "Tizen:style=Regular";
6340 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6344 text_class: "tizen";
6347 description { state: "visible" 0.0;
6348 inherit: "default" 0.0;
6350 description { state: "clicked" 0.0;
6351 inherit: "default" 0.0;
6352 color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
6354 description { state: "disabled" 0.0;
6355 inherit: "default" 0.0;
6357 description { state: "disabled_visible" 0.0;
6358 inherit: "default" 0.0;
6359 color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6360 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
6362 description { state: "focused" 0.0;
6363 inherit: "default" 0.0;
6364 color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6367 part { name: "icon_clipper";
6370 description { state: "default" 0.0;
6371 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6373 description { state: "clicked" 0.0;
6374 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6376 description { state: "disabled" 0.0;
6377 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6380 part { name: "over2";
6383 ignore_flags: ON_HOLD;
6384 description { state: "default" 0.0;
6388 part { name: "over3";
6391 description { state: "default" 0.0;
6395 part { name: "disabler";
6397 description { state: "default" 0.0;
6401 description { state: "disabled" 0.0;
6402 inherit: "default" 0.0;
6408 program { name: "button_click";
6409 signal: "mouse,down,1";
6411 action: SIGNAL_EMIT "elm,action,press" "";
6412 after: "button_click_anim";
6414 program { name: "button_click_anim";
6415 action: STATE_SET "clicked" 0.0;
6416 target: "button_image";
6417 target: "icon_clipper";
6418 after: "text_clicked";
6420 program { name: "text_clicked";
6424 get_state(PART:"elm.text", st, 30, vl);
6425 if (!strcmp(st, "visible"))
6426 set_state(PART:"elm.text", "clicked", 0.0);
6429 program { name: "button_double_click";
6430 signal: "mouse,down,1,double";
6432 after: "button_click_anim";
6434 program { name: "button_unpress";
6435 action: SIGNAL_EMIT "elm,action,unpress" "";
6437 program { name: "button_mouseout_clicked";
6438 signal: "mouse,up,1";
6441 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6443 set_state(PART:"button_image", "default", 0.0);
6444 set_state(PART:"elm.text", "visible", 0.0);
6445 set_state(PART:"icon_clipper", "default", 0.0);
6448 after: button_unpress;
6450 program { name: "touch_snd";
6451 signal: "mouse,clicked,1";
6453 action: PLAY_SAMPLE "touch_sound" 1.0;
6454 after: button_unclick3;
6456 program { name: "button_unclick3";
6457 action: SIGNAL_EMIT "elm,action,click" "";
6459 program { name: "text_show";
6460 signal: "elm,state,text,visible";
6463 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6464 set_state(PART:"elm.text", "visible", 0.0);
6466 set_state(PART:"elm.text", "disabled_visible", 0.0);
6469 program { name: "text_hide";
6470 signal: "elm,state,text,hidden";
6473 set_state(PART:"elm.text", "default", 0.0);
6476 program { name: "disable";
6477 signal: "elm,state,disabled";
6479 action: STATE_SET "disabled" 0.0;
6480 target: "button_image";
6482 target: "icon_clipper";
6483 after: "disable_text";
6485 program { name: "disable_text";
6489 get_state(PART:"elm.text", st, 30, vl);
6490 if (!strcmp(st, "visible"))
6491 set_state(PART:"elm.text", "disabled_visible", 0.0);
6493 set_state(PART:"elm.text", "disabled", 0.0);
6494 set_int(button_state, BUTTON_STATE_DISABLED);
6497 program { name: "enable";
6498 signal: "elm,state,enabled";
6500 action: STATE_SET "default" 0.0;
6501 target: "button_image";
6503 target: "icon_clipper";
6504 after: "enable_text";
6506 program { name: "enable_text";
6510 get_state(PART:"elm.text", st, 30, vl);
6511 if (!strcmp(st, "disabled_visible"))
6512 set_state(PART:"elm.text", "visible", 0.0);
6514 set_state(PART:"elm.text", "default", 0.0);
6515 set_int(button_state, BUTTON_STATE_ENABLED);
6518 program { name: "focused";
6519 //signal: "elm,action,focus";
6521 action: STATE_SET "focused" 0.0;
6522 target: "button_image";
6525 program { name: "unfocused";
6526 //signal: "elm,action,unfocus";
6528 action: STATE_SET "default" 0.0;
6529 target: "button_image";
6530 after: "unfocus_text";
6532 program { name: "unfocus_text";
6533 action: STATE_SET "visible" 0.0;
6539 ////////////////////////////////////////////////////////////////////////
6540 group { name: "elm/button/base/bubble_sent";
6541 inherit: "elm/button/base/style1";
6543 image: "00_messagebubble_button_sent.png" COMP;
6544 image: "00_messagebubble_button_sent_press.png" COMP;
6545 image: "00_messagebubble_button_sent_dim.png" COMP;
6548 part { name: "button_image";
6550 description { state: "default" 0.0;
6552 normal: "00_messagebubble_button_sent.png";
6553 border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
6557 description { state: "clicked" 0.0;
6558 inherit: "default" 0.0;
6559 image.normal: "00_messagebubble_button_sent_press.png";
6561 description { state: "disabled" 0.0;
6562 inherit: "default" 0.0;
6563 image.normal: "00_messagebubble_button_sent_dim.png";
6565 description { state: "focused" 0.0;
6566 inherit: "default" 0.0;
6567 image.normal: "00_messagebubble_button_sent_press.png";
6570 part { name: "elm.text";
6573 effect: FAR_SHADOW BOTTOM;
6576 description { state: "default" 0.0;
6580 to_x: "padding_after_icon";
6581 to_y: "padding_left_top";
6585 to: "padding_right_bottom";
6587 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6588 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6590 font: "Tizen:style=Regular";
6591 size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
6594 text_class: "tizen";
6597 description { state: "visible" 0.0;
6598 inherit: "default" 0.0;
6601 description { state: "clicked" 0.0;
6602 inherit: "default" 0.0;
6604 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6606 description { state: "disabled" 0.0;
6607 inherit: "default" 0.0;
6609 description { state: "disabled_visible" 0.0;
6610 inherit: "default" 0.0;
6611 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6614 description { state: "focused" 0.0;
6615 inherit: "default" 0.0;
6617 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6623 ////////////////////////////////////////////////////////////////////////
6624 group { name: "elm/button/base/bubble_sent/multiline";
6625 inherit: "elm/button/base/bubble_sent";
6627 style { name: "bubble_sent_multiline";
6628 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";
6635 part { name: "elm.text";
6638 effect: FAR_SHADOW BOTTOM;
6641 description { state: "default" 0.0;
6646 to_x: "padding_after_icon";
6647 to_y: "padding_left_top";
6651 to: "padding_right_bottom";
6653 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6654 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6656 style: "bubble_sent_multiline";
6659 description { state: "visible" 0.0;
6660 inherit: "default" 0.0;
6663 description { state: "clicked" 0.0;
6664 inherit: "default" 0.0;
6666 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6668 description { state: "disabled" 0.0;
6669 inherit: "default" 0.0;
6671 description { state: "disabled_visible" 0.0;
6672 inherit: "default" 0.0;
6673 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6676 description { state: "focused" 0.0;
6677 inherit: "default" 0.0;
6679 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6685 ///////////////////////////////////////////////////////////////////////
6686 group { name: "elm/button/base/bubble_receive";
6687 inherit: "elm/button/base/style1";
6689 image: "00_messagebubble_button_receive.png" COMP;
6690 image: "00_messagebubble_button_receive_press.png" COMP;
6691 image: "00_messagebubble_button_receive_dim.png" COMP;
6694 part { name: "button_image";
6696 description { state: "default" 0.0;
6698 normal: "00_messagebubble_button_receive.png";
6699 border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
6703 description { state: "clicked" 0.0;
6704 inherit: "default" 0.0;
6705 image.normal: "00_messagebubble_button_receive_press.png";
6707 description { state: "disabled" 0.0;
6708 inherit: "default" 0.0;
6709 image.normal: "00_messagebubble_button_receive_dim.png";
6711 description { state: "focused" 0.0;
6712 inherit: "default" 0.0;
6713 image.normal: "00_messagebubble_button_receive_press.png";
6716 part { name: "elm.text";
6719 effect: SHADOW BOTTOM;
6722 description { state: "default" 0.0;
6726 to_x: "padding_after_icon";
6727 to_y: "padding_left_top";
6731 to: "padding_right_bottom";
6733 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6734 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6736 font: "Tizen:style=Regular";
6737 size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
6740 text_class: "tizen";
6743 description { state: "visible" 0.0;
6744 inherit: "default" 0.0;
6747 description { state: "clicked" 0.0;
6748 inherit: "default" 0.0;
6750 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6752 description { state: "disabled" 0.0;
6753 inherit: "default" 0.0;
6755 description { state: "disabled_visible" 0.0;
6756 inherit: "default" 0.0;
6757 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6760 description { state: "focused" 0.0;
6761 inherit: "default" 0.0;
6763 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6769 ///////////////////////////////////////////////////////////////////////
6770 group { name: "elm/button/base/bubble_receive/multiline";
6771 inherit: "elm/button/base/bubble_receive";
6773 style { name: "bubble_receive_multiline";
6774 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";
6781 part { name: "elm.text";
6784 effect: SHADOW BOTTOM;
6787 description { state: "default" 0.0;
6792 to_x: "padding_after_icon";
6793 to_y: "padding_left_top";
6797 to: "padding_right_bottom";
6799 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6800 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6802 style: "btn_style1_multiline";
6805 description { state: "visible" 0.0;
6806 inherit: "default" 0.0;
6809 description { state: "clicked" 0.0;
6810 inherit: "default" 0.0;
6812 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6814 description { state: "disabled" 0.0;
6815 inherit: "default" 0.0;
6817 description { state: "disabled_visible" 0.0;
6818 inherit: "default" 0.0;
6819 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6822 description { state: "focused" 0.0;
6823 inherit: "default" 0.0;
6825 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6831 ///////////////////////////////////////////////////////////////////////
6832 group { name: "elm/button/base/bubble_circle/receive";
6834 image: "00_messagebubble_circle_receive.png" COMP;
6835 image: "00_messagebubble_circle_receive_press.png" COMP;
6836 image: "00_messagebubble_circle_receive_dim.png" COMP;
6837 image: "00_button_right.png" COMP;
6838 image: "00_button_right_press.png" COMP;
6841 part { name: "button_image";
6843 description { state: "default" 0.0;
6844 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6845 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6846 image.normal: "00_messagebubble_circle_receive.png";
6849 state: "clicked" 0.0;
6850 inherit: "default" 0.0;
6851 image.normal: "00_messagebubble_circle_receive_press.png";
6854 state: "disabled" 0.0;
6855 inherit: "default" 0.0;
6856 image.normal: "00_messagebubble_circle_receive_dim.png";
6859 part { name: "image";
6861 clip_to: "icon_clipper";
6862 description { state: "default" 0.0;
6863 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6864 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6865 image.normal: "00_button_right.png";
6868 state: "clicked" 0.0;
6869 inherit: "default" 0.0;
6870 image.normal: "00_button_right_press.png";
6873 state: "disabled" 0.0;
6874 inherit: "default" 0.0;
6877 part { name: "icon_clipper";
6880 description { state: "default" 0.0;
6881 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
6883 description { state: "clicked" 0.0;
6884 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
6886 description { state: "disabled" 0.0;
6887 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
6890 part { name: "over1";
6892 ignore_flags: ON_HOLD;
6893 description { state: "default" 0.0;
6897 part { name: "over2";
6900 description { state: "default" 0.0;
6904 part { name: "disabler";
6906 description { state: "default" 0.0;
6910 description { state: "disabled" 0.0;
6911 inherit: "default" 0.0;
6917 program { name: "button_click";
6918 signal: "mouse,down,1";
6920 action: SIGNAL_EMIT "elm,action,press" "";
6921 after: "button_click_anim";
6923 program { name: "button_click_anim";
6924 action: STATE_SET "clicked" 0.0;
6925 target: "button_image";
6927 target: "icon_clipper";
6929 program { name: "button_double_click";
6930 signal: "mouse,down,1,double";
6932 after: "button_click_anim";
6934 program { name: "button_unclick";
6935 signal: "mouse,up,1";
6937 action: SIGNAL_EMIT "elm,action,unpress" "";
6938 after: "button_unclick_anim";
6940 program { name: "button_unclick_anim";
6941 action: STATE_SET "default" 0.0;
6942 target: "button_image";
6944 target: "icon_clipper";
6946 program { name: "touch_snd";
6947 signal: "mouse,clicked,1";
6949 action: PLAY_SAMPLE "touch_sound" 1.0;
6950 after: button_unclick3;
6952 program { name: "button_unclick3";
6953 action: SIGNAL_EMIT "elm,action,click" "";
6955 program { name: "disable";
6956 signal: "elm,state,disabled";
6958 action: STATE_SET "disabled" 0.0;
6960 target: "button_image";
6961 target: "icon_clipper";
6964 program { name: "enable";
6965 signal: "elm,state,enabled";
6967 action: STATE_SET "default" 0.0;
6969 target: "button_image";
6970 target: "icon_clipper";
6975 ///////////////////////////////////////////////////////////////////////
6976 group { name: "elm/button/base/bubble_circle/sent";
6978 image: "00_messagebubble_circle_sent.png" COMP;
6979 image: "00_messagebubble_circle_sent_press.png" COMP;
6980 image: "00_messagebubble_circle_sent_dim.png" COMP;
6981 image: "00_button_right.png" COMP;
6982 image: "00_button_right_press.png" COMP;
6985 part { name: "button_image";
6987 description { state: "default" 0.0;
6988 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6989 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6990 image.normal: "00_messagebubble_circle_sent.png";
6993 state: "clicked" 0.0;
6994 inherit: "default" 0.0;
6995 image.normal: "00_messagebubble_circle_sent_press.png";
6998 state: "disabled" 0.0;
6999 inherit: "default" 0.0;
7000 image.normal: "00_messagebubble_circle_sent_dim.png";
7003 part { name: "image";
7005 clip_to: "icon_clipper";
7006 description { state: "default" 0.0;
7007 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7008 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7009 image.normal: "00_button_right.png";
7012 state: "clicked" 0.0;
7013 inherit: "default" 0.0;
7014 image.normal: "00_button_right_press.png";
7017 state: "disabled" 0.0;
7018 inherit: "default" 0.0;
7021 part { name: "icon_clipper";
7024 description { state: "default" 0.0;
7025 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
7027 description { state: "clicked" 0.0;
7028 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
7030 description { state: "disabled" 0.0;
7031 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
7034 part { name: "over1";
7036 ignore_flags: ON_HOLD;
7037 description { state: "default" 0.0;
7041 part { name: "over2";
7044 description { state: "default" 0.0;
7048 part { name: "disabler";
7050 description { state: "default" 0.0;
7054 description { state: "disabled" 0.0;
7055 inherit: "default" 0.0;
7061 program { name: "button_click";
7062 signal: "mouse,down,1";
7064 action: SIGNAL_EMIT "elm,action,press" "";
7065 after: "button_click_anim";
7067 program { name: "button_click_anim";
7068 action: STATE_SET "clicked" 0.0;
7069 target: "button_image";
7071 target: "icon_clipper";
7073 program { name: "button_double_click";
7074 signal: "mouse,down,1,double";
7076 after: "button_click_anim";
7078 program { name: "button_unclick";
7079 signal: "mouse,up,1";
7081 action: SIGNAL_EMIT "elm,action,unpress" "";
7082 after: "button_unclick_anim";
7084 program { name: "button_unclick_anim";
7085 action: STATE_SET "default" 0.0;
7086 target: "button_image";
7088 target: "icon_clipper";
7090 program { name: "touch_snd";
7091 signal: "mouse,clicked,1";
7093 action: PLAY_SAMPLE "touch_sound" 1.0;
7094 after: button_unclick3;
7096 program { name: "button_unclick3";
7097 action: SIGNAL_EMIT "elm,action,click" "";
7099 program { name: "disable";
7100 signal: "elm,state,disabled";
7102 action: STATE_SET "disabled" 0.0;
7104 target: "button_image";
7105 target: "icon_clipper";
7107 program { name: "enable";
7108 signal: "elm,state,enabled";
7110 action: STATE_SET "default" 0.0;
7112 target: "button_image";
7113 target: "icon_clipper";
7118 //////////////////////////////////////////////////////////////////////////////////////
7119 group { name: "elm/button/base/editfield_clear";
7121 image: "00_EditField_clear" COMP;
7124 part { name: "button_image";
7127 description { state: "default" 0.0;
7130 description { state: "clicked" 0.0;
7131 inherit: "default" 0.0;
7133 description { state: "disabled" 0.0;
7134 inherit: "default" 0.0;
7136 description { state: "focused" 0.0;
7137 inherit: "default" 0.0;
7140 part { name: "clear_button";
7143 clip_to: "clear_button.clipper";
7144 description { state: "default" 0.0;
7145 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7146 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7149 image.normal: "00_EditField_clear.png";
7152 part { name: "clear_button.clipper";
7154 description { state: "default" 0.0;
7155 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7157 description { state: "clicked" 0.0;
7158 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7160 description { state: "disabled" 0.0;
7161 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7164 part { name: "over2";
7166 ignore_flags: ON_HOLD;
7167 description { state: "default" 0.0;
7171 part { name: "over3";
7174 description { state: "default" 0.0;
7178 part { name: "disabler";
7180 description { state: "default" 0.0;
7184 description { state: "disabled" 0.0;
7185 inherit: "default" 0.0;
7191 program { name: "button_click";
7192 signal: "mouse,down,1";
7194 action: SIGNAL_EMIT "elm,action,press" "";
7195 after: "button_click_anim";
7197 program { name: "button_click_anim";
7198 action: STATE_SET "clicked" 0.0;
7199 target: "button_image";
7200 target: "clear_button.clipper";
7202 program { name: "button_double_click";
7203 signal: "mouse,down,1,double";
7205 after: "button_click_anim";
7207 program { name: "button_unclick";
7208 signal: "mouse,up,1";
7210 action: SIGNAL_EMIT "elm,action,unpress" "";
7211 after: "button_unclick_anim";
7213 program { name: "button_unclick_anim";
7214 action: STATE_SET "default" 0.0;
7215 target: "button_image";
7216 target: "clear_button.clipper";
7218 program { name: "touch_snd";
7219 signal: "mouse,clicked,1";
7221 action: PLAY_SAMPLE "touch_sound" 1.0;
7222 after: button_unclick3;
7224 program { name: "button_unclick3";
7225 action: SIGNAL_EMIT "elm,action,click" "";
7227 program { name: "disable";
7228 signal: "elm,state,disabled";
7230 action: STATE_SET "disabled" 0.0;
7231 target: "button_image";
7233 target: "clear_button.clipper";
7235 program { name: "enable";
7236 signal: "elm,state,enabled";
7238 action: STATE_SET "default" 0.0;
7239 target: "button_image";
7241 target: "clear_button.clipper";
7246 group { name: "elm/button/base/focus";
7248 part { name: "elm.content.swallow";
7251 description { state: "default" 0.0;
7254 part { name: "over2";
7256 ignore_flags: ON_HOLD;
7257 description { state: "default" 0.0;
7261 part { name: "over3";
7264 description { state: "default" 0.0;
7270 program { name: "button_click";
7271 signal: "mouse,down,1";
7273 action: SIGNAL_EMIT "elm,action,press" "";
7275 program { name: "button_unclick";
7276 signal: "mouse,up,1";
7278 action: SIGNAL_EMIT "elm,action,unpress" "";
7280 program { name: "button_unclick3";
7281 action: SIGNAL_EMIT "elm,action,click" "";
7286 group { name: "elm/button/base/search_clear";
7287 inherit: "elm/button/base/editfield_clear";
7289 part { name: "clear_button";
7292 clip_to: "clear_button.clipper";
7293 description { state: "default" 0.0;
7294 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7295 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7298 image.normal: "00_EditField_clear.png";
7304 #undef BUTTON_STATE_ENABLED
7305 #undef BUTTON_STATE_DISABLED