mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
tabs: page transition left to right
This commit is contained in:
parent
26abdee5c4
commit
3d16f73eda
1 changed files with 19 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue