aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2016-12-04 16:51:42 +0100
committerJaquee <jaquee.monero@gmail.com>2016-12-04 16:51:42 +0100
commit3d16f73eda5faf82be797e8d5635affa7bc13d18 (patch)
treee9dfe4e5c2f864f29c52bc773dbe9452b3973329
parent26abdee5c47017a80117b1bed5ee36586a240c62 (diff)
downloadmonzero-gui-3d16f73eda5faf82be797e8d5635affa7bc13d18.tar.gz
monzero-gui-3d16f73eda5faf82be797e8d5635affa7bc13d18.tar.xz
monzero-gui-3d16f73eda5faf82be797e8d5635affa7bc13d18.zip
tabs: page transition left to right
-rw-r--r--MiddlePanel.qml19
1 files changed, 19 insertions, 0 deletions
diff --git a/MiddlePanel.qml b/MiddlePanel.qml
index e14255a5..1d257afa 100644
--- a/MiddlePanel.qml
+++ b/MiddlePanel.qml
@@ -265,6 +265,25 @@ Rectangle {
anchors.top: styledRow.bottom
anchors.margins: 4
clip: true // otherwise animation will affect left panel
+
+ delegate: StackViewDelegate {
+ pushTransition: StackViewTransition {
+ PropertyAnimation {
+ target: enterItem
+ property: "x"
+ from: 0 - target.width
+ to: 0
+ duration: 300
+ }
+ PropertyAnimation {
+ target: exitItem
+ property: "x"
+ from: 0
+ to: target.width
+ duration: 300
+ }
+ }
+ }
}
}
// border