2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #define BUTTON_STATE_ENABLED 0
18 #define BUTTON_STATE_DISABLED 1
20 #define BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC 249 249 249 255
21 #define BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC 249 249 249 255
22 #define BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC 249 249 249 255
23 #define BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC 106 106 106 255
24 #define BUTTON_TEXT_STYLE1_TEXT_DISABLED_COLOR_INC 180 180 1 255
26 #define BUTTON_TEXT_NAVIFRAME_NORMAL_COLOR_INC 211 211 211 255
27 #define BUTTON_TEXT_NAVIFRAME_PRESSED_COLOR_INC 249 249 249 255
28 #define BUTTON_TEXT_NAVIFRAME_FOCUSED_COLOR_INC 249 249 249 255
29 #define BUTTON_TEXT_NAVIFRAME_DISABLED_COLOR_INC 193 193 193 255
31 #define BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC 255 255 255 255
32 #define BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC 255 255 255 255
33 #define BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC 255 255 255 255
34 #define BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC 204 200 188 255
36 #define BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC 249 249 249 255
37 #define BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC 249 249 249 255
38 #define BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC 249 249 249 255
39 #define BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC 108 115 118 255
41 #define BUTTON_TEXT_STYLE1_BG_MIN_INC 100 74
42 #define BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC 148 74
43 #define BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC 74 74
44 #define BUTTON_TEXT_STYLE1_BG_BORDER_INC 5 5 5 5
45 #define BUTTON_TEXT_STYLE1_PADDING_MIN_INC 20 5
46 #define BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC 38 38
47 #define BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC 10 0
48 #define BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC 38 38
49 #define BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC 38 38
50 #define BUTTON_TEXT_STYLE1_FONT_SIZE_INC 32
52 #define BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC 64 64
53 #define BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC 64 64
54 #define BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC 35 35
56 #define BUTTON_POPUP_BG_NORMAL_MIN_INC 30 74
57 #define BUTTON_POPUP_BG_BORDER_INC 5 5 5 5
58 #define BUTTON_POPUP_PADDING_MIN_INC 8 5
59 #define BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC 8 0
60 #define BUTTON_POPUP_ICON_ICONONLY_MIN_INC 38 38
61 #define BUTTON_POPUP_TEXT_MIN_INC 64 20
62 #define BUTTON_POPUP_TEXT_FONT_SIZE_INC 32
64 #define BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC 74 74
65 #define BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC 74 74
66 #define BUTTON_EDIT_STYLE_BORDER_INC 8 0 5 5
68 #define BUTTON_SWEEP_BG_NORMAL_MIN_INC 12 60
69 #define BUTTON_SWEEP_BG_BORDER_INC 5 5 5 5
70 #define BUTTON_SWEEP_PADDING_MIN_INC 5 5
71 #define BUTTON_SWEEP_ICON_RECT_MIN_INC 0 28
72 #define BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC 5 0
73 #define BUTTON_SWEEP_ICONONLY_ICON_MIN_INC 28 28
74 #define BUTTON_SWEEP_TEXT_MIN_INC 90 28
75 #define BUTTON_SWEEP_FONT_SIZE_INC 32
77 #define BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC 106 74
78 #define BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC 5 5 5 5
79 #define BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC 56 56
81 #define BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC 249 249 249 255
82 #define BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC 249 249 249 255
84 #define BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC 22 46
85 #define BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC 4 4 4 4
86 #define BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC 16 2
87 #define BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE 36 36
88 #define BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC 6 0
89 #define BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC 6 0
90 #define BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC 36 36
91 #define BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC 38 38
92 #define BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC 32
93 #define BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC 24
95 #define BUTTON_NAVIFRAME_BG_MIN_INC 124 74
96 #define BUTTON_NAVIFRAME_VISIBLE_BG_MIN_INC 124 74
97 #define BUTTON_NAVIFRAME_ICONONLY_BG_MIN_INC 74 74
98 #define BUTTON_NAVIFRAME_BG_BORDER_INC 5 5 5 5
99 #define BUTTON_NAVIFRAME_PADDING_MIN_INC 5 5
100 #define BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC 38 38
101 #define BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC 10 0
102 #define BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC 38 38
103 #define BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC 38 38
104 #define BUTTON_TEXT_NAVIFRAME_FONT_SIZE_INC 28
105 #define BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC 124 74
107 ///////////////////////////////////////////////////////////////////////////////////////
108 group { name: "elm/button/base/style1";
109 alias: "elm/button/base/text_only/style1";
110 alias: "elm/button/base/center";
111 alias: "elm/button/base/icon_and_text/center";
112 alias: "elm/button/base/nocontents/search_button";
114 image: GALLERY_EDC_IMAGE_BTN_01_NORMAL COMP;
115 image: GALLERY_EDC_IMAGE_BTN_01_PRESS COMP;
116 image: GALLERY_EDC_IMAGE_BTN_01_DIM COMP;
119 public button_state = BUTTON_STATE_ENABLED;
122 part { name: "button_image";
124 description { state: "default" 0.0;
126 normal: GALLERY_EDC_IMAGE_BTN_01_NORMAL;
127 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
131 description { state: "clicked" 0.0;
132 inherit: "default" 0.0;
133 image.normal: GALLERY_EDC_IMAGE_BTN_01_PRESS;
135 description { state: "disabled" 0.0;
136 inherit: "default" 0.0;
137 image.normal: GALLERY_EDC_IMAGE_BTN_01_DIM;
138 //image.normal: GALLERY_EDC_IMAGE_BTN_01_NORMAL;
140 description { state: "focused" 0.0;
141 inherit: "default" 0.0;
142 image.normal: GALLERY_EDC_IMAGE_BTN_01_PRESS;
145 part { name: "padding_left_top";
149 description { state: "default" 0.0;
151 rel2.relative: 0.0 0.0;
152 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
161 description { state: "default" 0.0;
162 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
165 description { state: "visible" 0.0;
166 inherit: "default" 0.0;
167 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
169 description { state: "icononly" 0.0;
170 inherit: "default" 0.0;
171 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
174 part { name: "padding_right_bottom";
178 description { state: "default" 0.0;
180 rel1.relative: 1.0 1.0;
181 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
186 part { name: "icon_rect";
190 description { state: "default" 0.0;
196 to: "padding_left_top";
200 to_x: "padding_left_top";
201 to_y: "padding_right_bottom";
205 description { state: "visible" 0.0;
207 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
208 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
212 to: "padding_left_top";
216 to_x: "padding_left_top";
217 to_y: "padding_right_bottom";
221 description { state: "icononly" 0.0;
222 inherit: "default" 0.0;
225 part { name: "padding_after_icon";
229 description { state: "default" 0.0; //when only icon or no icon is there
235 rel2.to: "icon_rect";
240 description { state: "visible" 0.0;
247 rel2.to: "icon_rect";
249 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
251 description { state: "icononly" 0.0;
252 inherit: "default" 0.0;
255 part { name: "padding_before_text";
259 description { state: "default" 0.0; //when only icon or no icon is there
264 to_y: "padding_left_top";
269 to_y: "padding_right_bottom";
272 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
276 part { name: "elm.swallow.content";
280 description { state: "default" 0.0;
285 to: "padding_left_top";
289 to_x: "padding_left_top";
290 to_y: "padding_right_bottom";
294 description { state: "visible" 0.0;
296 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
297 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
301 to_x: "padding_before_text";
302 to_y: "padding_left_top";
306 to_x: "padding_before_text";
307 to_y: "padding_right_bottom";
310 description { state: "icononly" 0.0;
311 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
312 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
315 part { name: "elm.text";
320 description { state: "default" 0.0;
324 to_x: "padding_after_icon";
325 to_y: "padding_left_top";
329 to: "padding_right_bottom";
331 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
333 font: "HelveticaNeue:style=Medium";
334 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
339 description { state: "visible" 0.0;
340 inherit: "default" 0.0;
343 description { state: "clicked" 0.0;
344 inherit: "default" 0.0;
346 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
348 description { state: "disabled" 0.0;
349 inherit: "default" 0.0;
352 description { state: "disabled_visible" 0.0;
353 inherit: "default" 0.0;
354 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
357 description { state: "focused" 0.0;
358 inherit: "default" 0.0;
360 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
363 part { name: "over2";
366 ignore_flags: ON_HOLD;
367 description { state: "default" 0.0;
371 part { name: "over3";
374 description { state: "default" 0.0;
378 part { name: "clipper";
380 description { state: "default" 0.0;
381 color: 255 255 255 255;
384 part { name: "disabler";
386 description { state: "default" 0.0;
390 description { state: "disabled" 0.0;
391 inherit: "default" 0.0;
397 program { name: "button_click";
398 signal: "mouse,down,1";
400 action: SIGNAL_EMIT "elm,action,press" "";
401 after: "button_click_anim";
403 program { name: "button_click_anim";
404 action: STATE_SET "clicked" 0.0;
405 target: "button_image";
406 after: "text_clicked";
408 program { name: "text_clicked";
412 get_state(PART:"elm.text", st, 30, vl);
413 if (!strcmp(st, "visible"))
414 set_state(PART:"elm.text", "clicked", 0.0);
417 program { name: "button_unpress";
418 action: SIGNAL_EMIT "elm,action,unpress" "";
420 program { name: "button_mouseout_clicked";
421 signal: "mouse,up,1";
426 get_state(PART:"elm.swallow.content", st, 30, vl);
427 if (strcmp(st, "icononly"))
429 emit("elm,action,default,text,set", "");
430 set_state(PART:"elm.text", "visible", 0.0);
432 if (get_int(button_state) != BUTTON_STATE_DISABLED)
433 set_state(PART:"button_image", "default", 0.0);
435 after: button_unpress;
437 program { name: "button_unclick3";
438 signal: "mouse,clicked,1";
440 action: SIGNAL_EMIT "elm,action,click" "";
442 program { name: "text_show";
443 signal: "elm,state,text,visible";
448 get_state(PART:"elm.swallow.content", st, 30, vl);
449 if (!strcmp(st, "icononly"))
451 set_state(PART:"elm.swallow.content", "visible", 0.0);
452 set_state(PART:"icon_rect", "visible", 0.0);
453 set_state(PART:"padding_after_icon", "visible", 0.0);
454 set_state(PART:"bg", "visible", 0.0);
456 if (get_int(button_state) != BUTTON_STATE_DISABLED)
457 set_state(PART:"elm.text", "visible", 0.0);
459 set_state(PART:"elm.text", "disabled_visible", 0.0);
462 program { name: "text_hide";
463 signal: "elm,state,text,hidden";
468 get_state(PART:"elm.swallow.content", st, 30, vl);
469 if (!strcmp(st, "visible"))
471 set_state(PART:"elm.swallow.content", "icononly", 0.0);
472 set_state(PART:"icon_rect", "icononly", 0.0);
473 set_state(PART:"padding_after_icon", "icononly", 0.0);
474 set_state(PART:"bg", "icononly", 0.0);
476 set_state(PART:"elm.text", "default", 0.0);
479 program { name: "icon_show";
480 signal: "elm,state,icon,visible";
485 get_state(PART:"elm.text", st, 30, vl);
486 if (!strcmp(st, "visible"))
488 set_state(PART:"elm.swallow.content", "visible", 0.0);
489 set_state(PART:"icon_rect", "visible", 0.0);
490 set_state(PART:"padding_after_icon", "visible", 0.0);
491 set_state(PART:"bg", "visible", 0.0);
495 set_state(PART:"elm.swallow.content", "icononly", 0.0);
496 set_state(PART:"icon_rect", "icononly", 0.0);
497 set_state(PART:"padding_after_icon", "icononly", 0.0);
498 set_state(PART:"bg", "icononly", 0.0);
502 program { name: "icon_hide";
503 signal: "elm,state,icon,hidden";
505 action: STATE_SET "default" 0.0;
506 target: "elm.swallow.content";
507 target: "padding_after_icon";
511 program { name: "disable";
512 signal: "elm,state,disabled";
514 action: STATE_SET "disabled" 0.0;
515 target: "button_image";
517 after: "disable_text";
519 program { name: "disable_text";
523 get_state(PART:"elm.text", st, 30, vl);
524 if (!strcmp(st, "visible"))
525 set_state(PART:"elm.text", "disabled_visible", 0.0);
527 set_state(PART:"elm.text", "disabled", 0.0);
528 set_int(button_state, BUTTON_STATE_DISABLED);
531 program { name: "enable";
532 signal: "elm,state,enabled";
534 action: STATE_SET "default" 0.0;
535 target: "button_image";
537 after: "enable_text";
539 program { name: "enable_text";
543 get_state(PART:"elm.text", st, 30, vl);
544 if (!strcmp(st, "disabled_visible"))
545 set_state(PART:"elm.text", "visible", 0.0);
547 set_state(PART:"elm.text", "default", 0.0);
548 set_int(button_state, BUTTON_STATE_ENABLED);
551 program { name: "focused";
552 //signal: "elm,action,focus";
554 action: STATE_SET "focused" 0.0;
555 target: "button_image";
558 program { name: "unfocused";
559 //signal: "elm,action,unfocus";
561 action: STATE_SET "default" 0.0;
562 target: "button_image";
563 after: "unfocus_text";
565 program { name: "unfocus_text";
566 action: STATE_SET "visible" 0.0;
572 ///////////////////////////////////////////////////////////////////////////////////////
573 group { name: "elm/button/base/sweep/gallery";
574 alias: "elm/button/base/sweep";
575 alias: "elm/button/base/text_only/sweep";
576 alias: "elm/button/base/searchbar/default";
578 image: GALLERY_EDC_IMAGE_BTN_SWEEP COMP;
579 image: GALLERY_EDC_IMAGE_BTN_SWEEP_PRESS COMP;//focus image is missing, so using press
580 image: GALLERY_EDC_IMAGE_BTN_SWEEP_DIM COMP;
583 public button_state = BUTTON_STATE_ENABLED;
586 part { name: "button_image";
588 description { state: "default" 0.0;
589 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
591 normal: GALLERY_EDC_IMAGE_BTN_SWEEP;
592 border: BUTTON_SWEEP_BG_BORDER_INC;
596 description { state: "clicked" 0.0;
597 inherit: "default" 0.0;
598 image.normal: GALLERY_EDC_IMAGE_BTN_SWEEP_PRESS;
600 description { state: "disabled" 0.0;
601 inherit: "default" 0.0;
602 image.normal: GALLERY_EDC_IMAGE_BTN_SWEEP_DIM;
604 description { state: "focused" 0.0;
605 inherit: "default" 0.0;
606 image.normal: GALLERY_EDC_IMAGE_BTN_SWEEP_PRESS;
609 part { name: "padding_left_top";
613 description { state: "default" 0.0;
615 rel2.relative: 0.0 0.0;
616 min: BUTTON_SWEEP_PADDING_MIN_INC;
621 part { name: "padding_right_bottom";
625 description { state: "default" 0.0;
627 rel1.relative: 1.0 1.0;
628 min: BUTTON_SWEEP_PADDING_MIN_INC;
633 part { name: "icon_rect";
637 description { state: "default" 0.0;
638 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
642 to_x: "elm.swallow.content";
643 to_y: "padding_left_top";
647 to_x: "elm.swallow.content";
648 to_y: "padding_right_bottom";
654 part { name: "padding_icon_text";
658 description { state: "default" 0.0; //when only icon or no icon is there
664 rel2.to: "icon_rect";
669 description { state: "icononly" 0.0;
670 inherit: "default" 0.0;
672 description { state: "visible" 0.0; //when icon is visible
678 rel2.to: "icon_rect";
680 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
684 part { name: "elm.swallow.content";
688 description { state: "default" 0.0;
693 to: "padding_left_top";
697 to_x: "padding_left_top";
698 to_y: "padding_right_bottom";
702 description { state: "visible" 0.0;
707 to: "padding_left_top";
711 to_x: "padding_left_top";
712 to_y: "padding_right_bottom";
715 aspect_preference: VERTICAL;
717 description { state: "icononly" 0.0;
718 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
721 to: "padding_left_top";
725 to_x: "padding_left_top";
726 to_y: "padding_right_bottom";
730 part { name: "elm.text";
735 description { state: "default" 0.0;
739 to_x: "padding_icon_text";
740 to_y: "padding_left_top";
744 to: "padding_right_bottom";
746 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
748 font: "HelveticaNeue:style=Medium";
749 size: BUTTON_SWEEP_FONT_SIZE_INC;
753 description { state: "visible" 0.0;
754 inherit: "default" 0.0;
756 min: BUTTON_SWEEP_TEXT_MIN_INC;
758 description { state: "clicked" 0.0;
759 inherit: "default" 0.0;
762 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
764 description { state: "disabled" 0.0;
765 inherit: "default" 0.0;
768 description { state: "disabled_visible" 0.0;
769 inherit: "default" 0.0;
770 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
772 min: BUTTON_SWEEP_TEXT_MIN_INC;
774 description { state: "focused" 0.0;
775 inherit: "default" 0.0;
778 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
781 part { name: "over2";
784 ignore_flags: ON_HOLD;
785 description { state: "default" 0.0;
789 part { name: "over3";
792 description { state: "default" 0.0;
796 part { name: "clipper";
798 description { state: "default" 0.0;
799 color: 255 255 255 255;
802 part { name: "disabler";
804 description { state: "default" 0.0;
808 description { state: "disabled" 0.0;
809 inherit: "default" 0.0;
815 program { name: "button_click";
816 signal: "mouse,down,1";
818 action: SIGNAL_EMIT "elm,action,press" "";
819 after: "button_click_anim";
821 program { name: "button_click_anim";
822 action: STATE_SET "clicked" 0.0;
823 target: "button_image";
824 after: "text_clicked";
826 program { name: "text_clicked";
830 get_state(PART:"elm.text", st, 30, vl);
831 if (!strcmp(st, "visible"))
832 set_state(PART:"elm.text", "clicked", 0.0);
835 program { name: "button_unpress";
836 action: SIGNAL_EMIT "elm,action,unpress" "";
838 program { name: "button_mouseout_clicked";
839 signal: "mouse,up,1";
844 get_state(PART:"elm.swallow.content", st, 30, vl);
845 if (strcmp(st, "icononly"))
847 emit("elm,action,default,text,set", "");
848 set_state(PART:"elm.text", "visible", 0.0);
850 if (get_int(button_state) != BUTTON_STATE_DISABLED)
851 set_state(PART:"button_image", "default", 0.0);
853 after: button_unpress;
855 program { name: "button_unclick3";
856 signal: "mouse,clicked,1";
858 action: SIGNAL_EMIT "elm,action,click" "";
860 program { name: "text_show";
861 signal: "elm,state,text,visible";
866 get_state(PART:"elm.swallow.content", st, 30, vl);
867 if (!strcmp(st, "icononly"))
869 set_state(PART:"elm.swallow.content", "visible", 0.0);
870 set_state(PART:"padding_icon_text", "visible", 0.0);
872 if (get_int(button_state) != BUTTON_STATE_DISABLED)
873 set_state(PART:"elm.text", "visible", 0.0);
875 set_state(PART:"elm.text", "disabled_visible", 0.0);
878 program { name: "text_hide";
879 signal: "elm,state,text,hidden";
884 get_state(PART:"elm.swallow.content", st, 30, vl);
885 if (!strcmp(st, "visible"))
887 set_state(PART:"elm.swallow.content", "icononly", 0.0);
888 set_state(PART:"padding_icon_text", "icononly", 0.0);
890 set_state(PART:"elm.text", "default", 0.0);
893 program { name: "icon_show";
894 signal: "elm,state,icon,visible";
899 get_state(PART:"elm.text", st, 30, vl);
900 if (!strcmp(st, "visible"))
902 set_state(PART:"elm.swallow.content", "visible", 0.0);
903 set_state(PART:"padding_icon_text", "visible", 0.0);
907 set_state(PART:"elm.swallow.content", "icononly", 0.0);
908 set_state(PART:"padding_icon_text", "icononly", 0.0);
912 program { name: "icon_hide";
913 signal: "elm,state,icon,hidden";
915 action: STATE_SET "default" 0.0;
916 target: "elm.swallow.content";
917 target: "padding_icon_text";
919 program { name: "disable";
920 signal: "elm,state,disabled";
922 action: STATE_SET "disabled" 0.0;
923 target: "button_image";
925 after: "disable_text";
927 program { name: "disable_text";
931 get_state(PART:"elm.text", st, 30, vl);
932 if (!strcmp(st, "visible"))
933 set_state(PART:"elm.text", "disabled_visible", 0.0);
935 set_state(PART:"elm.text", "disabled", 0.0);
936 set_int(button_state, BUTTON_STATE_DISABLED);
939 program { name: "enable";
940 signal: "elm,state,enabled";
942 action: STATE_SET "default" 0.0;
943 target: "button_image";
945 after: "enable_text";
947 program { name: "enable_text";
951 get_state(PART:"elm.text", st, 30, vl);
952 if (!strcmp(st, "disabled_visible"))
953 set_state(PART:"elm.text", "visible", 0.0);
955 set_state(PART:"elm.text", "default", 0.0);
956 set_int(button_state, BUTTON_STATE_ENABLED);
959 program { name: "focused";
960 //signal: "elm,action,focus";
962 action: STATE_SET "focused" 0.0;
963 target: "button_image";
966 program { name: "unfocused";
967 //signal: "elm,action,unfocus";
969 action: STATE_SET "default" 0.0;
970 target: "button_image";
971 after: "unfocus_text";
973 program { name: "unfocus_text";
974 action: STATE_SET "visible" 0.0;
980 ///////////////////////////////////////////////////////////////////////////////////////
981 group { name: "elm/button/base/popup_button/default";
982 alias: "elm/button/base/popup_button/gallery/menustyle";
983 alias: "elm/button/base/popup_button/gallery/default";
985 image: GALLERY_EDC_IMAGE_BUTTON_POPUP_NORMAL COMP;
986 image: GALLERY_EDC_IMAGE_BUTTON_POPUP_PRESS COMP;
987 image: GALLERY_EDC_IMAGE_BUTTON_POPUP_FOCUS COMP;
988 image: GALLERY_EDC_IMAGE_BUTTON_POPUP_DIM COMP;
991 public button_state = BUTTON_STATE_ENABLED;
994 part { name: "button_image";
996 description { state: "default" 0.0;
997 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
999 normal: GALLERY_EDC_IMAGE_BUTTON_POPUP_NORMAL;
1000 border: BUTTON_POPUP_BG_BORDER_INC;
1004 description { state: "clicked" 0.0;
1005 inherit: "default" 0.0;
1007 normal: GALLERY_EDC_IMAGE_BUTTON_POPUP_PRESS;
1010 description { state: "disabled" 0.0;
1011 inherit: "default" 0.0;
1012 image.normal: GALLERY_EDC_IMAGE_BUTTON_POPUP_DIM;
1014 description { state: "focused" 0.0;
1015 inherit: "default" 0.0;
1016 image.normal: GALLERY_EDC_IMAGE_BUTTON_POPUP_FOCUS;
1019 part { name: "padding_left_top";
1023 description { state: "default" 0.0;
1028 min: BUTTON_POPUP_PADDING_MIN_INC;
1033 part { name: "padding_right_bottom";
1036 description { state: "default" 0.0;
1041 min: BUTTON_POPUP_PADDING_MIN_INC;
1046 part { name: "padding_icon_text";
1049 description { state: "default" 0.0; //when only icon or no icon is there
1053 to: "elm.swallow.content";
1056 to: "elm.swallow.content";
1062 description { state: "icononly" 0.0;
1063 inherit: "default" 0.0;
1065 description { state: "visible" 0.0; //when icon is visible
1066 inherit: "default" 0.0;
1067 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1070 part { name: "elm.swallow.content";
1074 description { state: "default" 0.0;
1079 to: "padding_left_top";
1083 to_x: "padding_left_top";
1084 to_y: "padding_right_bottom";
1088 description { state: "visible" 0.0;
1089 inherit: "default" 0.0;
1093 aspect_preference: VERTICAL;
1095 description { state: "icononly" 0.0;
1097 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
1100 to: "padding_left_top";
1104 to_x: "padding_left_top";
1105 to_y: "padding_right_bottom";
1109 part { name: "elm.text";
1114 description { state: "default" 0.0;
1118 to_x: "padding_icon_text";
1119 to_y: "padding_left_top";
1123 to: "padding_right_bottom";
1125 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
1127 font: "Helvetica Neue:style=Medium";
1128 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
1132 description { state: "visible" 0.0;
1133 inherit: "default" 0.0;
1135 min: BUTTON_POPUP_TEXT_MIN_INC;
1137 description { state: "clicked" 0.0;
1138 inherit: "default" 0.0;
1141 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
1143 description { state: "disabled" 0.0;
1144 inherit: "default" 0.0;
1147 description { state: "disabled_visible" 0.0;
1148 inherit: "default" 0.0;
1149 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
1151 min: BUTTON_POPUP_TEXT_MIN_INC;
1153 description { state: "focused" 0.0;
1154 inherit: "default" 0.0;
1157 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1160 part { name: "over2";
1163 ignore_flags: ON_HOLD;
1164 description { state: "default" 0.0;
1168 part { name: "over3";
1171 description { state: "default" 0.0;
1175 part { name: "clipper";
1177 description { state: "default" 0.0;
1178 color: 255 255 255 255;
1181 part { name: "disabler";
1183 description { state: "default" 0.0;
1187 description { state: "disabled" 0.0;
1188 inherit: "default" 0.0;
1194 program { name: "button_click";
1195 signal: "mouse,down,1";
1197 action: SIGNAL_EMIT "elm,action,press" "";
1198 after: "button_click_anim";
1200 program { name: "button_click_anim";
1201 action: STATE_SET "clicked" 0.0;
1202 target: "button_image";
1203 after: "text_clicked";
1205 program { name: "text_clicked";
1209 get_state(PART:"elm.text", st, 30, vl);
1210 if (!strcmp(st, "visible"))
1211 set_state(PART:"elm.text", "clicked", 0.0);
1214 program { name: "button_unpress";
1215 action: SIGNAL_EMIT "elm,action,unpress" "";
1217 program { name: "button_mouseout_clicked";
1218 signal: "mouse,up,1";
1223 get_state(PART:"elm.swallow.content", st, 30, vl);
1224 if (strcmp(st, "icononly"))
1226 emit("elm,action,default,text,set", "");
1227 set_state(PART:"elm.text", "visible", 0.0);
1229 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1230 set_state(PART:"button_image", "default", 0.0);
1232 after: button_unpress;
1234 program { name: "button_unclick3";
1235 signal: "mouse,clicked,1";
1237 action: SIGNAL_EMIT "elm,action,click" "";
1239 program { name: "text_show";
1240 signal: "elm,state,text,visible";
1245 get_state(PART:"elm.swallow.content", st, 30, vl);
1246 if (!strcmp(st, "icononly"))
1248 set_state(PART:"elm.swallow.content", "visible", 0.0);
1249 set_state(PART:"padding_icon_text", "visible", 0.0);
1251 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1252 set_state(PART:"elm.text", "visible", 0.0);
1254 set_state(PART:"elm.text", "disabled_visible", 0.0);
1257 program { name: "text_hide";
1258 signal: "elm,state,text,hidden";
1263 get_state(PART:"elm.swallow.content", st, 30, vl);
1264 if (!strcmp(st, "visible"))
1266 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1267 set_state(PART:"padding_icon_text", "icononly", 0.0);
1269 set_state(PART:"elm.text", "default", 0.0);
1272 program { name: "icon_show";
1273 signal: "elm,state,icon,visible";
1278 get_state(PART:"elm.text", st, 30, vl);
1279 if (!strcmp(st, "visible"))
1281 set_state(PART:"elm.swallow.content", "visible", 0.0);
1282 set_state(PART:"padding_icon_text", "visible", 0.0);
1286 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1287 set_state(PART:"padding_icon_text", "icononly", 0.0);
1291 program { name: "icon_hide";
1292 signal: "elm,state,icon,hidden";
1294 action: STATE_SET "default" 0.0;
1295 target: "elm.swallow.content";
1296 target: "padding_icon_text";
1298 program { name: "disable";
1299 signal: "elm,state,disabled";
1301 action: STATE_SET "disabled" 0.0;
1302 target: "button_image";
1304 after: "disable_text";
1306 program { name: "disable_text";
1310 get_state(PART:"elm.text", st, 30, vl);
1311 if (!strcmp(st, "visible"))
1312 set_state(PART:"elm.text", "disabled_visible", 0.0);
1314 set_state(PART:"elm.text", "disabled", 0.0);
1315 set_int(button_state, BUTTON_STATE_DISABLED);
1318 program { name: "enable";
1319 signal: "elm,state,enabled";
1321 action: STATE_SET "default" 0.0;
1322 target: "button_image";
1324 after: "enable_text";
1326 program { name: "enable_text";
1330 get_state(PART:"elm.text", st, 30, vl);
1331 if (!strcmp(st, "disabled_visible"))
1332 set_state(PART:"elm.text", "visible", 0.0);
1334 set_state(PART:"elm.text", "default", 0.0);
1335 set_int(button_state, BUTTON_STATE_ENABLED);
1338 program { name: "focused";
1339 action: STATE_SET "focused" 0.0;
1340 target: "button_image";
1343 program { name: "unfocused";
1344 action: STATE_SET "default" 0.0;
1345 target: "button_image";
1346 after: "unfocus_text";
1348 program { name: "unfocus_text";
1349 action: STATE_SET "visible" 0.0;
1355 ///////////////////////////////////////////////////////////////////////////////////////
1356 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
1357 group { name: "elm/button/base/"style_name; \
1359 image: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_NORMAL COMP; \
1360 image: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_PRESS COMP; \
1361 image: image_normal COMP; \
1362 image: image_press COMP; \
1365 part { name: "button_image"; \
1367 description { state: "default" 0.0; \
1368 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1369 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1370 image.normal: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_NORMAL; \
1371 color: 255 255 255 255; \
1374 state: "clicked" 0.0; \
1375 inherit: "default" 0.0; \
1376 image.normal: GALLERY_EDC_IMAGE_BTN_CIRCLE_BG_PRESS; \
1379 state: "disabled" 0.0; \
1380 inherit: "default" 0.0; \
1381 color: 255 255 255 128; \
1384 part { name: "button_center_part"; \
1386 description { state: "default" 0.0; \
1387 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
1388 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
1389 image.normal: image_normal; \
1390 color: 255 255 255 255; \
1393 state: "clicked" 0.0; \
1394 inherit: "default" 0.0; \
1395 image.normal: image_press; \
1398 state: "disabled" 0.0; \
1399 inherit: "default" 0.0; \
1400 color: 255 255 255 128; \
1403 part { name: "over1"; \
1405 ignore_flags: ON_HOLD; \
1406 description { state: "default" 0.0; \
1408 min: min_width min_height; \
1411 part { name: "over2"; \
1413 description { state: "default" 0.0; \
1417 part { name: "disabler"; \
1419 description { state: "default" 0.0; \
1423 description { state: "disabled" 0.0; \
1424 inherit: "default" 0.0; \
1430 program { name: "button_click"; \
1431 signal: "mouse,down,1"; \
1433 action: SIGNAL_EMIT "elm,action,press" ""; \
1434 after: "button_click_anim"; \
1436 program { name: "button_click_anim"; \
1437 action: STATE_SET "clicked" 0.0; \
1438 target: "button_image"; \
1439 target: "button_center_part"; \
1441 program { name: "button_unclick"; \
1442 signal: "mouse,up,1"; \
1444 action: SIGNAL_EMIT "elm,action,unpress" ""; \
1445 after: "button_unclick_anim"; \
1447 program { name: "button_unclick_anim"; \
1448 action: STATE_SET "default" 0.0; \
1449 target: "button_image"; \
1450 target: "button_center_part"; \
1452 program { name: "button_unclick2"; \
1453 signal: "mouse,clicked,1"; \
1455 action: SIGNAL_EMIT "elm,action,click" ""; \
1457 program { name: "disable"; \
1458 signal: "elm,state,disabled"; \
1460 action: STATE_SET "disabled" 0.0; \
1461 target: "disabler"; \
1462 target: "button_image"; \
1463 target: "button_center_part"; \
1465 program { name: "enable"; \
1466 signal: "elm,state,enabled"; \
1468 action: STATE_SET "default" 0.0; \
1469 target: "disabler"; \
1470 target: "button_image"; \
1471 target: "button_center_part"; \
1476 ///////////////////////////////////////////////////////////////////////////////////////
1477 BUTTON_CIRCLE_STYLES("gallery/rename", GALLERY_EDC_IMAGE_BUTTON_RENAME, GALLERY_EDC_IMAGE_BUTTON_RENAME_PRESS, 40, 40)
1479 group { name: "elm/button/base/multiline/gallery";
1480 alias: "elm/button/base/multiline";
1481 alias: "elm/button/base/text_only/multiline";
1483 image: GALLERY_EDC_IMAGE_BTN_04_NORMAL COMP;
1484 image: GALLERY_EDC_IMAGE_BTN_04_PRESS COMP;
1485 // image: GALLERY_EDC_IMAGE_BTN_04_DIM COMP;
1488 public button_state = BUTTON_STATE_ENABLED;
1491 style { name: "btn_multiline_style";
1492 base: "font=HelveticaNeue:style=Medium font_size=18 align=center color=#ffffff wrap=mixed";
1499 part { name: "button_image";
1501 description { state: "default" 0.0;
1504 normal: GALLERY_EDC_IMAGE_BTN_04_NORMAL;
1509 description { state: "clicked" 0.0;
1510 inherit: "default" 0.0;
1511 image.normal: GALLERY_EDC_IMAGE_BTN_04_PRESS;
1513 description { state: "disabled" 0.0;
1514 inherit: "default" 0.0;
1515 //image.normal: GALLERY_EDC_IMAGE_BTN_04_DIM;
1516 image.normal: GALLERY_EDC_IMAGE_BTN_04_NORMAL;
1518 description { state: "focused" 0.0;
1519 inherit: "default" 0.0;
1520 image.normal: GALLERY_EDC_IMAGE_BTN_04_PRESS;
1523 part { name: "padding_left_top";
1527 description { state: "default" 0.0;
1529 rel2.relative: 0.0 0.0;
1535 part { name: "padding_right_bottom";
1539 description { state: "default" 0.0;
1541 rel1.relative: 1.0 1.0;
1547 part { name: "icon_rect";
1551 description { state: "default" 0.0;
1557 to_x: "elm.swallow.content";
1558 to_y: "padding_left_top";
1562 to_x: "elm.swallow.content";
1563 to_y: "padding_right_bottom";
1569 part { name: "padding_icon_text";
1573 description { state: "default" 0.0; //when only icon or no icon is there
1579 rel2.to: "icon_rect";
1584 description { state: "icononly" 0.0;
1585 inherit: "default" 0.0;
1587 description { state: "visible" 0.0; //when icon is visible
1593 rel2.to: "icon_rect";
1599 part { name: "elm.swallow.content";
1603 description { state: "default" 0.0;
1608 to: "padding_left_top";
1612 to_x: "padding_left_top";
1613 to_y: "padding_right_bottom";
1617 description { state: "visible" 0.0;
1622 to: "padding_left_top";
1626 to_x: "padding_left_top";
1627 to_y: "padding_right_bottom";
1630 aspect_preference: VERTICAL;
1632 description { state: "icononly" 0.0;
1636 to: "padding_left_top";
1640 to: "padding_right_bottom";
1643 aspect_preference: VERTICAL;
1646 part { name: "elm.text";
1651 description { state: "default" 0.0;
1655 to_x: "padding_icon_text";
1656 to_y: "padding_left_top";
1660 to: "padding_right_bottom";
1662 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1664 style: "btn_multiline_style";
1669 description { state: "visible" 0.0;
1670 inherit: "default" 0.0;
1674 description { state: "clicked" 0.0;
1675 inherit: "default" 0.0;
1678 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1680 description { state: "disabled" 0.0;
1681 inherit: "default" 0.0;
1684 description { state: "disabled_visible" 0.0;
1685 inherit: "default" 0.0;
1686 color: BUTTON_TEXT_STYLE1_TEXT_DISABLED_COLOR_INC;
1690 description { state: "focused" 0.0;
1691 inherit: "default" 0.0;
1694 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1697 part { name: "over2";
1700 ignore_flags: ON_HOLD;
1701 description { state: "default" 0.0;
1705 part { name: "over3";
1708 description { state: "default" 0.0;
1712 part { name: "clipper";
1714 description { state: "default" 0.0;
1715 color: 255 255 255 255;
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_unpress";
1752 action: SIGNAL_EMIT "elm,action,unpress" "";
1754 program { name: "button_mouseout_clicked";
1755 signal: "mouse,up,1";
1760 get_state(PART:"elm.swallow.content", st, 30, vl);
1761 if (strcmp(st, "icononly"))
1763 emit("elm,action,default,text,set", "");
1764 set_state(PART:"elm.text", "visible", 0.0);
1766 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1767 set_state(PART:"button_image", "default", 0.0);
1769 after: button_unpress;
1771 program { name: "button_unclick3";
1772 signal: "mouse,clicked,1";
1774 action: SIGNAL_EMIT "elm,action,click" "";
1776 program { name: "text_show";
1777 signal: "elm,state,text,visible";
1782 get_state(PART:"elm.swallow.content", st, 30, vl);
1783 if (!strcmp(st, "icononly"))
1785 set_state(PART:"elm.swallow.content", "visible", 0.0);
1786 set_state(PART:"padding_icon_text", "visible", 0.0);
1788 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1789 set_state(PART:"elm.text", "visible", 0.0);
1791 set_state(PART:"elm.text", "disabled_visible", 0.0);
1794 program { name: "text_hide";
1795 signal: "elm,state,text,hidden";
1800 get_state(PART:"elm.swallow.content", st, 30, vl);
1801 if (!strcmp(st, "visible"))
1803 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1804 set_state(PART:"padding_icon_text", "icononly", 0.0);
1806 set_state(PART:"elm.text", "default", 0.0);
1809 program { name: "icon_show";
1810 signal: "elm,state,icon,visible";
1815 get_state(PART:"elm.text", st, 30, vl);
1816 if (!strcmp(st, "visible"))
1818 set_state(PART:"elm.swallow.content", "visible", 0.0);
1819 set_state(PART:"padding_icon_text", "visible", 0.0);
1823 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1824 set_state(PART:"padding_icon_text", "icononly", 0.0);
1828 program { name: "icon_hide";
1829 signal: "elm,state,icon,hidden";
1831 action: STATE_SET "default" 0.0;
1832 target: "elm.swallow.content";
1833 target: "padding_icon_text";
1835 program { name: "disable";
1836 signal: "elm,state,disabled";
1838 action: STATE_SET "disabled" 0.0;
1839 target: "button_image";
1841 after: "disable_text";
1843 program { name: "disable_text";
1847 get_state(PART:"elm.text", st, 30, vl);
1848 if (!strcmp(st, "visible"))
1849 set_state(PART:"elm.text", "disabled_visible", 0.0);
1851 set_state(PART:"elm.text", "disabled", 0.0);
1852 set_int(button_state, BUTTON_STATE_DISABLED);
1855 program { name: "enable";
1856 signal: "elm,state,enabled";
1858 action: STATE_SET "default" 0.0;
1859 target: "button_image";
1861 after: "enable_text";
1863 program { name: "enable_text";
1867 get_state(PART:"elm.text", st, 30, vl);
1868 if (!strcmp(st, "disabled_visible"))
1869 set_state(PART:"elm.text", "visible", 0.0);
1871 set_state(PART:"elm.text", "default", 0.0);
1872 set_int(button_state, BUTTON_STATE_ENABLED);
1875 program { name: "focused";
1876 //signal: "elm,action,focus";
1878 action: STATE_SET "focused" 0.0;
1879 target: "button_image";
1882 program { name: "unfocused";
1883 //signal: "elm,action,unfocus";
1885 action: STATE_SET "default" 0.0;
1886 target: "button_image";
1887 after: "unfocus_text";
1889 program { name: "unfocus_text";
1890 action: STATE_SET "visible" 0.0;
1896 ///////////////////////////////////////////////////////////////////////////////////////
1897 group { name: "elm/button/base/naviframe/back_btn/gallery";
1898 alias: "elm/button/base/naviframe/back_btn/default";
1899 alias: "elm/button/base/naviframe/prev_btn/default";
1900 alias: "elm/button/base/naviframe/end_btn/default";
1902 image: GALLERY_EDC_IMAGE_BTN_PREV COMP;
1903 image: GALLERY_EDC_IMAGE_BTN_PREV_PRESS COMP;
1904 image: GALLERY_EDC_IMAGE_PREV COMP;
1907 public button_state = BUTTON_STATE_ENABLED;
1910 part { name: "button_image";
1912 description { state: "default" 0.0;
1913 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
1914 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
1916 normal: GALLERY_EDC_IMAGE_BTN_PREV;
1917 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
1921 description { state: "clicked" 0.0;
1922 inherit: "default" 0.0;
1923 image.normal: GALLERY_EDC_IMAGE_BTN_PREV_PRESS;
1925 description { state: "disabled" 0.0;
1926 inherit: "default" 0.0;
1928 description { state: "focused" 0.0;
1929 inherit: "default" 0.0;
1930 image.normal: GALLERY_EDC_IMAGE_BTN_PREV_PRESS;
1933 part { name: "back_button";
1936 description { state: "default" 0.0;
1937 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
1938 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
1939 rel1.to: "button_image";
1940 rel2.to: "button_image";
1941 image.normal: GALLERY_EDC_IMAGE_PREV;
1943 description { state: "clicked" 0.0;
1944 inherit: "default" 0.0;
1947 part { name: "over2";
1950 ignore_flags: ON_HOLD;
1951 description { state: "default" 0.0;
1955 part { name: "over3";
1958 description { state: "default" 0.0;
1962 part { name: "disabler";
1964 description { state: "default" 0.0;
1968 description { state: "disabled" 0.0;
1969 inherit: "default" 0.0;
1975 program { name: "button_click";
1976 signal: "mouse,down,1";
1978 action: SIGNAL_EMIT "elm,action,press" "";
1979 after: "button_click_anim";
1981 program { name: "button_click_anim";
1982 action: STATE_SET "clicked" 0.0;
1983 target: "button_image";
1985 program { name: "button_unpress";
1986 action: SIGNAL_EMIT "elm,action,unpress" "";
1988 program { name: "button_mouseout_clicked";
1989 signal: "mouse,up,1";
1992 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1993 set_state(PART:"button_image", "default", 0.0);
1995 after: button_unpress;
1997 program { name: "button_unclick3";
1998 signal: "mouse,clicked,1";
2000 action: SIGNAL_EMIT "elm,action,click" "";
2002 program { name: "disable";
2003 signal: "elm,state,disabled";
2005 action: STATE_SET "disabled" 0.0;
2006 target: "button_image";
2008 after: "disable_button";
2010 program { name: "disable_button";
2012 set_int(button_state, BUTTON_STATE_DISABLED);
2015 program { name: "enable";
2016 signal: "elm,state,enabled";
2018 action: STATE_SET "default" 0.0;
2019 target: "button_image";
2021 after: "enable_button";
2023 program { name: "enable_button";
2025 set_int(button_state, BUTTON_STATE_ENABLED);
2031 ///////////////////////////////////////////////////////////////////////////////////////
2032 group { name: "elm/button/base/naviframe_control/gallery";
2033 alias: "elm/button/base/naviframe_control/default";
2034 alias: "elm/button/base/naviframe_control/center";
2036 public button_state = BUTTON_STATE_ENABLED;
2039 image: GALLERY_EDC_IMAGE_OPTION_HEADER_BT COMP;
2040 image: GALLERY_EDC_IMAGE_OPTION_HEADER_BT_DIM COMP;
2041 image: GALLERY_EDC_IMAGE_OPTION_HEADER_BT_PRESS COMP;
2044 part { name: "button_image";
2046 description { state: "default" 0.0;
2047 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
2052 normal: GALLERY_EDC_IMAGE_OPTION_HEADER_BT;
2053 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
2055 color: 255 255 255 255;
2057 description { state: "disabled" 0.0;
2058 inherit: "default" 0.0;
2059 image.normal: GALLERY_EDC_IMAGE_OPTION_HEADER_BT_DIM;
2061 description { state: "clicked" 0.0;
2062 inherit: "default" 0.0;
2063 image.normal: GALLERY_EDC_IMAGE_OPTION_HEADER_BT_PRESS;
2066 part { name: "padding_left_top";
2070 description { state: "default" 0.0;
2072 rel2.relative: 0.0 0.0;
2073 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
2078 part { name: "padding_right_bottom";
2082 description { state: "default" 0.0;
2084 rel1.relative: 1.0 1.0;
2085 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
2090 part { name: "icon_rect";
2094 description { state: "default" 0.0;
2099 to: "padding_left_top";
2103 to_x: "padding_left_top";
2104 to_y: "padding_right_bottom";
2109 description { state: "visible" 0.0;
2110 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
2114 to: "padding_left_top";
2118 to_x: "padding_left_top";
2119 to_y: "padding_right_bottom";
2124 description { state: "icononly" 0.0;
2125 inherit: "default" 0.0;
2128 part { name: "padding_after_icon";
2132 description { state: "default" 0.0; //when only icon or no icon is there
2138 rel2.to: "icon_rect";
2143 description { state: "visible" 0.0;
2149 rel2.to: "icon_rect";
2151 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
2154 description { state: "icononly" 0.0;
2155 inherit: "default" 0.0;
2158 part { name: "padding_before_text";
2162 description { state: "default" 0.0; //when only icon or no icon is there
2167 to_y: "padding_left_top";
2172 to_y: "padding_right_bottom";
2175 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
2179 part { name: "elm.swallow.content";
2183 description { state: "default" 0.0;
2188 to: "padding_left_top";
2192 to_x: "padding_left_top";
2193 to_y: "padding_right_bottom";
2197 description { state: "visible" 0.0;
2199 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
2200 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
2204 to_x: "padding_before_text";
2205 to_y: "padding_left_top";
2209 to_x: "padding_before_text";
2210 to_y: "padding_right_bottom";
2213 aspect_preference: VERTICAL;
2215 description { state: "icononly" 0.0;
2216 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
2217 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
2220 to: "padding_left_top";
2224 to: "padding_right_bottom";
2227 aspect_preference: VERTICAL;
2230 part { name: "elm.text";
2235 description { state: "default" 0.0;
2239 to_x: "padding_after_icon";
2240 to_y: "padding_left_top";
2244 to: "padding_right_bottom";
2246 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
2248 font: "Helvetica Neue:style=Medium";
2249 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
2254 description { state: "visible" 0.0;
2255 inherit: "default" 0.0;
2258 description { state: "clicked" 0.0;
2259 inherit: "default" 0.0;
2263 description { state: "focused" 0.0;
2264 inherit: "default" 0.0;
2267 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
2270 part { name: "over2";
2273 ignore_flags: ON_HOLD;
2274 description { state: "default" 0.0;
2278 part { name: "over3";
2281 description { state: "default" 0.0;
2285 part { name: "clipper";
2287 description { state: "default" 0.0;
2288 color: 255 255 255 255;
2290 description { state: "disabled" 0.0;
2291 color: 255 255 255 127;
2294 part { name: "disabler";
2296 description { state: "default" 0.0;
2300 description { state: "disabled" 0.0;
2301 inherit: "default" 0.0;
2307 program { name: "button_click";
2308 signal: "mouse,down,1";
2310 action: SIGNAL_EMIT "elm,action,press" "";
2311 after: "button_click_anim";
2313 program { name: "button_click_anim";
2314 action: STATE_SET "clicked" 0.0;
2315 target: "button_image";
2316 after: "text_clicked";
2318 program { name: "text_clicked";
2322 get_state(PART:"elm.text", st, 30, vl);
2323 if (!strcmp(st, "visible"))
2324 set_state(PART:"elm.text", "clicked", 0.0);
2327 program { name: "button_unpress";
2328 action: SIGNAL_EMIT "elm,action,unpress" "";
2330 program { name: "button_mouseout_clicked";
2331 signal: "mouse,up,1";
2336 get_state(PART:"elm.swallow.content", st, 30, vl);
2337 if (strcmp(st, "icononly"))
2339 emit("elm,action,default,text,set", "");
2340 set_state(PART:"elm.text", "visible", 0.0);
2342 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2343 set_state(PART:"button_image", "default", 0.0);
2345 after: button_unpress;
2347 program { name: "button_unclick3";
2348 signal: "mouse,clicked,1";
2350 action: SIGNAL_EMIT "elm,action,click" "";
2352 program { name: "text_show";
2353 signal: "elm,state,text,visible";
2358 get_state(PART:"elm.swallow.content", st, 30, vl);
2359 if (!strcmp(st, "icononly"))
2361 set_state(PART:"elm.swallow.content", "visible", 0.0);
2362 set_state(PART:"icon_rect", "visible", 0.0);
2363 set_state(PART:"padding_after_icon", "visible", 0.0);
2365 set_state(PART:"elm.text", "visible", 0.0);
2368 program { name: "text_hide";
2369 signal: "elm,state,text,hidden";
2374 get_state(PART:"elm.swallow.content", st, 30, vl);
2375 if (!strcmp(st, "visible"))
2377 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2378 set_state(PART:"icon_rect", "icononly", 0.0);
2379 set_state(PART:"padding_after_icon", "icononly", 0.0);
2381 set_state(PART:"elm.text", "default", 0.0);
2384 program { name: "icon_show";
2385 signal: "elm,state,icon,visible";
2390 get_state(PART:"elm.text", st, 30, vl);
2391 if (!strcmp(st, "visible"))
2393 set_state(PART:"elm.swallow.content", "visible", 0.0);
2394 set_state(PART:"icon_rect", "visible", 0.0);
2395 set_state(PART:"padding_after_icon", "visible", 0.0);
2399 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2400 set_state(PART:"icon_rect", "icononly", 0.0);
2401 set_state(PART:"padding_after_icon", "icononly", 0.0);
2405 program { name: "icon_hide";
2406 signal: "elm,state,icon,hidden";
2408 action: STATE_SET "default" 0.0;
2409 target: "elm.swallow.content";
2410 target: "icon_rect";
2411 target: "padding_after_icon";
2413 program { name: "disable";
2414 signal: "elm,state,disabled";
2416 action: STATE_SET "disabled" 0.0;
2417 target: "button_image";
2420 after: "disable_text";
2422 program { name: "disable_text";
2426 set_int(button_state, BUTTON_STATE_DISABLED);
2427 get_state(PART:"elm.text", st, 30, vl);
2428 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
2429 set_state(PART:"elm.text", "visible", 0.0);
2432 program { name: "enable";
2433 signal: "elm,state,enabled";
2435 action: STATE_SET "default" 0.0;
2436 target: "button_image";
2439 after: "enable_text";
2441 program { name: "enable_text";
2445 set_int(button_state, BUTTON_STATE_ENABLED);
2446 get_state(PART:"elm.text", st, 30, vl);
2447 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
2448 set_state(PART:"elm.text", "visible", 0.0);
2451 program { name: "focused";
2452 action: STATE_SET "focused" 0.0;
2453 target: "button_image";
2456 program { name: "unfocused";
2457 action: STATE_SET "default" 0.0;
2458 target: "button_image";
2459 after: "unfocus_text";
2461 program { name: "unfocus_text";
2462 action: STATE_SET "visible" 0.0;
2468 ///////////////////////////////////////////////////////////////////////////////////////
2469 group { name: "elm/button/base/naviframe_control/multiline/gallery";
2470 alias: "elm/button/base/naviframe_control/multiline";
2473 public button_state = BUTTON_STATE_ENABLED;
2476 image: GALLERY_EDC_IMAGE_OPTION_HEADER_BT COMP;
2477 image: GALLERY_EDC_IMAGE_OPTION_HEADER_BT_DIM COMP;
2478 image: GALLERY_EDC_IMAGE_OPTION_HEADER_BT_PRESS COMP;
2481 style { name: "btn_multiline_naviframe_controlbar_style";
2482 base: "font=Helvetica Neue:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed";
2489 part { name: "button_image";
2491 description { state: "default" 0.0;
2492 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
2496 normal: GALLERY_EDC_IMAGE_OPTION_HEADER_BT;
2497 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
2499 color: 255 255 255 255;
2501 description { state: "disabled" 0.0;
2502 inherit: "default" 0.0;
2503 image.normal: GALLERY_EDC_IMAGE_OPTION_HEADER_BT_DIM;
2505 description { state: "clicked" 0.0;
2506 inherit: "default" 0.0;
2507 image.normal: GALLERY_EDC_IMAGE_OPTION_HEADER_BT_PRESS;
2510 part { name: "padding_left_top";
2514 description { state: "default" 0.0;
2516 rel2.relative: 0.0 0.0;
2517 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
2522 part { name: "padding_right_bottom";
2526 description { state: "default" 0.0;
2528 rel1.relative: 1.0 1.0;
2529 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
2534 part { name: "icon_rect";
2538 description { state: "default" 0.0;
2544 to_x: "elm.swallow.content";
2545 to_y: "padding_left_top";
2549 to_x: "elm.swallow.content";
2550 to_y: "padding_right_bottom";
2555 part { name: "padding_icon_text";
2559 description { state: "default" 0.0; //when only icon or no icon is there
2573 description { state: "visible" 0.0;
2574 inherit: "default" 0.0;
2575 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
2585 description { state: "icononly" 0.0;
2586 inherit: "default" 0.0;
2589 part { name: "elm.swallow.content";
2593 description { state: "default" 0.0;
2598 to: "padding_left_top";
2602 to_x: "padding_left_top";
2603 to_y: "padding_right_bottom";
2607 description { state: "visible" 0.0;
2609 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
2610 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
2614 to: "padding_left_top";
2618 to_x: "padding_left_top";
2619 to_y: "padding_right_bottom";
2622 description { state: "icononly" 0.0;
2623 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
2624 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
2627 to: "padding_left_top";
2631 to: "padding_right_bottom";
2635 part { name: "elm.text";
2640 description { state: "default" 0.0;
2644 to_x: "padding_icon_text";
2645 to_y: "padding_left_top";
2649 to: "padding_right_bottom";
2651 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
2653 style: "btn_multiline_naviframe_controlbar_style";
2658 description { state: "visible" 0.0;
2659 inherit: "default" 0.0;
2663 description { state: "clicked" 0.0;
2664 inherit: "default" 0.0;
2668 description { state: "focused" 0.0;
2669 inherit: "default" 0.0;
2672 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
2675 part { name: "over2";
2678 ignore_flags: ON_HOLD;
2679 description { state: "default" 0.0;
2683 part { name: "over3";
2686 description { state: "default" 0.0;
2690 part { name: "clipper";
2692 description { state: "default" 0.0;
2693 color: 255 255 255 255;
2695 description { state: "disabled" 0.0;
2696 color: 255 255 255 127;
2699 part { name: "disabler";
2701 description { state: "default" 0.0;
2705 description { state: "disabled" 0.0;
2706 inherit: "default" 0.0;
2712 program { name: "button_click";
2713 signal: "mouse,down,1";
2715 action: SIGNAL_EMIT "elm,action,press" "";
2716 after: "button_click_anim";
2718 program { name: "button_click_anim";
2719 action: STATE_SET "clicked" 0.0;
2720 target: "button_image";
2721 after: "text_clicked";
2723 program { name: "text_clicked";
2727 get_state(PART:"elm.text", st, 30, vl);
2728 if (!strcmp(st, "visible"))
2729 set_state(PART:"elm.text", "clicked", 0.0);
2732 program { name: "button_unpress";
2733 action: SIGNAL_EMIT "elm,action,unpress" "";
2735 program { name: "button_mouseout_clicked";
2736 signal: "mouse,up,1";
2741 get_state(PART:"elm.swallow.content", st, 30, vl);
2742 if (strcmp(st, "icononly"))
2744 emit("elm,action,default,text,set", "");
2745 set_state(PART:"elm.text", "visible", 0.0);
2747 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2748 set_state(PART:"button_image", "default", 0.0);
2750 after: button_unpress;
2752 program { name: "button_unclick3";
2753 signal: "mouse,clicked,1";
2755 action: SIGNAL_EMIT "elm,action,click" "";
2757 program { name: "text_show";
2758 signal: "elm,state,text,visible";
2763 get_state(PART:"elm.swallow.content", st, 30, vl);
2764 if (!strcmp(st, "icononly"))
2766 set_state(PART:"elm.swallow.content", "visible", 0.0);
2767 set_state(PART:"padding_icon_text", "visible", 0.0);
2769 set_state(PART:"elm.text", "visible", 0.0);
2772 program { name: "text_hide";
2773 signal: "elm,state,text,hidden";
2778 get_state(PART:"elm.swallow.content", st, 30, vl);
2779 if (!strcmp(st, "visible"))
2781 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2782 set_state(PART:"padding_icon_text", "icononly", 0.0);
2784 set_state(PART:"elm.text", "default", 0.0);
2787 program { name: "icon_show";
2788 signal: "elm,state,icon,visible";
2793 get_state(PART:"elm.text", st, 30, vl);
2794 if (!strcmp(st, "visible"))
2796 set_state(PART:"elm.swallow.content", "visible", 0.0);
2797 set_state(PART:"padding_icon_text", "visible", 0.0);
2801 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2802 set_state(PART:"padding_icon_text", "icononly", 0.0);
2806 program { name: "icon_hide";
2807 signal: "elm,state,icon,hidden";
2809 action: STATE_SET "default" 0.0;
2810 target: "elm.swallow.content";
2811 target: "padding_icon_text";
2813 program { name: "disable";
2814 signal: "elm,state,disabled";
2816 action: STATE_SET "disabled" 0.0;
2817 target: "button_image";
2820 after: "disable_text";
2822 program { name: "disable_text";
2826 set_int(button_state, BUTTON_STATE_DISABLED);
2827 get_state(PART:"elm.text", st, 30, vl);
2828 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
2829 set_state(PART:"elm.text", "visible", 0.0);
2832 program { name: "enable";
2833 signal: "elm,state,enabled";
2835 action: STATE_SET "default" 0.0;
2836 target: "button_image";
2839 after: "enable_text";
2841 program { name: "enable_text";
2845 set_int(button_state, BUTTON_STATE_ENABLED);
2846 get_state(PART:"elm.text", st, 30, vl);
2847 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
2848 set_state(PART:"elm.text", "visible", 0.0);
2851 program { name: "focused";
2852 action: STATE_SET "focused" 0.0;
2853 target: "button_image";
2856 program { name: "unfocused";
2857 action: STATE_SET "default" 0.0;
2858 target: "button_image";
2859 after: "unfocus_text";
2861 program { name: "unfocus_text";
2862 action: STATE_SET "visible" 0.0;
2868 ///////////////////////////////////////////////////////////////////////////////////////
2869 group { name: "elm/button/base/naviframe/title/gallery";
2870 alias: "elm/button/base/naviframe/title/default";
2873 image: GALLERY_EDC_IMAGE_BTN_TITLE COMP;
2874 image: GALLERY_EDC_IMAGE_BTN_TITLE_PRESS COMP;
2877 public button_state = BUTTON_STATE_ENABLED;
2880 part { name: "button_image";
2882 description { state: "default" 0.0;
2883 min: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
2884 max: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
2886 normal: GALLERY_EDC_IMAGE_BTN_TITLE;
2887 border: BUTTON_NAVIFRAME_BG_BORDER_INC;
2891 description { state: "clicked" 0.0;
2892 inherit: "default" 0.0;
2893 image.normal: GALLERY_EDC_IMAGE_BTN_TITLE_PRESS;
2895 description { state: "disabled" 0.0;
2896 inherit: "default" 0.0;
2899 description { state: "focused" 0.0;
2900 inherit: "default" 0.0;
2901 image.normal: GALLERY_EDC_IMAGE_BTN_TITLE_PRESS;
2904 part { name: "padding_left_top";
2908 description { state: "default" 0.0;
2910 rel2.relative: 0.0 0.0;
2911 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
2920 description { state: "default" 0.0;
2921 min: BUTTON_NAVIFRAME_BG_MIN_INC;
2924 description { state: "visible" 0.0;
2925 inherit: "default" 0.0;
2926 min: BUTTON_NAVIFRAME_VISIBLE_BG_MIN_INC;
2928 description { state: "icononly" 0.0;
2929 inherit: "default" 0.0;
2930 min: BUTTON_NAVIFRAME_ICONONLY_BG_MIN_INC;
2933 part { name: "padding_right_bottom";
2937 description { state: "default" 0.0;
2939 rel1.relative: 1.0 1.0;
2940 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
2945 part { name: "icon_rect";
2949 description { state: "default" 0.0;
2955 to: "padding_left_top";
2959 to_x: "padding_left_top";
2960 to_y: "padding_right_bottom";
2964 description { state: "visible" 0.0;
2966 min: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
2967 max: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
2971 to: "padding_left_top";
2975 to_x: "padding_left_top";
2976 to_y: "padding_right_bottom";
2980 description { state: "icononly" 0.0;
2981 inherit: "default" 0.0;
2984 part { name: "padding_after_icon";
2988 description { state: "default" 0.0; //when only icon or no icon is there
2994 rel2.to: "icon_rect";
2999 description { state: "visible" 0.0;
3006 rel2.to: "icon_rect";
3008 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
3010 description { state: "icononly" 0.0;
3011 inherit: "default" 0.0;
3014 part { name: "padding_before_text";
3018 description { state: "default" 0.0; //when only icon or no icon is there
3023 to_y: "padding_left_top";
3028 to_y: "padding_right_bottom";
3031 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
3035 part { name: "elm.swallow.content";
3039 description { state: "default" 0.0;
3044 to: "padding_left_top";
3048 to_x: "padding_left_top";
3049 to_y: "padding_right_bottom";
3053 description { state: "visible" 0.0;
3055 min: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
3056 max: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
3060 to_x: "padding_before_text";
3061 to_y: "padding_left_top";
3065 to_x: "padding_before_text";
3066 to_y: "padding_right_bottom";
3069 description { state: "icononly" 0.0;
3070 min: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
3071 max: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
3074 part { name: "elm.text";
3079 description { state: "default" 0.0;
3083 to_x: "padding_after_icon";
3084 to_y: "padding_left_top";
3088 to: "padding_right_bottom";
3090 color: BUTTON_TEXT_NAVIFRAME_NORMAL_COLOR_INC;
3092 font: "HelveticaNeue:style=Medium";
3093 size: BUTTON_TEXT_NAVIFRAME_FONT_SIZE_INC;
3098 description { state: "visible" 0.0;
3099 inherit: "default" 0.0;
3102 description { state: "clicked" 0.0;
3103 inherit: "default" 0.0;
3105 color: BUTTON_TEXT_NAVIFRAME_PRESSED_COLOR_INC;
3107 description { state: "disabled" 0.0;
3108 inherit: "default" 0.0;
3111 description { state: "disabled_visible" 0.0;
3112 inherit: "default" 0.0;
3113 color: BUTTON_TEXT_NAVIFRAME_DISABLED_COLOR_INC;
3116 description { state: "focused" 0.0;
3117 inherit: "default" 0.0;
3119 color: BUTTON_TEXT_NAVIFRAME_FOCUSED_COLOR_INC;
3122 part { name: "over2";
3125 ignore_flags: ON_HOLD;
3126 description { state: "default" 0.0;
3130 part { name: "over3";
3133 description { state: "default" 0.0;
3137 part { name: "clipper";
3139 description { state: "default" 0.0;
3140 color: 255 255 255 255;
3143 part { name: "disabler";
3145 description { state: "default" 0.0;
3149 description { state: "disabled" 0.0;
3150 inherit: "default" 0.0;
3156 program { name: "button_click";
3157 signal: "mouse,down,1";
3159 action: SIGNAL_EMIT "elm,action,press" "";
3160 after: "button_click_anim";
3162 program { name: "button_click_anim";
3163 action: STATE_SET "clicked" 0.0;
3164 target: "button_image";
3165 after: "text_clicked";
3167 program { name: "text_clicked";
3171 get_state(PART:"elm.text", st, 30, vl);
3172 if (!strcmp(st, "visible"))
3173 set_state(PART:"elm.text", "clicked", 0.0);
3176 program { name: "button_unpress";
3177 action: SIGNAL_EMIT "elm,action,unpress" "";
3179 program { name: "button_mouseout_clicked";
3180 signal: "mouse,up,1";
3185 get_state(PART:"elm.swallow.content", st, 30, vl);
3186 if (strcmp(st, "icononly"))
3188 emit("elm,action,default,text,set", "");
3189 set_state(PART:"elm.text", "visible", 0.0);
3191 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3192 set_state(PART:"button_image", "default", 0.0);
3194 after: button_unpress;
3196 program { name: "button_unclick3";
3197 signal: "mouse,clicked,1";
3199 action: SIGNAL_EMIT "elm,action,click" "";
3201 program { name: "text_show";
3202 signal: "elm,state,text,visible";
3207 get_state(PART:"elm.swallow.content", st, 30, vl);
3208 if (!strcmp(st, "icononly"))
3210 set_state(PART:"elm.swallow.content", "visible", 0.0);
3211 set_state(PART:"icon_rect", "visible", 0.0);
3212 set_state(PART:"padding_after_icon", "visible", 0.0);
3213 set_state(PART:"bg", "visible", 0.0);
3215 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3216 set_state(PART:"elm.text", "visible", 0.0);
3218 set_state(PART:"elm.text", "disabled_visible", 0.0);
3221 program { name: "text_hide";
3222 signal: "elm,state,text,hidden";
3227 get_state(PART:"elm.swallow.content", st, 30, vl);
3228 if (!strcmp(st, "visible"))
3230 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3231 set_state(PART:"icon_rect", "icononly", 0.0);
3232 set_state(PART:"padding_after_icon", "icononly", 0.0);
3233 set_state(PART:"bg", "icononly", 0.0);
3235 set_state(PART:"elm.text", "default", 0.0);
3238 program { name: "icon_show";
3239 signal: "elm,state,icon,visible";
3244 get_state(PART:"elm.text", st, 30, vl);
3245 if (!strcmp(st, "visible"))
3247 set_state(PART:"elm.swallow.content", "visible", 0.0);
3248 set_state(PART:"icon_rect", "visible", 0.0);
3249 set_state(PART:"padding_after_icon", "visible", 0.0);
3250 set_state(PART:"bg", "visible", 0.0);
3254 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3255 set_state(PART:"icon_rect", "icononly", 0.0);
3256 set_state(PART:"padding_after_icon", "icononly", 0.0);
3257 set_state(PART:"bg", "icononly", 0.0);
3261 program { name: "icon_hide";
3262 signal: "elm,state,icon,hidden";
3264 action: STATE_SET "default" 0.0;
3265 target: "elm.swallow.content";
3266 target: "padding_after_icon";
3267 target: "icon_rect";
3270 program { name: "disable";
3271 signal: "elm,state,disabled";
3273 action: STATE_SET "disabled" 0.0;
3274 target: "button_image";
3276 after: "disable_text";
3278 program { name: "disable_text";
3282 get_state(PART:"elm.text", st, 30, vl);
3283 if (!strcmp(st, "visible"))
3284 set_state(PART:"elm.text", "disabled_visible", 0.0);
3286 set_state(PART:"elm.text", "disabled", 0.0);
3287 set_int(button_state, BUTTON_STATE_DISABLED);
3290 program { name: "enable";
3291 signal: "elm,state,enabled";
3293 action: STATE_SET "default" 0.0;
3294 target: "button_image";
3296 after: "enable_text";
3298 program { name: "enable_text";
3302 get_state(PART:"elm.text", st, 30, vl);
3303 if (!strcmp(st, "disabled_visible"))
3304 set_state(PART:"elm.text", "visible", 0.0);
3306 set_state(PART:"elm.text", "default", 0.0);
3307 set_int(button_state, BUTTON_STATE_ENABLED);
3310 program { name: "focused";
3311 //signal: "elm,action,focus";
3313 action: STATE_SET "focused" 0.0;
3314 target: "button_image";
3317 program { name: "unfocused";
3318 //signal: "elm,action,unfocus";
3320 action: STATE_SET "default" 0.0;
3321 target: "button_image";
3322 after: "unfocus_text";
3324 program { name: "unfocus_text";
3325 action: STATE_SET "visible" 0.0;
3331 #undef BUTTON_STATE_ENABLED
3332 #undef BUTTON_STATE_DISABLED