[gnome-documents] toolbar: move in and out fullscreen toolbar instead of fading it



commit 00732563130e1b158fe6ac39a415ab2b777263af
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Oct 27 20:57:56 2011 -0400

    toolbar: move in and out fullscreen toolbar instead of fading it

 src/mainToolbar.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/mainToolbar.js b/src/mainToolbar.js
index ef5158e..9388918 100644
--- a/src/mainToolbar.js
+++ b/src/mainToolbar.js
@@ -322,19 +322,19 @@ FullscreenToolbar.prototype = {
         MainToolbar.prototype._init.call(this);
 
         this.actor = new GtkClutter.Actor({ contents: this.widget,
-                                            opacity: 0 });
+                                            y: -(this.widget.get_preferred_height()[1]) });
     },
 
     show: function() {
         Tweener.addTween(this.actor,
-                         { opacity: 255,
+                         { y: 0,
                            time: 0.20,
-                           transition: 'easeOutQuad' });
+                           transition: 'easeInQuad' });
     },
 
     hide: function() {
         Tweener.addTween(this.actor,
-                         { opacity: 0,
+                         { y: -(this.widget.get_preferred_height()[1]),
                            time: 0.20,
                            transition: 'easeOutQuad' });
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]