diff options
Diffstat (limited to 'libraries/elementary/data/themes/widgets/panes.edc')
-rw-r--r-- | libraries/elementary/data/themes/widgets/panes.edc | 853 |
1 files changed, 853 insertions, 0 deletions
diff --git a/libraries/elementary/data/themes/widgets/panes.edc b/libraries/elementary/data/themes/widgets/panes.edc new file mode 100644 index 0000000..10423e8 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/panes.edc | |||
@@ -0,0 +1,853 @@ | |||
1 | group { | ||
2 | name: "elm/panes/vertical/default"; | ||
3 | images { | ||
4 | image: "bt_base1.png" COMP; | ||
5 | image: "bt_base2.png" COMP; | ||
6 | image: "bt_hilight.png" COMP; | ||
7 | image: "bt_shine.png" COMP; | ||
8 | image: "bt_glow.png" COMP; | ||
9 | image: "arrow_right.png" COMP; | ||
10 | image: "arrow_left.png" COMP; | ||
11 | } | ||
12 | parts | ||
13 | { | ||
14 | part | ||
15 | { | ||
16 | name: "whole"; | ||
17 | type: RECT; | ||
18 | mouse_events: 0; | ||
19 | description | ||
20 | { | ||
21 | state: "default" 0.0; | ||
22 | visible: 0; | ||
23 | } | ||
24 | } | ||
25 | |||
26 | //2 contents | ||
27 | part | ||
28 | { | ||
29 | name: "whole_left"; | ||
30 | type: RECT; | ||
31 | mouse_events: 0; | ||
32 | description | ||
33 | { | ||
34 | state: "default" 0.0; | ||
35 | rel2.to_x: "elm.bar"; | ||
36 | rel2.relative: 0.0 1.0; | ||
37 | visible: 1; | ||
38 | } | ||
39 | } | ||
40 | part | ||
41 | { | ||
42 | name: "elm.swallow.left"; | ||
43 | type: SWALLOW; | ||
44 | clip_to: "whole_left"; | ||
45 | description | ||
46 | { | ||
47 | state: "default" 0.0; | ||
48 | rel1.to: "whole_left"; | ||
49 | rel2.to: "whole_left"; | ||
50 | } | ||
51 | } | ||
52 | |||
53 | part | ||
54 | { | ||
55 | name: "whole_right"; | ||
56 | type: RECT; | ||
57 | mouse_events: 0; | ||
58 | description | ||
59 | { | ||
60 | state: "default" 0.0; | ||
61 | rel1.to_x: "elm.bar"; | ||
62 | rel1.relative: 1.0 0.0; | ||
63 | visible: 1; | ||
64 | } | ||
65 | } | ||
66 | part | ||
67 | { | ||
68 | name: "elm.swallow.right"; | ||
69 | type: SWALLOW; | ||
70 | clip_to: "whole_right"; | ||
71 | description | ||
72 | { | ||
73 | state: "default" 0.0; | ||
74 | rel1.to: "whole_right"; | ||
75 | rel2.to: "whole_right"; | ||
76 | } | ||
77 | } | ||
78 | //BAR | ||
79 | part { name: "elm.bar"; | ||
80 | mouse_events: 1; | ||
81 | dragable { | ||
82 | confine: "whole"; | ||
83 | x: 1 1 1; | ||
84 | y: 0 0 0; | ||
85 | } | ||
86 | description { state: "default" 0.0; | ||
87 | max: 15 9999; | ||
88 | min: 15 100; | ||
89 | rel1.relative: 0.0 0.5; | ||
90 | rel2.relative: 1.0 0.5; | ||
91 | image { | ||
92 | normal: "bt_base2.png"; | ||
93 | border: 7 7 7 7; | ||
94 | } | ||
95 | image.middle: SOLID; | ||
96 | } | ||
97 | description { state: "clicked" 0.0; | ||
98 | inherit: "default" 0.0; | ||
99 | image.normal: "bt_base1.png"; | ||
100 | image.middle: SOLID; | ||
101 | } | ||
102 | description { state: "disabled" 0.0; | ||
103 | inherit: "default" 0.0; | ||
104 | visible: 0; | ||
105 | } | ||
106 | } | ||
107 | part { name: "over1"; | ||
108 | mouse_events: 0; | ||
109 | description { state: "default" 0.0; | ||
110 | rel1.to: "elm.bar"; | ||
111 | rel2.to: "elm.bar"; | ||
112 | rel2.relative: 1.0 0.5; | ||
113 | image { | ||
114 | normal: "bt_hilight.png"; | ||
115 | border: 7 7 7 0; | ||
116 | } | ||
117 | } | ||
118 | description { state: "disabled" 0.0; | ||
119 | inherit: "default" 0.0; | ||
120 | visible: 0; | ||
121 | } | ||
122 | } | ||
123 | part { name: "over2"; | ||
124 | mouse_events: 1; | ||
125 | repeat_events: 1; | ||
126 | ignore_flags: ON_HOLD; | ||
127 | description { state: "default" 0.0; | ||
128 | rel1.to: "elm.bar"; | ||
129 | rel2.to: "elm.bar"; | ||
130 | image { | ||
131 | normal: "bt_shine.png"; | ||
132 | border: 7 7 7 7; | ||
133 | } | ||
134 | } | ||
135 | description { state: "disabled" 0.0; | ||
136 | inherit: "default" 0.0; | ||
137 | visible: 0; | ||
138 | } | ||
139 | } | ||
140 | part { name: "over3"; | ||
141 | mouse_events: 1; | ||
142 | repeat_events: 1; | ||
143 | description { state: "default" 0.0; | ||
144 | color: 255 255 255 0; | ||
145 | rel1.to: "elm.bar"; | ||
146 | rel2.to: "elm.bar"; | ||
147 | image { | ||
148 | normal: "bt_glow.png"; | ||
149 | border: 12 12 12 12; | ||
150 | } | ||
151 | fill.smooth : 0; | ||
152 | } | ||
153 | description { state: "clicked" 0.0; | ||
154 | inherit: "default" 0.0; | ||
155 | visible: 1; | ||
156 | color: 255 255 255 255; | ||
157 | } | ||
158 | } | ||
159 | part { name:"bar_disabled"; | ||
160 | type: RECT; | ||
161 | description { state:"default" 0.0; | ||
162 | rel1.to_x: "elm.bar"; | ||
163 | rel2.to_x: "elm.bar"; | ||
164 | color: 0 0 0 0; | ||
165 | visible: 0; | ||
166 | } | ||
167 | description { state: "disabled" 0.0; | ||
168 | inherit: "default" 0.0; | ||
169 | visible: 1; | ||
170 | } | ||
171 | } | ||
172 | |||
173 | //Arrow | ||
174 | part { | ||
175 | name: "arrow_right"; | ||
176 | repeat_events: 1; | ||
177 | description { state: "default" 0.0; | ||
178 | min: 45 45; | ||
179 | max: 45 45; | ||
180 | color: 255 255 255 0; | ||
181 | |||
182 | rel1.relative: 1.0 0.5; | ||
183 | rel1.to_x: "elm.bar"; | ||
184 | rel1.offset: 45/2 -45/2; | ||
185 | |||
186 | rel2.relative: 1.0 0.5; | ||
187 | rel2.to_x: "elm.bar"; | ||
188 | rel2.offset: 45/2 45/2; | ||
189 | |||
190 | image.normal: "arrow_right.png"; | ||
191 | |||
192 | fixed: 1 1; | ||
193 | } | ||
194 | description { state: "default" 0.1; | ||
195 | inherit: "default" 0.0; | ||
196 | image.normal: "arrow_left.png"; | ||
197 | } | ||
198 | description { state: "anim_1" 0.0; | ||
199 | inherit: "default" 0.0; | ||
200 | color: 255 255 255 200; | ||
201 | rel1.offset: (45/2 + 10) -45/2; | ||
202 | rel2.offset: (45/2 +10) 45/2; | ||
203 | } | ||
204 | description { state: "anim_1" 0.1; | ||
205 | inherit: "default" 0.0; | ||
206 | image.normal: "arrow_left.png"; | ||
207 | color: 255 255 255 200; | ||
208 | rel1.offset: (45/2 + 10) -45/2; | ||
209 | rel2.offset: (45/2 +10) 45/2; | ||
210 | } | ||
211 | description { state: "anim_2" 0.0; | ||
212 | inherit: "default" 0.0; | ||
213 | color: 255 255 255 0; | ||
214 | rel1.offset: (45/2 + 20) -45/2; | ||
215 | rel2.offset: (45/2 + 20) 45/2; | ||
216 | } | ||
217 | description { state: "anim_2" 0.1; | ||
218 | inherit: "default" 0.0; | ||
219 | image.normal: "arrow_left.png"; | ||
220 | color: 255 255 255 0; | ||
221 | rel1.offset: (45/2 + 20) -45/2; | ||
222 | rel2.offset: (45/2 + 20) 45/2; | ||
223 | } | ||
224 | } | ||
225 | part { | ||
226 | name: "arrow_left"; | ||
227 | repeat_events: 1; | ||
228 | description { state: "default" 0.0; | ||
229 | min: 45 45; | ||
230 | max: 45 45; | ||
231 | color: 255 255 255 0; | ||
232 | |||
233 | rel1.relative: 0.0 0.5; | ||
234 | rel1.to_x: "elm.bar"; | ||
235 | rel1.offset: -45/2 -45/2; | ||
236 | |||
237 | rel2.relative: 0.0 0.5; | ||
238 | rel2.to_x: "elm.bar"; | ||
239 | rel2.offset: -45/2 45/2; | ||
240 | |||
241 | image.normal: "arrow_left.png"; | ||
242 | |||
243 | fixed: 1 1; | ||
244 | } | ||
245 | description { state: "default" 0.1; | ||
246 | inherit: "default" 0.0; | ||
247 | image.normal: "arrow_right.png"; | ||
248 | } | ||
249 | description { state: "anim_1" 0.0; | ||
250 | inherit: "default" 0.0; | ||
251 | color: 255 255 255 200; | ||
252 | rel1.offset: (-45/2 - 10) -45/2; | ||
253 | rel2.offset: (-45/2 - 10) 45/2; | ||
254 | } | ||
255 | description { state: "anim_1" 0.1; | ||
256 | inherit: "default" 0.0; | ||
257 | image.normal: "arrow_right.png"; | ||
258 | color: 255 255 255 200; | ||
259 | rel1.offset: (-45/2 - 10) -45/2; | ||
260 | rel2.offset: (-45/2 - 10) 45/2; | ||
261 | } | ||
262 | description { state: "anim_2" 0.0; | ||
263 | inherit: "default" 0.0; | ||
264 | color: 255 255 255 0; | ||
265 | rel1.offset: (-45/2 - 20) -45/2; | ||
266 | rel2.offset: (-45/2 - 20) 45/2; | ||
267 | } | ||
268 | description { state: "anim_2" 0.1; | ||
269 | inherit: "default" 0.0; | ||
270 | image.normal: "arrow_right.png"; | ||
271 | color: 255 255 255 0; | ||
272 | rel1.offset: (-45/2 - 20) -45/2; | ||
273 | rel2.offset: (-45/2 - 20) 45/2; | ||
274 | } | ||
275 | } | ||
276 | |||
277 | } | ||
278 | programs { | ||
279 | program { | ||
280 | name: "button_click"; | ||
281 | signal: "mouse,down,1"; | ||
282 | source: "over2"; | ||
283 | action: SIGNAL_EMIT "elm,action,press" ""; | ||
284 | after: "button_click_anim"; | ||
285 | after: "arrow_anim_start"; | ||
286 | } | ||
287 | program { | ||
288 | name: "button_click_anim"; | ||
289 | action: STATE_SET "clicked" 0.0; | ||
290 | target: "elm.bar"; | ||
291 | } | ||
292 | program { | ||
293 | name: "button_unclick"; | ||
294 | signal: "mouse,up,1"; | ||
295 | source: "over2"; | ||
296 | action: SIGNAL_EMIT "elm,action,unpress" ""; | ||
297 | after: "button_unclick_anim"; | ||
298 | after: "arrow_anim_stop"; | ||
299 | } | ||
300 | program { | ||
301 | name: "button_unclick_anim"; | ||
302 | action: STATE_SET "default" 0.0; | ||
303 | target: "elm.bar"; | ||
304 | } | ||
305 | program { | ||
306 | name: "button_click2"; | ||
307 | signal: "mouse,down,1"; | ||
308 | source: "over3"; | ||
309 | action: STATE_SET "clicked" 0.0; | ||
310 | target: "over3"; | ||
311 | } | ||
312 | program { | ||
313 | name: "button_unclick2"; | ||
314 | signal: "mouse,up,1"; | ||
315 | source: "over3"; | ||
316 | action: STATE_SET "default" 0.0; | ||
317 | transition: DECELERATE 0.5; | ||
318 | target: "over3"; | ||
319 | } | ||
320 | program { | ||
321 | name: "button_unclick3"; | ||
322 | signal: "mouse,up,1"; | ||
323 | source: "over2"; | ||
324 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
325 | } | ||
326 | program { | ||
327 | name: "button_down_double"; | ||
328 | signal: "mouse,down,1,double"; | ||
329 | source: "over3"; | ||
330 | action: SIGNAL_EMIT "elm,action,click,double" ""; | ||
331 | } | ||
332 | |||
333 | //arrows animation | ||
334 | program { | ||
335 | name: "arrow_anim_start"; | ||
336 | script { | ||
337 | new st[31]; | ||
338 | new Float:vl; | ||
339 | get_state(PART:"arrow_left", st, 30, vl); | ||
340 | if (vl == 0.0) { | ||
341 | run_program(PROGRAM:"arrow_anim_start_ltr"); | ||
342 | } | ||
343 | else { | ||
344 | run_program(PROGRAM:"arrow_anim_start_rtl"); | ||
345 | } | ||
346 | } | ||
347 | } | ||
348 | program { | ||
349 | name: "arrow_anim_stop"; | ||
350 | script { | ||
351 | new st[31]; | ||
352 | new Float:vl; | ||
353 | get_state(PART:"arrow_left", st, 30, vl); | ||
354 | if (vl == 0.0) { | ||
355 | run_program(PROGRAM:"arrow_anim_stop_ltr"); | ||
356 | } | ||
357 | else { | ||
358 | run_program(PROGRAM:"arrow_anim_stop_rtl"); | ||
359 | } | ||
360 | } | ||
361 | } | ||
362 | |||
363 | program { | ||
364 | name: "arrow_anim_start_ltr"; | ||
365 | action: STATE_SET "anim_1" 0.0; | ||
366 | target: "arrow_right"; | ||
367 | target: "arrow_left"; | ||
368 | transition: LINEAR 0.6; | ||
369 | after: "arrow_anim_1_ltr"; | ||
370 | } | ||
371 | program { | ||
372 | name: "arrow_anim_1_ltr"; | ||
373 | action: STATE_SET "anim_2" 0.0; | ||
374 | target: "arrow_right"; | ||
375 | target: "arrow_left"; | ||
376 | transition: LINEAR 0.6; | ||
377 | after: "arrow_anim_2_ltr"; | ||
378 | } | ||
379 | program { | ||
380 | name: "arrow_anim_2_ltr"; | ||
381 | action: STATE_SET "default" 0.0; | ||
382 | target: "arrow_right"; | ||
383 | target: "arrow_left"; | ||
384 | after: "arrow_anim_start_ltr"; | ||
385 | } | ||
386 | program { | ||
387 | name: "arrow_anim_stop_ltr"; | ||
388 | action: ACTION_STOP; | ||
389 | target: "arrow_anim_start_ltr"; | ||
390 | target: "arrow_anim_1_ltr"; | ||
391 | target: "arrow_anim_2_ltr"; | ||
392 | after: "arrow_anim_stop_1_ltr"; | ||
393 | } | ||
394 | program { | ||
395 | name: "arrow_anim_stop_1_ltr"; | ||
396 | action: STATE_SET "default" 0.0; | ||
397 | target: "arrow_right"; | ||
398 | target: "arrow_left"; | ||
399 | transition: DECELERATE 0.4; | ||
400 | } | ||
401 | program { | ||
402 | name: "arrow_anim_start_rtl"; | ||
403 | action: STATE_SET "anim_1" 0.1; | ||
404 | target: "arrow_right"; | ||
405 | target: "arrow_left"; | ||
406 | transition: LINEAR 0.6; | ||
407 | after: "arrow_anim_1_rtl"; | ||
408 | } | ||
409 | program { | ||
410 | name: "arrow_anim_1_rtl"; | ||
411 | action: STATE_SET "anim_2" 0.1; | ||
412 | target: "arrow_right"; | ||
413 | target: "arrow_left"; | ||
414 | transition: LINEAR 0.6; | ||
415 | after: "arrow_anim_2_rtl"; | ||
416 | } | ||
417 | program { | ||
418 | name: "arrow_anim_2_rtl"; | ||
419 | action: STATE_SET "default" 0.1; | ||
420 | target: "arrow_right"; | ||
421 | target: "arrow_left"; | ||
422 | after: "arrow_anim_start_rtl"; | ||
423 | } | ||
424 | program { | ||
425 | name: "arrow_anim_stop_rtl"; | ||
426 | action: ACTION_STOP; | ||
427 | target: "arrow_anim_start_rtl"; | ||
428 | target: "arrow_anim_1_rtl"; | ||
429 | target: "arrow_anim_2_rtl"; | ||
430 | after: "arrow_anim_stop_1_rtl"; | ||
431 | } | ||
432 | program { | ||
433 | name: "arrow_anim_stop_1_rtl"; | ||
434 | action: STATE_SET "default" 0.1; | ||
435 | target: "arrow_right"; | ||
436 | target: "arrow_left"; | ||
437 | transition: DECELERATE 0.4; | ||
438 | } | ||
439 | program { name: "to_rtl"; | ||
440 | signal: "edje,state,rtl"; | ||
441 | source: "edje"; | ||
442 | script { | ||
443 | new st[31]; | ||
444 | new Float:vl; | ||
445 | get_state(PART:"arrow_left", st, 30, vl); | ||
446 | if (vl == 0.0) { | ||
447 | set_state(PART:"arrow_left", st, 0.1); | ||
448 | } | ||
449 | get_state(PART:"arrow_right", st, 30, vl); | ||
450 | if (vl == 0.0) { | ||
451 | set_state(PART:"arrow_right", st, 0.1); | ||
452 | } | ||
453 | } | ||
454 | } | ||
455 | program { name: "to_ltr"; | ||
456 | signal: "edje,state,ltr"; | ||
457 | source: "edje"; | ||
458 | script { | ||
459 | new st[31]; | ||
460 | new Float:vl; | ||
461 | get_state(PART:"arrow_left", st, 30, vl); | ||
462 | if (vl == 0.1) { | ||
463 | set_state(PART:"arrow_left", st, 0.0); | ||
464 | } | ||
465 | get_state(PART:"arrow_right", st, 30, vl); | ||
466 | if (vl == 0.1) { | ||
467 | set_state(PART:"arrow_right", st, 0.0); | ||
468 | } | ||
469 | } | ||
470 | } | ||
471 | //fix the pane | ||
472 | program { | ||
473 | name: "panes_fixed"; | ||
474 | signal: "elm.panes.fixed"; | ||
475 | source: "elm"; | ||
476 | action: STATE_SET "disabled" 0.0; | ||
477 | target: "elm.bar"; | ||
478 | target: "over1"; | ||
479 | target: "bar_disabled"; | ||
480 | } | ||
481 | //allow the movement by interaction | ||
482 | program { | ||
483 | name: "panes_unfixed"; | ||
484 | signal: "elm.panes.unfixed"; | ||
485 | source: "elm"; | ||
486 | action: STATE_SET "default" 0.0; | ||
487 | target: "elm.bar"; | ||
488 | target: "over1"; | ||
489 | target: "bar_disabled"; | ||
490 | } | ||
491 | } | ||
492 | } | ||
493 | |||
494 | group { | ||
495 | name: "elm/panes/horizontal/default"; | ||
496 | images { | ||
497 | image: "bt_base1.png" COMP; | ||
498 | image: "bt_base2.png" COMP; | ||
499 | image: "bt_hilight.png" COMP; | ||
500 | image: "bt_shine.png" COMP; | ||
501 | image: "bt_glow.png" COMP; | ||
502 | image: "arrow_up.png" COMP; | ||
503 | image: "arrow_down.png" COMP; | ||
504 | } | ||
505 | parts | ||
506 | { | ||
507 | part | ||
508 | { | ||
509 | name: "whole"; | ||
510 | type: RECT; | ||
511 | mouse_events: 0; | ||
512 | description | ||
513 | { | ||
514 | state: "default" 0.0; | ||
515 | visible: 0; | ||
516 | } | ||
517 | } | ||
518 | |||
519 | //2 contents | ||
520 | part | ||
521 | { | ||
522 | name: "whole_left"; | ||
523 | type: RECT; | ||
524 | mouse_events: 0; | ||
525 | description | ||
526 | { | ||
527 | state: "default" 0.0; | ||
528 | rel2.to_y: "elm.bar"; | ||
529 | rel2.relative: 1.0 0.0; | ||
530 | visible: 1; | ||
531 | } | ||
532 | } | ||
533 | part | ||
534 | { | ||
535 | name: "elm.swallow.left"; | ||
536 | type: SWALLOW; | ||
537 | clip_to: "whole_left"; | ||
538 | description | ||
539 | { | ||
540 | state: "default" 0.0; | ||
541 | rel1.to: "whole_left"; | ||
542 | rel2.to: "whole_left"; | ||
543 | } | ||
544 | } | ||
545 | |||
546 | part | ||
547 | { | ||
548 | name: "whole_right"; | ||
549 | type: RECT; | ||
550 | mouse_events: 0; | ||
551 | description | ||
552 | { | ||
553 | state: "default" 0.0; | ||
554 | rel1.to_y: "elm.bar"; | ||
555 | rel1.relative: 0.0 1.0; | ||
556 | visible: 1; | ||
557 | } | ||
558 | } | ||
559 | part | ||
560 | { | ||
561 | name: "elm.swallow.right"; | ||
562 | type: SWALLOW; | ||
563 | clip_to: "whole_right"; | ||
564 | description | ||
565 | { | ||
566 | state: "default" 0.0; | ||
567 | rel1.to: "whole_right"; | ||
568 | rel2.to: "whole_right"; | ||
569 | } | ||
570 | } | ||
571 | //BAR | ||
572 | part { name: "elm.bar"; | ||
573 | mouse_events: 1; | ||
574 | dragable { | ||
575 | confine: "whole"; | ||
576 | x: 0 0 0; | ||
577 | y: 1 1 1; | ||
578 | } | ||
579 | description { state: "default" 0.0; | ||
580 | max: 999 15; | ||
581 | min: 100 15; | ||
582 | rel1.relative: 0.5 0.0; | ||
583 | rel2.relative: 0.5 1.0; | ||
584 | image { | ||
585 | normal: "bt_base2.png"; | ||
586 | border: 7 7 7 7; | ||
587 | } | ||
588 | image.middle: SOLID; | ||
589 | } | ||
590 | description { state: "clicked" 0.0; | ||
591 | inherit: "default" 0.0; | ||
592 | image.normal: "bt_base1.png"; | ||
593 | image.middle: SOLID; | ||
594 | } | ||
595 | description { state: "disabled" 0.0; | ||
596 | inherit: "default" 0.0; | ||
597 | visible: 0; | ||
598 | } | ||
599 | } | ||
600 | part { name: "over1"; | ||
601 | mouse_events: 0; | ||
602 | description { state: "default" 0.0; | ||
603 | rel1.to: "elm.bar"; | ||
604 | rel2.to: "elm.bar"; | ||
605 | rel2.relative: 1.0 0.5; | ||
606 | image { | ||
607 | normal: "bt_hilight.png"; | ||
608 | border: 7 7 7 0; | ||
609 | } | ||
610 | } | ||
611 | description { state: "disabled" 0.0; | ||
612 | inherit: "default" 0.0; | ||
613 | visible: 0; | ||
614 | } | ||
615 | } | ||
616 | part { name: "over2"; | ||
617 | mouse_events: 1; | ||
618 | repeat_events: 1; | ||
619 | ignore_flags: ON_HOLD; | ||
620 | description { state: "default" 0.0; | ||
621 | rel1.to: "elm.bar"; | ||
622 | rel2.to: "elm.bar"; | ||
623 | image { | ||
624 | normal: "bt_shine.png"; | ||
625 | border: 7 7 7 7; | ||
626 | } | ||
627 | } | ||
628 | description { state: "disabled" 0.0; | ||
629 | inherit: "default" 0.0; | ||
630 | visible: 0; | ||
631 | } | ||
632 | } | ||
633 | part { name: "over3"; | ||
634 | mouse_events: 1; | ||
635 | repeat_events: 1; | ||
636 | description { state: "default" 0.0; | ||
637 | color: 255 255 255 0; | ||
638 | rel1.to: "elm.bar"; | ||
639 | rel2.to: "elm.bar"; | ||
640 | image { | ||
641 | normal: "bt_glow.png"; | ||
642 | border: 12 12 12 12; | ||
643 | } | ||
644 | fill.smooth : 0; | ||
645 | } | ||
646 | description { state: "clicked" 0.0; | ||
647 | inherit: "default" 0.0; | ||
648 | visible: 1; | ||
649 | color: 255 255 255 255; | ||
650 | } | ||
651 | } | ||
652 | part { name:"bar_disabled"; | ||
653 | type: RECT; | ||
654 | description { state:"default" 0.0; | ||
655 | rel1.to_y: "elm.bar"; | ||
656 | rel2.to_y: "elm.bar"; | ||
657 | color: 0 0 0 0; | ||
658 | visible: 0; | ||
659 | } | ||
660 | description { state: "disabled" 0.0; | ||
661 | inherit: "default" 0.0; | ||
662 | visible: 1; | ||
663 | } | ||
664 | } | ||
665 | |||
666 | //Arrow | ||
667 | part { | ||
668 | name: "arrow_right"; | ||
669 | repeat_events: 1; | ||
670 | description { state: "default" 0.0; | ||
671 | min: 45 45; | ||
672 | max: 45 45; | ||
673 | color: 255 255 255 0; | ||
674 | |||
675 | rel1.relative: 0.5 1.0; | ||
676 | rel1.to_y: "elm.bar"; | ||
677 | rel1.offset: -45/2 45/2; | ||
678 | |||
679 | rel2.relative: 0.5 1.0; | ||
680 | rel2.to_y: "elm.bar"; | ||
681 | rel2.offset: 45/2 45/2; | ||
682 | |||
683 | image.normal: "arrow_down.png"; | ||
684 | |||
685 | fixed: 1 1; | ||
686 | } | ||
687 | description { state: "anim_1" 0.0; | ||
688 | inherit: "default" 0.0; | ||
689 | color: 255 255 255 200; | ||
690 | rel1.offset: -45/2 (45/2 +10); | ||
691 | rel2.offset: 45/2 (45/2 +10); | ||
692 | } | ||
693 | description { state: "anim_2" 0.0; | ||
694 | inherit: "default" 0.0; | ||
695 | color: 255 255 255 0; | ||
696 | rel1.offset: -45/2 (45/2 + 20); | ||
697 | rel2.offset: 45/2 (45/2 + 20); | ||
698 | } | ||
699 | } | ||
700 | part { | ||
701 | name: "arrow_left"; | ||
702 | repeat_events: 1; | ||
703 | description { state: "default" 0.0; | ||
704 | min: 45 45; | ||
705 | max: 45 45; | ||
706 | color: 255 255 255 0; | ||
707 | |||
708 | rel1.relative: 0.5 0.0; | ||
709 | rel1.to_y: "elm.bar"; | ||
710 | rel1.offset: -45/2 -45/2; | ||
711 | |||
712 | rel2.relative: 0.5 0.0; | ||
713 | rel2.to_y: "elm.bar"; | ||
714 | rel2.offset: 45/2 -45/2; | ||
715 | |||
716 | image.normal: "arrow_up.png"; | ||
717 | |||
718 | fixed: 1 1; | ||
719 | } | ||
720 | description { state: "anim_1" 0.0; | ||
721 | inherit: "default" 0.0; | ||
722 | color: 255 255 255 200; | ||
723 | rel1.offset: -45/2 (-45/2 - 10); | ||
724 | rel2.offset: 45/2 (-45/2 - 10); | ||
725 | } | ||
726 | description { state: "anim_2" 0.0; | ||
727 | inherit: "default" 0.0; | ||
728 | color: 255 255 255 0; | ||
729 | rel1.offset: -45/2 (-45/2 - 20); | ||
730 | rel2.offset: 45/2 (-45/2 - 20); | ||
731 | } | ||
732 | } | ||
733 | |||
734 | } | ||
735 | programs { | ||
736 | program { | ||
737 | name: "button_click"; | ||
738 | signal: "mouse,down,1"; | ||
739 | source: "over2"; | ||
740 | action: SIGNAL_EMIT "elm,action,press" ""; | ||
741 | after: "button_click_anim"; | ||
742 | after: "arrow_anim_start"; | ||
743 | } | ||
744 | program { | ||
745 | name: "button_click_anim"; | ||
746 | action: STATE_SET "clicked" 0.0; | ||
747 | target: "elm.bar"; | ||
748 | } | ||
749 | program { | ||
750 | name: "button_unclick"; | ||
751 | signal: "mouse,up,1"; | ||
752 | source: "over2"; | ||
753 | action: SIGNAL_EMIT "elm,action,unpress" ""; | ||
754 | after: "button_unclick_anim"; | ||
755 | after: "arrow_anim_stop"; | ||
756 | } | ||
757 | program { | ||
758 | name: "button_unclick_anim"; | ||
759 | action: STATE_SET "default" 0.0; | ||
760 | target: "elm.bar"; | ||
761 | } | ||
762 | program { | ||
763 | name: "button_click2"; | ||
764 | signal: "mouse,down,1"; | ||
765 | source: "over3"; | ||
766 | action: STATE_SET "clicked" 0.0; | ||
767 | target: "over3"; | ||
768 | } | ||
769 | program { | ||
770 | name: "button_unclick2"; | ||
771 | signal: "mouse,up,1"; | ||
772 | source: "over3"; | ||
773 | action: STATE_SET "default" 0.0; | ||
774 | transition: DECELERATE 0.5; | ||
775 | target: "over3"; | ||
776 | } | ||
777 | program { | ||
778 | name: "button_unclick3"; | ||
779 | signal: "mouse,up,1"; | ||
780 | source: "over2"; | ||
781 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
782 | } | ||
783 | program { | ||
784 | name: "button_down_double"; | ||
785 | signal: "mouse,down,1,double"; | ||
786 | source: "over3"; | ||
787 | action: SIGNAL_EMIT "elm,action,click,double" ""; | ||
788 | } | ||
789 | |||
790 | //arrows animation | ||
791 | program { | ||
792 | name: "arrow_anim_start"; | ||
793 | action: STATE_SET "anim_1" 0.0; | ||
794 | target: "arrow_right"; | ||
795 | target: "arrow_left"; | ||
796 | transition: LINEAR 0.6; | ||
797 | after: "arrow_anim_1"; | ||
798 | } | ||
799 | program { | ||
800 | name: "arrow_anim_1"; | ||
801 | action: STATE_SET "anim_2" 0.0; | ||
802 | target: "arrow_right"; | ||
803 | target: "arrow_left"; | ||
804 | transition: LINEAR 0.6; | ||
805 | after: "arrow_anim_2"; | ||
806 | } | ||
807 | program { | ||
808 | name: "arrow_anim_2"; | ||
809 | action: STATE_SET "default" 0.0; | ||
810 | target: "arrow_right"; | ||
811 | target: "arrow_left"; | ||
812 | after: "arrow_anim_start"; | ||
813 | } | ||
814 | program { | ||
815 | name: "arrow_anim_stop"; | ||
816 | action: ACTION_STOP; | ||
817 | target: "arrow_anim_start"; | ||
818 | target: "arrow_anim_1"; | ||
819 | target: "arrow_anim_2"; | ||
820 | after: "arrow_anim_stop_1"; | ||
821 | } | ||
822 | program { | ||
823 | name: "arrow_anim_stop_1"; | ||
824 | action: STATE_SET "default" 0.0; | ||
825 | target: "arrow_right"; | ||
826 | target: "arrow_left"; | ||
827 | transition: DECELERATE 0.4; | ||
828 | } | ||
829 | //fix the pane | ||
830 | program { | ||
831 | name: "panes_fixed"; | ||
832 | signal: "elm.panes.fixed"; | ||
833 | source: "elm"; | ||
834 | action: STATE_SET "disabled" 0.0; | ||
835 | target: "elm.bar"; | ||
836 | target: "over1"; | ||
837 | target: "bar_disabled"; | ||
838 | } | ||
839 | //allow the movement by interaction | ||
840 | program { | ||
841 | name: "panes_unfixed"; | ||
842 | signal: "elm.panes.unfixed"; | ||
843 | source: "elm"; | ||
844 | action: STATE_SET "default" 0.0; | ||
845 | target: "elm.bar"; | ||
846 | target: "over1"; | ||
847 | target: "bar_disabled"; | ||
848 | } | ||
849 | } | ||
850 | } | ||
851 | |||
852 | |||
853 | |||