[gnome-shell/wip/paging-release2: 5/15] appDisplay: Animate _updateIconOpacities
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/paging-release2: 5/15] appDisplay: Animate _updateIconOpacities
- Date: Thu, 22 Aug 2013 16:42:49 +0000 (UTC)
commit 79b6ae22812c3968534ee508184c107cd6414c8f
Author: Carlos Soriano <carlos soriano89 gmail com>
Date: Thu Aug 22 17:31:41 2013 +0200
appDisplay: Animate _updateIconOpacities
Animate the transition between full opacity and partly opacity
to follow overall animations design of gnome-shell
js/ui/appDisplay.js | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index b26c2b7..ec15dc1 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -249,10 +249,16 @@ const AllView = new Lang.Class({
_updateIconOpacities: function(folderOpen) {
for (let id in this._items) {
+ let params;
if (folderOpen && !this._items[id].actor.checked)
- this._items[id].actor.opacity = INACTIVE_GRID_OPACITY;
+ params = { opacity: INACTIVE_GRID_OPACITY,
+ time: INACTIVE_GRID_OPACITY_ANIMATION_TIME,
+ transition: 'easeOutQuad' };
else
- this._items[id].actor.opacity = 255;
+ params = { opacity: 255,
+ time: INACTIVE_GRID_OPACITY_ANIMATION_TIME,
+ transition: 'easeOutQuad' };
+ Tweener.addTween(this._items[id].actor, params);
}
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]