summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2018-04-11 19:31:42 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2018-04-11 20:00:21 +0900
commit34afc8bdfae33b63b81bd4afb7c482cf0cb816d4 (patch)
tree64c985f5914ab2e8fc04b3642aa3b80832f90251
parent11c3b67e45f2c8e93aa97899f4bc4715369934f9 (diff)
theme: panes - remove elm panes inheritance.
-rw-r--r--data/elementary/themes/edc/efl/panes.edc982
1 files changed, 966 insertions, 16 deletions
diff --git a/data/elementary/themes/edc/efl/panes.edc b/data/elementary/themes/edc/efl/panes.edc
index 46a1c07..0ce7738 100644
--- a/data/elementary/themes/edc/efl/panes.edc
+++ b/data/elementary/themes/edc/efl/panes.edc
@@ -11,42 +11,992 @@
11 elm,action,unpress: Used for "unpress" smart callback. 11 elm,action,unpress: Used for "unpress" smart callback.
12*/ 12*/
13 13
14group { "efl/panes/vertical"; 14#define PANEMIN 10
15 inherit: "elm/panes/vertical/default"; 15#define PANEMIN2 16
16#define PANEWID 32
17
18group { name: "efl/panes/vertical";
19 images.image: "holes_vert.png" COMP;
16 parts { 20 parts {
21 //TODO: remove elm.swallow.left/right
17 alias: "first" "elm.swallow.left"; 22 alias: "first" "elm.swallow.left";
18 alias: "second" "elm.swallow.right"; 23 alias: "second" "elm.swallow.right";
24
25 part { name: "whole"; type: SPACER;
26 description { state: "default" 0.0;
27 }
28 }
29 part { name: "right_constraint"; type: SPACER;
30 dragable { confine: "whole";
31 x: 1 1 1;
32 y: 0 0 0;
33 }
34 description { state: "default" 0.0;
35 max: 0 0;
36 }
37 }
38 part { name: "left_constraint"; type: SPACER;
39 dragable { confine: "whole";
40 x: 1 1 1;
41 y: 0 0 0;
42 }
43 description { state: "default" 0.0;
44 max: 0 0;
45 }
46 }
47 part { name: "sub_whole"; type: SPACER;
48 description { state: "default" 0.0;
49 rel1.relative: 1.0 0.0;
50 rel1.to_x: "left_constraint";
51 rel2.relative: 0.0 1.0;
52 rel2.to_x: "right_constraint";
53 }
54 }
55 part { name: "whole_left"; type: RECT;
56 description { state: "default" 0.0;
57 rel2.to_x: "elm.bar";
58 rel2.relative: 1.0 1.0;
59 rel2.offset: -4 -1;
60 }
61 }
62 part { name: "whole_right"; type: RECT;
63 description { state: "default" 0.0;
64 rel1.to_x: "elm.bar";
65 rel1.relative: 0.0 0.0;
66 rel1.offset: 3 0;
67 }
68 }
69 part { name: "elm.swallow.left"; type: SWALLOW;
70 clip_to: "whole_left";
71 description { state: "default" 0.0;
72 rel2.to_x: "elm.bar";
73 rel2.relative: 1.0 1.0;
74 rel2.offset: -4 -1;
75 }
76 }
77 part { name: "elm.swallow.right"; type: SWALLOW;
78 clip_to: "whole_right";
79 description { state: "default" 0.0;
80 rel1.to_x: "elm.bar";
81 rel1.relative: 0.0 0.0;
82 rel1.offset: 3 0;
83 }
84 }
85 part { name: "elm.bar"; type: SPACER;
86 dragable { confine: "sub_whole";
87 x: 1 1 1;
88 y: 0 0 0;
89 }
90 description { state: "default" 0.0;
91 max: 0 99999;
92 min: 0 14;
93 fixed: 1 1;
94 rel1.relative: 0.0 0.5;
95 rel2.relative: 1.0 0.5;
96 }
97 }
98 part { name: "dots"; mouse_events: 0;
99 description { state: "default" 0.0;
100 image.normal: "holes_vert.png";
101 rel1.to: "elm.bar";
102 rel2.to: "elm.bar";
103 FIXED_SIZE(4, 14)
104 }
105 }
106 part { name: "elm.swallow.event"; type: SWALLOW;
107 description { state: "default" 0.0;
108 visible: 0;
109 min: PANEMIN PANEMIN2;
110 fixed: 1 1;
111 rel1.to: "elm.bar";
112 rel2.to: "elm.bar";
113 }
114 }
115 part { name: "bar"; type: RECT;
116 dragable.events: "elm.bar";
117 description { state: "default" 0.0;
118 min: PANEMIN PANEWID;
119 max: 99999 99999;
120 fixed: 1 1;
121 rel1.to_x: "elm.swallow.event";
122 rel2.to_x: "elm.swallow.event";
123 color: 0 0 0 0;
124 }
125 description { state: "disabled" 0.0;
126 inherit: "default" 0.0;
127 visible: 0;
128 }
129 }
130 }
131 programs {
132 program {signal: "mouse,down,1"; source: "bar"; // for "press" smart callback
133 action: SIGNAL_EMIT "elm,action,press" "elm";
134 }
135 program { signal: "mouse,up,1"; source: "bar"; // for "unpress" smart callback
136 action: SIGNAL_EMIT "elm,action,unpress" "elm";
137 }
138 program { signal: "mouse,clicked,1"; source: "bar"; // for "clicked" smart callback
139 action: SIGNAL_EMIT "elm,action,click" "elm";
140 }
141 program { signal: "mouse,down,1,double"; source: "bar"; // for "clicked,double" smart callback
142 action: SIGNAL_EMIT "elm,action,click,double" "elm";
143 }
144 program { // for elm_panes_fixed_set()
145 signal: "elm,panes,fixed"; source: "elm";
146 action: STATE_SET "disabled" 0.0;
147 target: "bar";
148 }
149 program { // for elm_panes_fixed_set()
150 signal: "elm,panes,unfixed"; source: "elm";
151 action: STATE_SET "default" 0.0;
152 target: "bar";
153 }
19 } 154 }
20} 155}
21 156
22group { "efl/panes/horizontal"; 157group { name: "efl/panes/horizontal";
23 inherit: "elm/panes/horizontal/default"; 158 images.image: "holes_horiz.png" COMP;
24 parts { 159 parts {
160 //TODO: remove elm.swallow.left/right
25 alias: "first" "elm.swallow.left"; 161 alias: "first" "elm.swallow.left";
26 alias: "second" "elm.swallow.right"; 162 alias: "second" "elm.swallow.right";
163
164 part { name: "whole"; type: SPACER;
165 description { state: "default" 0.0;
166 }
167 }
168 part { name: "right_constraint"; type: SPACER;
169 dragable { confine: "whole";
170 x: 0 0 0;
171 y: 1 1 1;
172 }
173 description { state: "default" 0.0;
174 max: 0 0;
175 }
176 }
177 part { name: "left_constraint"; type: SPACER;
178 dragable { confine: "whole";
179 x: 0 0 0;
180 y: 1 1 1;
181 }
182 description { state: "default" 0.0;
183 max: 0 0;
184 }
185 }
186 part { name: "sub_whole"; type: SPACER;
187 description { state: "default" 0.0;
188 rel1.relative: 0.0 1.0;
189 rel1.to_y: "left_constraint";
190 rel2.relative: 1.0 0.0;
191 rel2.to_y: "right_constraint";
192 }
193 }
194 part { name: "whole_left"; type: RECT;
195 description { state: "default" 0.0;
196 rel2.to_y: "elm.bar";
197 rel2.relative: 1.0 1.0;
198 rel2.offset: -1 -4;
199 }
200 }
201 part { name: "whole_right"; type: RECT;
202 description { state: "default" 0.0;
203 rel1.to_y: "elm.bar";
204 rel1.relative: 0.0 0.0;
205 rel1.offset: 0 3;
206 }
207 }
208 part { name: "elm.swallow.left"; type: SWALLOW;
209 clip_to: "whole_left";
210 description { state: "default" 0.0;
211 rel2.to_y: "elm.bar";
212 rel2.relative: 1.0 1.0;
213 rel2.offset: -1 -4;
214 }
215 }
216 part { name: "elm.swallow.right"; type: SWALLOW;
217 clip_to: "whole_right";
218 description { state: "default" 0.0;
219 rel1.to_y: "elm.bar";
220 rel1.relative: 0.0 0.0;
221 rel1.offset: 0 3;
222 }
223 }
224 part { name: "elm.bar"; type: SPACER;
225 dragable { confine: "sub_whole";
226 x: 0 0 0;
227 y: 1 1 1;
228 }
229 description { state: "default" 0.0;
230 max: 99999 0;
231 min: 14 0;
232 fixed: 1 1;
233 rel1.relative: 0.5 0.0;
234 rel2.relative: 0.5 1.0;
235 }
236 }
237 part { name: "dots"; mouse_events: 0;
238 description { state: "default" 0.0;
239 image.normal: "holes_horiz.png";
240 rel1.to: "elm.bar";
241 rel2.to: "elm.bar";
242 FIXED_SIZE(14, 4)
243 }
244 }
245 part { name: "elm.swallow.event"; type: SWALLOW;
246 description { state: "default" 0.0;
247 visible: 0;
248 min: PANEMIN2 PANEMIN;
249 fixed: 1 1;
250 rel1.to: "elm.bar";
251 rel2.to: "elm.bar";
252 }
253 }
254 part { name: "bar"; type: RECT;
255 dragable.events: "elm.bar";
256 description { state: "default" 0.0;
257 min: PANEWID PANEMIN;
258 max: 99999 99999;
259 fixed: 1 1;
260 rel1.to_y: "elm.swallow.event";
261 rel2.to_y: "elm.swallow.event";
262 color: 0 0 0 0;
263 }
264 description { state: "disabled" 0.0;
265 inherit: "default" 0.0;
266 visible: 0;
267 }
268 }
269 }
270 programs {
271 program {signal: "mouse,down,1"; source: "bar"; // for "press" smart callback
272 action: SIGNAL_EMIT "elm,action,press" "elm";
273 }
274 program { signal: "mouse,up,1"; source: "bar"; // for "unpress" smart callback
275 action: SIGNAL_EMIT "elm,action,unpress" "elm";
276 }
277 program { signal: "mouse,clicked,1"; source: "bar"; // for "clicked" smart callback
278 action: SIGNAL_EMIT "elm,action,click" "elm";
279 }
280 program { signal: "mouse,down,1,double"; source: "bar"; // for "clicked,double" smart callback
281 action: SIGNAL_EMIT "elm,action,click,double" "elm";
282 }
283 program { // for elm_panes_fixed_set()
284 signal: "elm,panes,fixed"; source: "elm";
285 action: STATE_SET "disabled" 0.0;
286 target: "bar";
287 }
288 program { // for elm_panes_fixed_set()
289 signal: "elm,panes,unfixed"; source: "elm";
290 action: STATE_SET "default" 0.0;
291 target: "bar";
292 }
27 } 293 }
28} 294}
29 295
30group { "efl/panes/vertical:flush"; 296group { name: "efl/panes/vertical:flush";
31 inherit: "elm/panes/vertical/flush"; 297 images.image: "downlight_glow_left.png" COMP;
298 images.image: "downlight_glow_right.png" COMP;
299 parts {
300 part { name: "whole"; type: SPACER;
301 description { state: "default" 0.0;
302 }
303 }
304 part { name: "right_constraint"; type: SPACER;
305 dragable { confine: "whole";
306 x: 1 1 1;
307 y: 0 0 0;
308 }
309 description { state: "default" 0.0;
310 max: 0 0;
311 }
312 }
313 part { name: "left_constraint"; type: SPACER;
314 dragable { confine: "whole";
315 x: 1 1 1;
316 y: 0 0 0;
317 }
318 description { state: "default" 0.0;
319 max: 0 0;
320 }
321 }
322 part { name: "sub_whole"; type: SPACER;
323 description { state: "default" 0.0;
324 rel1.relative: 1.0 0.0;
325 rel1.to_x: "left_constraint";
326 rel2.relative: 0.0 1.0;
327 rel2.to_x: "right_constraint";
328 }
329 }
330 part { name: "whole_left"; type: RECT;
331 description { state: "default" 0.0;
332 rel2.to_x: "elm.bar";
333 rel2.relative: 1.0 1.0;
334 }
335 }
336 part { name: "whole_right"; type: RECT;
337 description { state: "default" 0.0;
338 rel1.to_x: "elm.bar";
339 rel1.relative: 0.0 0.0;
340 }
341 }
342 part { name: "elm.swallow.left"; type: SWALLOW;
343 clip_to: "whole_left";
344 description { state: "default" 0.0;
345 rel2.to_x: "elm.bar";
346 rel2.relative: 1.0 1.0;
347 fixed: 1 0;
348 }
349 }
350 part { name: "elm.swallow.right"; type: SWALLOW;
351 clip_to: "whole_right";
352 description { state: "default" 0.0;
353 rel1.to_x: "elm.bar";
354 rel1.relative: 0.0 0.0;
355 fixed: 1 0;
356 }
357 }
358 part { name: "elm.bar"; type: SPACER;
359 dragable { confine: "sub_whole";
360 x: 1 1 1;
361 y: 0 0 0;
362 }
363 description { state: "default" 0.0;
364 max: 0 99999;
365 min: 0 14;
366 fixed: 1 1;
367 rel1.relative: 0.0 0.5;
368 rel2.relative: 1.0 0.5;
369 }
370 }
371 part { name: "elm.swallow.event"; type: SWALLOW;
372 description { state: "default" 0.0;
373 visible: 0;
374 min: PANEMIN PANEMIN2;
375 fixed: 1 1;
376 rel1.to: "elm.bar";
377 rel2.to: "elm.bar";
378 }
379 }
380 part { name: "bar"; type: RECT;
381 dragable.events: "elm.bar";
382 description { state: "default" 0.0;
383 min: PANEMIN PANEWID;
384 max: 99999 99999;
385 fixed: 1 1;
386 rel1.to_x: "elm.swallow.event";
387 rel1.relative: 0.0 0.25;
388 rel2.to_x: "elm.swallow.event";
389 rel2.relative: 1.0 0.75;
390 color: 0 0 0 0;
391 }
392 description { state: "disabled" 0.0;
393 inherit: "default" 0.0;
394 visible: 0;
395 }
396 }
397 part { name: "glow1a"; mouse_events: 0;
398 description { state: "default" 0.0;
399 image.normal: "downlight_glow_left.png";
400 image.border: 0 3 0 0;
401 max: 32 99999;
402 rel2.to_x: "elm.bar";
403 color: 255 255 255 0;
404 align: 1.0 0.5;
405 }
406 description { state: "active" 0.0;
407 inherit: "default" 0.0;
408 color: 255 255 255 255;
409 }
410 }
411 part { name: "glow1b"; mouse_events: 0;
412 description { state: "default" 0.0;
413 image.normal: "downlight_glow_right.png";
414 max: 4 99999;
415 rel1.to_x: "elm.bar";
416 color: 255 255 255 0;
417 align: 0.0 0.5;
418 }
419 description { state: "active" 0.0;
420 inherit: "default" 0.0;
421 color: 255 255 255 255;
422 }
423 }
424 part { name: "glow2a"; mouse_events: 0;
425 description { state: "default" 0.0;
426 image.normal: "downlight_glow_left.png";
427 max: 4 99999;
428 rel2.to_x: "elm.bar";
429 color: 255 255 255 0;
430 align: 1.0 0.5;
431 }
432 description { state: "active" 0.0;
433 inherit: "default" 0.0;
434 color: 255 255 255 255;
435 }
436 }
437 part { name: "glow2b"; mouse_events: 0;
438 description { state: "default" 0.0;
439 image.normal: "downlight_glow_right.png";
440 image.border: 3 0 0 0;
441 max: 32 99999;
442 rel1.to_x: "elm.bar";
443 color: 255 255 255 0;
444 align: 0.0 0.5;
445 }
446 description { state: "active" 0.0;
447 inherit: "default" 0.0;
448 color: 255 255 255 255;
449 }
450 }
451 part { name: "bar1"; type: RECT; repeat_events: 1;
452 description { state: "default" 0.0;
453 fixed: 1 1;
454 rel1.to: "bar";
455 rel2.to: "bar";
456 rel2.relative: 0.5 1.0;
457 color: 0 0 0 0;
458 }
459 }
460 part { name: "bar2"; type: RECT; repeat_events: 1;
461 description { state: "default" 0.0;
462 fixed: 1 1;
463 rel1.to: "bar";
464 rel1.relative: 0.5 0.0;
465 rel2.to: "bar";
466 color: 0 0 0 0;
467 }
468 }
469 }
470 programs {
471 program {signal: "mouse,down,1"; source: "bar"; // for "press" smart callback
472 action: SIGNAL_EMIT "elm,action,press" "elm";
473 }
474 program { signal: "mouse,up,1"; source: "bar"; // for "unpress" smart callback
475 action: SIGNAL_EMIT "elm,action,unpress" "elm";
476 }
477 program { signal: "mouse,clicked,1"; source: "bar"; // for "clicked" smart callback
478 action: SIGNAL_EMIT "elm,action,click" "elm";
479 }
480 program { signal: "mouse,down,1,double"; source: "bar"; // for "clicked,double" smart callback
481 action: SIGNAL_EMIT "elm,action,click,double" "elm";
482 }
483 program { // for elm_panes_fixed_set()
484 signal: "elm,panes,fixed"; source: "elm";
485 action: STATE_SET "disabled" 0.0;
486 target: "bar";
487 }
488 program { // for elm_panes_fixed_set()
489 signal: "elm,panes,unfixed"; source: "elm";
490 action: STATE_SET "default" 0.0;
491 target: "bar";
492 }
493 program {
494 signal: "mouse,in"; source: "bar1";
495 action: STATE_SET "active" 0.0;
496 transition: BOUNCE 0.4 0.5 4;
497 target: "glow1a";
498 target: "glow1b";
499 }
500 program {
501 signal: "mouse,out"; source: "bar1";
502 action: STATE_SET "default" 0.0;
503 transition: DECELERATE 0.5;
504 target: "glow1a";
505 target: "glow1b";
506 }
507 program {
508 signal: "mouse,in"; source: "bar2";
509 action: STATE_SET "active" 0.0;
510 transition: BOUNCE 0.4 0.5 4;
511 target: "glow2a";
512 target: "glow2b";
513 }
514 program {
515 signal: "mouse,out"; source: "bar2";
516 action: STATE_SET "default" 0.0;
517 transition: DECELERATE 0.5;
518 target: "glow2a";
519 target: "glow2b";
520 }
521 }
32} 522}
33 523
34group { "efl/panes/horizontal:flush"; 524group { name: "efl/panes/horizontal:flush";
35 inherit: "elm/panes/horizontal/flush"; 525 images.image: "downlight_glow.png" COMP;
526 images.image: "downlight_glow_up.png" COMP;
527 parts {
528 part { name: "whole"; type: SPACER;
529 description { state: "default" 0.0;
530 }
531 }
532 part { name: "right_constraint"; type: SPACER;
533 dragable { confine: "whole";
534 x: 0 0 0;
535 y: 1 1 1;
536 }
537 description { state: "default" 0.0;
538 max: 0 0;
539 }
540 }
541 part { name: "left_constraint"; type: SPACER;
542 dragable { confine: "whole";
543 x: 0 0 0;
544 y: 1 1 1;
545 }
546 description { state: "default" 0.0;
547 max: 0 0;
548 }
549 }
550 part { name: "sub_whole"; type: SPACER;
551 description { state: "default" 0.0;
552 rel1.relative: 0.0 1.0;
553 rel1.to_y: "left_constraint";
554 rel2.relative: 1.0 0.0;
555 rel2.to_y: "right_constraint";
556 }
557 }
558 part { name: "whole_left"; type: RECT;
559 description { state: "default" 0.0;
560 rel2.to_y: "elm.bar";
561 rel2.relative: 1.0 1.0;
562 }
563 }
564 part { name: "whole_right"; type: RECT;
565 description { state: "default" 0.0;
566 rel1.to_y: "elm.bar";
567 rel1.relative: 0.0 0.0;
568 }
569 }
570 part { name: "elm.swallow.left"; type: SWALLOW;
571 clip_to: "whole_left";
572 description { state: "default" 0.0;
573 rel2.to_y: "elm.bar";
574 rel2.relative: 1.0 1.0;
575 fixed: 0 1;
576 }
577 }
578 part { name: "elm.swallow.right"; type: SWALLOW;
579 clip_to: "whole_right";
580 description { state: "default" 0.0;
581 rel1.to_y: "elm.bar";
582 rel1.relative: 0.0 0.0;
583 fixed: 0 1;
584 }
585 }
586 part { name: "elm.bar"; type: SPACER;
587 dragable { confine: "sub_whole";
588 x: 0 0 0;
589 y: 1 1 1;
590 }
591 description { state: "default" 0.0;
592 max: 99999 0;
593 min: 14 0;
594 fixed: 1 1;
595 rel1.relative: 0.5 0.0;
596 rel2.relative: 0.5 1.0;
597 }
598 }
599 part { name: "elm.swallow.event"; type: SWALLOW;
600 description { state: "default" 0.0;
601 visible: 0;
602 min: PANEMIN2 PANEMIN;
603 fixed: 1 1;
604 rel1.to: "elm.bar";
605 rel2.to: "elm.bar";
606 }
607 }
608 part { name: "bar"; type: RECT;
609 dragable.events: "elm.bar";
610 description { state: "default" 0.0;
611 min: PANEWID PANEMIN;
612 max: 99999 99999;
613 fixed: 1 1;
614 rel1.to_y: "elm.swallow.event";
615 rel1.relative: 0.25 0.0;
616 rel2.to_y: "elm.swallow.event";
617 rel2.relative: 0.75 1.0;
618 color: 0 0 0 0;
619 }
620 description { state: "disabled" 0.0;
621 inherit: "default" 0.0;
622 visible: 0;
623 }
624 }
625 part { name: "glow1a"; mouse_events: 0;
626 description { state: "default" 0.0;
627 image.normal: "downlight_glow_up.png";
628 image.border: 0 0 0 3;
629 max: 99999 32;
630 rel2.to_y: "elm.bar";
631 color: 255 255 255 0;
632 align: 0.5 1.0;
633 }
634 description { state: "active" 0.0;
635 inherit: "default" 0.0;
636 color: 255 255 255 255;
637 }
638 }
639 part { name: "glow1b"; mouse_events: 0;
640 description { state: "default" 0.0;
641 image.normal: "downlight_glow.png";
642 max: 99999 4;
643 rel1.to_y: "elm.bar";
644 color: 255 255 255 0;
645 align: 0.5 0.0;
646 }
647 description { state: "active" 0.0;
648 inherit: "default" 0.0;
649 color: 255 255 255 255;
650 }
651 }
652 part { name: "glow2a"; mouse_events: 0;
653 description { state: "default" 0.0;
654 image.normal: "downlight_glow_up.png";
655 max: 99999 4;
656 rel2.to_y: "elm.bar";
657 color: 255 255 255 0;
658 align: 0.5 1.0;
659 }
660 description { state: "active" 0.0;
661 inherit: "default" 0.0;
662 color: 255 255 255 255;
663 }
664 }
665 part { name: "glow2b"; mouse_events: 0;
666 description { state: "default" 0.0;
667 image.normal: "downlight_glow.png";
668 image.border: 0 0 3 0;
669 max: 99999 32;
670 rel1.to_y: "elm.bar";
671 color: 255 255 255 0;
672 align: 0.5 0.0;
673 }
674 description { state: "active" 0.0;
675 inherit: "default" 0.0;
676 color: 255 255 255 255;
677 }
678 }
679 part { name: "bar1"; type: RECT; repeat_events: 1;
680 description { state: "default" 0.0;
681 fixed: 1 1;
682 rel1.to: "bar";
683 rel2.to: "bar";
684 rel2.relative: 1.0 0.5;
685 color: 0 0 0 0;
686 }
687 }
688 part { name: "bar2"; type: RECT; repeat_events: 1;
689 description { state: "default" 0.0;
690 fixed: 1 1;
691 rel1.to: "bar";
692 rel1.relative: 0.0 0.5;
693 rel2.to: "bar";
694 color: 0 0 0 0;
695 }
696 }
697 }
698 programs {
699 program {
700 signal: "mouse,in"; source: "bar1";
701 action: STATE_SET "active" 0.0;
702 transition: BOUNCE 0.4 0.5 4;
703 target: "glow1a";
704 target: "glow1b";
705 }
706 program {
707 signal: "mouse,out"; source: "bar1";
708 action: STATE_SET "default" 0.0;
709 transition: DECELERATE 0.5;
710 target: "glow1a";
711 target: "glow1b";
712 }
713 program {
714 signal: "mouse,in"; source: "bar2";
715 action: STATE_SET "active" 0.0;
716 transition: BOUNCE 0.4 0.5 4;
717 target: "glow2a";
718 target: "glow2b";
719 }
720 program {
721 signal: "mouse,out"; source: "bar2";
722 action: STATE_SET "default" 0.0;
723 transition: DECELERATE 0.5;
724 target: "glow2a";
725 target: "glow2b";
726 }
727 program {signal: "mouse,down,1"; source: "bar"; // for "press" smart callback
728 action: SIGNAL_EMIT "elm,action,press" "elm";
729 }
730 program { signal: "mouse,up,1"; source: "bar"; // for "unpress" smart callback
731 action: SIGNAL_EMIT "elm,action,unpress" "elm";
732 }
733 program { signal: "mouse,clicked,1"; source: "bar"; // for "clicked" smart callback
734 action: SIGNAL_EMIT "elm,action,click" "elm";
735 }
736 program { signal: "mouse,down,1,double"; source: "bar"; // for "clicked,double" smart callback
737 action: SIGNAL_EMIT "elm,action,click,double" "elm";
738 }
739 program { // for elm_panes_fixed_set()
740 signal: "elm,panes,fixed"; source: "elm";
741 action: STATE_SET "disabled" 0.0;
742 target: "bar";
743 }
744 program { // for elm_panes_fixed_set()
745 signal: "elm,panes,unfixed"; source: "elm";
746 action: STATE_SET "default" 0.0;
747 target: "bar";
748 }
749 }
36} 750}
37 751
38group { "efl/panes/vertical:left-fold"; 752group { name: "efl/panes/vertical:left-fold";
39 inherit: "elm/panes/vertical/left-fold"; 753 inherit: "efl/panes/vertical";
754 images.image: "icon_arrow_left.png" COMP;
755 images.image: "icon_arrow_right.png" COMP;
756 script {
757 public open;
758 public drag_x;
759 public drag_y;
760 }
761 parts {
762 spacer { "sub_whole";
763 desc { "default";
764 rel1.offset: 3 0;
765 }
766 }
767 image { "dots";
768 desc { "default";
769 image.normal: "icon_arrow_left.png";
770 FIXED_SIZE(14, 14)
771 }
772 desc { "closed";
773 inherit: "default" 0.0;
774 image.normal: "icon_arrow_right.png";
775 }
776 }
777 rect { "event";
778 repeat;
779 desc { "default";
780 rel1.to: "dots";
781 rel2.to: "dots";
782 color: 0 0 0 0;
783 }
784 }
785 }
786 programs {
787 program { signal: "load"; source: "";
788 script {
789 set_int(open, 1);
790 }
791 }
792 program { signal: "mouse,clicked,1"; source: "event";
793 script {
794 if (get_int(open) == 1)
795 {
796 new Float: dx;
797 new Float: dy;
798 set_int(open, 0);
799 get_drag(PART:"elm.bar", dx, dy);
800 set_float(drag_x, dx);
801 set_drag(PART:"elm.bar", 0.0, 0.5);
802 set_state(PART:"dots", "closed", 0.0);
803 }
804 else if (get_int(open) == 0)
805 {
806 set_int(open, 1);
807 set_drag(PART:"elm.bar", get_float(drag_x), 0.5);
808 set_state(PART:"dots", "default", 0.0);
809 }
810 }
811 }
812 }
40} 813}
41 814
42group { "efl/panes/vertical:right-fold"; 815group { name: "efl/panes/vertical:right-fold";
43 inherit: "elm/panes/vertical/right-fold"; 816 inherit: "efl/panes/vertical";
817 images.image: "icon_arrow_left.png" COMP;
818 images.image: "icon_arrow_right.png" COMP;
819 script {
820 public open;
821 public drag_x;
822 public drag_y;
823 }
824 parts {
825 spacer { "sub_whole";
826 desc { "default";
827 rel2.offset: -4 0;
828 }
829 }
830 image { "dots";
831 desc { "default";
832 image.normal: "icon_arrow_right.png";
833 FIXED_SIZE(14, 17)
834 }
835 desc { "closed";
836 inherit: "default" 0.0;
837 image.normal: "icon_arrow_left.png";
838 }
839 }
840 rect { "event";
841 repeat;
842 desc { "default";
843 rel1.to: "dots";
844 rel2.to: "dots";
845 color: 0 0 0 0;
846 }
847 }
848 }
849 programs {
850 program { signal: "load"; source: "";
851 script {
852 set_int(open, 1);
853 }
854 }
855 program { signal: "mouse,clicked,1"; source: "event";
856 script {
857 if (get_int(open) == 1)
858 {
859 new Float: dx;
860 new Float: dy;
861 set_int(open, 0);
862 get_drag(PART:"elm.bar", dx, dy);
863 set_float(drag_x, dx);
864 set_drag(PART:"elm.bar", 1.0, 0.5);
865 set_state(PART:"dots", "closed", 0.0);
866 }
867 else if (get_int(open) == 0)
868 {
869 set_int(open, 1);
870 set_drag(PART:"elm.bar", get_float(drag_x), 0.5);
871 set_state(PART:"dots", "default", 0.0);
872 }
873 }
874 }
875 }
44} 876}
45 877
46group { "efl/panes/horizontal:up-fold"; 878group { name: "efl/panes/horizontal:up-fold";
47 inherit: "elm/panes/horizontal/up-fold"; 879 inherit: "efl/panes/horizontal";
880 images.image: "icon_arrow_up.png" COMP;
881 images.image: "icon_arrow_down.png" COMP;
882 script {
883 public open;
884 public drag_x;
885 public drag_y;
886 }
887 parts {
888 spacer { "sub_whole";
889 desc { "default";
890 rel1.offset: 0 3;
891 }
892 }
893 image { "dots";
894 desc { "default";
895 image.normal: "icon_arrow_up.png";
896 FIXED_SIZE(17, 14)
897 }
898 desc { "closed";
899 inherit: "default" 0.0;
900 image.normal: "icon_arrow_down.png";
901 }
902 }
903 rect { "event";
904 repeat;
905 desc { "default";
906 rel1.to: "dots";
907 rel2.to: "dots";
908 color: 0 0 0 0;
909 }
910 }
911 }
912 programs {
913 program { signal: "load"; source: "";
914 script {
915 set_int(open, 1);
916 }
917 }
918 program { signal: "mouse,clicked,1"; source: "event";
919 script {
920 if (get_int(open) == 1)
921 {
922 new Float: dx;
923 new Float: dy;
924 set_int(open, 0);
925 get_drag(PART:"elm.bar", dx, dy);
926 set_float(drag_y, dy);
927 set_drag(PART:"elm.bar", 0.5, 0.0);
928 set_state(PART:"dots", "closed", 0.0);
929 }
930 else if (get_int(open) == 0)
931 {
932 set_int(open, 1);
933 set_drag(PART:"elm.bar", 0.5, get_float(drag_y));
934 set_state(PART:"dots", "default", 0.0);
935 }
936 }
937 }
938 }
48} 939}
49 940
50group { "efl/panes/horizontal:down-fold"; 941group { name: "efl/panes/horizontal:down-fold";
51 inherit: "elm/panes/horizontal/down-fold"; 942 inherit: "efl/panes/horizontal";
943 images.image: "icon_arrow_up.png" COMP;
944 images.image: "icon_arrow_down.png" COMP;
945 script {
946 public open;
947 public drag_x;
948 public drag_y;
949 }
950 parts {
951 spacer { "sub_whole";
952 desc { "default";
953 rel2.offset: 0 -4;
954 }
955 }
956 image { "dots";
957 desc { "default";
958 image.normal: "icon_arrow_down.png";
959 FIXED_SIZE(17, 14)
960 }
961 desc { "closed";
962 inherit: "default" 0.0;
963 image.normal: "icon_arrow_up.png";
964 }
965 }
966 rect { "event";
967 repeat;
968 desc { "default";
969 rel1.to: "dots";
970 rel2.to: "dots";
971 color: 0 0 0 0;
972 }
973 }
974 }
975 programs {
976 program { signal: "load"; source: "";
977 script {
978 set_int(open, 1);
979 }
980 }
981 program { signal: "mouse,clicked,1"; source: "event";
982 script {
983 if (get_int(open) == 1)
984 {
985 new Float: dx;
986 new Float: dy;
987 set_int(open, 0);
988 get_drag(PART:"elm.bar", dx, dy);
989 set_float(drag_y, dy);
990 set_drag(PART:"elm.bar", 0.5, 1.0);
991 set_state(PART:"dots", "closed", 0.0);
992 }
993 else if (get_int(open) == 0)
994 {
995 set_int(open, 1);
996 set_drag(PART:"elm.bar", 0.5, get_float(drag_y));
997 set_state(PART:"dots", "default", 0.0);
998 }
999 }
1000 }
1001 }
52} 1002}