summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2018-04-11 18:08:08 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2018-04-11 20:00:21 +0900
commit87df1d602074ea5e961b971cc71994372defcdd3 (patch)
tree4c169d3abfae65f87d7635107b91680509132949
parent4337206acb1557cfa15aee3f2f5b8aa740d30412 (diff)
theme: scroller - remove elm scroller inheritance
-rw-r--r--data/elementary/themes/edc/efl/scroller.edc1336
1 files changed, 1329 insertions, 7 deletions
diff --git a/data/elementary/themes/edc/efl/scroller.edc b/data/elementary/themes/edc/efl/scroller.edc
index e0d81482c0..032972b084 100644
--- a/data/elementary/themes/edc/efl/scroller.edc
+++ b/data/elementary/themes/edc/efl/scroller.edc
@@ -1,12 +1,1334 @@
1group { "efl/scroller"; 1group { name: "efl/scroller";
2 inherit: "elm/scroller/base/default"; 2 images.image: "inset_shadow.png" COMP;
3} 3 images.image: "bevel_in.png" COMP;
4 images.image: "bevel_out.png" COMP;
5 images.image: "runner_horiz.png" COMP;
6 images.image: "runner_vert.png" COMP;
7 images.image: "runner_glow_horiz.png" COMP;
8 images.image: "runner_glow_vert.png" COMP;
9 images.image: "holes_tiny_horiz.png" COMP;
10 images.image: "holes_tiny_vert.png" COMP;
11 images.image: "holes_tiny_glow_horiz.png" COMP;
12 images.image: "holes_tiny_glow_vert.png" COMP;
13 images.image: "vgrad_med_lighter.png" COMP;
14 images.image: "shadow_square_tiny.png" COMP;
15 images.image: "glow_small.png" COMP;
16 images.image: "sym_left_light_normal.png" COMP;
17 images.image: "sym_right_light_normal.png" COMP;
18 images.image: "sym_up_light_normal.png" COMP;
19 images.image: "sym_down_light_normal.png" COMP;
20 images.image: "sym_left_glow_normal.png" COMP;
21 images.image: "sym_right_glow_normal.png" COMP;
22 images.image: "sym_up_glow_normal.png" COMP;
23 images.image: "sym_down_glow_normal.png" COMP;
24 images.image: "sym_up_dark_normal.png" COMP;
25 images.image: "sym_down_dark_normal.png" COMP;
26 images.image: "sym_left_dark_normal.png" COMP;
27 images.image: "sym_right_dark_normal.png" COMP;
28
29
30 data.item: "focus_highlight" "on";
31
32 script {
33 public loop_x, loop_y;
34 public action_on_pos_vbar(val) {
35 new x, y , w, h, x1, y1 , w1, h1;
36
37 get_geometry(PART:"y_vbar_up", x,y,w, h);
38 get_geometry(PART:"y_vbar_up_mapper", x1,y1,w1, h1);
39
40 if(((y1 <= y) && (y <= (y1 + h1))) && (0 == get_int(loop_y)))
41 {
42 set_state(PART:"arrow1_vbar", "hidden", 0.0);
43 set_state(PART:"sb_vbar_a1", "hidden", 0.0);
44 }
45 else
46 {
47 set_state(PART:"arrow1_vbar", "default", 0.0);
48 set_state(PART:"sb_vbar_a1", "default", 0.0);
49 }
50
51 get_geometry(PART:"y_vbar_down", x,y,w, h);
52 get_geometry(PART:"y_vbar_down_mapper", x1,y1,w1, h1);
53
54 if(((y1 <= (y + h)) && ((y+ h) <= (y1 + h1))) && (0 == get_int(loop_y)))
55 {
56 set_state(PART:"arrow2_vbar", "hidden", 0.0);
57 set_state(PART:"sb_vbar_a2", "hidden", 0.0);
58 }
59 else
60 {
61 set_state(PART:"arrow2_vbar", "default", 0.0);
62 set_state(PART:"sb_vbar_a2", "default", 0.0);
63 }
64
65 if(val < 10)
66 timer(0.1,"action_on_pos_vbar", val+1);
67 }
4 68
5group { "efl/scroller:noclip"; 69 public action_on_pos_hbar(val) {
6 inherit: "elm/scroller/base/noclip"; 70 new x, y , w, h, x1, y1 , w1, h1;
71
72 get_geometry(PART:"x_hbar_left", x,y,w, h);
73 get_geometry(PART:"x_hbar_left_mapper", x1,y1,w1, h1);
74
75 if(((x1 <= x) && (x <= (x1 + w1))) && (0 == get_int(loop_x)))
76 {
77 set_state(PART:"arrow1_hbar", "hidden", 0.0);
78 set_state(PART:"sb_hbar_a1", "hidden", 0.0);
79 }
80 else
81 {
82 set_state(PART:"arrow1_hbar", "default", 0.0);
83 set_state(PART:"sb_hbar_a1", "default", 0.0);
84 }
85
86 get_geometry(PART:"x_hbar_right", x,y,w, h);
87 get_geometry(PART:"x_hbar_right_mapper", x1,y1,w1, h1);
88
89 if(((x1 <= (x + w)) && ((x + w) <= (x1 + w1))) && (0 == get_int(loop_x)))
90 {
91 set_state(PART:"arrow2_hbar", "hidden", 0.0);
92 set_state(PART:"sb_hbar_a2", "hidden", 0.0);
93 }
94 else
95 {
96 set_state(PART:"arrow2_hbar", "default", 0.0);
97 set_state(PART:"sb_hbar_a2", "default", 0.0);
98 }
99
100 if(val < 10)
101 timer(0.1,"action_on_pos_hbar", val+1);
102 }
103 }
104
105 parts {
106 program {
107 signal: "load"; source: "";
108 script {
109 emit("reload", "elm");
110 action_on_pos_vbar(0);
111 action_on_pos_hbar(0);
112 }
113 }
114// vert bar ////////////////////////////////////////////////////////////////
115 part { name: "sb_vbar_show"; type: RECT;
116 description { state: "default" 0.0;
117 }
118 description { state: "hidden" 0.0;
119 inherit: "default" 0.0;
120 visible: 0;
121 }
122 }
123 part { name: "sb_vbar"; type: RECT;
124 scale: 1;
125 description { state: "default" 0.0;
126 fixed: 1 1;
127 min: 15 1;
128 align: 1.0 0.0;
129 rel1.relative: 1.0 0.0;
130 rel1.offset: -1 0;
131 rel2.relative: 1.0 0.0;
132 rel2.to_y: "sb_hbar";
133 }
134 description { state: "hidden" 0.0;
135 inherit: "default" 0.0;
136 min: 0 0;
137 max: 0 99999;
138 }
139 }
140 part { name: "sb_vbar_base"; type: RECT;
141 clip_to: "sb_vbar";
142 description { state: "default" 0.0;
143 color: 0 0 0 0;
144 rel1.relative: 0.0 1.0;
145 rel1.to: "sb_vbar_a1";
146 rel2.relative: 1.0 0.0;
147 rel2.to: "sb_vbar_a2";
148 fixed: 1 1;
149 }
150 }
151 part { name: "sb_vbar_p1"; type: RECT;
152 clip_to: "sb_vbar";
153 description { state: "default" 0.0;
154 color: 0 0 0 0;
155 rel1.relative: 0.0 1.0;
156 rel1.to: "sb_vbar_a1";
157 rel2.relative: 1.0 0.0;
158 rel2.to: "elm.dragable.vbar";
159 fixed: 1 1;
160 }
161 }
162 part { name: "sb_vbar_p2"; type: RECT;
163 clip_to: "sb_vbar";
164 description { state: "default" 0.0;
165 color: 0 0 0 0;
166 rel1.relative: 0.0 1.0;
167 rel1.to: "elm.dragable.vbar";
168 rel2.relative: 1.0 0.0;
169 rel2.to: "sb_vbar_a2";
170 fixed: 1 1;
171 }
172 }
173 part { name: "elm.dragable.vbar"; type: RECT;
174 clip_to: "sb_vbar";
175 scale: 1;
176 dragable.x: 0 0 0;
177 dragable.y: 1 1 0;
178 dragable.confine: "sb_vbar_base";
179 description { state: "default" 0.0;
180 fixed: 1 1;
181 min: 15 13;
182 rel1.relative: 0.5 0.5;
183 rel1.to: "sb_vbar_base";
184 rel2.relative: 0.5 0.5;
185 rel2.to: "sb_vbar_base";
186 color: 0 0 0 0;
187 }
188 description { state: "hidden" 0.0;
189 inherit: "default" 0.0;
190 min: 0 0;
191 }
192 description { state: "clicked" 0.0;
193 inherit: "default" 0.0;
194 }
195 }
196 part { name: "y_vbar_up_mapper"; type: SPACER;
197 scale: 1;
198 repeat_events: 1;
199 description { state: "default" 0.0;
200 min: 4 2;
201 max: 4 2;
202 fixed: 1 1;
203 align: 0.0 0.0;
204 rel1.to: "sb_vbar_base";
205 rel2.to: "sb_vbar_base";
206 }
207 description { state: "hidden" 0.0;
208 inherit: "default" 0.0;
209 min: 0 0;
210 max: 0 0;
211 }
212 }
213 part { name: "y_vbar_up"; type: SPACER;
214 scale: 1;
215 repeat_events: 1;
216 description { state: "default" 0.0;
217 min: 4 2;
218 max: 4 2;
219 fixed: 1 1;
220 align: 0.0 0.0;
221 rel1.to: "elm.dragable.vbar";
222 rel2.to: "elm.dragable.vbar";
223 }
224 description { state: "hidden" 0.0;
225 inherit: "default" 0.0;
226 min: 0 0;
227 max: 0 0;
228 }
229 }
230 part { name: "y_vbar_down_mapper"; type: SPACER;
231 scale: 1;
232 repeat_events: 1;
233 description { state: "default" 0.0;
234 min: 4 2;
235 max: 4 2;
236 fixed: 1 1;
237 align: 0.0 1.0;
238 rel1.to: "sb_vbar_base";
239 rel2.to: "sb_vbar_base";
240 }
241 description { state: "hidden" 0.0;
242 inherit: "default" 0.0;
243 min: 0 0;
244 max: 0 0;
245 }
246 }
247 part { name: "y_vbar_down"; type: SPACER;
248 scale: 1;
249 repeat_events: 1;
250 description { state: "default" 0.0;
251 min: 4 2;
252 max: 4 2;
253 fixed: 1 1;
254 align: 0.0 1.0;
255 rel1.to: "elm.dragable.vbar";
256 rel2.to: "elm.dragable.vbar";
257 }
258 description { state: "hidden" 0.0;
259 inherit: "default" 0.0;
260 min: 0 0;
261 max: 0 0;
262 }
263 }
264 part { name: "sb_vbar_a1"; type: RECT;
265 clip_to: "sb_vbar";
266 description { state: "default" 0.0;
267 fixed: 1 1;
268 min: 15 15;
269 align: 0.5 0.0;
270 aspect: 1.0 1.0; aspect_preference: HORIZONTAL;
271 color: 0 0 0 0;
272 rel1.to: "sb_vbar";
273 rel2.to: "sb_vbar";
274 rel2.relative: 1.0 0.0;
275 rel2.offset: -1 0;
276 }
277 description { state: "hidden" 0.0;
278 inherit: "default" 0.0;
279 min: 0 0;
280 visible: 0;
281 }
282 }
283 part { name: "sb_vbar_a2"; type: RECT;
284 clip_to: "sb_vbar";
285 description { state: "default" 0.0;
286 fixed: 1 1;
287 min: 15 15;
288 align: 0.5 1.0;
289 aspect: 1.0 1.0; aspect_preference: HORIZONTAL;
290 color: 0 0 0 0;
291 rel1.to: "sb_vbar";
292 rel1.offset: 0 -1;
293 rel1.relative: 0.0 1.0;
294 rel2.to: "sb_vbar";
295 }
296 description { state: "hidden" 0.0;
297 inherit: "default" 0.0;
298 min: 0 0;
299 visible: 0;
300 }
301 }
302 program {
303 signal: "elm,action,show,vbar"; source: "elm";
304 action: STATE_SET "default" 0.0;
305 target: "sb_vbar";
306 target: "sb_vbar_show";
307 target: "elm.dragable.vbar";
308 target: "sb_vbar_a1";
309 target: "sb_vbar_a2";
310 target: "y_vbar_up_mapper";
311 target: "y_vbar_up";
312 target: "y_vbar_down_mapper";
313 target: "y_vbar_down";
314 target: "arrow1_vbar_indent";
315 target: "arrow2_vbar_indent";
316 after: "check_pos_vbar";
317 }
318 program {
319 signal: "elm,action,hide,vbar"; source: "elm";
320 action: STATE_SET "hidden" 0.0;
321 target: "sb_vbar";
322 target: "sb_vbar_show";
323 target: "elm.dragable.vbar";
324 target: "sb_vbar_a1";
325 target: "sb_vbar_a2";
326 target: "y_vbar_up_mapper";
327 target: "y_vbar_up";
328 target: "y_vbar_down_mapper";
329 target: "y_vbar_down";
330 target: "arrow1_vbar_indent";
331 target: "arrow2_vbar_indent";
332 }
333 program {
334 signal: "mouse,down,1*"; source: "sb_vbar_a1";//ok
335 action: STATE_SET "clicked" 0.0;
336 target: "arrow1_vbar";
337 after: "anim1_up";
338 }
339 program { name: "anim1_up";
340 action: STATE_SET "default" 0.0;
341 transition: LINEAR 0.1;
342 target: "arrow1_vbar";
343 after: "drag_up";
344 }
345 program { name: "drag_up";
346 action: DRAG_VAL_STEP 0.0 -1.0;
347 target: "elm.dragable.vbar";
348 }
349 program {
350 signal: "mouse,down,1*"; source: "sb_vbar_a2";//ok
351 action: STATE_SET "clicked" 0.0;
352 target: "arrow2_vbar";
353 after: "anim1_down";
354 }
355 program { name: "anim1_down";
356 action: STATE_SET "default" 0.0;
357 transition: LINEAR 0.1;
358 target: "arrow2_vbar";
359 after: "drag_down";
360 }
361 program { name: "drag_down";
362 action: DRAG_VAL_STEP 0.0 1.0;
363 target: "elm.dragable.vbar";
364 }
365 program {
366 signal: "mouse,down,1*"; source: "sb_vbar_p1";
367 action: DRAG_VAL_PAGE 0.0 -1.0;
368 target: "elm.dragable.vbar";
369 }
370 program {
371 signal: "mouse,down,1*"; source: "sb_vbar_p2";
372 action: DRAG_VAL_PAGE 0.0 1.0;
373 target: "elm.dragable.vbar";
374 }
375 program {
376 signal: "elm,action,scroll"; source: "elm";
377 script {
378 action_on_pos_vbar(10);
379 }
380 }
381 program { name: "check_pos_vbar";
382 script {
383 action_on_pos_vbar(10);
384 }
385 }
386 program { name: "loop_set_vbar";
387 signal: "elm,loop_y,set"; source: "elm";
388 script {
389 set_int(loop_y, 1);
390 action_on_pos_vbar(10);
391 }
392 }
393 program { name: "loop_unset_vbar";
394 signal: "elm,loop_y,unset"; source: "elm";
395 script {
396 set_int(loop_y, 0);
397 action_on_pos_vbar(10);
398 }
399 }
400
401// horiz bar /////////////////////////////////////////////////////////////
402 part { name: "sb_hbar_show"; type: RECT;
403 description { state: "default" 0.0;
404 }
405 description { state: "hidden" 0.0;
406 inherit: "default" 0.0;
407 visible: 0;
408 }
409 }
410 part { name: "sb_hbar"; type: RECT; mouse_events: 0;
411 scale: 1;
412 description { state: "default" 0.0;
413 fixed: 1 1;
414 min: 1 15;
415 align: 0.0 1.0;
416 rel1.relative: 0.0 1.0;
417 rel1.offset: 0 -1;
418 rel2.relative: 0.0 1.0;
419 rel2.to_x: "sb_vbar";
420 }
421 description { state: "hidden" 0.0;
422 inherit: "default" 0.0;
423 min: 0 0;
424 max: 99999 0;
425 }
426 }
427 part { name: "sb_hbar_base"; type: RECT;
428 clip_to: "sb_hbar";
429 description { state: "default" 0.0;
430 color: 0 0 0 0;
431 rel1.relative: 1.0 0.0;
432 rel1.to: "sb_hbar_a1";
433 rel2.relative: 0.0 1.0;
434 rel2.to: "sb_hbar_a2";
435 fixed: 1 1;
436 }
437 }
438 part { name: "sb_hbar_p1"; type: RECT;
439 clip_to: "sb_hbar";
440 description { state: "default" 0.0;
441 color: 0 0 0 0;
442 rel1.relative: 1.0 0.0;
443 rel1.to: "sb_hbar_a1";
444 rel2.relative: 0.0 1.0;
445 rel2.to: "elm.dragable.hbar";
446 fixed: 1 1;
447 }
448 }
449 part { name: "sb_hbar_p2"; type: RECT;
450 clip_to: "sb_hbar";
451 description { state: "default" 0.0;
452 color: 0 0 0 0;
453 rel1.relative: 1.0 0.0;
454 rel1.to: "elm.dragable.hbar";
455 rel2.relative: 0.0 1.0;
456 rel2.to: "sb_hbar_a2";
457 fixed: 1 1;
458 }
459 }
460 part { name: "elm.dragable.hbar"; type: RECT;
461 clip_to: "sb_hbar";
462 scale: 1;
463 dragable.x: 1 1 0;
464 dragable.y: 0 0 0;
465 dragable.confine: "sb_hbar_base";
466 description { state: "default" 0.0;
467 fixed: 1 1;
468 min: 13 15;
469 rel1.relative: 0.5 0.5;
470 rel1.to: "sb_hbar_base";
471 rel2.relative: 0.5 0.5;
472 rel2.to: "sb_hbar_base";
473 color: 0 0 0 0;
474 }
475 description { state: "hidden" 0.0;
476 inherit: "default" 0.0;
477 min: 0 0;
478 }
479 description { state: "clicked" 0.0;
480 inherit: "default" 0.0;
481 }
482 }
483 part { name: "x_hbar_left_mapper"; type: SPACER;
484 scale: 1;
485 repeat_events: 1;
486 description { state: "default" 0.0;
487 min: 2 4;
488 max: 2 4;
489 fixed: 1 1;
490 align: 0.0 1.0;
491 rel1.to: "sb_hbar_base";
492 rel2.to: "sb_hbar_base";
493 }
494 description { state: "hidden" 0.0;
495 inherit: "default" 0.0;
496 min: 0 0;
497 max: 0 0;
498 }
499 }
500 part { name: "x_hbar_left"; type: SPACER;
501 scale: 1;
502 repeat_events: 1;
503 description { state: "default" 0.0;
504 min: 2 4;
505 max: 2 4;
506 fixed: 1 1;
507 align: 0.0 1.0;
508 rel1.to: "elm.dragable.hbar";
509 rel2.to: "elm.dragable.hbar";
510 }
511 description { state: "hidden" 0.0;
512 inherit: "default" 0.0;
513 min: 0 0;
514 max: 0 0;
515 }
516 }
517 part { name: "x_hbar_right_mapper"; type: SPACER;
518 scale: 1;
519 repeat_events: 1;
520 description { state: "default" 0.0;
521 min: 2 4;
522 max: 2 4;
523 fixed: 1 1;
524 align: 1.0 1.0;
525 rel1.to: "sb_hbar_base";
526 rel2.to: "sb_hbar_base";
527 }
528 description { state: "hidden" 0.0;
529 inherit: "default" 0.0;
530 min: 0 0;
531 max: 0 0;
532 }
533 }
534 part { name: "x_hbar_right"; type: SPACER;
535 scale: 1;
536 repeat_events: 1;
537 description { state: "default" 0.0;
538 min: 2 4;
539 max: 2 4;
540 fixed: 1 1;
541 align: 1.0 1.0;
542 rel1.to: "elm.dragable.hbar";
543 rel2.to: "elm.dragable.hbar";
544 }
545 description { state: "hidden" 0.0;
546 inherit: "default" 0.0;
547 min: 0 0;
548 max: 0 0;
549 }
550 }
551 part { name: "sb_hbar_a1"; type: RECT;
552 clip_to: "sb_hbar";
553 description { state: "default" 0.0;
554 fixed: 1 1;
555 min: 15 15;
556 align: 0.0 0.5;
557 aspect: 1.0 1.0; aspect_preference: VERTICAL;
558 color: 0 0 0 0;
559 rel1.to: "sb_hbar";
560 rel2.to: "sb_hbar";
561 rel2.relative: 0.0 1.0;
562 rel2.offset: 0 -1;
563 }
564 description { state: "hidden" 0.0;
565 inherit: "default" 0.0;
566 min: 0 0;
567 visible: 0;
568 }
569 }
570 part { name: "sb_hbar_a2"; type: RECT;
571 clip_to: "sb_hbar";
572 description { state: "default" 0.0;
573 fixed: 1 1;
574 min: 15 15;
575 align: 1.0 0.5;
576 aspect: 1.0 1.0; aspect_preference: VERTICAL;
577 color: 0 0 0 0;
578 rel1.to: "sb_hbar";
579 rel1.offset: -1 0;
580 rel1.relative: 1.0 0.0;
581 rel2.to: "sb_hbar";
582 }
583 description { state: "hidden" 0.0;
584 inherit: "default" 0.0;
585 min: 0 0;
586 visible: 0;
587 }
588 }
589 program {
590 signal: "elm,action,show,hbar"; source: "elm";
591 action: STATE_SET "default" 0.0;
592 target: "sb_hbar";
593 target: "sb_hbar_show";
594 target: "elm.dragable.hbar";
595 target: "sb_hbar_a1";
596 target: "sb_hbar_a2";
597 target: "x_hbar_left_mapper";
598 target: "x_hbar_left";
599 target: "x_hbar_right_mapper";
600 target: "x_hbar_right";
601 target: "arrow1_hbar_indent";
602 target: "arrow2_hbar_indent";
603 after: "check_pos_hbar";
604 }
605 program {
606 signal: "elm,action,hide,hbar"; source: "elm";
607 action: STATE_SET "hidden" 0.0;
608 target: "sb_hbar";
609 target: "sb_hbar_show";
610 target: "elm.dragable.hbar";
611 target: "sb_hbar_a1";
612 target: "sb_hbar_a2";
613 target: "x_hbar_left_mapper";
614 target: "x_hbar_left";
615 target: "x_hbar_right_mapper";
616 target: "x_hbar_right";
617 target: "arrow1_hbar_indent";
618 target: "arrow2_hbar_indent";
619 }
620 program {
621 signal: "mouse,down,1*"; source: "sb_hbar_a1";
622 action: STATE_SET "clicked" 0.0;
623 target: "arrow1_hbar";
624 after: "anim1_left";
625 }
626 program { name: "anim1_left";
627 action: STATE_SET "default" 0.0;
628 transition: LINEAR 0.1;
629 target: "arrow1_hbar";
630 after: "drag_left";
631 }
632 program { name: "drag_left";
633 action: DRAG_VAL_STEP -1.0 0.0;
634 target: "elm.dragable.hbar";
635 }
636 program {
637 signal: "mouse,down,1*"; source: "sb_hbar_a2";
638 action: STATE_SET "clicked" 0.0;
639 target: "arrow2_hbar";
640 after: "anim2_left";
641 }
642 program { name: "anim2_left";
643 action: STATE_SET "default" 0.0;
644 transition: LINEAR 0.1;
645 target: "arrow2_hbar";
646 after: "drag_right";
647 }
648 program { name: "drag_right";
649 action: DRAG_VAL_STEP 1.0 0.0;
650 target: "elm.dragable.hbar";
651 }
652 program {
653 signal: "mouse,down,1*"; source: "sb_hbar_p1";
654 action: DRAG_VAL_PAGE -1.0 0.0;
655 target: "elm.dragable.hbar";
656 after: "check_pos_hbar";
657 }
658 program {
659 signal: "mouse,down,1*"; source: "sb_hbar_p2";
660 action: DRAG_VAL_PAGE 1.0 0.0;
661 target: "elm.dragable.hbar";
662 after: "check_pos_hbar";
663 }
664 program {
665 signal: "elm,action,scroll"; source: "elm";
666 script {
667 action_on_pos_hbar(10);
668 }
669 }
670 program { name: "check_pos_hbar";
671 script {
672 action_on_pos_hbar(10);
673 }
674 }
675 program { name: "loop_set_hbar";
676 signal: "elm,loop_x,set"; source: "elm";
677 script {
678 set_int(loop_x, 1);
679 action_on_pos_hbar(10);
680 }
681 }
682 program { name: "loop_unset_hbar";
683 signal: "elm,loop_x,unset"; source: "elm";
684 script {
685 set_int(loop_x, 0);
686 action_on_pos_hbar(10);
687 }
688 }
689 part { name: "bg"; type: RECT;
690 description { state: "default" 0.0;
691 rel1.to: "elm.swallow.background";
692 rel2.to: "elm.swallow.background";
693// color: 64 64 64 200;
694 color: 0 0 0 0;
695 color_class: "scroller_bg";
696 }
697 }
698 part { name: "clipper"; type: RECT;
699 description { state: "default" 0.0;
700 rel1.to: "elm.swallow.background";
701 rel2.to: "elm.swallow.background";
702 }
703 }
704 part { name: "elm.swallow.background"; type: SWALLOW;
705 clip_to: "clipper";
706 description { state: "default" 0.0;
707 rel1.offset: 1 1;
708 rel2.relative: 0.0 0.0;
709 rel2.offset: -2 -2;
710 rel2.to_x: "sb_vbar";
711 rel2.to_y: "sb_hbar";
712 }
713 }
714 part { name: "elm.swallow.content"; type: SWALLOW;
715 clip_to: "clipper";
716 description { state: "default" 0.0;
717 rel1.offset: 1 1;
718 rel2.relative: 0.0 0.0;
719 rel2.offset: -2 -2;
720 rel2.to_x: "sb_vbar";
721 rel2.to_y: "sb_hbar";
722 }
723 }
724 part { name: "inset"; mouse_events: 0;
725 description { state: "default" 0.0;
726 image.normal: "bevel_in.png";
727 image.border: 1 1 1 1;
728 image.middle: 0;
729 rel1.to: "bg";
730 rel1.offset: -1 -1;
731 rel2.to: "bg";
732 rel2.offset: 0 0;
733 fill.smooth: 0;
734 }
735 }
736 part { name: "shadow"; mouse_events: 0;
737 description { state: "default" 0.0;
738 image.normal: "inset_shadow.png";
739 image.border: 5 5 7 3;
740 image.middle: 0;
741 rel1.to: "bg";
742 rel2.to: "bg";
743 fill.smooth: 0;
744 color: 255 255 255 128;
745 }
746 }
747 part { name: "elm.swallow.overlay"; type: SWALLOW;
748 clip_to: "clipper";
749 description { state: "default" 0.0;
750 rel1.to: "elm.swallow.content";
751 rel2.to: "elm.swallow.content";
752 }
753 }
754 part { name: "runner_vbar"; mouse_events: 0;
755 clip_to: "sb_vbar_show";
756 description { state: "default" 0.0;
757 image.normal: "runner_vert.png";
758 image.border: 0 0 2 2;
759 rel1.to: "sb_vbar_base";
760 rel2.to: "sb_vbar_base";
761 fill.smooth: 0;
762 min: 3 4;
763 max: 3 99999;
764 fixed: 1 1;
765 }
766 }
767 part { name: "runner_hbar"; mouse_events: 0;
768 clip_to: "sb_hbar_show";
769 description { state: "default" 0.0;
770 image.normal: "runner_horiz.png";
771 image.border: 2 2 0 0;
772 rel1.to: "sb_hbar_base";
773 rel2.to: "sb_hbar_base";
774 fill.smooth: 0;
775 min: 4 3;
776 max: 99999 3;
777 fixed: 1 1;
778 }
779 }
780 part { name: "runner_vbar_clip"; type: RECT;
781 clip_to: "sb_vbar_show";
782 description { state: "default" 0.0;
783 min: 1 1;
784 max: 1 99999;
785 rel1.to: "runner_vbar";
786 rel1.offset: 0 1;
787 rel2.to: "runner_vbar";
788 rel2.offset: -1 -2;
789 fixed: 1 1;
790 }
791 }
792 part { name: "runner_hbar_clip"; type: RECT;
793 clip_to: "sb_hbar_show";
794 description { state: "default" 0.0;
795 min: 1 1;
796 max: 99999 1;
797 rel1.to: "runner_hbar";
798 rel1.offset: 1 0;
799 rel2.to: "runner_hbar";
800 rel2.offset: -2 -1;
801 fixed: 1 1;
802 }
803 }
804 part { name: "arrow1_vbar_indent"; mouse_events: 0;
805 description { state: "default" 0.0;
806 rel1.to: "sb_vbar_a1";
807 rel2.to: "sb_vbar_a1";
808 image.normal: "sym_up_dark_normal.png";
809 FIXED_SIZE(15, 15)
810 }
811 description { state: "hidden" 0.0;
812 inherit: "default" 0.0;
813 visible: 0;
814 }
815 }
816 part { name: "arrow1_vbar"; mouse_events: 0;
817 clip_to: "sb_vbar_show";
818 description { state: "default" 0.0;
819 rel1.to: "sb_vbar_a1";
820 rel2.to: "sb_vbar_a1";
821 image.normal: "sym_up_light_normal.png";
822 FIXED_SIZE(15, 15)
823 }
824 description { state: "clicked" 0.0;
825 inherit: "default" 0.0;
826 image.normal: "sym_up_glow_normal.png";
827 }
828 description { state: "hidden" 0.0;
829 inherit: "default" 0.0;
830 visible: 0;
831 }
832 }
833 part { name: "arrow2_vbar_indent"; mouse_events: 0;
834 description { state: "default" 0.0;
835 rel1.to: "sb_vbar_a2";
836 rel2.to: "sb_vbar_a2";
837 image.normal: "sym_down_dark_normal.png";
838 FIXED_SIZE(15, 15)
839 }
840 description { state: "hidden" 0.0;
841 inherit: "default" 0.0;
842 visible: 0;
843 }
844 }
845 part { name: "arrow2_vbar"; mouse_events: 0;
846 clip_to: "sb_vbar_show";
847 description { state: "default" 0.0;
848 rel1.to: "sb_vbar_a2";
849 rel2.to: "sb_vbar_a2";
850 image.normal: "sym_down_light_normal.png";
851 FIXED_SIZE(15, 15)
852 }
853 description { state: "clicked" 0.0;
854 inherit: "default" 0.0;
855 image.normal: "sym_down_glow_normal.png";
856 }
857 description { state: "hidden" 0.0;
858 inherit: "default" 0.0;
859 visible: 0;
860 }
861 }
862 part { name: "shadow_vbar"; mouse_events: 0;
863 clip_to: "sb_vbar_show";
864 description { state: "default" 0.0;
865 rel1.offset: -3 -2;
866 rel1.to: "base_vbar";
867 rel2.offset: 2 4;
868 rel2.to: "base_vbar";
869 image.normal: "shadow_square_tiny.png";
870 image.border: 6 6 6 6;
871 fill.smooth: 0;
872 fixed: 1 1;
873 }
874 description { state: "clicked" 0.0;
875 inherit: "default" 0.0;
876 rel1.offset: -2 -2;
877 rel2.offset: 1 1;
878 color: 255 255 255 128;
879 }
880 }
881 part { name: "glow_vbar"; mouse_events: 0;
882 clip_to: "sb_vbar_show";
883 description { state: "default" 0.0;
884 rel1.offset: -3 -3;
885 rel1.to: "base_vbar";
886 rel2.offset: 2 2;
887 rel2.to: "base_vbar";
888 image.normal: "glow_small.png";
889 image.border: 7 7 7 7;
890 fill.smooth: 0;
891 visible: 0;
892 fixed: 1 1;
893 }
894 description { state: "clicked" 0.0;
895 inherit: "default" 0.0;
896 visible: 1;
897 }
898 }
899 part { name: "runner_glow_vbar"; mouse_events: 0;
900 clip_to: "runner_vbar_clip";
901 description { state: "default" 0.0;
902 rel1.offset: 0 -30;
903 rel1.to_x: "runner_vbar_clip";
904 rel1.to_y: "base_vbar";
905 rel2.offset: -1 29;
906 rel2.to_x: "runner_vbar_clip";
907 rel2.to_y: "base_vbar";
908 image.normal: "runner_glow_vert.png";
909 image.border: 0 0 33 33;
910 fixed: 1 1;
911 }
912 }
913 part { name: "base_vbar"; mouse_events: 0;
914 clip_to: "sb_vbar_show";
915 description { state: "default" 0.0;
916 fixed: 1 1;
917 rel1.offset: 2 0;
918 rel1.to: "elm.dragable.vbar";
919 rel2.offset: -3 -1;
920 rel2.to: "elm.dragable.vbar";
921 image.normal: "vgrad_med_lighter.png";
922 fill.smooth: 0;
923 min: 3 13;
924 TILED_HORIZ(120)
925 fixed: 1 1;
926 color_class: "scroller_bar";
927 }
928 }
929 part { name: "bevel_vbar"; mouse_events: 0;
930 clip_to: "sb_vbar_show";
931 description { state: "default" 0.0;
932 rel1.to: "base_vbar";
933 rel2.to: "base_vbar";
934 image.normal: "bevel_out.png";
935 image.border: 1 1 1 1;
936 image.middle: 0;
937 fill.smooth: 0;
938 min: 3 3;
939 fixed: 1 1;
940 }
941 }
942 part { name: "center_vbar"; mouse_events: 0;
943 clip_to: "sb_vbar_show";
944 description { state: "default" 0.0;
945 rel1.to: "base_vbar";
946 rel2.to: "base_vbar";
947 image.normal: "holes_tiny_vert.png";
948 FIXED_SIZE(3, 11)
949 }
950 }
951 part { name: "center_glow_vbar"; mouse_events: 0;
952 clip_to: "sb_vbar_show";
953 description { state: "default" 0.0;
954 rel1.to: "center_vbar";
955 rel2.to: "center_vbar";
956 image.normal: "holes_tiny_glow_vert.png";
957 FIXED_SIZE(11, 17)
958 visible: 0;
959 }
960 description { state: "clicked" 0.0;
961 inherit: "default" 0.0;
962 visible: 1;
963 }
964 }
965 part { name: "arrow1_hbar_indent"; mouse_events: 0;
966 description { state: "default" 0.0;
967 rel1.to: "sb_hbar_a1";
968 rel2.to: "sb_hbar_a1";
969 image.normal: "sym_left_dark_normal.png";
970 FIXED_SIZE(15, 15)
971 }
972 description { state: "hidden" 0.0;
973 inherit: "default" 0.0;
974 visible: 0;
975 }
976 }
977 part { name: "arrow1_hbar"; mouse_events: 0;
978 clip_to: "sb_hbar_show";
979 description { state: "default" 0.0;
980 rel1.to: "sb_hbar_a1";
981 rel2.to: "sb_hbar_a1";
982 image.normal: "sym_left_light_normal.png";
983 FIXED_SIZE(15, 15)
984 }
985 description { state: "clicked" 0.0;
986 inherit: "default" 0.0;
987 image.normal: "sym_left_glow_normal.png";
988 }
989 description { state: "hidden" 0.0;
990 inherit: "default" 0.0;
991 visible: 0;
992 }
993 }
994 part { name: "arrow2_hbar_indent"; mouse_events: 0;
995 description { state: "default" 0.0;
996 rel1.to: "sb_hbar_a2";
997 rel2.to: "sb_hbar_a2";
998 image.normal: "sym_right_dark_normal.png";
999 FIXED_SIZE(15, 15)
1000 }
1001 description { state: "hidden" 0.0;
1002 inherit: "default" 0.0;
1003 visible: 0;
1004 }
1005 }
1006 part { name: "arrow2_hbar"; mouse_events: 0;
1007 clip_to: "sb_hbar_show";
1008 description { state: "default" 0.0;
1009 rel1.to: "sb_hbar_a2";
1010 rel2.to: "sb_hbar_a2";
1011 image.normal: "sym_right_light_normal.png";
1012 FIXED_SIZE(15, 15)
1013 }
1014 description { state: "clicked" 0.0;
1015 inherit: "default" 0.0;
1016 image.normal: "sym_right_glow_normal.png";
1017 }
1018 description { state: "hidden" 0.0;
1019 inherit: "default" 0.0;
1020 visible: 0;
1021 }
1022 }
1023 part { name: "shadow_hbar"; mouse_events: 0;
1024 clip_to: "sb_hbar_show";
1025 description { state: "default" 0.0;
1026 rel1.offset: -3 -2;
1027 rel1.to: "base_hbar";
1028 rel2.offset: 2 4;
1029 rel2.to: "base_hbar";
1030 image.normal: "shadow_square_tiny.png";
1031 image.border: 6 6 6 6;
1032 fill.smooth: 0;
1033 fixed: 1 1;
1034 }
1035 description { state: "clicked" 0.0;
1036 inherit: "default" 0.0;
1037 rel1.offset: -2 -2;
1038 rel2.offset: 1 1;
1039 color: 255 255 255 128;
1040 }
1041 }
1042 part { name: "glow_hbar"; mouse_events: 0;
1043 clip_to: "sb_hbar_show";
1044 description { state: "default" 0.0;
1045 rel1.offset: -3 -3;
1046 rel1.to: "base_hbar";
1047 rel2.offset: 2 2;
1048 rel2.to: "base_hbar";
1049 image.normal: "glow_small.png";
1050 image.border: 7 7 7 7;
1051 fill.smooth: 0;
1052 visible: 0;
1053 fixed: 1 1;
1054 }
1055 description { state: "clicked" 0.0;
1056 inherit: "default" 0.0;
1057 visible: 1;
1058 }
1059 }
1060 part { name: "runner_glow_hbar"; mouse_events: 0;
1061 clip_to: "runner_hbar_clip";
1062 description { state: "default" 0.0;
1063 rel1.offset: -30 0;
1064 rel1.to_x: "base_hbar";
1065 rel1.to_y: "runner_hbar_clip";
1066 rel2.offset: 29 -1;
1067 rel2.to_x: "base_hbar";
1068 rel2.to_y: "runner_hbar_clip";
1069 image.normal: "runner_glow_horiz.png";
1070 image.border: 33 33 0 0;
1071 fixed: 1 1;
1072 }
1073 }
1074 part { name: "base_hbar"; mouse_events: 0;
1075 clip_to: "sb_hbar_show";
1076 description { state: "default" 0.0;
1077 fixed: 1 1;
1078 rel1.offset: 0 2;
1079 rel1.to: "elm.dragable.hbar";
1080 rel2.offset: -1 -3;
1081 rel2.to: "elm.dragable.hbar";
1082 image.normal: "vgrad_med_lighter.png";
1083 fill.smooth: 0;
1084 min: 13 3;
1085 TILED_HORIZ(120)
1086 }
1087 }
1088 part { name: "bevel_hbar"; mouse_events: 0;
1089 clip_to: "sb_hbar_show";
1090 description { state: "default" 0.0;
1091 rel1.to: "base_hbar";
1092 rel2.to: "base_hbar";
1093 image.normal: "bevel_out.png";
1094 image.border: 1 1 1 1;
1095 image.middle: 0;
1096 fill.smooth: 0;
1097 min: 3 3;
1098 fixed: 1 1;
1099 }
1100 }
1101 part { name: "center_hbar"; mouse_events: 0;
1102 clip_to: "sb_hbar_show";
1103 description { state: "default" 0.0;
1104 rel1.to: "base_hbar";
1105 rel2.to: "base_hbar";
1106 image.normal: "holes_tiny_horiz.png";
1107 FIXED_SIZE(11, 3)
1108 fixed: 1 1;
1109 }
1110 }
1111 part { name: "center_glow_hbar"; mouse_events: 0;
1112 clip_to: "sb_hbar_show";
1113 description { state: "default" 0.0;
1114 rel1.to: "center_hbar";
1115 rel2.to: "center_hbar";
1116 image.normal: "holes_tiny_glow_horiz.png";
1117 FIXED_SIZE(17, 11)
1118 visible: 0;
1119 }
1120 description { state: "clicked" 0.0;
1121 inherit: "default" 0.0;
1122 visible: 1;
1123 }
1124 }
1125 part { name: "dim_effect"; type: RECT; mouse_events: 0;
1126 description { state: "default" 0.0;
1127 color: 0 0 0 0;
1128 }
1129 description { state: "effect" 0.0;
1130 color: 50 50 50 255;
1131 }
1132 }
1133 }
1134 programs {
1135 program {
1136 signal: "mouse,down,1*"; source: "elm.dragable.vbar";
1137 action: STATE_SET "clicked" 0.0;
1138 target: "elm.dragable.vbar";
1139 target: "shadow_vbar";
1140 target: "glow_vbar";
1141 target: "center_glow_vbar";
1142 }
1143 program {
1144 signal: "mouse,down,*"; source: "elm.dragable.vbar";
1145 action: SIGNAL_EMIT "elm,vbar,press" "elm";
1146 }
1147 program {
1148 signal: "mouse,up,1"; source: "elm.dragable.vbar";
1149 action: STATE_SET "default" 0.0;
1150 target: "elm.dragable.vbar";
1151 target: "shadow_vbar";
1152 target: "glow_vbar";
1153 target: "center_glow_vbar";
1154 }
1155 program {
1156 signal: "mouse,up,*"; source: "elm.dragable.vbar";
1157 action: SIGNAL_EMIT "elm,vbar,unpress" "elm";
1158 }
1159 program {
1160 signal: "mouse,down,1*"; source: "elm.dragable.hbar";
1161 action: STATE_SET "clicked" 0.0;
1162 target: "elm.dragable.hbar";
1163 target: "shadow_hbar";
1164 target: "glow_hbar";
1165 target: "center_glow_hbar";
1166 }
1167 program {
1168 signal: "mouse,down,*"; source: "elm.dragable.hbar";
1169 action: SIGNAL_EMIT "elm,hbar,press" "elm";
1170 }
1171 program {
1172 signal: "mouse,up,1"; source: "elm.dragable.hbar";
1173 action: STATE_SET "default" 0.0;
1174 target: "elm.dragable.hbar";
1175 target: "shadow_hbar";
1176 target: "glow_hbar";
1177 target: "center_glow_hbar";
1178 }
1179 program {
1180 signal: "mouse,up,*"; source: "elm.dragable.hbar";
1181 action: SIGNAL_EMIT "elm,hbar,unpress" "elm";
1182 }
1183 program {
1184 signal: "elm,action,looping,left"; source: "elm";
1185 action: STATE_SET "effect" 0.0;
1186 transition: LINEAR 0.3;
1187 target: "dim_effect";
1188 after: "looping,left,done";
1189 }
1190 program { name: "looping,left,done";
1191 action: SIGNAL_EMIT "elm,looping,left,done" "elm";
1192 }
1193 program {
1194 signal: "elm,action,looping,left,end"; source: "elm";
1195 action: STATE_SET "default" 0.0;
1196 transition: LINEAR 0.3;
1197 target: "dim_effect";
1198 }
1199 program {
1200 signal: "elm,action,looping,right"; source: "elm";
1201 action: STATE_SET "effect" 0.0;
1202 transition: LINEAR 0.3;
1203 target: "dim_effect";
1204 after: "looping,right,done";
1205 }
1206 program { name: "looping,right,done";
1207 action: SIGNAL_EMIT "elm,looping,right,done" "elm";
1208 }
1209 program {
1210 signal: "elm,action,looping,right,end"; source: "elm";
1211 action: STATE_SET "default" 0.0;
1212 transition: LINEAR 0.3;
1213 target: "dim_effect";
1214 }
1215 program {
1216 signal: "elm,action,looping,up"; source: "elm";
1217 action: STATE_SET "effect" 0.0;
1218 transition: LINEAR 0.3;
1219 target: "dim_effect";
1220 after: "looping,up,done";
1221 }
1222 program { name: "looping,up,done";
1223 action: SIGNAL_EMIT "elm,looping,up,done" "elm";
1224 }
1225 program {
1226 signal: "elm,action,looping,up,end"; source: "elm";
1227 action: STATE_SET "default" 0.0;
1228 transition: LINEAR 0.3;
1229 target: "dim_effect";
1230 }
1231 program {
1232 signal: "elm,action,looping,down"; source: "elm";
1233 action: STATE_SET "effect" 0.0;
1234 transition: LINEAR 0.3;
1235 target: "dim_effect";
1236 after: "looping,down,done";
1237 }
1238 program { name: "looping,down,done";
1239 action: SIGNAL_EMIT "elm,looping,down,done" "elm";
1240 }
1241 program {
1242 signal: "elm,action,looping,down,end"; source: "elm";
1243 action: STATE_SET "default" 0.0;
1244 transition: LINEAR 0.3;
1245 target: "dim_effect";
1246 }
1247 }
7} 1248}
8 1249
9group { "efl/scroller/contents"; 1250group { name: "efl/scroller:noclip";
10 inherit: "elm/scroller/contents/default"; 1251 inherit: "efl/scroller";
1252 parts {
1253 part { name: "clipper";
1254 description { state: "default" 0.0;
1255 rel1.offset: -999999 -999999;
1256 rel2.offset: 999999 999999;
1257 }
1258 }
1259 part { name: "elm.swallow.background";
1260 description { state: "default" 0.0;
1261 rel1.offset: 0 0;
1262 rel2.offset: -1 -1;
1263 }
1264 }
1265 part { name: "elm.swallow.content";
1266 description { state: "default" 0.0;
1267 rel1.offset: 0 1;
1268 rel2.offset: -1 -1;
1269 }
1270 }
1271 part { name: "inset";
1272 description { state: "default" 0.0;
1273 visible: 0;
1274 }
1275 }
1276 part { name: "shadow";
1277 description { state: "default" 0.0;
1278 visible: 0;
1279 }
1280 }
1281 }
11} 1282}
12 1283
1284group { name: "efl/scroller/contents";
1285 parts {
1286 part { name: "elm.swallow.content";
1287 type: SWALLOW;
1288 description { state: "default" 0.0;
1289 }
1290 }
1291 part { name: "elm.swallow.content_r";
1292 type: SWALLOW;
1293 description { state: "default" 0.0;
1294 fixed: 1 1;
1295 rel1 {
1296 relative: 1.0 0.0;
1297 to: "elm.swallow.content";
1298 }
1299 rel2 {
1300 relative: 2.0 1.0;
1301 to: "elm.swallow.content";
1302 }
1303 }
1304 }
1305 part { name: "elm.swallow.content_b";
1306 type: SWALLOW;
1307 description { state: "default" 0.0;
1308 fixed: 1 1;
1309 rel1 {
1310 relative: 0.0 1.0;
1311 to: "elm.swallow.content";
1312 }
1313 rel2 {
1314 relative: 1.0 2.0;
1315 to: "elm.swallow.content";
1316 }
1317 }
1318 }
1319 part { name: "elm.swallow.content_rb";
1320 type: SWALLOW;
1321 description { state: "default" 0.0;
1322 fixed: 1 1;
1323 rel1 {
1324 relative: 1.0 1.0;
1325 to: "elm.swallow.content";
1326 }
1327 rel2 {
1328 relative: 2.0 2.0;
1329 to: "elm.swallow.content";
1330 }
1331 }
1332 }
1333 }
1334}