Begin adding slide-in transition

Currently, this doesn't work.
android
Loren Burkholder 4 years ago
parent 6a77e55c72
commit a15b5d3fdb
  1. 36
      resources/qml/MobileMessageContextPopup.qml

@ -31,12 +31,48 @@ Item {
id: popup
radius: 20
y: timelineRoot.height + 1
z: 20
anchors.bottom: parent.bottom
height: 75
width: parent.width
color: colors.window
// TODO: make this work
states: [
State {
name: "hidden"
PropertyChanges {
target: popup
y: timelineRoot.height + 1 // hidden
visible: false
}
},
State {
name: "shown"
PropertyChanges {
target: popup
y: timelineRoot.height - popup.height
visible: true
}
}
]
state: "hidden"
transitions: Transition {
from: "hidden"
to: "shown"
reversible: true
NumberAnimation {
target: popup
property: y
duration: 5000
easing.type: Easing.InOutQuad
alwaysRunToEnd: true
}
}
RowLayout {
id: row

Loading…
Cancel
Save