2024-10-15 19:26:12 +00:00
import QtQuick 2.15
import QtQuick . Controls 2.15
import QtQuick . Layouts 1.15
2023-03-22 15:48:44 +00:00
import StatusQ . Core 0.1
import StatusQ . Core . Theme 0.1
import StatusQ . Controls 0.1
import StatusQ . Components 0.1
import utils 1.0
import "../stores"
Item {
id: root
property AddAccountStore store
implicitHeight: layout . implicitHeight
Component.onCompleted: {
if ( root . store . seedPhraseBackupConfirmed ) {
aknowledge . checked = true
}
}
ColumnLayout {
id: layout
anchors.horizontalCenter: parent . horizontalCenter
2024-10-15 19:26:12 +00:00
width: parent . width - 2 * 3 * Theme . padding
spacing: Theme . halfPadding
2023-03-22 15:48:44 +00:00
StatusStepper {
Layout.preferredWidth: Constants . addAccountPopup . stepperWidth
Layout.preferredHeight: Constants . addAccountPopup . stepperHeight
2024-10-15 19:26:12 +00:00
Layout.topMargin: Theme . padding
2023-03-22 15:48:44 +00:00
Layout.alignment: Qt . AlignCenter
title: qsTr ( "Step 4 of 4" )
titleFontSize: Constants . addAccountPopup . labelFontSize1
totalSteps: 4
completedSteps: 4
leftPadding: 0
rightPadding: 0
}
StatusBaseText {
Layout.preferredWidth: parent . width
Layout.alignment: Qt . AlignCenter
horizontalAlignment: Text . AlignHCenter
font.pixelSize: Constants . addAccountPopup . labelFontSize1
color: Theme . palette . directColor1
text: qsTr ( "Complete back up" )
}
StatusBaseText {
Layout.preferredWidth: parent . width
2024-10-15 19:26:12 +00:00
Layout.topMargin: 2 * Theme . xlPadding
2023-03-22 15:48:44 +00:00
Layout.alignment: Qt . AlignHCenter
horizontalAlignment: Text . AlignHCenter
wrapMode: Text . WordWrap
font.bold: true
font.pixelSize: 18
color: Theme . palette . directColor1
text: qsTr ( "Store Your Phrase Offline and Complete Your Back Up" )
}
StatusBaseText {
Layout.preferredWidth: parent . width
2024-10-15 19:26:12 +00:00
Layout.topMargin: Theme . halfPadding
2023-03-22 15:48:44 +00:00
Layout.alignment: Qt . AlignHCenter
horizontalAlignment: Text . AlignHCenter
wrapMode: Text . WordWrap
2024-10-15 19:26:12 +00:00
font.pixelSize: Theme . primaryTextFontSize
2023-03-22 15:48:44 +00:00
lineHeight: 1.2
color: Theme . palette . directColor1
text: qsTr ( "By completing this process, you will remove your seed phrase from this application’ s storage. This makes your funds more secure.\n\nYou will remain logged in, and your seed phrase will be entirely in your hands." )
}
StatusCheckBox {
id: aknowledge
2023-04-13 10:27:56 +00:00
objectName: "AddAccountPopup-SeedBackupAknowledge"
2023-03-22 15:48:44 +00:00
Layout.preferredWidth: parent . width
2024-10-15 19:26:12 +00:00
Layout.topMargin: 2 * Theme . xlPadding
2023-03-22 15:48:44 +00:00
Layout.alignment: Qt . AlignHCenter
2024-10-15 19:26:12 +00:00
spacing: Theme . padding
font.pixelSize: Theme . primaryTextFontSize
2023-03-22 15:48:44 +00:00
text: qsTr ( "I aknowledge that Status will not be able to show me my seed phrase again." )
onToggled: {
root . store . seedPhraseBackupConfirmed = checked
}
}
}
}