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.
18 #define GENLIST_PART_BOTTOM_LINE_INC 199 199 199 255
19 #define GENLIST_PART_BG_COLOR_INC 249 249 249 255
20 #define GENLIST_PART_BG_SELECTED_COLOR_INC 50 65 74 180
21 #define GENLIST_PART_TEXT_SELECTED_COLOR_INC 255 255 255 255
22 #define GENLIST_PART_TEXT_COLOR_INC 0 0 0 255
24 #define FONT_BLD HelveticaNeueBld
25 #define FONT_MED HelveticaNeueMed
26 #define FONT_ROM HelveticaNeueRom
27 #define FONT_LIG HelveticaNeueLig
29 #define PADDING(title, w, h, fixed_w, fixed_h, align_w, align_h, l, t, r, b, rel1_to, rel2_to) \
34 state: "default" 0.0; \
38 fixed: fixed_w fixed_h; \
39 align: align_w align_h; \
40 rel1 { relative: l t; to: rel1_to; } \
41 rel2 { relative: r b; to: rel2_to; } \
46 #define BUTTON(button_name, normal_image, press_image, l, r, t, b) \
47 group { name: "elm/button/base/browser/"#button_name; \
49 image: normal_image COMP; \
50 image: press_image COMP; \
53 style { name: #button_name"btn_textblock_style"; \
54 base: "font=FONT_CONTENT font_size=30 align=center color=#FFFFFF wrap=char"; \
56 tag: "hilight" "+ font=FONT_CONTENT:style=Bold"; \
57 tag: "b" "+ font=FONT_CONTENT:style=Bold"; \
62 part { name: "button_image"; \
65 effect: SOFT_SHADOW; \
66 description { state: "default" 0.0; \
68 normal: normal_image; \
72 description { state: "clicked" 0.0; \
73 inherit: "default" 0.0; \
74 image.normal: press_image; \
76 description { state: "disabled" 0.0; \
77 inherit: "default" 0.0; \
78 image.normal: normal_image; \
81 part { name: "elm.text"; \
86 description { state: "default" 0.0; \
90 rel1 { relative: 0.1 0; to: "button_image"; } \
91 rel2 { relative: 0.9 1; to: "button_image"; } \
92 color: 255 255 255 255; \
94 style: #button_name"btn_textblock_style"; \
99 description { state: "visible" 0.0; \
100 inherit: "default" 0.0; \
104 description { state: "clicked" 0.0; \
105 inherit: "default" 0.0; \
109 description { state: "disabled" 0.0; \
110 inherit: "default" 0.0; \
114 description { state: "disabled_visible" 0.0; \
115 inherit: "default" 0.0; \
122 part { name: "over1"; \
124 description { state: "default" 0.0; \
125 rel2.relative: 1.0 0.5; \
127 description { state: "disabled" 0.0; \
128 inherit: "default" 0.0; \
131 part { name: "over2"; \
134 ignore_flags: ON_HOLD; \
135 description { state: "default" 0.0; \
137 description { state: "disabled" 0.0; \
138 inherit: "default" 0.0; \
142 part { name: "over3"; \
145 description { state: "default" 0.0; \
146 color: 255 255 255 0; \
148 description { state: "clicked" 0.0; \
149 inherit: "default" 0.0; \
151 color: 255 255 255 0; \
154 part { name: "disabler"; \
156 description { state: "default" 0.0; \
160 description { state: "disabled" 0.0; \
161 inherit: "default" 0.0; \
167 program { name: "button_click"; \
168 signal: "mouse,down,1"; \
170 action: SIGNAL_EMIT "elm,action,press" ""; \
171 after: "button_click_anim"; \
173 program { name: "button_click_anim"; \
174 action: STATE_SET "clicked" 0.0; \
175 target: "button_image"; \
176 target: "elm.text"; \
178 program { name: "button_unclick"; \
179 signal: "mouse,up,1"; \
181 action: SIGNAL_EMIT "elm,action,unpress" ""; \
182 after: "button_unclick_anim"; \
184 program { name: "button_unclick_anim"; \
185 action: STATE_SET "default" 0.0; \
186 target: "button_image"; \
187 action: STATE_SET "visible" 0.0; \
188 target: "elm.text"; \
190 program { name: "button_mouseout_clicked"; \
191 signal: "mouse,out"; \
196 get_state(PART:"elm.text", st, 30, vl); \
197 if (!strcmp(st, "clicked")) \
199 set_state(PART:"elm.text", "visible", 0.0); \
200 set_state(PART:"button_image", "visible", 0.0); \
204 program { name: "button_click2"; \
205 signal: "mouse,down,1"; \
207 action: STATE_SET "clicked" 0.0; \
210 program { name: "button_unclick2"; \
211 signal: "mouse,clicked,1"; \
213 action: STATE_SET "default" 0.0; \
216 program { name: "button_unclick3"; \
217 signal: "mouse,clicked,1"; \
219 action: SIGNAL_EMIT "elm,action,click" ""; \
221 program { name: "text_show"; \
222 signal: "elm,state,text,visible"; \
224 action: STATE_SET "visible" 0.0; \
225 target: "elm.text"; \
227 program { name: "text_hide"; \
228 signal: "elm,state,text,hidden"; \
230 action: STATE_SET "default" 0.0; \
231 target: "elm.text"; \
233 program { name: "disable"; \
234 signal: "elm,state,disabled"; \
236 action: STATE_SET "disabled" 0.0; \
237 target: "button_image"; \
240 target: "disabler"; \
241 after: "disable_text"; \
243 program { name: "disable_text"; \
247 get_state(PART:"elm.text", st, 30, vl); \
248 if (!strcmp(st, "visible")) \
249 set_state(PART:"elm.text", "disabled_visible", 0.0); \
251 set_state(PART:"elm.text", "disabled", 0.0); \
254 program { name: "enable"; \
255 signal: "elm,state,enabled"; \
257 action: STATE_SET "default" 0.0; \
258 target: "button_image"; \
261 target: "disabler"; \
262 after: "enable_text"; \
264 program { name: "enable_text"; \
268 get_state(PART:"elm.text", st, 30, vl); \
269 if (!strcmp(st, "disabled_visible")) \
270 set_state(PART:"elm.text", "visible", 0.0); \
272 set_state(PART:"elm.text", "default", 0.0); \
278 #define ZOOM_BUTTON(button_name, normal_image, press_image, disable_image, l, r, t, b) \
279 group { name: "elm/button/base/browser/"#button_name; \
281 image: normal_image COMP; \
282 image: press_image COMP; \
283 image: disable_image COMP; \
286 style { name: #button_name"btn_textblock_style"; \
287 base: "font=FONT_CONTENT font_size=30 align=center color=#4E4945 wrap=char"; \
289 tag: "hilight" "+ font=FONT_CONTENT:style=Bold"; \
290 tag: "b" "+ font=FONT_CONTENT:style=Bold"; \
295 part { name: "button_image"; \
298 effect: SOFT_SHADOW; \
299 description { state: "default" 0.0; \
301 normal: normal_image; \
305 description { state: "clicked" 0.0; \
306 inherit: "default" 0.0; \
307 image.normal: press_image; \
309 description { state: "disabled" 0.0; \
310 inherit: "default" 0.0; \
311 image.normal: disable_image; \
314 part { name: "elm.text"; \
319 description { state: "default" 0.0; \
323 rel1 { relative: 0.1 0; to: "button_image"; } \
324 rel2 { relative: 0.9 1; to: "button_image"; } \
325 color: 255 255 255 255; \
327 style: #button_name"btn_textblock_style"; \
332 description { state: "visible" 0.0; \
333 inherit: "default" 0.0; \
337 description { state: "clicked" 0.0; \
338 inherit: "default" 0.0; \
342 description { state: "disabled" 0.0; \
343 inherit: "default" 0.0; \
347 description { state: "disabled_visible" 0.0; \
348 inherit: "default" 0.0; \
355 part { name: "over1"; \
357 description { state: "default" 0.0; \
358 rel2.relative: 1.0 0.5; \
360 description { state: "disabled" 0.0; \
361 inherit: "default" 0.0; \
364 part { name: "over2"; \
367 ignore_flags: ON_HOLD; \
368 description { state: "default" 0.0; \
370 rel1 { relative: 0.0 0.0; to: "button_image"; } \
371 rel2 { relative: 1.0 1.0; to: "button_image"; } \
373 description { state: "disabled" 0.0; \
374 inherit: "default" 0.0; \
378 part { name: "over3"; \
381 description { state: "default" 0.0; \
382 color: 255 255 255 0; \
384 description { state: "clicked" 0.0; \
385 inherit: "default" 0.0; \
387 color: 255 255 255 0; \
390 part { name: "disabler"; \
392 description { state: "default" 0.0; \
396 description { state: "disabled" 0.0; \
397 inherit: "default" 0.0; \
403 program { name: "button_click"; \
404 signal: "mouse,down,1"; \
406 action: SIGNAL_EMIT "elm,action,press" ""; \
407 after: "button_click_anim"; \
409 program { name: "button_click_anim"; \
410 action: STATE_SET "clicked" 0.0; \
411 target: "button_image"; \
412 target: "elm.text"; \
414 program { name: "button_unclick"; \
415 signal: "mouse,up,1"; \
417 action: SIGNAL_EMIT "elm,action,unpress" ""; \
418 after: "button_unclick_anim"; \
420 program { name: "button_unclick_anim"; \
421 action: STATE_SET "default" 0.0; \
422 target: "button_image"; \
423 action: STATE_SET "visible" 0.0; \
424 target: "elm.text"; \
426 program { name: "button_mouseout_clicked"; \
427 signal: "mouse,out"; \
432 get_state(PART:"elm.text", st, 30, vl); \
433 if (!strcmp(st, "clicked")) \
435 set_state(PART:"elm.text", "visible", 0.0); \
436 set_state(PART:"button_image", "visible", 0.0); \
440 program { name: "button_click2"; \
441 signal: "mouse,down,1"; \
443 action: STATE_SET "clicked" 0.0; \
446 program { name: "button_unclick2"; \
447 signal: "mouse,clicked,1"; \
449 action: STATE_SET "default" 0.0; \
452 program { name: "button_unclick3"; \
453 signal: "mouse,clicked,1"; \
455 action: SIGNAL_EMIT "elm,action,click" ""; \
457 program { name: "text_show"; \
458 signal: "elm,state,text,visible"; \
460 action: STATE_SET "visible" 0.0; \
461 target: "elm.text"; \
463 program { name: "text_hide"; \
464 signal: "elm,state,text,hidden"; \
466 action: STATE_SET "default" 0.0; \
467 target: "elm.text"; \
469 program { name: "disable"; \
470 signal: "elm,state,disabled"; \
472 action: STATE_SET "disabled" 0.0; \
473 target: "button_image"; \
476 target: "disabler"; \
477 after: "disable_text"; \
479 program { name: "disable_text"; \
483 get_state(PART:"elm.text", st, 30, vl); \
484 if (!strcmp(st, "visible")) \
485 set_state(PART:"elm.text", "disabled_visible", 0.0); \
487 set_state(PART:"elm.text", "disabled", 0.0); \
490 program { name: "enable"; \
491 signal: "elm,state,enabled"; \
493 action: STATE_SET "default" 0.0; \
494 target: "button_image"; \
497 target: "disabler"; \
498 after: "enable_text"; \
500 program { name: "enable_text"; \
504 get_state(PART:"elm.text", st, 30, vl); \
505 if (!strcmp(st, "disabled_visible")) \
506 set_state(PART:"elm.text", "visible", 0.0); \
508 set_state(PART:"elm.text", "default", 0.0); \
514 #define TITLE_BUTTON(button_name, normal_image, press_image, l, r, t, b) \
515 group { name: "elm/button/base/browser/"#button_name; \
517 image: normal_image COMP; \
518 image: press_image COMP; \
521 style { name: #button_name"btn_textblock_style"; \
522 base: "font=FONT_CONTENT font_size=30 align=center color=#FFFFFF wrap=char"; \
524 tag: "hilight" "+ font=FONT_CONTENT:style=Bold"; \
525 tag: "b" "+ font=FONT_CONTENT:style=Bold"; \
530 part { name: "button_image"; \
533 effect: SOFT_SHADOW; \
534 description { state: "default" 0.0; \
536 normal: normal_image; \
540 description { state: "clicked" 0.0; \
541 inherit: "default" 0.0; \
542 image.normal: press_image; \
544 description { state: "disabled" 0.0; \
545 inherit: "default" 0.0; \
546 image.normal: normal_image; \
549 part { name: "elm.text"; \
554 description { state: "default" 0.0; \
558 rel1 { relative: 0.1 0; to: "button_image"; } \
559 rel2 { relative: 0.9 1; to: "button_image"; } \
560 color: 255 255 255 255; \
562 style: #button_name"btn_textblock_style"; \
567 description { state: "visible" 0.0; \
568 inherit: "default" 0.0; \
572 description { state: "clicked" 0.0; \
573 inherit: "default" 0.0; \
577 description { state: "disabled" 0.0; \
578 inherit: "default" 0.0; \
582 description { state: "disabled_visible" 0.0; \
583 inherit: "default" 0.0; \
590 part { name: "over1"; \
592 description { state: "default" 0.0; \
593 rel2.relative: 1.0 0.5; \
595 description { state: "disabled" 0.0; \
596 inherit: "default" 0.0; \
599 part { name: "over2"; \
602 ignore_flags: ON_HOLD; \
603 description { state: "default" 0.0; \
605 description { state: "disabled" 0.0; \
606 inherit: "default" 0.0; \
610 part { name: "over3"; \
613 description { state: "default" 0.0; \
614 color: 255 255 255 0; \
616 description { state: "clicked" 0.0; \
617 inherit: "default" 0.0; \
619 color: 255 255 255 0; \
622 part { name: "disabler"; \
624 description { state: "default" 0.0; \
628 description { state: "disabled" 0.0; \
629 inherit: "default" 0.0; \
635 program { name: "button_click"; \
636 signal: "mouse,down,1"; \
638 action: SIGNAL_EMIT "elm,action,press" ""; \
639 after: "button_click_anim"; \
641 program { name: "button_click_anim"; \
642 action: STATE_SET "clicked" 0.0; \
643 target: "button_image"; \
644 target: "elm.text"; \
646 program { name: "button_unclick"; \
647 signal: "mouse,up,1"; \
649 action: SIGNAL_EMIT "elm,action,unpress" ""; \
650 after: "button_unclick_anim"; \
652 program { name: "button_unclick_anim"; \
653 action: STATE_SET "default" 0.0; \
654 target: "button_image"; \
655 action: STATE_SET "visible" 0.0; \
656 target: "elm.text"; \
658 program { name: "button_mouseout_clicked"; \
659 signal: "mouse,out"; \
664 get_state(PART:"elm.text", st, 30, vl); \
665 if (!strcmp(st, "clicked")) \
667 set_state(PART:"elm.text", "visible", 0.0); \
668 set_state(PART:"button_image", "visible", 0.0); \
672 program { name: "button_click2"; \
673 signal: "mouse,down,1"; \
675 action: STATE_SET "clicked" 0.0; \
678 program { name: "button_unclick2"; \
679 signal: "mouse,clicked,1"; \
681 action: STATE_SET "default" 0.0; \
684 program { name: "button_unclick3"; \
685 signal: "mouse,clicked,1"; \
687 action: SIGNAL_EMIT "elm,action,click" ""; \
689 program { name: "text_show"; \
690 signal: "elm,state,text,visible"; \
692 action: STATE_SET "visible" 0.0; \
693 target: "elm.text"; \
695 program { name: "text_hide"; \
696 signal: "elm,state,text,hidden"; \
698 action: STATE_SET "default" 0.0; \
699 target: "elm.text"; \
701 program { name: "disable"; \
702 signal: "elm,state,disabled"; \
704 action: STATE_SET "disabled" 0.0; \
705 target: "button_image"; \
708 target: "disabler"; \
709 after: "disable_text"; \
711 program { name: "disable_text"; \
715 get_state(PART:"elm.text", st, 30, vl); \
716 if (!strcmp(st, "visible")) \
717 set_state(PART:"elm.text", "disabled_visible", 0.0); \
719 set_state(PART:"elm.text", "disabled", 0.0); \
722 program { name: "enable"; \
723 signal: "elm,state,enabled"; \
725 action: STATE_SET "default" 0.0; \
726 target: "button_image"; \
729 target: "disabler"; \
730 after: "enable_text"; \
732 program { name: "enable_text"; \
736 get_state(PART:"elm.text", st, 30, vl); \
737 if (!strcmp(st, "disabled_visible")) \
738 set_state(PART:"elm.text", "visible", 0.0); \
740 set_state(PART:"elm.text", "default", 0.0); \
746 #define BUTTON_WITH_TEXT(button_name, normal_image, press_image, l, r, t, b, bg_w, bg_h) \
747 group { name: "elm/button/base/browser/"#button_name; \
749 image: normal_image COMP; \
750 image: press_image COMP; \
753 style { name: #button_name"btn_textblock_style"; \
754 base: "font=FONT_CONTENT font_size=24 align=center color=#FFFFFF wrap=char"; \
756 tag: "hilight" "+ font=FONT_CONTENT:style=Bold"; \
757 tag: "b" "+ font=FONT_CONTENT:style=Bold"; \
762 part { name: "button_image"; \
765 effect: SOFT_SHADOW; \
766 description { state: "default" 0.0; \
772 normal: normal_image; \
776 description { state: "clicked" 0.0; \
777 inherit: "default" 0.0; \
778 image.normal: press_image; \
780 description { state: "disabled" 0.0; \
781 inherit: "default" 0.0; \
782 image.normal: normal_image; \
785 part { name: "elm.text"; \
790 description { state: "default" 0.0; \
794 rel1 { relative: 0.1 0; to: "button_image"; } \
795 rel2 { relative: 0.9 1; to: "button_image"; } \
796 color: 255 255 255 255; \
798 style: #button_name"btn_textblock_style"; \
803 description { state: "visible" 0.0; \
804 inherit: "default" 0.0; \
808 description { state: "clicked" 0.0; \
809 inherit: "default" 0.0; \
813 description { state: "disabled" 0.0; \
814 inherit: "default" 0.0; \
818 description { state: "disabled_visible" 0.0; \
819 inherit: "default" 0.0; \
826 part { name: "over1"; \
828 description { state: "default" 0.0; \
829 rel2.relative: 1.0 0.5; \
831 description { state: "disabled" 0.0; \
832 inherit: "default" 0.0; \
835 part { name: "over2"; \
838 ignore_flags: ON_HOLD; \
839 description { state: "default" 0.0; \
841 description { state: "disabled" 0.0; \
842 inherit: "default" 0.0; \
846 part { name: "over3"; \
849 description { state: "default" 0.0; \
850 color: 255 255 255 0; \
852 description { state: "clicked" 0.0; \
853 inherit: "default" 0.0; \
855 color: 255 255 255 0; \
858 part { name: "disabler"; \
860 description { state: "default" 0.0; \
864 description { state: "disabled" 0.0; \
865 inherit: "default" 0.0; \
871 program { name: "button_click"; \
872 signal: "mouse,down,1"; \
874 action: SIGNAL_EMIT "elm,action,press" ""; \
875 after: "button_click_anim"; \
877 program { name: "button_click_anim"; \
878 action: STATE_SET "clicked" 0.0; \
879 target: "button_image"; \
880 target: "elm.text"; \
882 program { name: "button_unclick"; \
883 signal: "mouse,up,1"; \
885 action: SIGNAL_EMIT "elm,action,unpress" ""; \
886 after: "button_unclick_anim"; \
888 program { name: "button_unclick_anim"; \
889 action: STATE_SET "default" 0.0; \
890 target: "button_image"; \
891 action: STATE_SET "visible" 0.0; \
892 target: "elm.text"; \
894 program { name: "button_mouseout_clicked"; \
895 signal: "mouse,out"; \
900 get_state(PART:"elm.text", st, 30, vl); \
901 if (!strcmp(st, "clicked")) \
903 set_state(PART:"elm.text", "visible", 0.0); \
904 set_state(PART:"button_image", "visible", 0.0); \
908 program { name: "button_click2"; \
909 signal: "mouse,down,1"; \
911 action: STATE_SET "clicked" 0.0; \
914 program { name: "button_unclick2"; \
915 signal: "mouse,clicked,1"; \
917 action: STATE_SET "default" 0.0; \
920 program { name: "button_unclick3"; \
921 signal: "mouse,clicked,1"; \
923 action: SIGNAL_EMIT "elm,action,click" ""; \
925 program { name: "text_show"; \
926 signal: "elm,state,text,visible"; \
928 action: STATE_SET "visible" 0.0; \
929 target: "elm.text"; \
931 program { name: "text_hide"; \
932 signal: "elm,state,text,hidden"; \
934 action: STATE_SET "default" 0.0; \
935 target: "elm.text"; \
937 program { name: "disable"; \
938 signal: "elm,state,disabled"; \
940 action: STATE_SET "disabled" 0.0; \
941 target: "button_image"; \
944 target: "disabler"; \
945 after: "disable_text"; \
947 program { name: "disable_text"; \
951 get_state(PART:"elm.text", st, 30, vl); \
952 if (!strcmp(st, "visible")) \
953 set_state(PART:"elm.text", "disabled_visible", 0.0); \
955 set_state(PART:"elm.text", "disabled", 0.0); \
958 program { name: "enable"; \
959 signal: "elm,state,enabled"; \
961 action: STATE_SET "default" 0.0; \
962 target: "button_image"; \
965 target: "disabler"; \
966 after: "enable_text"; \
968 program { name: "enable_text"; \
972 get_state(PART:"elm.text", st, 30, vl); \
973 if (!strcmp(st, "disabled_visible")) \
974 set_state(PART:"elm.text", "visible", 0.0); \
976 set_state(PART:"elm.text", "default", 0.0); \
982 #define BUTTON_WITH_BG(button_name, normal_image, press_image, main_image, main_image_disable, l, r, t, b, bg_w, bg_h, main_image_w, main_image_h) \
983 group { name: "elm/button/base/browser/"#button_name; \
985 image: normal_image COMP; \
986 image: press_image COMP; \
987 image: main_image COMP; \
988 image: main_image_disable COMP; \
991 style { name: #button_name"btn_textblock_style"; \
992 base: "font=FONT_CONTENT font_size=21 align=center color=#FFFFFF wrap=char"; \
994 tag: "hilight" "+ font=FONT_CONTENT:style=Bold"; \
995 tag: "b" "+ font=FONT_CONTENT:style=Bold"; \
1000 part { name: "button_image"; \
1003 effect: SOFT_SHADOW; \
1004 description { state: "default" 0.0; \
1010 normal: normal_image; \
1014 description { state: "clicked" 0.0; \
1015 inherit: "default" 0.0; \
1016 image.normal: press_image; \
1018 description { state: "disabled" 0.0; \
1019 inherit: "default" 0.0; \
1020 image.normal: normal_image; \
1023 part { name: "main_image"; \
1027 effect: SOFT_SHADOW; \
1028 description { state: "default" 0.0; \
1029 min: main_image_w main_image_h; \
1030 max: main_image_w main_image_h; \
1033 rel1 { relative: 0.0 0.0; to: "button_image"; } \
1034 rel2 { relative: 1.0 1.0; to: "button_image"; } \
1036 normal: main_image; \
1039 description { state: "disabled" 0.0; \
1040 inherit: "default" 0.0; \
1041 image.normal: main_image_disable; \
1044 part { name: "elm.text"; \
1049 description { state: "default" 0.0; \
1053 rel1 { relative: 0.1 0; to: "button_image"; } \
1054 rel2 { relative: 0.9 1; to: "button_image"; } \
1057 style: #button_name"btn_textblock_style"; \
1062 description { state: "visible" 0.0; \
1063 inherit: "default" 0.0; \
1067 description { state: "clicked" 0.0; \
1068 inherit: "default" 0.0; \
1072 description { state: "disabled" 0.0; \
1073 inherit: "default" 0.0; \
1077 description { state: "disabled_visible" 0.0; \
1078 inherit: "default" 0.0; \
1085 part { name: "over1"; \
1087 description { state: "default" 0.0; \
1088 rel2.relative: 1.0 0.5; \
1090 description { state: "disabled" 0.0; \
1091 inherit: "default" 0.0; \
1094 part { name: "over2"; \
1097 ignore_flags: ON_HOLD; \
1098 description { state: "default" 0.0; \
1100 description { state: "disabled" 0.0; \
1101 inherit: "default" 0.0; \
1105 part { name: "over3"; \
1108 description { state: "default" 0.0; \
1109 color: 255 255 255 0; \
1111 description { state: "clicked" 0.0; \
1112 inherit: "default" 0.0; \
1114 color: 255 255 255 0; \
1117 part { name: "disabler"; \
1119 description { state: "default" 0.0; \
1123 description { state: "disabled" 0.0; \
1124 inherit: "default" 0.0; \
1130 program { name: "button_click"; \
1131 signal: "mouse,down,1"; \
1133 action: SIGNAL_EMIT "elm,action,press" ""; \
1134 after: "button_click_anim"; \
1136 program { name: "button_click_anim"; \
1137 action: STATE_SET "clicked" 0.0; \
1138 target: "button_image"; \
1139 target: "elm.text"; \
1141 program { name: "button_unclick"; \
1142 signal: "mouse,up,1"; \
1144 action: SIGNAL_EMIT "elm,action,unpress" ""; \
1145 after: "button_unclick_anim"; \
1147 program { name: "button_unclick_anim"; \
1148 action: STATE_SET "default" 0.0; \
1149 target: "button_image"; \
1150 action: STATE_SET "visible" 0.0; \
1151 target: "elm.text"; \
1153 program { name: "button_mouseout_clicked"; \
1154 signal: "mouse,out"; \
1159 get_state(PART:"elm.text", st, 30, vl); \
1160 if (!strcmp(st, "clicked")) \
1162 set_state(PART:"elm.text", "visible", 0.0); \
1163 set_state(PART:"button_image", "visible", 0.0); \
1167 program { name: "button_click2"; \
1168 signal: "mouse,down,1"; \
1170 action: STATE_SET "clicked" 0.0; \
1173 program { name: "button_unclick2"; \
1174 signal: "mouse,clicked,1"; \
1176 action: STATE_SET "default" 0.0; \
1179 program { name: "button_unclick3"; \
1180 signal: "mouse,clicked,1"; \
1182 action: SIGNAL_EMIT "elm,action,click" ""; \
1184 program { name: "text_show"; \
1185 signal: "elm,state,text,visible"; \
1187 action: STATE_SET "visible" 0.0; \
1188 target: "elm.text"; \
1190 program { name: "text_hide"; \
1191 signal: "elm,state,text,hidden"; \
1193 action: STATE_SET "default" 0.0; \
1194 target: "elm.text"; \
1196 program { name: "disable"; \
1197 signal: "elm,state,disabled"; \
1199 action: STATE_SET "disabled" 0.0; \
1200 target: "button_image"; \
1203 target: "disabler"; \
1204 target: "main_image"; \
1205 after: "disable_text"; \
1207 program { name: "disable_text"; \
1211 get_state(PART:"elm.text", st, 30, vl); \
1212 if (!strcmp(st, "visible")) \
1213 set_state(PART:"elm.text", "disabled_visible", 0.0); \
1215 set_state(PART:"elm.text", "disabled", 0.0); \
1218 program { name: "enable"; \
1219 signal: "elm,state,enabled"; \
1221 action: STATE_SET "default" 0.0; \
1222 target: "button_image"; \
1225 target: "disabler"; \
1226 target: "main_image"; \
1227 after: "enable_text"; \
1229 program { name: "enable_text"; \
1233 get_state(PART:"elm.text", st, 30, vl); \
1234 if (!strcmp(st, "disabled_visible")) \
1235 set_state(PART:"elm.text", "visible", 0.0); \
1237 set_state(PART:"elm.text", "default", 0.0); \
1243 #define FIND_BUTTON_WITH_BG(button_name, normal_image, press_image, arrow_image, disable_image, l, r, t, b, bg_w, bg_h, main_image_w, main_image_h) \
1244 group { name: "elm/button/base/browser/"#button_name; \
1246 image: normal_image COMP; \
1247 image: press_image COMP; \
1248 image: arrow_image COMP; \
1249 image: disable_image COMP; \
1252 style { name: #button_name"btn_textblock_style"; \
1253 base: "font=FONT_CONTENT font_size=21 align=center color=#FFFFFF wrap=char"; \
1255 tag: "hilight" "+ font=FONT_CONTENT:style=Bold"; \
1256 tag: "b" "+ font=FONT_CONTENT:style=Bold"; \
1261 part { name: "button_image"; \
1264 effect: SOFT_SHADOW; \
1265 description { state: "default" 0.0; \
1271 normal: normal_image; \
1275 description { state: "clicked" 0.0; \
1276 inherit: "default" 0.0; \
1277 image.normal: press_image; \
1279 description { state: "disabled" 0.0; \
1280 inherit: "default" 0.0; \
1281 image.normal: disable_image; \
1284 part { name: "arrow_image"; \
1288 effect: SOFT_SHADOW; \
1289 description { state: "default" 0.0; \
1290 min: main_image_w main_image_h; \
1291 max: main_image_w main_image_h; \
1294 rel1 { relative: 0.0 0.0; to: "button_image"; } \
1295 rel2 { relative: 1.0 1.0; to: "button_image"; } \
1297 normal: arrow_image; \
1301 part { name: "elm.text"; \
1306 description { state: "default" 0.0; \
1310 rel1 { relative: 0.1 0; to: "button_image"; } \
1311 rel2 { relative: 0.9 1; to: "button_image"; } \
1314 style: #button_name"btn_textblock_style"; \
1319 description { state: "visible" 0.0; \
1320 inherit: "default" 0.0; \
1324 description { state: "clicked" 0.0; \
1325 inherit: "default" 0.0; \
1329 description { state: "disabled" 0.0; \
1330 inherit: "default" 0.0; \
1334 description { state: "disabled_visible" 0.0; \
1335 inherit: "default" 0.0; \
1342 part { name: "over1"; \
1344 description { state: "default" 0.0; \
1345 rel2.relative: 1.0 0.5; \
1347 description { state: "disabled" 0.0; \
1348 inherit: "default" 0.0; \
1351 part { name: "over2"; \
1354 ignore_flags: ON_HOLD; \
1355 description { state: "default" 0.0; \
1357 description { state: "disabled" 0.0; \
1358 inherit: "default" 0.0; \
1362 part { name: "over3"; \
1365 description { state: "default" 0.0; \
1366 color: 255 255 255 0; \
1368 description { state: "clicked" 0.0; \
1369 inherit: "default" 0.0; \
1371 color: 255 255 255 0; \
1374 part { name: "disabler"; \
1376 description { state: "default" 0.0; \
1380 description { state: "disabled" 0.0; \
1381 inherit: "default" 0.0; \
1387 program { name: "button_click"; \
1388 signal: "mouse,down,1"; \
1390 action: SIGNAL_EMIT "elm,action,press" ""; \
1391 after: "button_click_anim"; \
1393 program { name: "button_click_anim"; \
1394 action: STATE_SET "clicked" 0.0; \
1395 target: "button_image"; \
1396 target: "elm.text"; \
1398 program { name: "button_unclick"; \
1399 signal: "mouse,up,1"; \
1401 action: SIGNAL_EMIT "elm,action,unpress" ""; \
1402 after: "button_unclick_anim"; \
1404 program { name: "button_unclick_anim"; \
1405 action: STATE_SET "default" 0.0; \
1406 target: "button_image"; \
1407 action: STATE_SET "visible" 0.0; \
1408 target: "elm.text"; \
1410 program { name: "button_mouseout_clicked"; \
1411 signal: "mouse,out"; \
1416 get_state(PART:"elm.text", st, 30, vl); \
1417 if (!strcmp(st, "clicked")) \
1419 set_state(PART:"elm.text", "visible", 0.0); \
1420 set_state(PART:"button_image", "visible", 0.0); \
1424 program { name: "button_click2"; \
1425 signal: "mouse,down,1"; \
1427 action: STATE_SET "clicked" 0.0; \
1430 program { name: "button_unclick2"; \
1431 signal: "mouse,clicked,1"; \
1433 action: STATE_SET "default" 0.0; \
1436 program { name: "button_unclick3"; \
1437 signal: "mouse,clicked,1"; \
1439 action: SIGNAL_EMIT "elm,action,click" ""; \
1441 program { name: "text_show"; \
1442 signal: "elm,state,text,visible"; \
1444 action: STATE_SET "visible" 0.0; \
1445 target: "elm.text"; \
1447 program { name: "text_hide"; \
1448 signal: "elm,state,text,hidden"; \
1450 action: STATE_SET "default" 0.0; \
1451 target: "elm.text"; \
1453 program { name: "disable"; \
1454 signal: "elm,state,disabled"; \
1456 action: STATE_SET "disabled" 0.0; \
1457 target: "button_image"; \
1460 target: "disabler"; \
1461 target: "button_image"; \
1462 after: "disable_text"; \
1464 program { name: "disable_text"; \
1468 get_state(PART:"elm.text", st, 30, vl); \
1469 if (!strcmp(st, "visible")) \
1470 set_state(PART:"elm.text", "disabled_visible", 0.0); \
1472 set_state(PART:"elm.text", "disabled", 0.0); \
1475 program { name: "enable"; \
1476 signal: "elm,state,enabled"; \
1478 action: STATE_SET "default" 0.0; \
1479 target: "button_image"; \
1482 target: "disabler"; \
1483 target: "arrow_image"; \
1484 after: "enable_text"; \
1486 program { name: "enable_text"; \
1490 get_state(PART:"elm.text", st, 30, vl); \
1491 if (!strcmp(st, "disabled_visible")) \
1492 set_state(PART:"elm.text", "visible", 0.0); \
1494 set_state(PART:"elm.text", "default", 0.0); \
1499 #define BROWSER_GENLIST_PART_DISCLIP \
1500 part { name: "disclip"; \
1502 description { state: "default" 0.0; \
1506 description { state: "disabled" 0.0; \
1507 inherit: "default" 0.0; \
1508 color: 255 255 255 64; \
1512 #define BROWSER_GENLIST_TRANSPARENT_PART \
1513 part { name: "elm.between.layer"; \
1515 clip_to: "disclip"; \
1517 description { state: "default" 0.0; \
1522 description { state: "repeat_events" 0.0; \
1523 inherit: "default" 0.0; \
1528 #define BROWSER_GENLIST_BASE_PART_BASE( param_item_height ) \
1529 part { name: "base"; \
1530 clip_to: "disclip"; \
1532 description { state: "default" 0.0; \
1533 min: 0 param_item_height; \
1534 image.normal: "theme/00_sweep_list_bg.png"; \
1538 #define BROWSER_GENLIST_BASE_PART_BOTTOM_LINE \
1539 part { name: "bottom_line"; \
1541 clip_to: "disclip"; \
1543 description { state: "default" 0.0; \
1547 color: 212 212 212 255; \
1549 relative: 0.0 1.0; \
1557 #define BROWSER_GENLIST_BASE_PART_PADDING_LEFT( param_padding_size ) \
1558 part { name: "base.padding.left"; \
1560 clip_to: "disclip"; \
1563 description { state: "default" 0.0; \
1564 min: param_padding_size 0; \
1575 #define BROWSER_GENLIST_BASE_PART_PADDING_RIGHT( param_padding_size ) \
1576 part { name: "base.padding.right"; \
1578 clip_to: "disclip"; \
1581 description { state: "default" 0.0; \
1582 min: param_padding_size 0; \
1593 #define BROWSER_GENLIST_BASE_PART_PADDING_BOTTOM( param_padding_size ) \
1594 part { name: "base.padding.bottom"; \
1596 clip_to: "disclip"; \
1599 description { state: "default" 0.0; \
1600 min: 0 param_padding_size; \
1615 #define BROWSER_GENLIST_BASE_PART_TEXT \
1616 part { name: "elm.base.text"; \
1618 clip_to: "disclip"; \
1621 description { state: "default" 0.0; \
1630 to_x: "base.padding.left"; \
1635 to_x: "base.padding.right"; \
1638 color: 255 255 255 255; \
1640 font: "SLP:style=Roman"; \
1651 #define BROWSER_GENLIST_BASE_PART_PADDING_CENTER_VERTICAL( param_padding_size ) \
1652 part { name: "base.padding.center.vertical"; \
1654 clip_to: "disclip"; \
1657 description { state: "default" 0.0; \
1658 min: param_padding_size 0; \
1673 #define BROWSER_GENLIST_BASE_PART_PADDING_CENTER_HORIZONTAL( param_padding_size ) \
1674 part { name: "base.padding.center.horizontal"; \
1676 clip_to: "disclip"; \
1679 description { state: "default" 0.0; \
1680 min: param_padding_size 0; \
1695 #define BROWSER_GENLIST_BASE_PART_BUTTON_1 \
1696 part { name: "elm.base.swallow.button1"; \
1698 clip_to: "disclip"; \
1699 description { state: "default" 0.0; \
1702 to_x: "base.padding.left"; \
1703 to_y: "base.padding.center.horizontal"; \
1707 to_x: "base.padding.center.vertical"; \
1708 to_y: "base.padding.bottom"; \
1713 #define BROWSER_GENLIST_BASE_PART_BUTTON_2 \
1714 part { name: "elm.base.swallow.button2"; \
1716 clip_to: "disclip"; \
1717 description { state: "default" 0.0; \
1720 to_x: "base.padding.center.vertical"; \
1721 to_y: "base.padding.center.horizontal"; \
1725 to_x: "base.padding.right"; \
1726 to_y: "base.padding.bottom"; \
1731 #define BROWSER_GENLIST_SLIDE_PART_BASE( param_item_height ) \
1732 part { name: "slide_base"; \
1733 clip_to: "disclip"; \
1737 description { state: "default" 0.0; \
1738 min: 0 param_item_height; \
1739 color: 246 245 237 255; \
1743 description { state: "hide" 0.0; \
1744 inherit: "default" 0.0; \
1745 rel1 { relative: 0.025 0.0; } \
1746 rel2 { relative: 1.025 1.0; } \
1748 description { state: "hide" 0.1; \
1749 inherit: "default" 0.0; \
1750 rel1 { relative: 0.13 0.0; } \
1751 rel2 { relative: 1.13 1.0; } \
1753 description { state: "hide" 0.2; \
1754 inherit: "default" 0.0; \
1755 rel1 { relative: 0.5 0.0; } \
1756 rel2 { relative: 1.5 1.0; } \
1758 description { state: "hide" 0.3; \
1759 inherit: "default" 0.0; \
1760 rel1 { relative: 1.0 0.0; } \
1761 rel2 { relative: 2.0 1.0; } \
1765 #define BROWSER_GENLIST_SLIDE_PART_BOTTOM_LINE \
1766 part { name: "slide_bottom_line"; \
1768 clip_to: "disclip"; \
1770 description { state: "default" 0.0; \
1774 color: 212 212 212 255; \
1776 relative: 0.0 1.0; \
1780 rel2.to: "slide_base"; \
1784 #define BROWSER_GENLIST_SLIDE_PART_PADDING_TOP( param_padding_size ) \
1785 part { name: "slide_base.padding.top"; \
1787 clip_to: "disclip"; \
1791 state: "default" 0.0; \
1792 min: 0 param_padding_size; \
1807 #define BROWSER_GENLIST_SLIDE_PART_PADDING_BOTTOM( param_padding_size ) \
1808 part { name: "slide_base.padding.bottom"; \
1810 clip_to: "disclip"; \
1814 state: "default" 0.0; \
1815 min: 0 param_padding_size; \
1830 #define BROWSER_GENLIST_SLIDE_PART_PADDING_LEFT( param_padding_size ) \
1831 part { name: "slide_base.padding.left"; \
1834 clip_to: "disclip"; \
1836 description { state: "default" 0.0; \
1837 min: param_padding_size 0; \
1840 rel1.to: "slide_base"; \
1849 #define BROWSER_GENLIST_SLIDE_PART_PADDING_RIGHT( param_padding_size ) \
1850 part { name: "slide_base.padding.right"; \
1853 clip_to: "disclip"; \
1855 description { state: "default" 0.0; \
1856 min: param_padding_size 0; \
1863 rel2.to: "slide_base"; \
1868 #define BEAT_GENLIST_PART_BASE( param_item_height ) \
1869 part { name: "base"; \
1873 description { state: "default" 0.0; \
1874 min: 0 param_item_height; \
1875 color: GENLIST_PART_BG_COLOR_INC; \
1879 #define BEAT_GENLIST_PART_BG_IMAGE \
1880 part { name: "bg_image"; \
1882 clip_to: "disclip"; \
1884 description { state: "default" 0.0; \
1886 color: GENLIST_PART_BG_SELECTED_COLOR_INC; \
1888 description { state: "selected" 0.0; \
1889 inherit: "default" 0.0; \
1894 #define BEAT_GENLIST_PART_BOTTOM_LINE \
1895 part { name: "bottom_line"; \
1897 clip_to: "disclip"; \
1899 description { state: "default" 0.0; \
1903 color: GENLIST_PART_BOTTOM_LINE_INC; \
1905 relative: 0.0 1.0; \
1911 #define BEAT_GENLIST_PART_PADDING_TOP( param_padding_size ) \
1912 part { name: "elm.padding.top"; \
1916 state: "default" 0.0; \
1917 min: 0 param_padding_size; \
1920 rel2.relative: 1.0 0.0; \
1925 #define BEAT_GENLIST_PART_PADDING_BOTTOM( param_padding_size ) \
1926 part { name: "elm.padding.bottom"; \
1929 description { state: "default" 0.0; \
1930 min: 0 param_padding_size; \
1933 rel1.relative: 0.0 1.0; \
1938 #define BEAT_GENLIST_PART_PADDING_LEFT( param_padding_size ) \
1939 part { name: "elm.padding.left"; \
1942 description { state: "default" 0.0; \
1943 min: param_padding_size 0; \
1946 rel2.relative: 0.0 1.0; \
1951 #define BEAT_GENLIST_PART_PADDING_RIGHT( param_padding_size ) \
1952 part { name: "elm.padding.right"; \
1955 description { state: "default" 0.0; \
1956 min: param_padding_size 0; \
1959 rel1.relative: 1.0 0.0; \
1964 #define BEAT_GENLIST_PART_DISCLIP \
1965 part { name: "disclip"; \
1967 description { state: "default" 0.0; \
1969 description { state: "disabled" 0.0; \
1970 inherit: "default" 0.0; \
1971 color: 255 255 255 64; \
1975 #define BEAT_GENLIST_SELECT_ALL_PART_DISCLIP \
1976 part { name: "disclip"; \
1978 description { state: "default" 0.0; \
1982 description { state: "disabled" 0.0; \
1983 inherit: "default" 0.0; \
1984 color: 255 255 255 64; \