mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-23 20:18:47 +00:00
- integrate the PUK unblock flow into the Onboarding and Login screen - added a dedicated SB page for it - remove the `Locked` keycard state everywhere in favor of `BlockedPIN` and `BlockedPUK` - fix the various "Locked" buttons, based on the context and the state of the keycard Fixes: #17092
65 lines
1.7 KiB
QML
65 lines
1.7 KiB
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
StackView {
|
|
id: root
|
|
|
|
readonly property bool backAvailable: currentItem ? (currentItem.backAvailableHint ?? true)
|
|
: false
|
|
|
|
QtObject {
|
|
id: d
|
|
|
|
readonly property int opacityDuration: 50
|
|
readonly property int swipeDuration: 400
|
|
}
|
|
|
|
background: Rectangle {
|
|
color: Theme.palette.background
|
|
}
|
|
|
|
pushEnter: Transition {
|
|
ParallelAnimation {
|
|
NumberAnimation {
|
|
property: "opacity"
|
|
from: 0; to: 1
|
|
duration: d.opacityDuration
|
|
easing.type: Easing.InQuint
|
|
}
|
|
NumberAnimation {
|
|
property: "x"
|
|
from: (root.mirrored ? -0.3 : 0.3) * root.width; to: 0
|
|
duration: d.swipeDuration
|
|
easing.type: Easing.OutCubic
|
|
}
|
|
}
|
|
}
|
|
pushExit: Transition {
|
|
NumberAnimation {
|
|
property: "opacity"; from: 1; to: 0
|
|
duration: d.opacityDuration
|
|
easing.type: Easing.OutQuint
|
|
}
|
|
}
|
|
popEnter: Transition {
|
|
ParallelAnimation {
|
|
NumberAnimation {
|
|
property: "opacity"
|
|
from: 0; to: 1
|
|
duration: d.opacityDuration
|
|
easing.type: Easing.InQuint
|
|
}
|
|
NumberAnimation {
|
|
property: "x"
|
|
from: (root.mirrored ? -0.3 : 0.3) * -root.width; to: 0
|
|
duration: d.swipeDuration; easing.type: Easing.OutCubic
|
|
}
|
|
}
|
|
}
|
|
popExit: pushExit
|
|
replaceEnter: pushEnter
|
|
replaceExit: pushExit
|
|
}
|