mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-20 19:39:22 +00:00
d9d6d90dc9
- legacy Style and ThemePalette removed - moved and deduplicated font definitions into `Theme` (unrelated to a color palette) - `Style.current.foo` -> `Theme.foo` - `Style.current.fooColor` -> `Theme.palette.fooColor` - upgrade the imports to 5.15 - removed some mode dead components Fixes #16514
48 lines
1.1 KiB
QML
48 lines
1.1 KiB
QML
import QtQuick 2.15
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import shared.views 1.0
|
|
|
|
import utils 1.0
|
|
|
|
Item {
|
|
id: root
|
|
|
|
property var sharedKeycardModule
|
|
|
|
signal passwordMatch(bool result)
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
anchors.topMargin: Theme.xlPadding
|
|
anchors.bottomMargin: Theme.halfPadding
|
|
anchors.leftMargin: Theme.xlPadding
|
|
anchors.rightMargin: Theme.xlPadding
|
|
spacing: Theme.padding
|
|
|
|
PasswordConfirmationView {
|
|
Layout.alignment: Qt.AlignHCenter
|
|
Layout.fillHeight: true
|
|
spacing: Theme.bigPadding
|
|
|
|
expectedPassword: root.sharedKeycardModule.getNewPassword()
|
|
|
|
Component.onCompleted: {
|
|
forceInputFocus()
|
|
}
|
|
|
|
onPasswordMatchChanged: {
|
|
root.passwordMatch(passwordMatch)
|
|
}
|
|
|
|
onSubmit: {
|
|
if(passwordMatch) {
|
|
root.sharedKeycardModule.currentState.doPrimaryAction()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|