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=#ffffff ellipsis=1.0 wrap=none text_class=tizen";
4409 public button_state = BUTTON_STATE_ENABLED;
4412 part { name: "button_image";
4414 description { state: "default" 0.0;
4415 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4416 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4418 rel1.to: "padding_text_left_top";
4419 rel2.to: "padding_text_right_bottom";
4421 normal: "00_toolbar_button.png";
4422 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4426 description { state: "clicked" 0.0;
4427 inherit: "default" 0.0;
4428 image.normal: "00_toolbar_button_press.png";
4430 description { state: "disabled" 0.0;
4431 inherit: "default" 0.0;
4432 image.normal: "00_toolbar_button_dim.png";
4434 description { state: "focused" 0.0;
4435 inherit: "default" 0.0;
4436 image.normal: "00_toolbar_button_press.png";
4439 part { name: "padding_left_top";
4443 description { state: "default" 0.0;
4446 rel2.relative: 0.0 0.0;
4447 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4451 part { name: "padding_right_bottom";
4455 description { state: "default" 0.0;
4457 rel1.relative: 1.0 1.0;
4458 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4463 part { name: "padding_text_left_top";
4467 description { state: "default" 0.0;
4469 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4471 rel1.to: "elm.text";
4479 part { name: "padding_text_right_bottom";
4483 description { state: "default" 0.0;
4484 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4491 rel2.to: "elm.text";
4495 part { name: "elm.text";
4499 effect: FAR_SHADOW BOTTOM;
4501 description { state: "default" 0.0;
4504 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4507 to: "padding_left_top";
4511 to: "padding_right_bottom";
4513 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4514 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4518 style: "btn_naviframe_toolbar";
4521 description { state: "visible" 0.0;
4522 inherit: "default" 0.0;
4525 description { state: "clicked" 0.0;
4526 inherit: "default" 0.0;
4528 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4530 description { state: "disabled" 0.0;
4531 inherit: "default" 0.0;
4533 description { state: "disabled_visible" 0.0;
4534 inherit: "default" 0.0;
4535 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4536 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4539 description { state: "focused" 0.0;
4540 inherit: "default" 0.0;
4542 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4545 part { name: "disclip";
4547 description { state: "default" 0.0;
4548 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4550 description { state: "disabled" 0.0;
4551 inherit: "default" 0.0;
4552 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4555 part { name: "over2";
4558 ignore_flags: ON_HOLD;
4559 description { state: "default" 0.0;
4560 rel1.to: "button_image";
4561 rel2.to: "button_image";
4565 part { name: "over3";
4568 description { state: "default" 0.0;
4569 rel1.to: "button_image";
4570 rel2.to: "button_image";
4574 part { name: "disabler";
4576 description { state: "default" 0.0;
4577 rel1.to: "button_image";
4578 rel2.to: "button_image";
4582 description { state: "disabled" 0.0;
4583 inherit: "default" 0.0;
4589 program { name: "button_click";
4590 signal: "mouse,down,1";
4592 action: SIGNAL_EMIT "elm,action,press" "";
4593 after: "button_click_anim";
4595 program { name: "button_click_anim";
4596 action: STATE_SET "clicked" 0.0;
4597 target: "button_image";
4600 program { name: "button_double_click";
4601 signal: "mouse,down,1,double";
4603 after: "button_click_anim";
4605 program { name: "button_unpress";
4606 action: SIGNAL_EMIT "elm,action,unpress" "";
4608 program { name: "button_mouseout_clicked";
4609 signal: "mouse,up,1";
4614 get_state(PART:"elm.text", st, 30, vl);
4615 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4617 emit("elm,action,default,text,set", "");
4618 set_state(PART:"elm.text", "visible", 0.0);
4620 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4621 set_state(PART:"button_image", "default", 0.0);
4623 after: button_unpress;
4625 program { name: "touch_snd";
4626 signal: "mouse,clicked,1";
4628 action: PLAY_SAMPLE "touch_sound" 1.0;
4629 after: button_unclick3;
4631 program { name: "button_unclick3";
4632 action: SIGNAL_EMIT "elm,action,click" "";
4634 program { name: "text_show";
4635 signal: "elm,state,text,visible";
4638 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4639 set_state(PART:"elm.text", "visible", 0.0);
4641 set_state(PART:"elm.text", "disabled_visible", 0.0);
4644 program { name: "text_hide";
4645 signal: "elm,state,text,hidden";
4647 action: STATE_SET "default" 0.0;
4650 program { name: "disable";
4651 signal: "elm,state,disabled";
4653 action: STATE_SET "disabled" 0.0;
4654 target: "button_image";
4657 after: "disable_text";
4659 program { name: "disable_text";
4663 get_state(PART:"elm.text", st, 30, vl);
4664 if (!strcmp(st, "visible"))
4665 set_state(PART:"elm.text", "disabled_visible", 0.0);
4667 set_state(PART:"elm.text", "disabled", 0.0);
4668 set_int(button_state, BUTTON_STATE_DISABLED);
4671 program { name: "enable";
4672 signal: "elm,state,enabled";
4674 action: STATE_SET "default" 0.0;
4675 target: "button_image";
4678 after: "enable_text";
4680 program { name: "enable_text";
4684 get_state(PART:"elm.text", st, 30, vl);
4685 if (!strcmp(st, "disabled_visible"))
4686 set_state(PART:"elm.text", "visible", 0.0);
4688 set_state(PART:"elm.text", "default", 0.0);
4689 set_int(button_state, BUTTON_STATE_ENABLED);
4692 program { name: "focused";
4693 //signal: "elm,action,focus";
4695 action: STATE_SET "focused" 0.0;
4696 target: "button_image";
4699 program { name: "unfocused";
4700 //signal: "elm,action,unfocus";
4702 action: STATE_SET "default" 0.0;
4703 target: "button_image";
4704 action: STATE_SET "visible" 0.0;
4710 //////////////////////////////////////////////////////////////
4711 group { name: "elm/button/base/naviframe/toolbar/left";
4712 inherit: "elm/button/base/naviframe/toolbar/default";
4714 part { name: "button_image";
4716 description { state: "default" 0.0;
4717 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4718 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4720 rel1.to: "padding_text_left_top";
4721 rel2.to: "padding_text_right_bottom";
4724 normal: "00_toolbar_button.png";
4725 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4729 description { state: "clicked" 0.0;
4730 inherit: "default" 0.0;
4731 image.normal: "00_toolbar_button_press.png";
4733 description { state: "disabled" 0.0;
4734 inherit: "default" 0.0;
4735 image.normal: "00_toolbar_button_dim.png";
4737 description { state: "focused" 0.0;
4738 inherit: "default" 0.0;
4739 image.normal: "00_toolbar_button_press.png";
4742 part { name: "elm.text";
4746 effect: FAR_SHADOW BOTTOM;
4748 description { state: "default" 0.0;
4751 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4754 to: "padding_left_top";
4758 to: "padding_right_bottom";
4761 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4762 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4766 style: "btn_naviframe_toolbar";
4769 description { state: "visible" 0.0;
4770 inherit: "default" 0.0;
4773 description { state: "clicked" 0.0;
4774 inherit: "default" 0.0;
4776 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4778 description { state: "disabled" 0.0;
4779 inherit: "default" 0.0;
4781 description { state: "disabled_visible" 0.0;
4782 inherit: "default" 0.0;
4783 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4784 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4787 description { state: "focused" 0.0;
4788 inherit: "default" 0.0;
4790 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4796 //////////////////////////////////////////////////////////////
4797 group { name: "elm/button/base/naviframe/toolbar/right";
4798 inherit: "elm/button/base/naviframe/toolbar/default";
4800 part { name: "button_image";
4802 description { state: "default" 0.0;
4803 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4804 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4806 rel1.to: "padding_text_left_top";
4807 rel2.to: "padding_text_right_bottom";
4810 normal: "00_toolbar_button.png";
4811 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4815 description { state: "clicked" 0.0;
4816 inherit: "default" 0.0;
4817 image.normal: "00_toolbar_button_press.png";
4819 description { state: "disabled" 0.0;
4820 inherit: "default" 0.0;
4821 image.normal: "00_toolbar_button_dim.png";
4823 description { state: "focused" 0.0;
4824 inherit: "default" 0.0;
4825 image.normal: "00_toolbar_button_press.png";
4828 part { name: "elm.text";
4832 effect: FAR_SHADOW BOTTOM;
4834 description { state: "default" 0.0;
4837 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4840 to: "padding_left_top";
4844 to: "padding_right_bottom";
4847 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4848 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4852 style: "btn_naviframe_toolbar";
4855 description { state: "visible" 0.0;
4856 inherit: "default" 0.0;
4859 description { state: "clicked" 0.0;
4860 inherit: "default" 0.0;
4862 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4864 description { state: "disabled" 0.0;
4865 inherit: "default" 0.0;
4867 description { state: "disabled_visible" 0.0;
4868 inherit: "default" 0.0;
4869 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4870 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4873 description { state: "focused" 0.0;
4874 inherit: "default" 0.0;
4876 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4882 ////////////////////////////////////////////////////////////////////
4883 group { name: "elm/button/base/toolbar/segmentedcontrol";
4885 image: "00_toolbar_button.png" COMP;
4886 image: "00_toolbar_button_press.png" COMP;
4887 image: "00_toolbar_button_dim.png" COMP;
4888 image: "00_button_icon_arrow.png" COMP;
4889 image: "00_button_icon_arrow_press.png" COMP;
4892 style { name: "btn_toolbar_segmentedcontrol";
4893 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";
4900 public button_state = BUTTON_STATE_ENABLED;
4903 part { name: "button_image";
4905 description { state: "default" 0.0;
4906 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
4907 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
4909 rel1.to: "padding_text_left_top";
4910 rel2.to: "padding_text_right_bottom";
4912 normal: "00_toolbar_button.png";
4913 border: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_BORDER_INC;
4917 description { state: "clicked" 0.0;
4918 inherit: "default" 0.0;
4919 image.normal: "00_toolbar_button_press.png";
4921 description { state: "disabled" 0.0;
4922 inherit: "default" 0.0;
4923 image.normal: "00_toolbar_button_dim.png";
4925 description { state: "focused" 0.0;
4926 inherit: "default" 0.0;
4927 image.normal: "00_toolbar_button_press.png";
4930 part { name: "padding_left_top";
4934 description { state: "default" 0.0;
4937 rel2.relative: 0.0 0.0;
4938 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4942 part { name: "padding_right_bottom";
4946 description { state: "default" 0.0;
4948 rel1.relative: 1.0 1.0;
4949 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
4954 part { name: "padding_text_left_top";
4958 description { state: "default" 0.0;
4960 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4962 rel1.to: "elm.text";
4970 part { name: "padding_text_right_bottom";
4974 description { state: "default" 0.0;
4975 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
4991 part { name: "elm.text";
4995 effect: FAR_SHADOW BOTTOM;
4997 description { state: "default" 0.0;
5000 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXTBLOCK_MIN_INC;
5003 to: "padding_left_top";
5007 to: "padding_right_bottom";
5009 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
5010 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5014 style: "btn_toolbar_segmentedcontrol";
5017 description { state: "visible" 0.0;
5018 inherit: "default" 0.0;
5021 description { state: "clicked" 0.0;
5022 inherit: "default" 0.0;
5024 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
5026 description { state: "disabled" 0.0;
5027 inherit: "default" 0.0;
5029 description { state: "disabled_visible" 0.0;
5030 inherit: "default" 0.0;
5031 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
5032 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5035 description { state: "focused" 0.0;
5036 inherit: "default" 0.0;
5038 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
5041 part { name: "icon_padding";
5044 description { state: "default" 0.0;
5053 rel2.to: "elm.text";
5056 part { name: "icon";
5058 clip_to: "icon_clipper";
5059 description { state: "default" 0.0;
5060 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5061 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5066 to_x: "icon_padding";
5072 to_x: "icon_padding";
5075 image.normal: "00_button_icon_arrow.png";
5077 description { state: "clicked" 0.0;
5078 inherit: "default" 0.0;
5079 image.normal: "00_button_icon_arrow_press.png";
5082 part { name: "icon_clipper";
5084 description { state: "default" 0.0;
5085 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_NORMAL_COLOR_INC;
5087 description { state: "clicked" 0.0;
5088 inherit: "default" 0.0;
5089 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_PRESSED_COLOR_INC;
5092 part { name: "disclip";
5094 description { state: "default" 0.0;
5095 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5097 description { state: "disabled" 0.0;
5098 inherit: "default" 0.0;
5099 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5102 part { name: "over2";
5105 ignore_flags: ON_HOLD;
5106 description { state: "default" 0.0;
5107 rel1.to: "button_image";
5108 rel2.to: "button_image";
5112 part { name: "over3";
5115 description { state: "default" 0.0;
5116 rel1.to: "button_image";
5117 rel2.to: "button_image";
5121 part { name: "disabler";
5123 description { state: "default" 0.0;
5124 rel1.to: "button_image";
5125 rel2.to: "button_image";
5129 description { state: "disabled" 0.0;
5130 inherit: "default" 0.0;
5136 program { name: "button_click";
5137 signal: "mouse,down,1";
5139 action: SIGNAL_EMIT "elm,action,press" "";
5140 after: "button_click_anim";
5142 program { name: "button_click_anim";
5143 action: STATE_SET "clicked" 0.0;
5144 target: "button_image";
5147 target: "icon_clipper";
5149 program { name: "button_double_click";
5150 signal: "mouse,down,1,double";
5152 after: "button_click_anim";
5154 program { name: "button_unpress";
5155 action: SIGNAL_EMIT "elm,action,unpress" "";
5157 program { name: "button_mouseout_clicked";
5158 signal: "mouse,up,1";
5163 get_state(PART:"elm.text", st, 30, vl);
5164 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5166 emit("elm,action,default,text,set", "");
5167 set_state(PART:"elm.text", "visible", 0.0);
5169 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5170 set_state(PART:"button_image", "default", 0.0);
5171 set_state(PART:"icon", "default", 0.0);
5172 set_state(PART:"icon_clipper", "default", 0.0);
5174 after: button_unpress;
5176 program { name: "touch_snd";
5177 signal: "mouse,clicked,1";
5179 action: PLAY_SAMPLE "touch_sound" 1.0;
5180 after: button_unclick3;
5182 program { name: "button_unclick3";
5183 action: SIGNAL_EMIT "elm,action,click" "";
5185 program { name: "text_show";
5186 signal: "elm,state,text,visible";
5189 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5190 set_state(PART:"elm.text", "visible", 0.0);
5192 set_state(PART:"elm.text", "disabled_visible", 0.0);
5195 program { name: "text_hide";
5196 signal: "elm,state,text,hidden";
5198 action: STATE_SET "default" 0.0;
5201 program { name: "disable";
5202 signal: "elm,state,disabled";
5204 action: STATE_SET "disabled" 0.0;
5205 target: "button_image";
5208 after: "disable_text";
5210 program { name: "disable_text";
5214 get_state(PART:"elm.text", st, 30, vl);
5215 if (!strcmp(st, "visible"))
5216 set_state(PART:"elm.text", "disabled_visible", 0.0);
5218 set_state(PART:"elm.text", "disabled", 0.0);
5219 set_int(button_state, BUTTON_STATE_DISABLED);
5222 program { name: "enable";
5223 signal: "elm,state,enabled";
5225 action: STATE_SET "default" 0.0;
5226 target: "button_image";
5229 after: "enable_text";
5231 program { name: "enable_text";
5235 get_state(PART:"elm.text", st, 30, vl);
5236 if (!strcmp(st, "disabled_visible"))
5237 set_state(PART:"elm.text", "visible", 0.0);
5239 set_state(PART:"elm.text", "default", 0.0);
5240 set_int(button_state, BUTTON_STATE_ENABLED);
5243 program { name: "focused";
5244 //signal: "elm,action,focus";
5246 action: STATE_SET "focused" 0.0;
5247 target: "button_image";
5250 program { name: "unfocused";
5251 //signal: "elm,action,unfocus";
5253 action: STATE_SET "default" 0.0;
5254 target: "button_image";
5255 action: STATE_SET "visible" 0.0;
5261 ////////////////////////////////////////////////////////////////////
5262 group { name: "elm/button/base/naviframe/title_icon";
5264 part { name: "button_image";
5267 description { state: "default" 0.0;
5269 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5270 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5272 description { state: "landscape" 0.0;
5274 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5275 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5278 part { name: "top_padding";
5281 description { state: "default" 0.0;
5283 min: BUTTON_NAVIFRAME_TITLE_ICON_TOP_PADDING_INC;
5286 rel1 { relative: 0.0 0.0; to: "button_image"; }
5287 rel2 { relative: 1.0 0.0; to: "button_image"; }
5289 description { state: "landscape" 0.0;
5290 inherit: "default" 0.0;
5291 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_TOP_PADDING_INC;
5294 part { name: "elm.swallow.content";
5297 clip_to: "elm.icon.clipper";
5298 description { state: "default" 0.0;
5300 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5303 rel1 { relative: 0.0 1.0; to: "top_padding"; }
5304 rel2 { relative: 1.0 1.0; to: "button_image"; }
5306 description { state: "visible" 0.0;
5307 inherit: "default" 0.0;
5311 part { name: "elm.swallow.icon.proxy";
5314 clip_to: "elm.icon.proxy.clipper";
5315 description { state: "default" 0.0;
5316 source: "elm.swallow.content";
5317 rel1.to: "elm.swallow.content";
5319 rel2.to: "elm.swallow.content";
5323 part { name: "elm.icon.proxy.clipper";
5325 description { state: "default" 0.0;
5326 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5328 description { state: "clicked" 0.0;
5329 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5331 description { state: "disabled" 0.0;
5332 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5335 part { name: "elm.icon.clipper";
5337 description { state: "default" 0.0;
5338 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5340 description { state: "clicked" 0.0;
5341 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5343 description { state: "disabled" 0.0;
5344 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5347 part { name: "over2";
5349 ignore_flags: ON_HOLD;
5350 description { state: "default" 0.0;
5354 part { name: "over3";
5357 description { state: "default" 0.0;
5361 part { name: "disabler";
5363 description { state: "default" 0.0;
5367 description { state: "disabled" 0.0;
5368 inherit: "default" 0.0;
5374 program { name: "button_click";
5375 signal: "mouse,down,1";
5377 action: SIGNAL_EMIT "elm,action,press" "";
5378 after: "button_click_anim";
5380 program { name: "button_click_anim";
5382 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5383 set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0);
5386 program { name: "button_double_click";
5387 signal: "mouse,down,1,double";
5389 after: "button_click_anim";
5391 program { name: "button_unpress";
5392 action: SIGNAL_EMIT "elm,action,unpress" "";
5394 program { name: "button_mouseout_clicked";
5395 signal: "mouse,up,1";
5397 action: STATE_SET "default" 0.0;
5398 target: "elm.icon.clipper";
5399 target: "elm.icon.proxy.clipper";
5400 after: button_unpress;
5402 program { name: "touch_snd";
5403 signal: "mouse,clicked,1";
5405 action: PLAY_SAMPLE "touch_sound" 1.0;
5406 after: button_unclick3;
5408 program { name: "button_unclick3";
5409 action: SIGNAL_EMIT "elm,action,click" "";
5411 program { name: "icon_show";
5412 signal: "elm,state,icon,visible";
5414 action: STATE_SET "visible" 0.0;
5415 target: "elm.swallow.content";
5417 program { name: "icon_hide";
5418 signal: "elm,state,icon,hidden";
5420 action: STATE_SET "default" 0.0;
5421 target: "elm.swallow.content";
5423 program { name: "disable";
5424 signal: "elm,state,disabled";
5427 set_state(PART:"disabler", "disabled", 0.0);
5428 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5429 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
5432 program { name: "enable";
5433 signal: "elm,state,enabled";
5436 set_state(PART:"disabler", "default", 0.0);
5437 set_state(PART:"elm.icon.clipper", "default", 0.0);
5438 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
5441 program { name: "change_to_landscape";
5442 signal: "elm,state,landscape";
5444 action: STATE_SET "landscape" 0.0;
5445 target: "button_image";
5446 target: "top_padding";
5448 program { name: "change_to_portrait";
5449 signal: "elm,state,portrait";
5451 action: STATE_SET "default" 0.0;
5452 target: "button_image";
5453 target: "top_padding";
5455 /* program { name: "landscape_mode";
5457 signal: "elm,state,orient,90";
5458 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5460 program { name: "landscape_mode2";
5462 signal: "elm,state,orient,270";
5463 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5465 program { name: "portrait_mode";
5467 signal: "elm,state,orient,0";
5468 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5470 program { name: "portrait_mode2";
5472 signal: "elm,state,orient,180";
5473 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5478 /////////////////////////////////////////////////////////////////////////////////////////
5479 group { name: "elm/button/base/naviframe/more/default";
5481 image: "00_icon_more.png" COMP;
5484 part { name: "button_image";
5487 description { state: "default" 0.0;
5488 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5489 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5492 description { state: "landscape" 0.0;
5493 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5494 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5498 part { name: "more_image";
5501 clip_to: "more_image.clipper";
5502 description { state: "default" 0.0;
5503 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5504 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5506 rel1.to: "button_image";
5507 rel2.to: "button_image";
5508 image.normal: "00_icon_more.png";
5511 part { name: "more_image.clipper";
5513 description { state: "default" 0.0;
5514 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5516 description { state: "clicked" 0.0;
5517 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5519 description { state: "disabled" 0.0;
5520 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5523 part { name: "elm.text.badge.bg";
5527 state: "default" 0.0;
5530 to: "left.padding.text.badge";
5534 to: "right.padding.text.badge";
5539 normal: "00_badge_bg.png";
5544 description { state: "visible" 0.0;
5545 inherit: "default" 0.0;
5549 part { name: "left.padding.text.badge";
5553 state: "default" 0.0;
5558 to: "elm.text.badge";
5562 to: "elm.text.badge";
5568 part { name: "right.padding.text.badge";
5572 state: "default" 0.0;
5587 part { name: "elm.text.badge";
5592 state: "default" 0.0;
5600 to: "right.padding.text.badge";
5604 color: 10 100 208 255;
5606 font: "Tizen:style=Bold";
5612 description { state: "visible" 0.0;
5613 inherit: "default" 0.0;
5617 part { name: "over2";
5619 ignore_flags: ON_HOLD;
5620 description { state: "default" 0.0;
5624 part { name: "over3";
5627 description { state: "default" 0.0;
5631 part { name: "disabler";
5633 description { state: "default" 0.0;
5637 description { state: "disabled" 0.0;
5638 inherit: "default" 0.0;
5644 program { name: "button_click";
5645 signal: "mouse,down,1";
5647 action: SIGNAL_EMIT "elm,action,press" "";
5648 after: "button_click_anim";
5650 program { name: "button_click_anim";
5652 set_state(PART:"more_image.clipper", "clicked", 0.0);
5655 program { name: "button_double_click";
5656 signal: "mouse,down,1,double";
5658 after: "button_click_anim";
5660 program { name: "button_unclick";
5661 signal: "mouse,up,1";
5663 action: SIGNAL_EMIT "elm,action,unpress" "";
5664 after: "button_unclick_anim";
5666 program { name: "button_unclick_anim";
5668 set_state(PART:"more_image.clipper", "default", 0.0);
5671 program { name: "touch_snd";
5672 signal: "mouse,clicked,1";
5674 action: PLAY_SAMPLE "touch_sound" 1.0;
5675 after: button_unclick3;
5677 program { name: "button_unclick3";
5678 action: SIGNAL_EMIT "elm,action,click" "";
5680 program { name: "badge_text_show";
5681 signal: "elm,state,elm.text.badge,visible";
5683 action: STATE_SET "visible" 0.0;
5684 target: "elm.text.badge";
5685 target: "elm.text.badge.bg";
5687 program { name: "badge_text_hide";
5688 signal: "elm,state,elm.text.badge,hidden";
5690 action: STATE_SET "default" 0.0;
5691 target: "elm.text.badge";
5692 target: "elm.text.badge.bg";
5694 program { name: "disable";
5695 signal: "elm,state,disabled";
5698 set_state(PART:"disabler", "disabled", 0.0);
5699 set_state(PART:"more_image.clipper", "disabled", 0.0);
5702 program { name: "enable";
5703 signal: "elm,state,enabled";
5706 set_state(PART:"disabler", "default", 0.0);
5707 set_state(PART:"more_image.clipper", "default", 0.0);
5710 program { name: "change_to_landscape";
5711 signal: "elm,state,landscape";
5713 action: STATE_SET "landscape" 0.0;
5714 target: "button_image";
5716 program { name: "change_to_portrait";
5717 signal: "elm,state,portrait";
5719 action: STATE_SET "default" 0.0;
5720 target: "button_image";
5722 program { name: "landscape_mode";
5724 signal: "elm,state,orient,90";
5725 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5727 program { name: "landscape_mode2";
5729 signal: "elm,state,orient,270";
5730 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5732 program { name: "portrait_mode";
5734 signal: "elm,state,orient,0";
5735 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5737 program { name: "portrait_mode2";
5739 signal: "elm,state,orient,180";
5740 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5745 ///////////////////////////////////////////////////////////////////////////////////////
5746 group { name: "elm/button/base/tickernoti";
5748 image: "00_notification_button_bg.png" COMP;
5749 image: "00_notification_button_bg_press.png" COMP;
5750 image: "00_notification_button_bg_dim.png" COMP;
5753 public button_state = BUTTON_STATE_ENABLED;
5756 part { name: "button_image";
5758 description { state: "default" 0.0;
5759 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5760 max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5762 normal: "00_notification_button_bg.png";
5763 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
5767 description { state: "clicked" 0.0;
5768 inherit: "default" 0.0;
5769 image.normal: "00_notification_button_bg_press.png";
5771 description { state: "disabled" 0.0;
5772 inherit: "default" 0.0;
5773 image.normal: "00_notification_button_bg_dim.png";
5775 description { state: "focused" 0.0;
5776 inherit: "default" 0.0;
5777 image.normal: "00_notification_button_bg_press.png";
5780 part { name: "padding_left_top";
5784 description { state: "default" 0.0;
5787 rel2.relative: 0.0 0.0;
5788 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5796 description { state: "default" 0.0;
5797 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5800 description { state: "visible" 0.0;
5801 inherit: "default" 0.0;
5803 description { state: "icononly" 0.0;
5804 inherit: "default" 0.0;
5807 part { name: "padding_right_bottom";
5811 description { state: "default" 0.0;
5813 rel1.relative: 1.0 1.0;
5814 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5819 part { name: "icon_rect";
5823 description { state: "default" 0.0;
5829 to: "padding_left_top";
5833 to_x: "padding_left_top";
5834 to_y: "padding_right_bottom";
5838 description { state: "visible" 0.0;
5839 inherit: "default" 0.0;
5840 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5841 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5843 description { state: "icononly" 0.0;
5844 inherit: "default" 0.0;
5847 part { name: "padding_after_icon";
5851 description { state: "default" 0.0; //when only icon or no icon is there
5860 rel2.to: "icon_rect";
5862 description { state: "visible" 0.0;
5863 inherit: "default" 0.0;
5864 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5866 description { state: "icononly" 0.0;
5867 inherit: "default" 0.0;
5870 part { name: "padding_before_text";
5874 description { state: "default" 0.0; //when only icon or no icon is there
5878 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5882 to_y: "padding_left_top";
5887 to_y: "padding_right_bottom";
5891 part { name: "elm.swallow.content";
5895 description { state: "default" 0.0;
5901 to: "padding_left_top";
5905 to_x: "padding_left_top";
5906 to_y: "padding_right_bottom";
5909 description { state: "visible" 0.0;
5911 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5912 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5916 to_x: "padding_before_text";
5917 to_y: "padding_left_top";
5921 to_x: "padding_before_text";
5922 to_y: "padding_right_bottom";
5925 description { state: "icononly" 0.0;
5926 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5927 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5930 part { name: "elm.text";
5933 effect: FAR_SHADOW BOTTOM;
5936 description { state: "default" 0.0;
5940 to_x: "padding_after_icon";
5941 to_y: "padding_left_top";
5945 to: "padding_right_bottom";
5947 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
5948 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5950 font: "Tizen:style=Regular";
5951 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
5952 text_class: "tizen";
5955 description { state: "visible" 0.0;
5956 inherit: "default" 0.0;
5959 description { state: "clicked" 0.0;
5960 inherit: "default" 0.0;
5962 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5964 description { state: "disabled" 0.0;
5965 inherit: "default" 0.0;
5967 description { state: "disabled_visible" 0.0;
5968 inherit: "default" 0.0;
5969 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
5970 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5973 description { state: "focused" 0.0;
5974 inherit: "default" 0.0;
5976 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5979 part { name: "over2";
5982 ignore_flags: ON_HOLD;
5983 description { state: "default" 0.0;
5987 part { name: "over3";
5990 description { state: "default" 0.0;
5994 part { name: "clipper";
5996 description { state: "default" 0.0;
5997 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5999 description { state: "disabled" 0.0;
6000 inherit: "default" 0.0;
6001 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
6004 part { name: "disabler";
6006 description { state: "default" 0.0;
6010 description { state: "disabled" 0.0;
6011 inherit: "default" 0.0;
6017 program { name: "button_click";
6018 signal: "mouse,down,1";
6020 action: SIGNAL_EMIT "elm,action,press" "";
6021 after: "button_click_anim";
6023 program { name: "button_click_anim";
6024 action: STATE_SET "clicked" 0.0;
6025 target: "button_image";
6026 after: "text_clicked";
6028 program { name: "text_clicked";
6032 get_state(PART:"elm.text", st, 30, vl);
6033 if (!strcmp(st, "visible"))
6034 set_state(PART:"elm.text", "clicked", 0.0);
6037 program { name: "button_double_click";
6038 signal: "mouse,down,1,double";
6040 after: "button_click_anim";
6042 program { name: "button_unpress";
6043 action: SIGNAL_EMIT "elm,action,unpress" "";
6045 program { name: "button_mouseout_clicked";
6046 signal: "mouse,up,1";
6051 get_state(PART:"elm.swallow.content", st, 30, vl);
6052 if (strcmp(st, "icononly"))
6054 emit("elm,action,default,text,set", "");
6055 set_state(PART:"elm.text", "visible", 0.0);
6057 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6058 set_state(PART:"button_image", "default", 0.0);
6060 after: button_unpress;
6062 program { name: "touch_snd";
6063 signal: "mouse,clicked,1";
6065 action: PLAY_SAMPLE "touch_sound" 1.0;
6066 after: button_unclick3;
6068 program { name: "button_unclick3";
6069 action: SIGNAL_EMIT "elm,action,click" "";
6071 program { name: "text_show";
6072 signal: "elm,state,text,visible";
6077 get_state(PART:"elm.swallow.content", st, 30, vl);
6078 if (!strcmp(st, "icononly"))
6080 set_state(PART:"elm.swallow.content", "visible", 0.0);
6081 set_state(PART:"icon_rect", "visible", 0.0);
6082 set_state(PART:"padding_after_icon", "visible", 0.0);
6083 set_state(PART:"bg", "visible", 0.0);
6085 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6086 set_state(PART:"elm.text", "visible", 0.0);
6088 set_state(PART:"elm.text", "disabled_visible", 0.0);
6091 program { name: "text_hide";
6092 signal: "elm,state,text,hidden";
6097 get_state(PART:"elm.swallow.content", st, 30, vl);
6098 if (!strcmp(st, "visible"))
6100 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6101 set_state(PART:"icon_rect", "icononly", 0.0);
6102 set_state(PART:"padding_after_icon", "icononly", 0.0);
6103 set_state(PART:"bg", "icononly", 0.0);
6105 set_state(PART:"elm.text", "default", 0.0);
6108 program { name: "icon_show";
6109 signal: "elm,state,icon,visible";
6114 get_state(PART:"elm.text", st, 30, vl);
6115 if (!strcmp(st, "visible"))
6117 set_state(PART:"elm.swallow.content", "visible", 0.0);
6118 set_state(PART:"icon_rect", "visible", 0.0);
6119 set_state(PART:"padding_after_icon", "visible", 0.0);
6120 set_state(PART:"bg", "visible", 0.0);
6124 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6125 set_state(PART:"icon_rect", "icononly", 0.0);
6126 set_state(PART:"padding_after_icon", "icononly", 0.0);
6127 set_state(PART:"bg", "icononly", 0.0);
6131 program { name: "icon_hide";
6132 signal: "elm,state,icon,hidden";
6134 action: STATE_SET "default" 0.0;
6135 target: "elm.swallow.content";
6136 target: "padding_after_icon";
6137 target: "icon_rect";
6140 program { name: "disable";
6141 signal: "elm,state,disabled";
6143 action: STATE_SET "disabled" 0.0;
6144 target: "button_image";
6147 after: "disable_text";
6149 program { name: "disable_text";
6153 get_state(PART:"elm.text", st, 30, vl);
6154 if (!strcmp(st, "visible"))
6155 set_state(PART:"elm.text", "disabled_visible", 0.0);
6157 set_state(PART:"elm.text", "disabled", 0.0);
6158 set_int(button_state, BUTTON_STATE_DISABLED);
6161 program { name: "enable";
6162 signal: "elm,state,enabled";
6164 action: STATE_SET "default" 0.0;
6165 target: "button_image";
6168 after: "enable_text";
6170 program { name: "enable_text";
6174 get_state(PART:"elm.text", st, 30, vl);
6175 if (!strcmp(st, "disabled_visible"))
6176 set_state(PART:"elm.text", "visible", 0.0);
6178 set_state(PART:"elm.text", "default", 0.0);
6179 set_int(button_state, BUTTON_STATE_ENABLED);
6182 program { name: "focused";
6183 //signal: "elm,action,focus";
6185 action: STATE_SET "focused" 0.0;
6186 target: "button_image";
6189 program { name: "unfocused";
6190 //signal: "elm,action,unfocus";
6192 action: STATE_SET "default" 0.0;
6193 target: "button_image";
6194 after: "unfocus_text";
6196 program { name: "unfocus_text";
6197 action: STATE_SET "visible" 0.0;
6203 ///////////////////////////////////////////////////////////////////////////////////////
6204 group { name: "elm/button/base/expandable_number";
6205 alias: "elm/button/base/text_only/expandable_number";
6207 image: "00_button_01.png" COMP;
6208 image: "00_button_01_press.png" COMP;
6209 image: "00_button_01_dim.png" COMP;
6210 image: "00_arrow_expand.png" COMP;
6213 public button_state = BUTTON_STATE_ENABLED;
6216 part { name: "button_image";
6218 description { state: "default" 0.0;
6219 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6220 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6222 normal: "00_button_01.png";
6223 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6227 description { state: "clicked" 0.0;
6228 inherit: "default" 0.0;
6229 image.normal: "00_button_01_press.png";
6231 description { state: "disabled" 0.0;
6232 inherit: "default" 0.0;
6233 image.normal: "00_button_01_dim.png";
6235 description { state: "focused" 0.0;
6236 inherit: "default" 0.0;
6237 image.normal: "00_button_01_press.png";
6240 part { name: "padding_left_top";
6244 description { state: "default" 0.0;
6247 rel2.relative: 0.0 0.0;
6248 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6252 part { name: "padding_right_bottom";
6256 description { state: "default" 0.0;
6259 rel1.relative: 1.0 1.0;
6260 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6264 part { name: "icon_rect";
6268 description { state: "default" 0.0;
6270 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6271 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6275 to_x: "padding_right_bottom";
6276 to_y: "padding_left_top";
6280 to: "padding_right_bottom";
6285 part { name: "arrow_expand";
6287 clip_to: "icon_clipper";
6289 description { state: "default" 0.0;
6291 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6292 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6294 rel1.to: "icon_rect";
6295 rel2.to: "icon_rect";
6296 image.normal:"00_arrow_expand.png";
6299 part { name: "elm.text";
6302 effect: SHADOW BOTTOM;
6304 description { state: "default" 0.0;
6305 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6306 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6310 to: "padding_left_top";
6314 to_x:"padding_left_top";
6315 to_y:"padding_right_bottom";
6318 color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6319 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6321 font: "Tizen:style=Regular";
6322 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6326 text_class: "tizen";
6329 description { state: "visible" 0.0;
6330 inherit: "default" 0.0;
6332 description { state: "clicked" 0.0;
6333 inherit: "default" 0.0;
6334 color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
6336 description { state: "disabled" 0.0;
6337 inherit: "default" 0.0;
6339 description { state: "disabled_visible" 0.0;
6340 inherit: "default" 0.0;
6341 color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6342 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
6344 description { state: "focused" 0.0;
6345 inherit: "default" 0.0;
6346 color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6349 part { name: "icon_clipper";
6352 description { state: "default" 0.0;
6353 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6355 description { state: "clicked" 0.0;
6356 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6358 description { state: "disabled" 0.0;
6359 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6362 part { name: "over2";
6365 ignore_flags: ON_HOLD;
6366 description { state: "default" 0.0;
6370 part { name: "over3";
6373 description { state: "default" 0.0;
6377 part { name: "disabler";
6379 description { state: "default" 0.0;
6383 description { state: "disabled" 0.0;
6384 inherit: "default" 0.0;
6390 program { name: "button_click";
6391 signal: "mouse,down,1";
6393 action: SIGNAL_EMIT "elm,action,press" "";
6394 after: "button_click_anim";
6396 program { name: "button_click_anim";
6397 action: STATE_SET "clicked" 0.0;
6398 target: "button_image";
6399 target: "icon_clipper";
6400 after: "text_clicked";
6402 program { name: "text_clicked";
6406 get_state(PART:"elm.text", st, 30, vl);
6407 if (!strcmp(st, "visible"))
6408 set_state(PART:"elm.text", "clicked", 0.0);
6411 program { name: "button_double_click";
6412 signal: "mouse,down,1,double";
6414 after: "button_click_anim";
6416 program { name: "button_unpress";
6417 action: SIGNAL_EMIT "elm,action,unpress" "";
6419 program { name: "button_mouseout_clicked";
6420 signal: "mouse,up,1";
6423 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6425 set_state(PART:"button_image", "default", 0.0);
6426 set_state(PART:"elm.text", "visible", 0.0);
6427 set_state(PART:"icon_clipper", "default", 0.0);
6430 after: button_unpress;
6432 program { name: "touch_snd";
6433 signal: "mouse,clicked,1";
6435 action: PLAY_SAMPLE "touch_sound" 1.0;
6436 after: button_unclick3;
6438 program { name: "button_unclick3";
6439 action: SIGNAL_EMIT "elm,action,click" "";
6441 program { name: "text_show";
6442 signal: "elm,state,text,visible";
6445 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6446 set_state(PART:"elm.text", "visible", 0.0);
6448 set_state(PART:"elm.text", "disabled_visible", 0.0);
6451 program { name: "text_hide";
6452 signal: "elm,state,text,hidden";
6455 set_state(PART:"elm.text", "default", 0.0);
6458 program { name: "disable";
6459 signal: "elm,state,disabled";
6461 action: STATE_SET "disabled" 0.0;
6462 target: "button_image";
6464 target: "icon_clipper";
6465 after: "disable_text";
6467 program { name: "disable_text";
6471 get_state(PART:"elm.text", st, 30, vl);
6472 if (!strcmp(st, "visible"))
6473 set_state(PART:"elm.text", "disabled_visible", 0.0);
6475 set_state(PART:"elm.text", "disabled", 0.0);
6476 set_int(button_state, BUTTON_STATE_DISABLED);
6479 program { name: "enable";
6480 signal: "elm,state,enabled";
6482 action: STATE_SET "default" 0.0;
6483 target: "button_image";
6485 target: "icon_clipper";
6486 after: "enable_text";
6488 program { name: "enable_text";
6492 get_state(PART:"elm.text", st, 30, vl);
6493 if (!strcmp(st, "disabled_visible"))
6494 set_state(PART:"elm.text", "visible", 0.0);
6496 set_state(PART:"elm.text", "default", 0.0);
6497 set_int(button_state, BUTTON_STATE_ENABLED);
6500 program { name: "focused";
6501 //signal: "elm,action,focus";
6503 action: STATE_SET "focused" 0.0;
6504 target: "button_image";
6507 program { name: "unfocused";
6508 //signal: "elm,action,unfocus";
6510 action: STATE_SET "default" 0.0;
6511 target: "button_image";
6512 after: "unfocus_text";
6514 program { name: "unfocus_text";
6515 action: STATE_SET "visible" 0.0;
6521 ////////////////////////////////////////////////////////////////////////
6522 group { name: "elm/button/base/bubble_sent";
6523 inherit: "elm/button/base/style1";
6525 image: "00_messagebubble_button_sent.png" COMP;
6526 image: "00_messagebubble_button_sent_press.png" COMP;
6527 image: "00_messagebubble_button_sent_dim.png" COMP;
6530 part { name: "button_image";
6532 description { state: "default" 0.0;
6534 normal: "00_messagebubble_button_sent.png";
6535 border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
6539 description { state: "clicked" 0.0;
6540 inherit: "default" 0.0;
6541 image.normal: "00_messagebubble_button_sent_press.png";
6543 description { state: "disabled" 0.0;
6544 inherit: "default" 0.0;
6545 image.normal: "00_messagebubble_button_sent_dim.png";
6547 description { state: "focused" 0.0;
6548 inherit: "default" 0.0;
6549 image.normal: "00_messagebubble_button_sent_press.png";
6552 part { name: "elm.text";
6555 effect: FAR_SHADOW BOTTOM;
6558 description { state: "default" 0.0;
6562 to_x: "padding_after_icon";
6563 to_y: "padding_left_top";
6567 to: "padding_right_bottom";
6569 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6570 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6572 font: "Tizen:style=Regular";
6573 size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
6576 text_class: "tizen";
6579 description { state: "visible" 0.0;
6580 inherit: "default" 0.0;
6583 description { state: "clicked" 0.0;
6584 inherit: "default" 0.0;
6586 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6588 description { state: "disabled" 0.0;
6589 inherit: "default" 0.0;
6591 description { state: "disabled_visible" 0.0;
6592 inherit: "default" 0.0;
6593 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6596 description { state: "focused" 0.0;
6597 inherit: "default" 0.0;
6599 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6605 ////////////////////////////////////////////////////////////////////////
6606 group { name: "elm/button/base/bubble_sent/multiline";
6607 inherit: "elm/button/base/bubble_sent";
6609 style { name: "bubble_sent_multiline";
6610 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";
6617 part { name: "elm.text";
6620 effect: FAR_SHADOW BOTTOM;
6623 description { state: "default" 0.0;
6628 to_x: "padding_after_icon";
6629 to_y: "padding_left_top";
6633 to: "padding_right_bottom";
6635 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6636 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6638 style: "bubble_sent_multiline";
6641 description { state: "visible" 0.0;
6642 inherit: "default" 0.0;
6645 description { state: "clicked" 0.0;
6646 inherit: "default" 0.0;
6648 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6650 description { state: "disabled" 0.0;
6651 inherit: "default" 0.0;
6653 description { state: "disabled_visible" 0.0;
6654 inherit: "default" 0.0;
6655 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6658 description { state: "focused" 0.0;
6659 inherit: "default" 0.0;
6661 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6667 ///////////////////////////////////////////////////////////////////////
6668 group { name: "elm/button/base/bubble_receive";
6669 inherit: "elm/button/base/style1";
6671 image: "00_messagebubble_button_receive.png" COMP;
6672 image: "00_messagebubble_button_receive_press.png" COMP;
6673 image: "00_messagebubble_button_receive_dim.png" COMP;
6676 part { name: "button_image";
6678 description { state: "default" 0.0;
6680 normal: "00_messagebubble_button_receive.png";
6681 border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
6685 description { state: "clicked" 0.0;
6686 inherit: "default" 0.0;
6687 image.normal: "00_messagebubble_button_receive_press.png";
6689 description { state: "disabled" 0.0;
6690 inherit: "default" 0.0;
6691 image.normal: "00_messagebubble_button_receive_dim.png";
6693 description { state: "focused" 0.0;
6694 inherit: "default" 0.0;
6695 image.normal: "00_messagebubble_button_receive_press.png";
6698 part { name: "elm.text";
6701 effect: SHADOW BOTTOM;
6704 description { state: "default" 0.0;
6708 to_x: "padding_after_icon";
6709 to_y: "padding_left_top";
6713 to: "padding_right_bottom";
6715 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6716 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6718 font: "Tizen:style=Regular";
6719 size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
6722 text_class: "tizen";
6725 description { state: "visible" 0.0;
6726 inherit: "default" 0.0;
6729 description { state: "clicked" 0.0;
6730 inherit: "default" 0.0;
6732 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6734 description { state: "disabled" 0.0;
6735 inherit: "default" 0.0;
6737 description { state: "disabled_visible" 0.0;
6738 inherit: "default" 0.0;
6739 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6742 description { state: "focused" 0.0;
6743 inherit: "default" 0.0;
6745 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6751 ///////////////////////////////////////////////////////////////////////
6752 group { name: "elm/button/base/bubble_receive/multiline";
6753 inherit: "elm/button/base/bubble_receive";
6755 style { name: "bubble_receive_multiline";
6756 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";
6763 part { name: "elm.text";
6766 effect: SHADOW BOTTOM;
6769 description { state: "default" 0.0;
6774 to_x: "padding_after_icon";
6775 to_y: "padding_left_top";
6779 to: "padding_right_bottom";
6781 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6782 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6784 style: "btn_style1_multiline";
6787 description { state: "visible" 0.0;
6788 inherit: "default" 0.0;
6791 description { state: "clicked" 0.0;
6792 inherit: "default" 0.0;
6794 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6796 description { state: "disabled" 0.0;
6797 inherit: "default" 0.0;
6799 description { state: "disabled_visible" 0.0;
6800 inherit: "default" 0.0;
6801 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6804 description { state: "focused" 0.0;
6805 inherit: "default" 0.0;
6807 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6813 ///////////////////////////////////////////////////////////////////////
6814 group { name: "elm/button/base/bubble_circle/receive";
6816 image: "00_messagebubble_circle_receive.png" COMP;
6817 image: "00_messagebubble_circle_receive_press.png" COMP;
6818 image: "00_messagebubble_circle_receive_dim.png" COMP;
6819 image: "00_button_right.png" COMP;
6820 image: "00_button_right_press.png" COMP;
6823 part { name: "button_image";
6825 description { state: "default" 0.0;
6826 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6827 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6828 image.normal: "00_messagebubble_circle_receive.png";
6831 state: "clicked" 0.0;
6832 inherit: "default" 0.0;
6833 image.normal: "00_messagebubble_circle_receive_press.png";
6836 state: "disabled" 0.0;
6837 inherit: "default" 0.0;
6838 image.normal: "00_messagebubble_circle_receive_dim.png";
6841 part { name: "image";
6843 clip_to: "icon_clipper";
6844 description { state: "default" 0.0;
6845 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6846 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6847 image.normal: "00_button_right.png";
6850 state: "clicked" 0.0;
6851 inherit: "default" 0.0;
6852 image.normal: "00_button_right_press.png";
6855 state: "disabled" 0.0;
6856 inherit: "default" 0.0;
6859 part { name: "icon_clipper";
6862 description { state: "default" 0.0;
6863 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
6865 description { state: "clicked" 0.0;
6866 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
6868 description { state: "disabled" 0.0;
6869 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
6872 part { name: "over1";
6874 ignore_flags: ON_HOLD;
6875 description { state: "default" 0.0;
6879 part { name: "over2";
6882 description { state: "default" 0.0;
6886 part { name: "disabler";
6888 description { state: "default" 0.0;
6892 description { state: "disabled" 0.0;
6893 inherit: "default" 0.0;
6899 program { name: "button_click";
6900 signal: "mouse,down,1";
6902 action: SIGNAL_EMIT "elm,action,press" "";
6903 after: "button_click_anim";
6905 program { name: "button_click_anim";
6906 action: STATE_SET "clicked" 0.0;
6907 target: "button_image";
6909 target: "icon_clipper";
6911 program { name: "button_double_click";
6912 signal: "mouse,down,1,double";
6914 after: "button_click_anim";
6916 program { name: "button_unclick";
6917 signal: "mouse,up,1";
6919 action: SIGNAL_EMIT "elm,action,unpress" "";
6920 after: "button_unclick_anim";
6922 program { name: "button_unclick_anim";
6923 action: STATE_SET "default" 0.0;
6924 target: "button_image";
6926 target: "icon_clipper";
6928 program { name: "touch_snd";
6929 signal: "mouse,clicked,1";
6931 action: PLAY_SAMPLE "touch_sound" 1.0;
6932 after: button_unclick3;
6934 program { name: "button_unclick3";
6935 action: SIGNAL_EMIT "elm,action,click" "";
6937 program { name: "disable";
6938 signal: "elm,state,disabled";
6940 action: STATE_SET "disabled" 0.0;
6942 target: "button_image";
6943 target: "icon_clipper";
6946 program { name: "enable";
6947 signal: "elm,state,enabled";
6949 action: STATE_SET "default" 0.0;
6951 target: "button_image";
6952 target: "icon_clipper";
6957 ///////////////////////////////////////////////////////////////////////
6958 group { name: "elm/button/base/bubble_circle/sent";
6960 image: "00_messagebubble_circle_sent.png" COMP;
6961 image: "00_messagebubble_circle_sent_press.png" COMP;
6962 image: "00_messagebubble_circle_sent_dim.png" COMP;
6963 image: "00_button_right.png" COMP;
6964 image: "00_button_right_press.png" COMP;
6967 part { name: "button_image";
6969 description { state: "default" 0.0;
6970 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6971 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6972 image.normal: "00_messagebubble_circle_sent.png";
6975 state: "clicked" 0.0;
6976 inherit: "default" 0.0;
6977 image.normal: "00_messagebubble_circle_sent_press.png";
6980 state: "disabled" 0.0;
6981 inherit: "default" 0.0;
6982 image.normal: "00_messagebubble_circle_sent_dim.png";
6985 part { name: "image";
6987 clip_to: "icon_clipper";
6988 description { state: "default" 0.0;
6989 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6990 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6991 image.normal: "00_button_right.png";
6994 state: "clicked" 0.0;
6995 inherit: "default" 0.0;
6996 image.normal: "00_button_right_press.png";
6999 state: "disabled" 0.0;
7000 inherit: "default" 0.0;
7003 part { name: "icon_clipper";
7006 description { state: "default" 0.0;
7007 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
7009 description { state: "clicked" 0.0;
7010 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
7012 description { state: "disabled" 0.0;
7013 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
7016 part { name: "over1";
7018 ignore_flags: ON_HOLD;
7019 description { state: "default" 0.0;
7023 part { name: "over2";
7026 description { state: "default" 0.0;
7030 part { name: "disabler";
7032 description { state: "default" 0.0;
7036 description { state: "disabled" 0.0;
7037 inherit: "default" 0.0;
7043 program { name: "button_click";
7044 signal: "mouse,down,1";
7046 action: SIGNAL_EMIT "elm,action,press" "";
7047 after: "button_click_anim";
7049 program { name: "button_click_anim";
7050 action: STATE_SET "clicked" 0.0;
7051 target: "button_image";
7053 target: "icon_clipper";
7055 program { name: "button_double_click";
7056 signal: "mouse,down,1,double";
7058 after: "button_click_anim";
7060 program { name: "button_unclick";
7061 signal: "mouse,up,1";
7063 action: SIGNAL_EMIT "elm,action,unpress" "";
7064 after: "button_unclick_anim";
7066 program { name: "button_unclick_anim";
7067 action: STATE_SET "default" 0.0;
7068 target: "button_image";
7070 target: "icon_clipper";
7072 program { name: "touch_snd";
7073 signal: "mouse,clicked,1";
7075 action: PLAY_SAMPLE "touch_sound" 1.0;
7076 after: button_unclick3;
7078 program { name: "button_unclick3";
7079 action: SIGNAL_EMIT "elm,action,click" "";
7081 program { name: "disable";
7082 signal: "elm,state,disabled";
7084 action: STATE_SET "disabled" 0.0;
7086 target: "button_image";
7087 target: "icon_clipper";
7089 program { name: "enable";
7090 signal: "elm,state,enabled";
7092 action: STATE_SET "default" 0.0;
7094 target: "button_image";
7095 target: "icon_clipper";
7100 //////////////////////////////////////////////////////////////////////////////////////
7101 group { name: "elm/button/base/editfield_clear";
7103 image: "00_EditField_clear" COMP;
7106 part { name: "button_image";
7109 description { state: "default" 0.0;
7112 description { state: "clicked" 0.0;
7113 inherit: "default" 0.0;
7115 description { state: "disabled" 0.0;
7116 inherit: "default" 0.0;
7118 description { state: "focused" 0.0;
7119 inherit: "default" 0.0;
7122 part { name: "clear_button";
7125 clip_to: "clear_button.clipper";
7126 description { state: "default" 0.0;
7127 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7128 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7131 image.normal: "00_EditField_clear.png";
7134 part { name: "clear_button.clipper";
7136 description { state: "default" 0.0;
7137 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7139 description { state: "clicked" 0.0;
7140 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7142 description { state: "disabled" 0.0;
7143 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7146 part { name: "over2";
7148 ignore_flags: ON_HOLD;
7149 description { state: "default" 0.0;
7153 part { name: "over3";
7156 description { state: "default" 0.0;
7160 part { name: "disabler";
7162 description { state: "default" 0.0;
7166 description { state: "disabled" 0.0;
7167 inherit: "default" 0.0;
7173 program { name: "button_click";
7174 signal: "mouse,down,1";
7176 action: SIGNAL_EMIT "elm,action,press" "";
7177 after: "button_click_anim";
7179 program { name: "button_click_anim";
7180 action: STATE_SET "clicked" 0.0;
7181 target: "button_image";
7182 target: "clear_button.clipper";
7184 program { name: "button_double_click";
7185 signal: "mouse,down,1,double";
7187 after: "button_click_anim";
7189 program { name: "button_unclick";
7190 signal: "mouse,up,1";
7192 action: SIGNAL_EMIT "elm,action,unpress" "";
7193 after: "button_unclick_anim";
7195 program { name: "button_unclick_anim";
7196 action: STATE_SET "default" 0.0;
7197 target: "button_image";
7198 target: "clear_button.clipper";
7200 program { name: "touch_snd";
7201 signal: "mouse,clicked,1";
7203 action: PLAY_SAMPLE "touch_sound" 1.0;
7204 after: button_unclick3;
7206 program { name: "button_unclick3";
7207 action: SIGNAL_EMIT "elm,action,click" "";
7209 program { name: "disable";
7210 signal: "elm,state,disabled";
7212 action: STATE_SET "disabled" 0.0;
7213 target: "button_image";
7215 target: "clear_button.clipper";
7217 program { name: "enable";
7218 signal: "elm,state,enabled";
7220 action: STATE_SET "default" 0.0;
7221 target: "button_image";
7223 target: "clear_button.clipper";
7228 group { name: "elm/button/base/focus";
7230 part { name: "elm.content.swallow";
7233 description { state: "default" 0.0;
7236 part { name: "over2";
7238 ignore_flags: ON_HOLD;
7239 description { state: "default" 0.0;
7243 part { name: "over3";
7246 description { state: "default" 0.0;
7252 program { name: "button_click";
7253 signal: "mouse,down,1";
7255 action: SIGNAL_EMIT "elm,action,press" "";
7257 program { name: "button_unclick";
7258 signal: "mouse,up,1";
7260 action: SIGNAL_EMIT "elm,action,unpress" "";
7262 program { name: "button_unclick3";
7263 action: SIGNAL_EMIT "elm,action,click" "";
7268 group { name: "elm/button/base/search_clear";
7269 inherit: "elm/button/base/editfield_clear";
7271 part { name: "clear_button";
7274 clip_to: "clear_button.clipper";
7275 description { state: "default" 0.0;
7276 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7277 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7280 image.normal: "00_EditField_clear.png";
7286 #undef BUTTON_STATE_ENABLED
7287 #undef BUTTON_STATE_DISABLED