From f89b95c2aa8817f7ba0bc993ba9830eab3db533f Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Fri, 2 Apr 2010 19:44:05 +0200 Subject: [PATCH] windowManager: Fade windows on map Fade in new windows instead of scaling them up from 0 to 1. --- js/ui/windowManager.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 3405e98de..597e34a45 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -153,14 +153,13 @@ WindowManager.prototype = { } actor.move_anchor_point_from_gravity(Clutter.Gravity.CENTER); - actor.set_scale(0.0, 0.0); + actor.opacity = 0; actor.show(); /* scale window up from 0x0 to normal size */ this._mapping.push(actor); Tweener.addTween(actor, - { scale_x: 1.0, - scale_y: 1.0, + { opacity: 255, time: WINDOW_ANIMATION_TIME, transition: "easeOutQuad", onComplete: this._mapWindowDone,