summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2018-04-11 17:33:37 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2018-04-11 20:00:21 +0900
commitdd712c011a35effd2e87c770c0dd86d59a3d7e60 (patch)
tree4d4882d6e6b40a6ece66b573580f1d7a2e5bdb6c
parentae88f49561ca68e2434bb4305f762bbad9a2e6df (diff)
theme: border - remove elm border inheritance
and add full edc theme.
-rw-r--r--data/elementary/themes/edc/efl/border.edc1214
1 files changed, 1208 insertions, 6 deletions
diff --git a/data/elementary/themes/edc/efl/border.edc b/data/elementary/themes/edc/efl/border.edc
index 55748268de..f6e8b8922d 100644
--- a/data/elementary/themes/edc/efl/border.edc
+++ b/data/elementary/themes/edc/efl/border.edc
@@ -7,15 +7,1217 @@
7 * - virtual keyboard 7 * - virtual keyboard
8 */ 8 */
9 9
10group { "efl/border"; 10group { name: "efl/border";
11 inherit: "elm/border/base/default"; 11 images.image: "vgrad_med_lighter.png" COMP;
12 images.image: "vgrad_med_dark.png" COMP;
13 images.image: "bevel_out.png" COMP;
14 images.image: "shine.png" COMP;
15 images.image: "bevel_dark_out.png" COMP;
16 images.image: "sym_close_dark_normal.png" COMP;
17 images.image: "sym_close_dark_selected.png" COMP;
18 images.image: "sym_close_light_normal.png" COMP;
19 images.image: "sym_close_light_selected.png" COMP;
20 images.image: "sym_down_dark_normal.png" COMP;
21 images.image: "sym_down_dark_selected.png" COMP;
22 images.image: "sym_down_light_normal.png" COMP;
23 images.image: "sym_down_light_selected.png" COMP;
24 images.image: "sym_up_dark_normal.png" COMP;
25 images.image: "sym_up_dark_selected.png" COMP;
26 images.image: "sym_up_light_normal.png" COMP;
27 images.image: "sym_up_light_selected.png" COMP;
28 images.image: "glow_round_corners_small.png" COMP;
29 images.image: "knob_round_small_busy.png" COMP;
30 images.image: "screen_circular_shadow.png" COMP;
31 images.image: "win_shadow.png" COMP;
32 data.item: "shadow" "1";
33 data.item: "version" "119";
34 parts {
35 /* opaque region of the window, to inform the compositor */
36 spacer { "elm.spacer.opaque";
37 desc {
38 rel1.to: "top_clip";
39 rel2.to: "bottom_clip";
40 }
41 desc { "max"; inherit: "default"; }
42 }
43 /* covers the entire client contents, excluding the main menu */
44 spacer { "elm.spacer.content";
45 required; // since 1.19
46 desc {
47 rel1.to: "elm.swallow.menu";
48 rel1.relative: 0.0 1.0;
49 rel2.to: "elm.swallow.keyboard";
50 rel2.relative: 1.0 0.0;
51 }
52 }
53 /* shadow spacer and clipper */
54 spacer { "shadow_spacer";
55 desc { "default";
56 WIN_SHADOW_SPACER;
57 }
58 desc { "hidden";
59 rel1.offset: 0 0;
60 rel2.offset: -1 -1;
61 }
62 }
63 image { "shadow"; nomouse;
64 desc { "default";
65 rel.to: "shadow_spacer";
66 WIN_SHADOW;
67 }
68 desc { "hidden"; inherit: "default"; hid; }
69 }
70 /* window background: solid color */
71 rect { "bg_clip";
72 nomouse;
73 desc { "default";
74 rel1.to: "top_clip";
75 rel1.relative: 0.0 1.0;
76 rel2.to: "bottom_clip";
77 }
78 }
79 rect { "elm.rect.background";
80 required; // @since 1.19
81 clip: "bg_clip";
82 desc { "default";
83 color: 255 255 255 255;
84 color_class: "elm/win/background"; // FIXME: color_class naming scheme
85 visible: 0;
86 }
87 desc { "visible";
88 inherit: "default";
89 visible: 1;
90 }
91 }
92 /* window background: image */
93 swallow { "elm.swallow.background";
94 required; // @since 1.19
95 clip: "client_clip";
96 }
97 image { "background_bevel";
98 desc { "default";
99 image {
100 normal: "bevel_dark_out.png";
101 border: 1 1 1 1;
102 middle: 0;
103 }
104 fill.smooth: 0;
105 rel.to: "elm.spacer.content";
106 visible: 0;
107 }
108 desc { "visible";
109 inherit: "default";
110 visible: 1;
111 }
112 }
113 spacer { "indicator_spacer";
114 desc { "default";
115 rel.to: "elm.swallow.indicator";
116 }
117 desc { "hidden";
118 rel.to: "top_clip";
119 rel1.relative: 0.0 1.0;
120 align: 0.5 0.0;
121 fixed: 1 1;
122 }
123 }
124
125 /* main menu */
126 rect { "menu_bg";
127 desc { "default";
128 color: 64 64 64 255; // FIXME: color_class
129 align: 0.5 0.0;
130 rel.to: "elm.swallow.menu";
131 }
132 }
133 swallow { "elm.swallow.menu";
134 required: 1; // since 1.19
135 desc { "default";
136 rel.to: "indicator_spacer";
137 rel1.relative: 0.0 1.0;
138 visible: 0;
139 align: 0.5 0.0;
140 fixed: 1 1;
141 }
142 desc { "visible"; inherit: "default";
143 visible: 1;
144 fixed: 0 1;
145 }
146 }
147
148 /* application contents - spacer and clipper (without main menu) */
149 spacer { "client_spacer";
150 desc { "default";
151 rel1.to: "elm.swallow.menu";
152 rel1.relative: 0.0 1.0;
153 rel2.to: "elm.swallow.keyboard";
154 rel2.relative: 1.0 0.0;
155 }
156 }
157 rect { "client_clip";
158 nomouse;
159 desc { "default";
160 rel.to: "client_spacer";
161 }
162 }
163
164 /* application contents */
165 swallow { "elm.swallow.client";
166 clip: "client_clip";
167 desc { "default";
168 rel.to: "client_spacer";
169 }
170 }
171
172 /* modal window blocker */
173 rect { "elm.rect.blocker";
174 required;
175 desc { "default";
176 rel1.to: "top_clip";
177 rel1.relative: 0.0 1.0;
178 rel2.to: "bottom_clip";
179 rel2.relative: 1.0 0.0;
180 color: 0 0 0 0;
181 hid;
182 }
183 desc { "visible";
184 inherit: "default";
185 color_class: "elm/win/blocker";
186 color: 255 255 255 255;
187 vis;
188 }
189 }
190
191 /* top title bar - spacer and clipper */
192 rect { "top_clip"; //nomouse;
193 desc { "default";
194 rel1.to: "shadow_spacer";
195 rel2.to_y: "title2";
196 rel2.to_x: "shadow_spacer";
197 vis;
198 }
199 desc { "hidden";
200 inherit: "default";
201 rel1.relative: 0.0 0.0;
202 rel2.to: "shadow_spacer";
203 rel2.relative: 1.0 0.0;
204 rel2.offset: -1 -1;
205 max: -1 0;
206 min: 0 0;
207 fixed: 0 1;
208 hid;
209 }
210 }
211 /* top title bar */
212 image { "top"; nomouse;
213 clip: "top_clip";
214 desc { "default";
215 image.normal: "vgrad_med_lighter.png";
216 rel.to: "top_clip";
217 fill.smooth: 0;
218 TILED_HORIZ(120)
219 color_class: "border_frame";
220 }
221 desc { "focused";
222 inherit: "default";
223 image.normal: "vgrad_med_dark.png";
224 color_class: "border_frame_active";
225 }
226 }
227 image { "bevel"; nomouse;
228 clip: "top_clip";
229 desc { "default";
230 image.normal: "bevel_out.png";
231 image.border: 1 1 1 1;
232 image.middle: 0;
233 rel.to: "top_clip";
234 fill.smooth: 0;
235 }
236 }
237 text { "elm.text.title"; nomouse;
238 scale: 1;
239 effect: SHADOW BOTTOM;
240 clip: "top_clip";
241 desc { "default";
242 rel1.relative: 1.0 0.0;
243 rel1.offset: 1 3;
244 rel1.to_x: "elm.event.icon";
245 rel1.to_y: "shadow_spacer";
246 rel2.relative: 0.0 0.0;
247 rel2.offset: -2 3;
248 rel2.to_x: "elm.event.minimize";
249 rel2.to_y: "shadow_spacer";
250 align: 0.5 0.0;
251 color_class: "border_title";
252 color3: 255 255 255 255;
253 text { font: FNBD; size: 10;
254 text_class: "title_bar";
255 align: 0.5 0.0;
256 min: 0 1;
257 }
258 fixed: 0 1;
259 }
260 desc { "focused";
261 inherit: "default";
262 visible: 0;
263 }
264 }
265 text { "title2"; nomouse;
266 scale: 1;
267 effect: SOFT_SHADOW BOTTOM;
268 clip: "top_clip";
269 desc { "default";
270 rel1.relative: 1.0 0.0;
271 rel1.offset: 1 2;
272 rel1.to_x: "elm.event.icon";
273 rel1.to_y: "shadow_spacer";
274 rel2.relative: 0.0 0.0;
275 rel2.offset: -1 2;
276 rel2.to_x: "elm.event.minimize";
277 rel2.to_y: "shadow_spacer";
278 align: 0.5 0.0;
279 color_class: "border_title_active";
280 color3: 255 255 255 255;
281 text { font: FNBD; size: 10;
282 text_source: "elm.text.title";
283 text_class: "title_bar";
284 align: 0.5 0.0;
285 min: 0 1;
286 }
287 fixed: 0 1;
288 visible: 0;
289 }
290 desc { "focused";
291 inherit: "default";
292 visible: 1;
293 }
294 }
295 spacer { "icon";
296 desc { "default";
297 rel1.to: "elm.event.icon";
298 rel2.to: "elm.event.icon";
299 }
300 desc { "bounce1";
301 inherit: "default";
302 rel1.relative: 0.5 0.5;
303 rel2.relative: 0.5 0.5;
304 }
305 desc { "bounce2";
306 inherit: "default";
307 rel1.relative: -0.5 -0.5;
308 rel2.relative: 1.2 1.2;
309 }
310 }
311 swallow { "elm.swallow.icon"; nomouse;
312 clip_to: "top_clip";
313 desc { "default";
314 rel1.to: "icon";
315 rel1.relative: 0.15 0.15;
316 rel2.to: "icon";
317 rel2.relative: 0.85 0.85;
318 rel2.offset: 0 0;
319 }
320 }
321 rect { "busy_clip"; nomouse;
322 desc { "default";
323 color: 255 255 255 0;
324 visible: 0;
325 }
326 desc { "hung";
327 inherit: "default";
328 color: 255 255 255 255;
329 visible: 1;
330 }
331 }
332 image { "knob"; nomouse;
333 clip: "busy_clip";
334 desc { "default";
335 fixed: 1 1;
336 image.normal: "knob_round_small_busy.png";
337 aspect: 1.0 1.0; aspect_preference: VERTICAL;
338 max: 20 20;
339 rel1.relative: 1.0 0.0;
340 rel1.offset: 2 -0;
341 rel1.to: "elm.event.icon";
342 rel2.relative: 1.0 1.0;
343 rel2.offset: 2 -1;
344 rel2.to: "elm.event.icon";
345 align: 0.0 0.5;
346 fixed: 1 1;
347 }
348 }
349 image { "knob_spinner"; nomouse;
350 clip: "busy_clip";
351 desc { "default";
352 fixed: 1 1;
353 rel1.to: "knob";
354 rel2.to: "knob";
355 image.normal: "glow_round_corners_small.png";
356 map.on: 1;
357 map.smooth: 1;
358 map.rotation.center: "knob";
359 }
360 desc { "spin";
361 inherit: "default";
362 map.rotation.z: 360;
363 }
364 }
365 rect { "clip1"; nomouse;
366 desc { "default";
367 rel1.to: "top_clip";
368 rel2.to: "top_clip";
369 }
370 desc { "focused";
371 inherit: "default";
372 visible: 0;
373 }
374 }
375 rect { "clip2"; nomouse;
376 desc { "default";
377 rel1.to: "top_clip";
378 rel2.to: "top_clip";
379 visible: 0;
380 }
381 desc { "focused";
382 inherit: "default";
383 visible: 1;
384 }
385 }
386 image { "close1"; nomouse;
387 clip: "clip1";
388 desc { "default";
389 image.normal: "sym_close_dark_normal.png";
390 rel1.to: "elm.event.close";
391 rel2.to: "elm.event.close";
392 min: 15 15;
393 max: 15 15;
394 fixed: 1 1;
395 }
396 desc { "selected";
397 inherit: "default";
398 image.normal: "sym_close_dark_selected.png";
399 }
400 }
401 image { "max1"; nomouse;
402 clip: "clip1";
403 desc { "default";
404 image.normal: "sym_up_dark_normal.png";
405 rel1.to: "elm.event.maximize";
406 rel2.to: "elm.event.maximize";
407 min: 15 15;
408 max: 15 15;
409 fixed: 1 1;
410 }
411 desc { "selected";
412 inherit: "default";
413 image.normal: "sym_up_dark_selected.png";
414 }
415 }
416 image { "min1"; nomouse;
417 clip: "clip1";
418 desc { "default";
419 image.normal: "sym_down_dark_normal.png";
420 rel1.to: "elm.event.minimize";
421 rel2.to: "elm.event.minimize";
422 min: 15 15;
423 max: 15 15;
424 fixed: 1 1;
425 }
426 desc { "selected";
427 inherit: "default";
428 image.normal: "sym_down_dark_selected.png";
429 }
430 }
431 image { "close2"; nomouse;
432 clip: "clip2";
433 desc { "default";
434 image.normal: "sym_close_light_normal.png";
435 rel1.to: "elm.event.close";
436 rel2.to: "elm.event.close";
437 min: 15 15;
438 max: 15 15;
439 fixed: 1 1;
440 }
441 desc { "selected";
442 inherit: "default";
443 image.normal: "sym_close_light_selected.png";
444 }
445 }
446 image { "max2"; nomouse;
447 clip: "clip2";
448 desc { "default";
449 image.normal: "sym_up_light_normal.png";
450 rel1.to: "elm.event.maximize";
451 rel2.to: "elm.event.maximize";
452 min: 15 15;
453 max: 15 15;
454 fixed: 1 1;
455 }
456 desc { "selected";
457 inherit: "default";
458 image.normal: "sym_up_light_selected.png";
459 }
460 }
461 image { "min2"; nomouse;
462 clip: "clip2";
463 desc { "default";
464 image.normal: "sym_down_light_normal.png";
465 rel1.to: "elm.event.minimize";
466 rel2.to: "elm.event.minimize";
467 min: 15 15;
468 max: 15 15;
469 fixed: 1 1;
470 }
471 desc { "selected";
472 inherit: "default";
473 image.normal: "sym_down_light_selected.png";
474 }
475 }
476 rect { "elm.event.icon";
477 desc { "default";
478 rel1.relative: 0.0 0.0;
479 rel1.to: "top_clip";
480 rel2.relative: 0.0 1.0;
481 rel2.to: "top_clip";
482 align: 0.0 0.5;
483 aspect: 1.0 1.0; aspect_preference: VERTICAL;
484 color: 0 0 0 0;
485 }
486 }
487 rect { "elm.event.titlebar";
488 desc { "default";
489 rel1.relative: 1.0 0.0;
490 rel1.to_x: "elm.event.icon";
491 rel1.to_y: "top_clip";
492 rel2.relative: 0.0 1.0;
493 rel2.offset: 0 -1;
494 rel2.to_x: "elm.event.minimize";
495 rel2.to_y: "top_clip";
496 color: 0 0 0 0;
497 }
498 }
499 rect { "elm.event.close";
500 desc { "default";
501 rel.to: "top_clip";
502 rel1.relative: 1.0 0.0;
503 rel2.relative: 1.0 1.0;
504 align: 1.0 0.5;
505 aspect: 1.0 1.0; aspect_preference: VERTICAL;
506 color: 0 0 0 0;
507 }
508 }
509 rect { "elm.event.maximize";
510 desc { "default";
511 rel1.relative: -0.25 0.0;
512 rel1.offset: -1 0;
513 rel1.to_x: "elm.event.close";
514 rel1.to_y: "top_clip";
515 rel2.relative: -0.25 1.0;
516 rel2.to_x: "elm.event.close";
517 rel2.to_y: "top_clip";
518 align: 1.0 0.5;
519 aspect: 1.0 1.0; aspect_preference: VERTICAL;
520 color: 0 0 0 0;
521 }
522 }
523 rect { "elm.event.minimize";
524 desc { "default";
525 rel1.relative: 0.0 0.0;
526 rel1.offset: -1 0;
527 rel1.to_x: "elm.event.maximize";
528 rel1.to_y: "top_clip";
529 rel2.relative: 0.0 1.0;
530 rel2.to_y: "top_clip";
531 rel2.to_x: "elm.event.maximize";
532 align: 1.0 0.5;
533 aspect: 1.0 1.0; aspect_preference: VERTICAL;
534 color: 0 0 0 0;
535 }
536 }
537 rect { "top_resize_clip";
538 clip: "top_clip";
539 desc { "default";
540 rel.to: "top_clip";
541 }
542 desc { "hidden";
543 inherit: "default";
544 hid;
545 }
546 }
547 rect { "elm.event.resize.tl";
548 clip: "top_resize_clip";
549 desc { "default";
550 rel.to: "top_clip";
551 rel2.relative: 0.0 0.0;
552 min: 32 4;
553 align: 0.0 0.0;
554 color: 0 0 0 0;
555 fixed: 1 1;
556 }
557 desc { "hidden"; inherit: "default"; hid; }
558 }
559 rect { "elm.event.resize.t";
560 clip: "top_resize_clip";
561 desc { "default";
562 rel1.relative: 1.0 0.0;
563 rel1.to_y: "top_clip";
564 rel1.to_x: "elm.event.resize.tl";
565 rel2.relative: 0.0 0.0;
566 rel2.to_x: "elm.event.resize.tr";
567 rel2.to_y: "top_clip";
568 min: 0 4;
569 align: 0.5 0.0;
570 color: 0 0 0 0;
571 fixed: 1 1;
572 }
573 desc { "hidden"; inherit: "default"; hid; }
574 }
575 rect { "elm.event.resize.tr";
576 clip: "top_resize_clip";
577 desc { "default";
578 rel.to: "top_clip";
579 rel1.relative: 1.0 0.0;
580 rel2.relative: 1.0 0.0;
581 min: 32 4;
582 align: 1.0 0.0;
583 color: 0 0 0 0;
584 fixed: 1 1;
585 }
586 desc { "hidden"; inherit: "default"; hid; }
587 }
588 /* bottom border - spacer and clipper */
589 swallow { "elm.swallow.keyboard";
590 desc { "default";
591 rel.to: "bottom_clip";
592 rel2.relative: 1.0 0.0;
593 align: 0.0 1.0;
594 fixed: 0 1;
595 }
596 }
597 rect { "bottom_clip";
598 desc { "default";
599 rel.to: "shadow_spacer";
600 rel1 { relative: 0.0 1.0; offset: 0 -5; }
601 min: 0 5;
602 fixed: 0 1;
603 }
604 desc { "hidden";
605 inherit: "default";
606 rel1 { relative: 0.0 1.0; offset: 0 0; }
607 min: 0 0;
608 hid;
609 }
610 }
611 rect { "bottom";
612 nomouse;
613 desc { "default";
614 color_class: "border_bottom";
615 color: 64 64 64 255; /* FIXME */
616 rel.to: "bottom_clip";
617 }
618 }
619 image { "bevel2"; nomouse;
620 clip: "bottom_clip";
621 desc { "default";
622 image.normal: "bevel_dark_out.png";
623 image.border: 1 1 1 1;
624 image.middle: 0;
625 rel.to: "bottom_clip";
626 fill.smooth: 0;
627 }
628 }
629 rect { "elm.event.resize.bl";
630 clip: "bottom_clip";
631 desc { "default";
632 rel1.relative: 0.0 1.0;
633 rel1.to: "bottom_clip";
634 rel2.relative: 0.0 1.0;
635 rel2.to: "bottom_clip";
636 min: 32 5;
637 align: 0.0 1.0;
638 color: 0 0 0 0;
639 fixed: 1 1;
640 }
641 desc { "hidden"; inherit: "default"; hid; }
642 }
643 rect { "elm.event.resize.b";
644 clip: "bottom_clip";
645 desc { "default";
646 rel1.relative: 1.0 1.0;
647 rel1.to_x: "elm.event.resize.tl";
648 rel1.to_y: "bottom_clip";
649 rel1.offset: 0 -1;
650 rel2.relative: 0.0 1.0;
651 rel2.to_x: "elm.event.resize.tr";
652 rel2.to_y: "bottom_clip";
653 min: 0 5;
654 align: 0.5 1.0;
655 color: 0 0 0 0;
656 fixed: 0 1;
657 }
658 desc { "hidden"; inherit: "default"; hid; }
659 }
660 rect { "elm.event.resize.br";
661 clip: "bottom_clip";
662 desc { "default";
663 rel1.relative: 1.0 1.0;
664 rel1.to: "bottom_clip";
665 rel2.relative: 1.0 1.0;
666 rel2.to: "bottom_clip";
667 min: 32 5;
668 align: 1.0 1.0;
669 color: 0 0 0 0;
670 fixed: 1 1;
671 }
672 desc { "hidden"; inherit: "default"; hid; }
673 }
674 /* top title bar decoration */
675 image { "shine"; nomouse;
676 clip: "top_clip";
677 desc { "default";
678 image.normal: "shine.png";
679 rel.to: "top_clip";
680 rel1.offset: 0 -2;
681 rel2.relative: 1.0 0.0;
682 rel2.offset: -1 2;
683 FIXED_SIZE(69, 5)
684 }
685 }
686 rect { "indicator_bg";
687 clip: "bg_clip";
688 desc { "default";
689 color: 148 23 45 255;
690 rel.to: "elm.swallow.indicator";
691 }
692 desc { "bg_transparent";
693 inherit: "default";
694 color: 0 0 0 0;
695 }
696 }
697 swallow { "elm.swallow.indicator";
698 clip: "bg_clip";
699 desc { "default";
700 rel.to: "top_clip";
701 rel1.relative: 0.0 1.0;
702 visible: 0;
703 align: 0.5 0.0;
704 fixed: 1 1;
705 }
706 desc { "visible"; inherit: "default";
707 visible: 1;
708 fixed: 0 1;
709 }
710 desc { "hidden"; inherit: "visible";
711 align: 0.5 1.0;
712 }
713 }
714 }
715
716#define BORDERLESS 1
717#define MAXIMIZED 2
718#define UNRESIZABLE 4
719#define SET_MODE(a) script { new m = get_int(border_mode); m |= (a); set_int(border_mode, m); eval_mode(m); }
720#define UNSET_MODE(a) script { new m = get_int(border_mode); m &= ~(a); set_int(border_mode, m); eval_mode(m); }
721
722#define INDICATOR_TYPE_UNKNOWN 0
723#define INDICATOR_TYPE_BG_OPAQUE 1
724#define INDICATOR_TYPE_BG_TRANSPARENT 2
725#define INDICATOR_TYPE_HIDDEN 3
726
727 programs {
728 script {
729 public border_mode;
730 public indicator_type = 0;
731 public indicator_enabled = 0;
732 public eval_mode(m) {
733 if (m & (BORDERLESS | MAXIMIZED | UNRESIZABLE)) {
734 set_state(PART:"bottom_clip", "hidden", 0.0);
735 set_state(PART:"top_resize_clip", "hidden", 0.0);
736 } else {
737 set_state(PART:"bottom_clip", "default", 0.0);
738 set_state(PART:"top_resize_clip", "default", 0.0);
739 }
740 }
741 }
742 program {
743 signal: "elm,state,borderless,on"; source: "elm";
744 action: STATE_SET "hidden";
745 targets: "top_clip" "bottom_clip";
746 after: "borderless,on";
747 }
748 program { "borderless,on"; SET_MODE(BORDERLESS); }
749 program {
750 signal: "elm,state,borderless,off"; source: "elm";
751 action: STATE_SET "default";
752 targets: "top_clip" "bottom_clip";
753 after: "borderless,off";
754 }
755 program { "borderless,off"; UNSET_MODE(BORDERLESS); }
756 program {
757 signal: "elm,state,unresizable,on"; source: "elm";
758 SET_MODE(UNRESIZABLE);
759 }
760 program {
761 signal: "elm,state,unresizable,off"; source: "elm";
762 UNSET_MODE(UNRESIZABLE);
763 }
764 program {
765 signal: "elm,state,shadow,on"; source: "elm";
766 action: STATE_SET "default";
767 targets: "shadow_spacer" "shadow";
768 }
769 program {
770 signal: "elm,state,shadow,off"; source: "elm";
771 action: STATE_SET "hidden";
772 targets: "shadow_spacer" "shadow";
773 }
774 program {
775 signal: "elm,state,background,solid,on"; source: "elm";
776 action: STATE_SET "visible";
777 target: "elm.rect.background";
778 }
779 program {
780 signal: "elm,state,background,solid,off"; source: "elm";
781 action: STATE_SET "default";
782 target: "elm.rect.background";
783 }
784 program {
785 signal: "elm,state,background,standard,on"; source: "elm";
786 action: STATE_SET "visible";
787 target: "background_bevel";
788 }
789 program {
790 signal: "elm,state,background,standard,off"; source: "elm";
791 action: STATE_SET "default";
792 target: "background_bevel";
793 }
794 program {
795 signal: "elm,action,focus"; source: "elm";
796 action: STATE_SET "focused";
797 target: "top";
798 target: "elm.text.title";
799 target: "title2";
800 target: "clip1";
801 target: "clip2";
802 }
803 program {
804 signal: "elm,action,unfocus"; source: "elm";
805 action: STATE_SET "default";
806 target: "top";
807 target: "elm.text.title";
808 target: "title2";
809 target: "clip1";
810 target: "clip2";
811 }
812 program {
813 signal: "elm,state,urgent"; source: "elm";
814 action: STATE_SET "bounce1";
815 target: "icon";
816 after: "urg1";
817 }
818 program { name: "urg1";
819 action: STATE_SET "bounce2";
820 transition: DECELERATE 0.4;
821 target: "icon";
822 after: "urg2";
823 }
824 program { name: "urg2";
825 action: STATE_SET "bounce1";
826 transition: ACCELERATE 0.3;
827 target: "icon";
828 after: "urg1";
829 }
830 program {
831 signal: "elm,state,not_urgent"; source: "elm";
832 action: STATE_SET "default";
833 target: "icon";
834 }
835 program { name: "spin";
836 signal: "elm,state,hung"; source: "elm";
837 action: STATE_SET "spin";
838 transition: LINEAR 1.0;
839 target: "knob_spinner";
840 after: "spin2";
841 }
842 program { name: "spin2";
843 action: STATE_SET "default";
844 target: "knob_spinner";
845 after: "spin";
846 }
847 program {
848 signal: "elm,state,hung"; source: "elm";
849 action: STATE_SET "hung";
850 transition: SINUSOIDAL 0.25;
851 target: "busy_clip";
852 }
853 program {
854 signal: "elm,state,unhung"; source: "elm";
855 action: STATE_SET "default";
856 transition: SINUSOIDAL 1.0;
857 target: "busy_clip";
858 after: "spin3";
859 }
860 program { name: "spin3";
861 action: ACTION_STOP;
862 target: "spin";
863 target: "spin2";
864 after: "spin4";
865 }
866 program { name: "spin4";
867 action: STATE_SET "default";
868 target: "knob_spinner";
869 }
870
871 /* maximize & unmaximize */
872 program {
873 signal: "elm,state,maximize*"; source: "elm";
874 action: STATE_SET "max";
875 target: "elm.spacer.opaque";
876 }
877 program {
878 signal: "elm,state,maximize*"; source: "elm";
879 SET_MODE(MAXIMIZED);
880 }
881 program {
882 signal: "elm,state,unmaximize*"; source: "elm";
883 action: STATE_SET "default";
884 target: "elm.spacer.opaque";
885 }
886 program {
887 signal: "elm,state,unmaximize*"; source: "elm";
888 UNSET_MODE(MAXIMIZED);
889 }
890
891 /*indicator*/
892 program {
893 signal: "elm,action,show_indicator"; source: "elm";
894 script {
895 set_int(indicator_enabled, 1);
896 }
897 after: "update_indicator";
898 }
899 program {
900 signal: "elm,action,hide_indicator"; source: "elm";
901 script {
902 set_int(indicator_enabled, 0);
903 }
904 after: "update_indicator";
905 }
906 program {
907 signal: "elm,action,indicator,bg_opaque"; source: "elm";
908 script {
909 set_int(indicator_type, INDICATOR_TYPE_BG_OPAQUE);
910 }
911 after: "update_indicator";
912 }
913 program {
914 signal: "elm,action,indicator,bg_transparent"; source: "elm";
915 script {
916 set_int(indicator_type, INDICATOR_TYPE_BG_TRANSPARENT);
917 }
918 after: "update_indicator";
919 }
920 program {
921 signal: "elm,action,indicator,hidden"; source: "elm";
922 script {
923 set_int(indicator_type, INDICATOR_TYPE_HIDDEN);
924 }
925 after: "update_indicator";
926 }
927 program {
928 signal: "elm,action,indicator,show_effect"; source: "elm";
929 action: STATE_SET "visible";
930 transition: DECELERATE 0.2;
931 target: "elm.swallow.indicator";
932 }
933 program {
934 signal: "elm,action,indicator,hide_effect"; source: "elm";
935 action: STATE_SET "hidden";
936 transition: DECELERATE 0.2;
937 target: "elm.swallow.indicator";
938 }
939 program { name: "update_indicator";
940 script {
941 if (get_int(indicator_enabled)) {
942 if ((get_int(indicator_type) == INDICATOR_TYPE_BG_OPAQUE) ||
943 (get_int(indicator_type) == INDICATOR_TYPE_UNKNOWN)) {
944 set_state(PART:"elm.swallow.indicator", "visible", 0.0);
945 set_state(PART:"indicator_spacer", "default", 0.0);
946 set_state(PART:"indicator_bg", "default", 0.0);
947 } else if (get_int(indicator_type) == INDICATOR_TYPE_BG_TRANSPARENT) {
948 set_state(PART:"elm.swallow.indicator", "visible", 0.0);
949 set_state(PART:"indicator_spacer", "default", 0.0);
950 set_state(PART:"indicator_bg", "bg_transparent", 0.0);
951 } else if (get_int(indicator_type) == INDICATOR_TYPE_HIDDEN) {
952 set_state(PART:"elm.swallow.indicator", "hidden", 0.0);
953 set_state(PART:"indicator_spacer", "hidden", 0.0);
954 set_state(PART:"indicator_bg", "default", 0.0);
955 }
956 } else {
957 set_state(PART:"elm.swallow.indicator", "default", 0.0);
958 set_state(PART:"indicator_spacer", "default", 0.0);
959 }
960 }
961 }
962
963 /* application desktop menu */
964 program { name: "show_menu";
965 signal: "elm,action,show_menu"; source: "elm";
966 action: STATE_SET "visible";
967 target: "elm.swallow.menu";
968 }
969 program { name: "hide_menu";
970 signal: "elm,action,hide"; source: "elm";
971 action: STATE_SET "default";
972 target: "elm.swallow.menu";
973 }
974
975 /* modal windows */
976 program { name: "hide_blocker";
977 signal: "elm,action,hide_blocker"; source: "elm";
978 action: STATE_SET "default" 0.0;
979 target: "elm.rect.blocker";
980 transition: DECELERATE 0.2;
981 }
982 program { name: "show_blocker";
983 signal: "elm,action,show_blocker"; source: "elm";
984 action: STATE_SET "visible" 0.0;
985 target: "elm.rect.blocker";
986 transition: DECELERATE 0.2;
987 }
988
989 /* minimize, maximize & close buttons */
990 program {
991 signal: "mouse,down,*"; source: "elm.event.close";
992 action: STATE_SET "selected";
993 target: "close1";
994 target: "close2";
995 }
996 program {
997 signal: "mouse,up,*"; source: "elm.event.close";
998 action: STATE_SET "default";
999 target: "close1";
1000 target: "close2";
1001 }
1002 program {
1003 signal: "mouse,down,*"; source: "elm.event.maximize";
1004 action: STATE_SET "selected";
1005 target: "max1";
1006 target: "max2";
1007 }
1008 program {
1009 signal: "mouse,up,*"; source: "elm.event.maximize";
1010 action: STATE_SET "default";
1011 target: "max1";
1012 target: "max2";
1013 }
1014 program {
1015 signal: "mouse,down,*"; source: "elm.event.minimize";
1016 action: STATE_SET "selected";
1017 target: "min1";
1018 target: "min2";
1019 }
1020 program {
1021 signal: "mouse,up,*"; source: "elm.event.minimize";
1022 action: STATE_SET "default";
1023 target: "min1";
1024 target: "min2";
1025 }
1026 program {
1027 signal: "mouse,down,1"; source: "elm.event.titlebar";
1028 action: SIGNAL_EMIT "elm,action,move,start" "elm";
1029 }
1030 program {
1031 signal: "mouse,up,1"; source: "elm.event.titlebar";
1032 action: SIGNAL_EMIT "elm,action,move,stop" "elm";
1033 }
1034 program {
1035 signal: "mouse,clicked,1"; source: "elm.event.minimize";
1036 action: SIGNAL_EMIT "elm,action,minimize" "elm";
1037 }
1038 program {
1039 signal: "mouse,clicked,1"; source: "elm.event.maximize";
1040 action: SIGNAL_EMIT "elm,action,maximize" "elm";
1041 }
1042 program {
1043 signal: "mouse,clicked,1"; source: "elm.event.close";
1044 action: SIGNAL_EMIT "elm,action,close" "elm";
1045 }
1046 program {
1047 signal: "mouse,in"; source: "elm.event.resize.t";
1048 action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.t";
1049 }
1050 program {
1051 signal: "mouse,out"; source: "elm.event.resize.t";
1052 action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.t";
1053 }
1054 program {
1055 signal: "mouse,down,1"; source: "elm.event.resize.t";
1056 action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.t";
1057 }
1058 program {
1059 signal: "mouse,in"; source: "elm.event.resize.b";
1060 action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.b";
1061 }
1062 program {
1063 signal: "mouse,out"; source: "elm.event.resize.b";
1064 action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.b";
1065 }
1066 program {
1067 signal: "mouse,down,1"; source: "elm.event.resize.b";
1068 action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.b";
1069 }
1070 program {
1071 signal: "mouse,in"; source: "elm.event.resize.tl";
1072 action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.tl";
1073 }
1074 program {
1075 signal: "mouse,out"; source: "elm.event.resize.tl";
1076 action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.tl";
1077 }
1078 program {
1079 signal: "mouse,down,1"; source: "elm.event.resize.tl";
1080 action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.tl";
1081 }
1082 program {
1083 signal: "mouse,in"; source: "elm.event.resize.tr";
1084 action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.tr";
1085 }
1086 program {
1087 signal: "mouse,out"; source: "elm.event.resize.tr";
1088 action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.tr";
1089 }
1090 program {
1091 signal: "mouse,down,1"; source: "elm.event.resize.tr";
1092 action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.tr";
1093 }
1094 program {
1095 signal: "mouse,in"; source: "elm.event.resize.bl";
1096 action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.bl";
1097 }
1098 program {
1099 signal: "mouse,out"; source: "elm.event.resize.bl";
1100 action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.bl";
1101 }
1102 program {
1103 signal: "mouse,down,1"; source: "elm.event.resize.bl";
1104 action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.bl";
1105 }
1106 program {
1107 signal: "mouse,in"; source: "elm.event.resize.br";
1108 action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.br";
1109 }
1110 program {
1111 signal: "mouse,out"; source: "elm.event.resize.br";
1112 action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.br";
1113 }
1114 program {
1115 signal: "mouse,down,1"; source: "elm.event.resize.br";
1116 action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.br";
1117 }
1118 program {
1119 signal: "mouse,clicked,1"; source: "elm.event.icon";
1120 action: SIGNAL_EMIT "elm,action,menu" "elm";
1121 }
1122 }
12} 1123}
13 1124
14group { "efl/border/dialog"; 1125group { name: "efl/border/dialog";
15 inherit: "elm/border/dialog/default"; 1126 inherit: "efl/border";
1127 parts {
1128 text { "elm.text.title";
1129 clip: "top_clip";
1130 desc { "default";
1131 rel2.to_x: "elm.event.close";
1132 }
1133 desc { "focused";
1134 inherit: "default";
1135 visible: 0;
1136 }
1137 }
1138 text { "title2";
1139 desc { "default";
1140 rel2.to_x: "elm.event.close";
1141 }
1142 desc { "focused";
1143 inherit: "default";
1144 visible: 1;
1145 }
1146 }
1147 image { "max1";
1148 desc { "default";
1149 visible: 0;
1150 }
1151 desc { "selected";
1152 visible: 0;
1153 }
1154 }
1155 image { "min1";
1156 desc { "default";
1157 visible: 0;
1158 }
1159 desc { "selected";
1160 visible: 0;
1161 }
1162 }
1163 image { "max2";
1164 desc { "default";
1165 visible: 0;
1166 }
1167 desc { "selected";
1168 visible: 0;
1169 }
1170 }
1171 image { "min2";
1172 desc { "default";
1173 visible: 0;
1174 }
1175 desc { "selected";
1176 visible: 0;
1177 }
1178 }
1179 rect { "elm.event.maximize";
1180 desc { "default";
1181 visible: 0;
1182 }
1183 }
1184 rect { "elm.event.minimize";
1185 desc { "default";
1186 visible: 0;
1187 }
1188 }
1189 }
16} 1190}
17 1191
18group { "efl/border/naviframe"; 1192group { name: "efl/border/naviframe";
19 inherit: "elm/border/naviframe/default"; 1193 inherit: "efl/border/dialog";
1194 images.image: "sym_left_dark_normal.png" COMP;
1195 images.image: "sym_left_glow_normal.png" COMP;
1196 images.image: "sym_left_light_normal.png" COMP;
1197 parts {
1198 image { "close1";
1199 desc { "default";
1200 image.normal: "sym_left_dark_normal.png";
1201 }
1202 desc { "selected";
1203 image.normal: "sym_left_glow_normal.png";
1204 }
1205 }
1206 image { "close2"; nomouse;
1207 clip: "clip2";
1208 desc { "default";
1209 image.normal: "sym_left_light_normal.png";
1210 }
1211 desc { "selected";
1212 image.normal: "sym_left_glow_normal.png";
1213 }
1214 }
1215 }
20} 1216}
21 1217
1218#undef UNRESIZABLE
1219#undef BORDERLESS
1220#undef MAXIMIZED
1221#undef SET_MODE
1222#undef UNSET_MODE
1223