3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
23 group { name: "elm/scroller/base/default";
24 alias: "elm/carousel/base/default";
25 alias: "elm/scroller/base/map_bubble";
26 alias: "elm/gengrid/base/no_effect";
27 alias: "elm/genlist/base/no_effect";
30 item: "focus_highlight" "on";
34 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
35 public sh_v, sh_h, sh_timer, edge_timer;
40 v = get_int(sbalways_v);
42 emit("do-hide-vbar", "");
48 v = get_int(sbalways_h);
50 emit("do-hide-hbar", "");
54 set_int(sbvis_timer, 0);
58 emit("do-hide-vshadow", "");
59 emit("do-hide-hshadow", "");
64 emit("do-hide-vshadow", "");
65 emit("do-hide-hshadow", "");
66 set_int(edge_timer, 0);
71 image: SCROLLER_DEFAULT_SCROLLBAR_VBAR_IMAGE COMP;
72 image: SCROLLER_DEFAULT_SCROLLBAR_HBAR_IMAGE COMP;
78 description { state: "default" 0.0;
84 part { name: "clipper";
88 description { state: "default" 0.0;
95 part { name: "elm.swallow.content";
99 description { state: "default" 0.0;
106 part { name: "sb_vbar_clip_master";
110 description { state: "default" 0.0;
112 description { state: "hidden" 0.0;
114 color: 255 255 255 0;
117 part { name: "sb_vbar_clip";
118 clip_to: "sb_vbar_clip_master";
122 description { state: "default" 0.0;
124 description { state: "hidden" 0.0;
126 color: 255 255 255 0;
129 part { name: "sb_vbar";
133 description { state: "default" 0.0;
136 min: SCROLLER_DEFAULT_SCROLLBAR_VBAR_MIN_SIZE_INC;
141 to_y: "elm.swallow.content";
142 to_x: "elm.swallow.content";
147 to_y: "elm.swallow.content";
148 to_x: "elm.swallow.content";
152 part { name: "elm.dragable.vbar";
153 clip_to: "sb_vbar_clip";
161 description { state: "default" 0.0;
163 min: SCROLLER_DEFAULT_SCROLLBAR_VBAR_MIN_SIZE_INC;
164 max: SCROLLER_DEFAULT_SCROLLBAR_VBAR_MAX_SIZE_INC;
176 normal: SCROLLER_DEFAULT_SCROLLBAR_VBAR_IMAGE;
177 border: SCROLLER_DEFAULT_SCROLLBAR_VBAR_IMAGE_BORDER;
183 part { name: "sb_hbar_clip_master";
187 description { state: "default" 0.0;
189 description { state: "hidden" 0.0;
191 color: 255 255 255 0;
194 part { name: "sb_hbar_clip";
195 clip_to: "sb_hbar_clip_master";
199 description { state: "default" 0.0;
201 description { state: "hidden" 0.0;
203 color: 255 255 255 0;
206 part { name: "sb_hbar";
210 description { state: "default" 0.0;
213 min: SCROLLER_DEFAULT_SCROLLBAR_HBAR_MIN_SIZE_INC;
218 to_x: "elm.swallow.content";
219 to_y: "elm.swallow.content";
224 to_x: "elm.swallow.content";
225 to_y: "elm.swallow.content";
229 part { name: "elm.dragable.hbar";
230 clip_to: "sb_hbar_clip";
238 description { state: "default" 0.0;
240 min: SCROLLER_DEFAULT_SCROLLBAR_HBAR_MIN_SIZE_INC;
241 max: SCROLLER_DEFAULT_SCROLLBAR_HBAR_MAX_SIZE_INC;
253 normal: SCROLLER_DEFAULT_SCROLLBAR_HBAR_IMAGE;
254 border: SCROLLER_DEFAULT_SCROLLBAR_HBAR_IMAGE_BORDER;
260 part { name: "focus_part";
264 description { state: "default" 0.0;
269 normal: "00_focus.png";
273 description { state: "focused" 0.0;
274 inherit: "default" 0.0;
278 part { name: "disabler";
281 description { state: "default" 0.0;
287 description { state: "disabled" 0.0;
288 inherit: "default" 0.0;
290 color: 128 128 128 128;
295 program { name: "load";
299 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
300 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
303 set_int(sbalways_v, 0);
304 set_int(sbalways_h, 0);
305 set_int(sbvis_timer, 0);
306 emit("reload", "elm");
310 program { name: "vbar_show";
311 signal: "elm,action,show,vbar";
313 action: STATE_SET "default" 0.0;
314 target: "sb_vbar_clip_master";
316 program { name: "vbar_hide";
317 signal: "elm,action,hide,vbar";
319 action: STATE_SET "hidden" 0.0;
320 target: "sb_vbar_clip_master";
322 program { name: "vbar_show_always";
323 signal: "elm,action,show_always,vbar";
327 v = get_int(sbvis_v);
328 v |= get_int(sbalways_v);
330 set_int(sbalways_v, 1);
331 emit("do-show-vbar", "");
336 program { name: "vbar_show_notalways";
337 signal: "elm,action,show_notalways,vbar";
341 v = get_int(sbalways_v);
343 set_int(sbalways_v, 0);
344 v = get_int(sbvis_v);
346 emit("do-hide-vbar", "");
352 program { name: "sb_vbar_show";
353 signal: "do-show-vbar";
355 action: STATE_SET "default" 0.0;
356 transition: LINEAR 0.5;
357 target: "sb_vbar_clip";
359 program { name: "sb_vbar_hide";
360 signal: "do-hide-vbar";
362 action: STATE_SET "hidden" 0.0;
363 transition: LINEAR 0.5;
364 target: "sb_vbar_clip";
367 program { name: "hbar_show";
368 signal: "elm,action,show,hbar";
370 action: STATE_SET "default" 0.0;
371 target: "sb_hbar_clip_master";
373 program { name: "hbar_hide";
374 signal: "elm,action,hide,hbar";
376 action: STATE_SET "hidden" 0.0;
377 target: "sb_hbar_clip_master";
379 program { name: "hbar_show_always";
380 signal: "elm,action,show_always,hbar";
384 v = get_int(sbvis_h);
385 v |= get_int(sbalways_h);
387 set_int(sbalways_h, 1);
388 emit("do-show-hbar", "");
393 program { name: "hbar_show_notalways";
394 signal: "elm,action,show_notalways,hbar";
398 v = get_int(sbalways_h);
400 set_int(sbalways_h, 0);
401 v = get_int(sbvis_h);
403 emit("do-hide-hbar", "");
409 program { name: "sb_hbar_show";
410 signal: "do-show-hbar";
412 action: STATE_SET "default" 0.0;
413 transition: LINEAR 0.5;
414 target: "sb_hbar_clip";
416 program { name: "sb_hbar_hide";
417 signal: "do-hide-hbar";
419 action: STATE_SET "hidden" 0.0;
420 transition: LINEAR 0.5;
421 target: "sb_hbar_clip";
424 program { name: "scroll";
425 signal: "elm,action,scroll";
429 v = get_int(sbvis_v);
430 v |= get_int(sbalways_v);
432 emit("do-show-vbar", "");
435 v = get_int(sbvis_h);
436 v |= get_int(sbalways_h);
438 emit("do-show-hbar", "");
441 v = get_int(sbvis_timer);
442 if (v > 0) cancel_timer(v);
443 v = timer(1.0, "timer0", 0);
444 set_int(sbvis_timer, v);
447 program { name: "disable";
448 signal: "elm,state,disabled";
450 action: STATE_SET "disabled" 0.0;
453 program { name: "enable";
454 signal: "elm,state,enabled";
456 action: STATE_SET "default" 0.0;
459 program { name: "focused";
460 signal: "elm,state,focused";
462 action: STATE_SET "focused" 0.0;
463 target: "focus_part";
465 program { name: "unfocused";
466 signal: "elm,state,unfocused";
468 action: STATE_SET "default" 0.0;
469 target: "focus_part";
474 group { name: "elm/scroller/base/handler";
475 alias: "elm/carousel/base/handler";
478 item: "focus_highlight" "on";
481 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
482 public sh_timer, edge_timer;
485 v = get_int(sbvis_v);
487 v = get_int(sbalways_v);
489 emit("do-hide-vbar", "");
493 v = get_int(sbvis_h);
495 v = get_int(sbalways_h);
497 emit("do-hide-hbar", "");
501 set_int(sbvis_timer, 0);
505 emit("do-hide-vshadow", "");
506 emit("do-hide-hshadow", "");
507 set_int(sh_timer, 0);
511 emit("do-hide-vshadow", "");
512 emit("do-hide-hshadow", "");
513 set_int(edge_timer, 0);
518 image: "bt_sm_shine.png" COMP;
519 image: "bt_sm_hilight.png" COMP;
520 image: "sb_runnerh.png" COMP;
521 image: "00_fast_scroll_handler_top.png" COMP;
522 image: "00_fast_scroll_handler_middle.png" COMP;
523 image: "00_fast_scroll_handler_bottom.png" COMP;
524 image: "00_fast_scroll_handler_h_left.png" COMP;
525 image: "00_fast_scroll_handler_h_center.png" COMP;
526 image: "00_fast_scroll_handler_h_right.png" COMP;
527 image: "sl_bt2_2.png" COMP;
528 image: "shelf_inset.png" COMP;
534 description { state: "default" 0.0;
537 color: 255 255 255 0;
540 part { name: "clipper";
544 description { state: "default" 0.0;
551 part { name: "elm.swallow.content";
555 description { state: "default" 0.0;
562 part { name: "conf_over";
565 description { state: "default" 0.0;
570 normal: "shelf_inset.png";
576 description { state: "enabled" 0.0;
577 inherit: "default" 0.0;
578 color: 200 155 0 255;
581 part { name: "focus_highlight";
584 description { state: "default" 0.0;
588 normal: "sl_bt2_2.png";
595 description { state: "enabled" 0.0;
596 inherit: "default" 0.0;
597 color: 200 155 0 255;
600 part { name: "sb_vbar_clip_master";
604 description { state: "default" 0.0;
606 description { state: "hidden" 0.0;
608 color: 255 255 255 0;
611 part { name: "sb_vbar_clip";
612 clip_to: "sb_vbar_clip_master";
616 description { state: "default" 0.0;
618 description { state: "hidden" 0.0;
620 color: 255 255 255 0;
623 part { name: "sb_vbar";
627 description { state: "default" 0.0;
630 min: SCROLLER_HANDLER_SCROLLBAR_VBAR_MIN_SIZE_INC;
634 to_y: "elm.swallow.content";
635 to_x: "elm.swallow.content";
640 to_x: "elm.swallow.content";
644 part { name: "elm.dragable.vbar";
646 clip_to: "sb_vbar_clip";
654 description { state: "default" 0.0;
657 min: SCROLLER_HANDLER_SCROLLBAR_VBAR_MIN_SIZE_INC;
671 part { name: "scrollbar_handler_image_top";
672 clip_to: "sb_vbar_clip";
675 description { state: "default" 0.0;
677 rel1.relative: 0.0 0.0;
678 rel1.to: "elm.dragable.vbar";
679 rel2.relative: 1.0 0.0;
680 rel2.to: "scrollbar_handler_image_middle";
683 normal: "00_fast_scroll_handler_top.png";
689 part { name: "scrollbar_handler_image_middle";
690 clip_to: "sb_vbar_clip";
693 description { state: "default" 0.0;
695 rel1.relative: 0.5 0.5;
696 rel1.to: "elm.dragable.vbar";
697 rel2.relative: 0.5 0.5;
698 rel2.to: "elm.dragable.vbar";
700 min: SCROLLER_HANDLER_SCROLLBAR_VBAR_MIDDLE_MIN_SIZE_INC;
702 normal: "00_fast_scroll_handler_middle.png";
708 part { name: "scrollbar_handler_image_bottom";
709 clip_to: "sb_vbar_clip";
712 description { state: "default" 0.0;
714 rel1.relative: 0.0 1.0;
715 rel1.to: "scrollbar_handler_image_middle";
716 rel2.relative: 1.0 1.0;
717 rel2.to: "elm.dragable.vbar";
720 normal: "00_fast_scroll_handler_bottom.png";
726 part { name: "sb_vbar_over1";
727 clip_to: "sb_vbar_clip";
730 description { state: "default" 0.0;
731 rel1.to: "elm.dragable.vbar";
732 rel2.relative: 1.0 0.5;
733 rel2.to: "elm.dragable.vbar";
736 normal: "bt_sm_hilight.png";
742 part { name: "sb_vbar_over2";
743 clip_to: "sb_vbar_clip";
746 description { state: "default" 0.0;
747 rel1.to: "elm.dragable.vbar";
748 rel2.to: "elm.dragable.vbar";
751 normal: "bt_sm_shine.png";
757 part { name: "sb_hbar_clip_master";
761 description { state: "default" 0.0;
763 description { state: "hidden" 0.0;
765 color: 255 255 255 0;
768 part { name: "sb_hbar_clip";
769 clip_to: "sb_hbar_clip_master";
773 description { state: "default" 0.0;
775 description { state: "hidden" 0.0;
777 color: 255 255 255 0;
780 part { name: "sb_hbar";
784 description { state: "default" 0.0;
787 min: SCROLLER_HANDLER_SCROLLBAR_HBAR_MIN_SIZE_INC;
791 to_x: "elm.swallow.content";
792 to_y: "elm.swallow.content";
798 to_y: "elm.swallow.content";
802 part { name: "elm.dragable.hbar";
804 clip_to: "sb_hbar_clip";
812 description { state: "default" 0.0;
815 min: SCROLLER_HANDLER_SCROLLBAR_HBAR_MIN_SIZE_INC;
829 part { name: "h_scrollbar_handler_image_left";
830 clip_to: "sb_hbar_clip";
833 description { state: "default" 0.0;
835 rel1.relative: 0.0 0.0;
836 rel1.to: "elm.dragable.hbar";
837 rel2.relative: 0.0 1.0;
838 rel2.to: "scrollbar_handler_image_hor";
841 normal: "00_fast_scroll_handler_h_left.png";
847 part { name: "scrollbar_handler_image_hor";
848 clip_to: "sb_hbar_clip";
851 description { state: "default" 0.0;
853 rel1.relative: 0.5 0.5;
854 rel1.to: "elm.dragable.hbar";
855 rel2.relative: 0.5 0.5;
856 rel2.to: "elm.dragable.hbar";
858 min: SCROLLER_HANDLER_SCROLLBAR_HBAR_MIDDLE_MIN_SIZE_INC;
860 normal: "00_fast_scroll_handler_h_center.png";
866 part { name: "h_scrollbar_handler_image_right";
867 clip_to: "sb_hbar_clip";
870 description { state: "default" 0.0;
872 rel1.relative: 1.0 0.0;
873 rel1.to: "scrollbar_handler_image_hor";
874 rel2.relative: 1.0 1.0;
875 rel2.to: "elm.dragable.hbar";
878 normal: "00_fast_scroll_handler_h_right.png";
884 part { name: "sb_hbar_over1";
885 clip_to: "sb_hbar_clip";
888 description { state: "default" 0.0;
889 rel1.to: "elm.dragable.hbar";
890 rel2.relative: 1.0 0.5;
891 rel2.to: "elm.dragable.hbar";
894 normal: "bt_sm_hilight.png";
900 part { name: "sb_hbar_over2";
901 clip_to: "sb_hbar_clip";
904 description { state: "default" 0.0;
905 rel1.to: "elm.dragable.hbar";
906 rel2.to: "elm.dragable.hbar";
909 normal: "bt_sm_shine.png";
915 part { name: "disabler";
918 description { state: "default" 0.0;
924 description { state: "disabled" 0.0;
925 inherit: "default" 0.0;
927 color: 128 128 128 128;
932 program { name: "load";
936 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
937 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
940 set_int(sbalways_v, 0);
941 set_int(sbalways_h, 0);
942 set_int(sbvis_timer, 0);
943 emit("reload", "elm");
946 program { name: "vbar_show";
947 signal: "elm,action,show,vbar";
949 action: STATE_SET "default" 0.0;
950 target: "sb_vbar_clip_master";
952 program { name: "vbar_hide";
953 signal: "elm,action,hide,vbar";
955 action: STATE_SET "hidden" 0.0;
956 target: "sb_vbar_clip_master";
958 program { name: "vbar_show_always";
959 signal: "elm,action,show_always,vbar";
963 v = get_int(sbvis_v);
964 v |= get_int(sbalways_v);
966 set_int(sbalways_v, 1);
967 emit("do-show-vbar", "");
972 program { name: "vbar_show_notalways";
973 signal: "elm,action,show_notalways,vbar";
977 v = get_int(sbalways_v);
979 set_int(sbalways_v, 0);
980 v = get_int(sbvis_v);
982 emit("do-hide-vbar", "");
988 program { name: "vbar_press";
989 signal: "mouse,down,1";
990 source: "elm.dragable.vbar";
991 action: SIGNAL_EMIT "elm,vbar,press" "elm";
993 program { name: "vbar_unpress";
994 signal: "mouse,up,1";
995 source: "elm.dragable.vbar";
996 action: SIGNAL_EMIT "elm,vbar,unpress" "elm";
998 program { name: "sb_vbar_show";
999 signal: "do-show-vbar";
1001 action: STATE_SET "default" 0.0;
1002 transition: LINEAR 0.5;
1003 target: "sb_vbar_clip";
1005 program { name: "sb_vbar_hide";
1006 signal: "do-hide-vbar";
1008 action: STATE_SET "hidden" 0.0;
1009 transition: LINEAR 0.5;
1010 target: "sb_vbar_clip";
1012 program { name: "hbar_show";
1013 signal: "elm,action,show,hbar";
1015 action: STATE_SET "default" 0.0;
1016 target: "sb_hbar_clip_master";
1018 program { name: "hbar_hide";
1019 signal: "elm,action,hide,hbar";
1021 action: STATE_SET "hidden" 0.0;
1022 target: "sb_hbar_clip_master";
1024 program { name: "hbar_show_always";
1025 signal: "elm,action,show_always,hbar";
1029 v = get_int(sbvis_h);
1030 v |= get_int(sbalways_h);
1032 set_int(sbalways_h, 1);
1033 emit("do-show-hbar", "");
1034 set_int(sbvis_h, 1);
1038 program { name: "hbar_show_notalways";
1039 signal: "elm,action,show_notalways,hbar";
1043 v = get_int(sbalways_h);
1045 set_int(sbalways_h, 0);
1046 v = get_int(sbvis_h);
1048 emit("do-hide-hbar", "");
1049 set_int(sbvis_h, 0);
1054 program { name: "hbar_press";
1055 signal: "mouse,down,1";
1056 source: "elm.dragable.hbar";
1057 action: SIGNAL_EMIT "elm,hbar,press" "elm";
1059 program { name: "hbar_unpress";
1060 signal: "mouse,up,1";
1061 source: "elm.dragable.hbar";
1062 action: SIGNAL_EMIT "elm,hbar,unpress" "elm";
1064 program { name: "sb_hbar_show";
1065 signal: "do-show-hbar";
1067 action: STATE_SET "default" 0.0;
1068 transition: LINEAR 0.5;
1069 target: "sb_hbar_clip";
1071 program { name: "sb_hbar_hide";
1072 signal: "do-hide-hbar";
1074 action: STATE_SET "hidden" 0.0;
1075 transition: LINEAR 0.5;
1076 target: "sb_hbar_clip";
1079 program { name: "scroll";
1080 signal: "elm,action,scroll";
1084 v = get_int(sbvis_v);
1085 v |= get_int(sbalways_v);
1087 emit("do-show-vbar", "");
1088 set_int(sbvis_v, 1);
1090 v = get_int(sbvis_h);
1091 v |= get_int(sbalways_h);
1093 emit("do-show-hbar", "");
1094 set_int(sbvis_h, 1);
1096 v = get_int(sbvis_timer);
1097 if (v > 0) cancel_timer(v);
1098 v = timer(1.0, "timer0", 0);
1099 set_int(sbvis_timer, v);
1103 program { name: "highlight_show";
1104 signal: "elm,action,focus_highlight,show";
1106 action: STATE_SET "enabled" 0.0;
1107 transition: ACCELERATE 0.3;
1108 target: "focus_highlight";
1109 target: "conf_over";
1111 program { name: "highlight_hide";
1112 signal: "elm,action,focus_highlight,hide";
1114 action: STATE_SET "default" 0.0;
1115 transition: DECELERATE 0.3;
1116 target: "focus_highlight";
1117 target: "conf_over";
1119 program { name: "disable";
1120 signal: "elm,state,disabled";
1122 action: STATE_SET "disabled" 0.0;
1125 program { name: "enable";
1126 signal: "elm,state,enabled";
1128 action: STATE_SET "default" 0.0;
1134 group { name: "elm/genlist/base/default";
1135 alias: "elm/genscroller/base/default";
1136 alias: "elm/list/base/default";
1137 inherit: "elm/scroller/base/default";
1140 image: "00_overscrolling_top.png" COMP;
1141 image: "00_overscrolling_bottom.png" COMP;
1142 image: "00_overscrolling_left.png" COMP;
1143 image: "00_overscrolling_right.png" COMP;
1147 part { name: "vshadow_clip";
1151 description { state: "default" 0.0;
1153 description { state: "hidden" 0.0;
1155 color: 255 255 255 0;
1158 part { name: "hshadow_clip";
1162 description { state: "default" 0.0;
1164 description { state: "hidden" 0.0;
1166 color: 255 255 255 0;
1169 part { name: "shadow_top";
1170 clip_to: "vshadow_clip";
1174 description { state: "default" 0.0;
1178 color: 255 255 255 100;
1179 rel1.relative: 0.0 0.0;
1180 rel2.relative: 1.0 0.0;
1181 rel1.to: "elm.swallow.content";
1182 rel2.to: "elm.swallow.content";
1183 image.normal: "00_overscrolling_top.png";
1185 description { state: "edge" 0.0;
1186 inherit: "default" 0.0;
1187 color: 255 255 255 255;
1189 description { state: "edge_op" 0.0;
1190 inherit: "default" 0.0;
1191 color: 255 255 255 65;
1194 part { name: "shadow_bottom";
1195 clip_to: "vshadow_clip";
1199 description { state: "default" 0.0;
1203 color: 255 255 255 100;
1204 rel1.relative: 0.0 1.0;
1205 rel2.relative: 1.0 1.0;
1206 rel1.to: "elm.swallow.content";
1207 rel2.to: "elm.swallow.content";
1208 image.normal: "00_overscrolling_bottom.png";
1210 description { state: "edge" 0.0;
1211 inherit: "default" 0.0;
1212 color: 255 255 255 255;
1214 description { state: "edge_op" 0.0;
1215 inherit: "default" 0.0;
1216 color: 255 255 255 65;
1219 part { name: "shadow_left";
1220 clip_to: "hshadow_clip";
1224 description { state: "default" 0.0;
1228 color: 255 255 255 100;
1229 rel1.relative: 0.0 0.0;
1230 rel2.relative: 0.0 1.0;
1231 rel1.to: "elm.swallow.content";
1232 rel2.to: "elm.swallow.content";
1233 image.normal: "00_overscrolling_left.png";
1235 description { state: "edge" 0.0;
1236 inherit: "default" 0.0;
1237 color: 255 255 255 255;
1239 description { state: "edge_op" 0.0;
1240 inherit: "default" 0.0;
1241 color: 255 255 255 65;
1244 part { name: "shadow_right";
1245 clip_to: "hshadow_clip";
1249 description { state: "default" 0.0;
1253 color: 255 255 255 100;
1254 rel1.relative: 1.0 0.0;
1255 rel2.relative: 1.0 1.0;
1256 rel1.to: "elm.swallow.content";
1257 rel2.to: "elm.swallow.content";
1258 image.normal: "00_overscrolling_right.png";
1260 description { state: "edge" 0.0;
1261 inherit: "default" 0.0;
1262 color: 255 255 255 255;
1264 description { state: "edge_op" 0.0;
1265 inherit: "default" 0.0;
1266 color: 255 255 255 65;
1269 part { name: "padding_jump_to_top";
1272 description { state: "default" 0.0;
1273 min: BUTTON_JUMP_TOP_PADDING_TO_SCROLLER_MIN_MAX_INC;
1274 max: BUTTON_JUMP_TOP_PADDING_TO_SCROLLER_MIN_MAX_INC;
1275 rel1.relative: 1.0 0.0;
1276 rel2.relative: 1.0 0.0;
1277 rel1.to: "elm.swallow.content";
1278 rel2.to: "elm.swallow.content";
1283 part { name: "elm.swallow.jump_to_top";
1286 description { state: "default" 0.0;
1288 to: "padding_jump_to_top";
1292 to: "padding_jump_to_top";
1299 part { name: "padding_jump_to_left";
1302 description { state: "default" 0.0;
1303 min: BUTTON_JUMP_LEFT_PADDING_TO_SCROLLER_MIN_MAX_INC;
1304 max: BUTTON_JUMP_LEFT_PADDING_TO_SCROLLER_MIN_MAX_INC;
1305 rel1.relative: 0.0 1.0;
1306 rel2.relative: 0.0 1.0;
1307 rel1.to: "elm.swallow.content";
1308 rel2.to: "elm.swallow.content";
1313 part { name: "elm.swallow.jump_to_left";
1316 description { state: "default" 0.0;
1318 to: "padding_jump_to_left";
1322 to: "padding_jump_to_left";
1331 program { name: "load";
1333 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
1334 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
1335 set_state(PART:"vshadow_clip", "hidden", 0.0);
1336 set_state(PART:"hshadow_clip", "hidden", 0.0);
1337 set_int(sbvis_h, 0);
1338 set_int(sbvis_v, 0);
1339 set_int(sbalways_v, 0);
1340 set_int(sbalways_h, 0);
1341 set_int(sbvis_timer, 0);
1343 set_int(sh_timer, 0);
1344 set_int(edge_timer, 0);
1345 emit("reload", "elm");
1348 program { name: "vshadow_show";
1349 signal: "do-show-vshadow";
1351 action: STATE_SET "default" 0.0;
1352 transition: LINEAR 0.5;
1353 target: "vshadow_clip";
1355 program { name: "vshadow_hide";
1356 signal: "do-hide-vshadow";
1358 action: STATE_SET "hidden" 0.0;
1359 transition: LINEAR 0.5;
1360 target: "vshadow_clip";
1362 program { name: "hshadow_show";
1363 signal: "do-show-hshadow";
1365 action: STATE_SET "default" 0.0;
1366 transition: LINEAR 0.5;
1367 target: "hshadow_clip";
1369 program { name: "hshadow_hide";
1370 signal: "do-hide-hshadow";
1372 action: STATE_SET "hidden" 0.0;
1373 transition: LINEAR 0.5;
1374 target: "hshadow_clip";
1376 program { name: "scroll";
1377 signal: "elm,action,scroll";
1381 v = get_int(sbvis_v);
1382 v |= get_int(sbalways_v);
1384 emit("do-show-vbar", "");
1385 set_int(sbvis_v, 1);
1387 v = get_int(sbvis_h);
1388 v |= get_int(sbalways_h);
1390 emit("do-show-hbar", "");
1391 set_int(sbvis_h, 1);
1393 v = get_int(sbvis_timer);
1394 if (v > 0) cancel_timer(v);
1395 v = timer(1, "timer0", 0);
1396 set_int(sbvis_timer, v);
1399 program { name: "scroll_up";
1400 signal: "elm,action,scroll,up";
1402 after: "scroll_vertical";
1404 program { name: "scroll_down";
1405 signal: "elm,action,scroll,down";
1407 after: "scroll_vertical";
1409 program { name: "scroll_vertical";
1412 v = get_int(edge_timer);
1414 set_state(PART:"shadow_top", "default", 0.0);
1415 set_state(PART:"shadow_bottom", "default", 0.0);
1416 emit("do-show-vshadow", "");
1417 v = get_int(sh_timer);
1418 if (v > 0) cancel_timer(v);
1419 v = timer(0.2, "timer1", 0);
1420 set_int(sh_timer, v);
1424 program { name: "scroll_left";
1425 signal: "elm,action,scroll,left";
1427 after: "scroll_horizontal";
1429 program { name: "scroll_right";
1430 signal: "elm,action,scroll,right";
1432 after: "scroll_horizontal";
1434 program { name: "scroll_horizontal";
1437 v = get_int(edge_timer);
1439 set_state(PART:"shadow_left", "default", 0.0);
1440 set_state(PART:"shadow_right", "default", 0.0);
1441 emit("do-show-hshadow", "");
1442 v = get_int(sh_timer);
1443 if (v > 0) cancel_timer(v);
1444 v = timer(0.2, "timer1", 0);
1445 set_int(sh_timer, v);
1449 program { name: "edge_top";
1450 signal: "elm,edge,top";
1453 set_state(PART:"shadow_top", "edge", 0.0);
1454 set_state(PART:"shadow_bottom", "edge_op", 0.0);
1456 after: "edge_vertical";
1458 program { name: "edge_bottom";
1459 signal: "elm,edge,bottom";
1462 set_state(PART:"shadow_top", "edge_op", 0.0);
1463 set_state(PART:"shadow_bottom", "edge", 0.0);
1465 after: "edge_vertical";
1467 program { name: "edge_left";
1468 signal: "elm,edge,left";
1471 set_state(PART:"shadow_left", "edge", 0.0);
1472 set_state(PART:"shadow_right", "edge_op", 0.0);
1474 after: "edge_horizontal";
1476 program { name: "edge_right";
1477 signal: "elm,edge,right";
1480 set_state(PART:"shadow_left", "edge_op", 0.0);
1481 set_state(PART:"shadow_right", "edge", 0.0);
1483 after: "edge_horizontal";
1485 program { name: "edge_vertical";
1488 v = get_int(sh_timer);
1489 if (v > 0) cancel_timer(v);
1490 v = get_int(edge_timer);
1492 emit("do-show-vshadow", "");
1494 if (v > 0) cancel_timer(v);
1495 v = timer(0.2, "timer2", 0);
1496 set_int(edge_timer, v);
1499 program { name: "edge_horizontal";
1502 v = get_int(sh_timer);
1503 if (v > 0) cancel_timer(v);
1504 v = get_int(edge_timer);
1506 emit("do-show-hshadow", "");
1508 if (v > 0) cancel_timer(v);
1509 v = timer(0.2, "timer2", 0);
1510 set_int(edge_timer, v);
1513 program { name: "show";
1518 emit("do-show-vbar", "");
1519 set_int(sbvis_v, 1);
1520 v = get_int(sbalways_v);
1522 v = get_int(sbvis_timer);
1523 if (v > 0) cancel_timer(v);
1524 v = timer(1.0, "timer0", 0);
1525 set_int(sbvis_timer, v);
1527 emit("do-show-hbar", "");
1528 set_int(sbvis_h, 1);
1529 v = get_int(sbalways_h);
1531 v = get_int(sbvis_timer);
1532 if (v > 0) cancel_timer(v);
1533 v = timer(1.0, "timer0", 0);
1534 set_int(sbvis_timer, v);
1541 group { name: "elm/genlist/base/handler";
1542 alias: "elm/genscroller/base/handler";
1543 alias: "elm/list/base/handler";
1544 inherit: "elm/scroller/base/handler";
1547 image: "00_overscrolling_top.png" COMP;
1548 image: "00_overscrolling_bottom.png" COMP;
1549 image: "00_overscrolling_left.png" COMP;
1550 image: "00_overscrolling_right.png" COMP;
1554 part { name: "vshadow_clip";
1558 description { state: "default" 0.0;
1560 description { state: "hidden" 0.0;
1562 color: 255 255 255 0;
1565 part { name: "hshadow_clip";
1569 description { state: "default" 0.0;
1571 description { state: "hidden" 0.0;
1573 color: 255 255 255 0;
1576 part { name: "shadow_top";
1577 clip_to: "vshadow_clip";
1581 description { state: "default" 0.0;
1585 color: 255 255 255 100;
1586 rel1.relative: 0.0 0.0;
1587 rel2.relative: 1.0 0.0;
1588 rel1.to: "elm.swallow.content";
1589 rel2.to: "elm.swallow.content";
1590 image.normal: "00_overscrolling_top.png";
1592 description { state: "edge" 0.0;
1593 inherit: "default" 0.0;
1594 color: 255 255 255 255;
1596 description { state: "hidden" 0.0;
1597 inherit: "default" 0.0;
1601 part { name: "shadow_bottom";
1602 clip_to: "vshadow_clip";
1606 description { state: "default" 0.0;
1610 color: 255 255 255 100;
1611 rel1.relative: 0.0 1.0;
1612 rel2.relative: 1.0 1.0;
1613 rel1.to: "elm.swallow.content";
1614 rel2.to: "elm.swallow.content";
1615 image.normal: "00_overscrolling_bottom.png";
1617 description { state: "edge" 0.0;
1618 inherit: "default" 0.0;
1619 color: 255 255 255 255;
1621 description { state: "hidden" 0.0;
1622 inherit: "default" 0.0;
1626 part { name: "shadow_left";
1627 clip_to: "hshadow_clip";
1631 description { state: "default" 0.0;
1635 color: 255 255 255 100;
1636 rel1.relative: 0.0 0.0;
1637 rel2.relative: 0.0 1.0;
1638 rel1.to: "elm.swallow.content";
1639 rel2.to: "elm.swallow.content";
1640 image.normal: "00_overscrolling_left.png";
1642 description { state: "edge" 0.0;
1643 inherit: "default" 0.0;
1644 color: 255 255 255 255;
1646 description { state: "hidden" 0.0;
1647 inherit: "default" 0.0;
1651 part { name: "shadow_right";
1652 clip_to: "hshadow_clip";
1656 description { state: "default" 0.0;
1660 color: 255 255 255 100;
1661 rel1.relative: 1.0 0.0;
1662 rel2.relative: 1.0 1.0;
1663 rel1.to: "elm.swallow.content";
1664 rel2.to: "elm.swallow.content";
1665 image.normal: "00_overscrolling_right.png";
1667 description { state: "edge" 0.0;
1668 inherit: "default" 0.0;
1669 color: 255 255 255 255;
1671 description { state: "hidden" 0.0;
1672 inherit: "default" 0.0;
1678 program { name: "load";
1682 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
1683 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
1684 set_state(PART:"vshadow_clip", "hidden", 0.0);
1685 set_state(PART:"hshadow_clip", "hidden", 0.0);
1686 set_int(sbvis_h, 0);
1687 set_int(sbvis_v, 0);
1688 set_int(sbalways_v, 0);
1689 set_int(sbalways_h, 0);
1690 set_int(sbvis_timer, 0);
1691 set_int(sh_timer, 0);
1692 set_int(edge_timer, 0);
1693 emit("reload", "elm");
1696 program { name: "vbar_show_always";
1697 signal: "elm,action,show_always,vbar";
1701 v = get_int(sbvis_v);
1702 v |= get_int(sbalways_v);
1704 set_int(sbalways_v, 1);
1705 emit("do-show-vbar", "");
1706 set_int(sbvis_v, 1);
1710 program { name: "vbar_show_notalways";
1711 signal: "elm,action,show_notalways,vbar";
1715 v = get_int(sbalways_v);
1717 set_int(sbalways_v, 0);
1718 v = get_int(sbvis_v);
1720 emit("do-hide-vbar", "");
1721 set_int(sbvis_v, 0);
1726 program { name: "hbar_show_always";
1727 signal: "elm,action,show_always,hbar";
1731 v = get_int(sbvis_h);
1732 v |= get_int(sbalways_h);
1734 set_int(sbalways_h, 1);
1735 emit("do-show-hbar", "");
1736 set_int(sbvis_h, 1);
1740 program { name: "hbar_show_notalways";
1741 signal: "elm,action,show_notalways,hbar";
1745 v = get_int(sbalways_h);
1747 set_int(sbalways_h, 0);
1748 v = get_int(sbvis_h);
1750 emit("do-hide-hbar", "");
1751 set_int(sbvis_h, 0);
1756 program { name: "vshadow_show";
1757 signal: "do-show-vshadow";
1759 action: STATE_SET "default" 0.0;
1760 transition: LINEAR 0.5;
1761 target: "vshadow_clip";
1763 program { name: "vshadow_hide";
1764 signal: "do-hide-vshadow";
1766 action: STATE_SET "hidden" 0.0;
1767 transition: LINEAR 0.5;
1768 target: "vshadow_clip";
1770 program { name: "hshadow_show";
1771 signal: "do-show-hshadow";
1773 action: STATE_SET "default" 0.0;
1774 transition: LINEAR 0.5;
1775 target: "hshadow_clip";
1777 program { name: "hshadow_hide";
1778 signal: "do-hide-hshadow";
1780 action: STATE_SET "hidden" 0.0;
1781 transition: LINEAR 0.5;
1782 target: "hshadow_clip";
1784 program { name: "scroll";
1785 signal: "elm,action,scroll";
1789 v = get_int(sbvis_v);
1790 v |= get_int(sbalways_v);
1792 emit("do-show-vbar", "");
1793 set_int(sbvis_v, 1);
1795 v = get_int(sbvis_h);
1796 v |= get_int(sbalways_h);
1798 emit("do-show-hbar", "");
1799 set_int(sbvis_h, 1);
1801 v = get_int(sbvis_timer);
1802 if (v > 0) cancel_timer(v);
1803 v = timer(1, "timer0", 0);
1804 set_int(sbvis_timer, v);
1807 program { name: "scroll_up";
1808 signal: "elm,action,scroll,up";
1810 after: "scroll_vertical";
1812 program { name: "scroll_down";
1813 signal: "elm,action,scroll,down";
1815 after: "scroll_vertical";
1817 program { name: "scroll_vertical";
1820 v = get_int(edge_timer);
1822 set_state(PART:"shadow_top", "default", 0.0);
1823 set_state(PART:"shadow_bottom", "default", 0.0);
1824 emit("do-show-vshadow", "");
1825 v = get_int(sh_timer);
1826 if (v > 0) cancel_timer(v);
1827 v = timer(0.2, "timer1", 0);
1828 set_int(sh_timer, v);
1832 program { name: "scroll_left";
1833 signal: "elm,action,scroll,left";
1835 after: "scroll_horizontal";
1837 program { name: "scroll_right";
1838 signal: "elm,action,scroll,right";
1840 after: "scroll_horizontal";
1842 program { name: "scroll_horizontal";
1845 v = get_int(edge_timer);
1847 set_state(PART:"shadow_left", "default", 0.0);
1848 set_state(PART:"shadow_right", "default", 0.0);
1849 emit("do-show-hshadow", "");
1850 v = get_int(sh_timer);
1851 if (v > 0) cancel_timer(v);
1852 v = timer(0.2, "timer1", 0);
1853 set_int(sh_timer, v);
1857 program { name: "edge_top";
1858 signal: "elm,edge,top";
1861 set_state(PART:"shadow_top", "edge", 0.0);
1862 set_state(PART:"shadow_bottom", "hidden", 0.0);
1864 after: "edge_vertical";
1866 program { name: "edge_bottom";
1867 signal: "elm,edge,bottom";
1870 set_state(PART:"shadow_top", "hidden", 0.0);
1871 set_state(PART:"shadow_bottom", "edge", 0.0);
1873 after: "edge_vertical";
1875 program { name: "edge_left";
1876 signal: "elm,edge,left";
1879 set_state(PART:"shadow_left", "edge", 0.0);
1880 set_state(PART:"shadow_right", "hidden", 0.0);
1882 after: "edge_horizontal";
1884 program { name: "edge_right";
1885 signal: "elm,edge,right";
1888 set_state(PART:"shadow_left", "hidden", 0.0);
1889 set_state(PART:"shadow_right", "edge", 0.0);
1891 after: "edge_horizontal";
1893 program { name: "edge_vertical";
1896 v = get_int(sh_timer);
1897 if (v > 0) cancel_timer(v);
1898 v = get_int(edge_timer);
1900 emit("do-show-vshadow", "");
1902 if (v > 0) cancel_timer(v);
1903 v = timer(0.2, "timer2", 0);
1904 set_int(edge_timer, v);
1907 program { name: "edge_horizontal";
1910 v = get_int(sh_timer);
1911 if (v > 0) cancel_timer(v);
1912 v = get_int(edge_timer);
1914 emit("do-show-hshadow", "");
1916 if (v > 0) cancel_timer(v);
1917 v = timer(0.2, "timer2", 0);
1918 set_int(edge_timer, v);
1921 program { name: "show";
1926 emit("do-show-vbar", "");
1927 set_int(sbvis_v, 1);
1928 v = get_int(sbalways_v);
1930 v = get_int(sbvis_timer);
1931 if (v > 0) cancel_timer(v);
1932 v = timer(1.0, "timer0", 0);
1933 set_int(sbvis_timer, v);
1935 emit("do-show-hbar", "");
1936 set_int(sbvis_h, 1);
1937 v = get_int(sbalways_h);
1939 v = get_int(sbvis_timer);
1940 if (v > 0) cancel_timer(v);
1941 v = timer(1.0, "timer0", 0);
1942 set_int(sbvis_timer, v);
1949 group { name: "elm/gengrid/base/default";
1950 inherit: "elm/genlist/base/default";
1953 image: "00_grid_overscrolling_top.png" COMP;
1954 image: "00_grid_overscrolling_bottom.png" COMP;
1955 image: "00_grid_overscrolling_left.png" COMP;
1956 image: "00_grid_overscrolling_right.png" COMP;
1960 part { name: "shadow_top";
1961 description { state: "default" 0.0;
1963 image.normal: "00_grid_overscrolling_top.png";
1965 description { state: "edge" 0.0;
1966 inherit: "default" 0.0;
1967 color: 255 255 255 255;
1970 part { name: "shadow_bottom";
1971 description { state: "default" 0.0;
1973 image.normal: "00_grid_overscrolling_bottom.png";
1975 description { state: "edge" 0.0;
1976 inherit: "default" 0.0;
1977 color: 255 255 255 255;
1980 part { name: "shadow_left";
1981 description { state: "default" 0.0;
1983 image.normal: "00_grid_overscrolling_left.png";
1985 description { state: "edge" 0.0;
1986 inherit: "default" 0.0;
1987 color: 255 255 255 255;
1990 part { name: "shadow_right";
1991 description { state: "default" 0.0;
1993 image.normal: "00_grid_overscrolling_right.png";
1995 description { state: "edge" 0.0;
1996 inherit: "default" 0.0;
1997 color: 255 255 255 255;
2003 group { name: "elm/gengrid/base/handler";
2004 inherit: "elm/genlist/base/handler";
2007 part { name: "shadow_top";
2008 description { state: "default" 0.0;
2010 image.normal: "00_grid_overscrolling_top.png";
2012 description { state: "edge" 0.0;
2013 inherit: "default" 0.0;
2014 color: 255 255 255 255;
2017 part { name: "shadow_bottom";
2018 description { state: "default" 0.0;
2020 image.normal: "00_grid_overscrolling_bottom.png";
2022 description { state: "edge" 0.0;
2023 inherit: "default" 0.0;
2024 color: 255 255 255 255;
2027 part { name: "shadow_left";
2028 description { state: "default" 0.0;
2030 image.normal: "00_grid_overscrolling_left.png";
2032 description { state: "edge" 0.0;
2033 inherit: "default" 0.0;
2034 color: 255 255 255 255;
2037 part { name: "shadow_right";
2038 description { state: "default" 0.0;
2040 image.normal: "00_grid_overscrolling_right.png";
2042 description { state: "edge" 0.0;
2043 inherit: "default" 0.0;
2044 color: 255 255 255 255;