summaryrefslogtreecommitdiff
path: root/data/themes/edc/comp_effects.edc
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2014-01-29 13:30:05 -0500
committerMike Blumenkrantz <zmike@samsung.com>2014-01-29 13:36:52 -0500
commit6833a131c8657545dacf6384b183625dde2656bf (patch)
treed26c9877d6987d3ea5ad726b9c232ea615cd549a /data/themes/edc/comp_effects.edc
parent26c04b0cbb08432bece85cfa82a67e3881de7fdc (diff)
remove e comp iconify theme hacks, add basic iconify effect
Diffstat (limited to '')
-rw-r--r--data/themes/edc/comp_effects.edc78
1 files changed, 78 insertions, 0 deletions
diff --git a/data/themes/edc/comp_effects.edc b/data/themes/edc/comp_effects.edc
index 9d7aaf8..d937df9 100644
--- a/data/themes/edc/comp_effects.edc
+++ b/data/themes/edc/comp_effects.edc
@@ -420,6 +420,84 @@ group { name: "e/comp/effects/auto/grow";
420 } 420 }
421} 421}
422 422
423group { name: "e/comp/effects/iconify/default";
424 alias: "e/comp/effects/iconify/ibar";
425 alias: "e/comp/effects/iconify/ibox";
426 alias: "e/comp/effects/iconify/tasks";
427 inherit: "e/comp/effects/auto/pane";
428 data.item: "noclip" "1";
429 script {
430 public message(Msg_Type:type, id, ...) {
431 if ((type == MSG_INT_SET) && (id == 0)) {
432 /* set state */
433 new st;
434
435 st = getarg(2);
436
437 if (st == 1)
438 set_state(PART:"mover", "custom", 0.0);
439 else
440 set_state(PART:"mover", "default", 0.0);
441 } else if ((type == MSG_INT_SET) && (id == 1)) {
442 // border geom[4] / destination[4]
443 new x, y, w, h;
444 new dx, dy, dw, dh;
445 x = getarg(2);
446 y = getarg(3);
447 w = getarg(4);
448 h = getarg(5);
449 dx = getarg(6);
450 dy = getarg(7);
451 dw = getarg(8);
452 dh = getarg(9);
453 x = x + (w / 2);
454 y = y + (h / 2);
455 dx = dx - x;
456 dy = dy - y;
457 custom_state(PART:"mover", "default", 0.0);
458 set_state_val(PART:"mover", STATE_REL1, 1.0, 1.0);
459 set_state_val(PART:"mover", STATE_REL2, 0.0, 0.0);
460 set_state_val(PART:"mover", STATE_REL1_OFFSET, dx, dy);
461 set_state_val(PART:"mover", STATE_REL2_OFFSET, dx + dw - 1, dy + dh - 1);
462 }
463 }
464 }
465 programs {
466 program {
467 name: "show"; //iconify
468 signal: "e,action,go";
469 source: "e";
470 filter: "mover" "default";
471 action: STATE_SET "custom" 0.0;
472 transition: DECELERATE COMP_EFFECT_DURATION CURRENT;
473 target: "mover";
474 after: "done";
475 }
476 program {
477 name: "hide"; //iconify
478 signal: "e,action,go";
479 source: "e";
480 filter: "mover" "custom";
481 action: STATE_SET "default" 0.0;
482 transition: DECELERATE COMP_EFFECT_DURATION CURRENT;
483 target: "mover";
484 after: "done";
485 }
486 program {
487 name: "stop";
488 signal: "e,action,stop";
489 source: "e";
490 action: ACTION_STOP;
491 target: "show";
492 target: "hide";
493 }
494 program {
495 name: "done";
496 action: SIGNAL_EMIT "e,action,done" "e";
497 }
498 }
499}
500
423#if 0 //this is weirdly broken with proxy visibility somehow... 501#if 0 //this is weirdly broken with proxy visibility somehow...
424group { name: "e/comp/effects/auto/rotate"; 502group { name: "e/comp/effects/auto/rotate";
425 inherit: "e/comp/effects/auto/pane"; 503 inherit: "e/comp/effects/auto/pane";