[gnome-documents] toolbar: move in and out fullscreen toolbar instead of fading it
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] toolbar: move in and out fullscreen toolbar instead of fading it
- Date: Fri, 28 Oct 2011 19:21:05 +0000 (UTC)
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]