windowManager: Fade windows on map
Fade in new windows instead of scaling them up from 0 to 1.
This commit is contained in:
parent
f262473a3f
commit
f89b95c2aa
@ -153,14 +153,13 @@ WindowManager.prototype = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
actor.move_anchor_point_from_gravity(Clutter.Gravity.CENTER);
|
actor.move_anchor_point_from_gravity(Clutter.Gravity.CENTER);
|
||||||
actor.set_scale(0.0, 0.0);
|
actor.opacity = 0;
|
||||||
actor.show();
|
actor.show();
|
||||||
|
|
||||||
/* scale window up from 0x0 to normal size */
|
/* scale window up from 0x0 to normal size */
|
||||||
this._mapping.push(actor);
|
this._mapping.push(actor);
|
||||||
Tweener.addTween(actor,
|
Tweener.addTween(actor,
|
||||||
{ scale_x: 1.0,
|
{ opacity: 255,
|
||||||
scale_y: 1.0,
|
|
||||||
time: WINDOW_ANIMATION_TIME,
|
time: WINDOW_ANIMATION_TIME,
|
||||||
transition: "easeOutQuad",
|
transition: "easeOutQuad",
|
||||||
onComplete: this._mapWindowDone,
|
onComplete: this._mapWindowDone,
|
||||||
|
Loading…
Reference in New Issue
Block a user