Set HStackView transitions that make sense

This commit is contained in:
miruka 2020-07-08 11:54:02 -04:00
parent 4db69424b8
commit dbfe04458c

View File

@ -4,4 +4,35 @@ import QtQuick 2.12
import QtQuick.Controls 2.12
StackView {
pushEnter: Transition {
HNumberAnimation {
property: "scale"
from: 0
to: 1
}
}
pushExit: Transition {
HNumberAnimation {
property: "opacity"
from: 1
to: 0
}
}
popEnter: Transition {
HNumberAnimation {
property: "opacity"
from: 0
to: 1
}
}
popExit: Transition {
HNumberAnimation {
property: "scale"
from: 1
to: 0
}
}
}