1 group { name: "elm/scroller/base/default";
3 alias: "elm/list/base/default";
4 alias: "elm/genlist/base/default";
5 alias: "elm/carousel/base/default";
6 alias: "elm/gengrid/base/default";
7 alias: "elm/scroller/base/map_bubble";
8 alias: "elm/genscroller/base/default";
11 item: "focus_highlight" "on";
15 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
20 v = get_int(sbalways_v);
22 emit("do-hide-vbar", "");
28 v = get_int(sbalways_h);
30 emit("do-hide-hbar", "");
34 set_int(sbvis_timer, 0);
39 image: "shelf_inset.png" COMP;
40 image: "bt_sm_base2.png" COMP;
41 image: "bt_sm_shine.png" COMP;
42 image: "bt_sm_hilight.png" COMP;
43 image: "sl_bt2_2.png" COMP;
48 description { state: "default" 0.0;
54 part { name: "clipper";
57 description { state: "default" 0.0;
64 part { name: "elm.swallow.content";
67 description { state: "default" 0.0;
74 part { name: "conf_over";
76 description { state: "default" 0.0;
80 normal: "shelf_inset.png";
86 description { state: "enabled" 0.0;
87 inherit: "default" 0.0;
91 part { name: "focus_highlight";
93 description { state: "default" 0.0;
97 normal: "sl_bt2_2.png";
104 description { state: "enabled" 0.0;
105 inherit: "default" 0.0;
106 color: 200 155 0 255;
109 part { name: "sb_vbar_clip_master";
112 description { state: "default" 0.0;
114 description { state: "hidden" 0.0;
116 color: 255 255 255 0;
119 part { name: "sb_vbar_clip";
120 clip_to: "sb_vbar_clip_master";
123 description { state: "default" 0.0;
125 description { state: "hidden" 0.0;
127 color: 255 255 255 0;
130 part { name: "sb_vbar";
133 description { state: "default" 0.0;
141 to_y: "elm.swallow.content";
142 to_x: "elm.swallow.content";
148 to_x: "elm.swallow.content";
152 part { name: "elm.dragable.vbar";
153 clip_to: "sb_vbar_clip";
160 description { state: "default" 0.0;
175 normal: "bt_sm_base2.png";
181 part { name: "sb_vbar_over1";
182 clip_to: "sb_vbar_clip";
184 description { state: "default" 0.0;
185 rel1.to: "elm.dragable.vbar";
186 rel2.relative: 1.0 0.5;
187 rel2.to: "elm.dragable.vbar";
189 normal: "bt_sm_hilight.png";
194 part { name: "sb_vbar_over2";
195 clip_to: "sb_vbar_clip";
197 description { state: "default" 0.0;
198 rel1.to: "elm.dragable.vbar";
199 rel2.to: "elm.dragable.vbar";
201 normal: "bt_sm_shine.png";
207 part { name: "sb_hbar_clip_master";
210 description { state: "default" 0.0;
212 description { state: "hidden" 0.0;
214 color: 255 255 255 0;
217 part { name: "sb_hbar_clip";
218 clip_to: "sb_hbar_clip_master";
221 description { state: "default" 0.0;
223 description { state: "hidden" 0.0;
225 color: 255 255 255 0;
228 part { name: "sb_hbar";
231 description { state: "default" 0.0;
239 to_x: "elm.swallow.content";
240 to_y: "elm.swallow.content";
246 to_y: "elm.swallow.content";
250 part { name: "elm.dragable.hbar";
251 clip_to: "sb_hbar_clip";
258 description { state: "default" 0.0;
273 normal: "bt_sm_base2.png";
279 part { name: "sb_hbar_over1";
280 clip_to: "sb_hbar_clip";
282 description { state: "default" 0.0;
283 rel1.to: "elm.dragable.hbar";
284 rel2.relative: 1.0 0.5;
285 rel2.to: "elm.dragable.hbar";
287 normal: "bt_sm_hilight.png";
292 part { name: "sb_hbar_over2";
293 clip_to: "sb_hbar_clip";
295 description { state: "default" 0.0;
296 rel1.to: "elm.dragable.hbar";
297 rel2.to: "elm.dragable.hbar";
299 normal: "bt_sm_shine.png";
304 part { name: "disabler";
306 description { state: "default" 0.0;
312 description { state: "disabled" 0.0;
313 inherit: "default" 0.0;
315 color: 128 128 128 128;
320 program { name: "load";
324 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
325 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
328 set_int(sbalways_v, 0);
329 set_int(sbalways_h, 0);
330 set_int(sbvis_timer, 0);
334 program { name: "vbar_show";
335 signal: "elm,action,show,vbar";
337 action: STATE_SET "default" 0.0;
338 target: "sb_vbar_clip_master";
340 program { name: "vbar_hide";
341 signal: "elm,action,hide,vbar";
343 action: STATE_SET "hidden" 0.0;
344 target: "sb_vbar_clip_master";
346 program { name: "vbar_show_always";
347 signal: "elm,action,show_always,vbar";
351 v = get_int(sbvis_v);
352 v |= get_int(sbalways_v);
354 set_int(sbalways_v, 1);
355 emit("do-show-vbar", "");
360 program { name: "vbar_show_notalways";
361 signal: "elm,action,show_notalways,vbar";
365 v = get_int(sbalways_v);
367 set_int(sbalways_v, 0);
368 v = get_int(sbvis_v);
370 emit("do-hide-vbar", "");
376 program { name: "sb_vbar_show";
377 signal: "do-show-vbar";
379 action: STATE_SET "default" 0.0;
380 transition: LINEAR 0.5;
381 target: "sb_vbar_clip";
383 program { name: "sb_vbar_hide";
384 signal: "do-hide-vbar";
386 action: STATE_SET "hidden" 0.0;
387 transition: LINEAR 0.5;
388 target: "sb_vbar_clip";
391 program { name: "hbar_show";
392 signal: "elm,action,show,hbar";
394 action: STATE_SET "default" 0.0;
395 target: "sb_hbar_clip_master";
397 program { name: "hbar_hide";
398 signal: "elm,action,hide,hbar";
400 action: STATE_SET "hidden" 0.0;
401 target: "sb_hbar_clip_master";
403 program { name: "hbar_show_always";
404 signal: "elm,action,show_always,hbar";
408 v = get_int(sbvis_h);
409 v |= get_int(sbalways_h);
411 set_int(sbalways_h, 1);
412 emit("do-show-hbar", "");
417 program { name: "hbar_show_notalways";
418 signal: "elm,action,show_notalways,hbar";
422 v = get_int(sbalways_h);
424 set_int(sbalways_h, 0);
425 v = get_int(sbvis_h);
427 emit("do-hide-hbar", "");
433 program { name: "sb_hbar_show";
434 signal: "do-show-hbar";
436 action: STATE_SET "default" 0.0;
437 transition: LINEAR 0.5;
438 target: "sb_hbar_clip";
440 program { name: "sb_hbar_hide";
441 signal: "do-hide-hbar";
443 action: STATE_SET "hidden" 0.0;
444 transition: LINEAR 0.5;
445 target: "sb_hbar_clip";
448 program { name: "scroll";
449 signal: "elm,action,scroll";
453 v = get_int(sbvis_v);
454 v |= get_int(sbalways_v);
456 emit("do-show-vbar", "");
459 v = get_int(sbvis_h);
460 v |= get_int(sbalways_h);
462 emit("do-show-hbar", "");
465 v = get_int(sbvis_timer);
466 if (v > 0) cancel_timer(v);
467 v = timer(1.0, "timer0", 0);
468 set_int(sbvis_timer, v);
472 program { name: "highlight_show";
473 signal: "elm,action,focus_highlight,show";
475 action: STATE_SET "enabled" 0.0;
476 transition: ACCELERATE 0.3;
477 target: "focus_highlight";
480 program { name: "highlight_hide";
481 signal: "elm,action,focus_highlight,hide";
483 action: STATE_SET "default" 0.0;
484 transition: DECELERATE 0.3;
485 target: "focus_highlight";
488 program { name: "disable";
489 signal: "elm,state,disabled";
491 action: STATE_SET "disabled" 0.0;
494 program { name: "enable";
495 signal: "elm,state,enabled";
497 action: STATE_SET "default" 0.0;
503 ///////////////////////////////////////////////////////////////////////////////