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.Components 0.1
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
import shared.panels 1.0
|
|
|
|
|
|
|
|
import "../stores"
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property AddAccountStore store
|
|
|
|
|
|
|
|
implicitHeight: layout.implicitHeight
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
id: layout
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2024-10-15 19:26:12 +00:00
|
|
|
width: parent.width - 2 * 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 1 of 4")
|
|
|
|
titleFontSize: Constants.addAccountPopup.labelFontSize1
|
|
|
|
totalSteps: 4
|
|
|
|
completedSteps: 1
|
|
|
|
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("Write down your 12-word seed phrase to keep offline")
|
|
|
|
}
|
|
|
|
|
|
|
|
SeedPhrase {
|
|
|
|
Layout.preferredWidth: parent.width
|
|
|
|
Layout.preferredHeight: 304
|
2024-10-15 19:26:12 +00:00
|
|
|
Layout.topMargin: 3 * Theme.padding
|
2023-03-22 15:48:44 +00:00
|
|
|
seedPhraseRevealed: root.store.seedPhraseRevealed
|
|
|
|
|
|
|
|
seedPhrase: root.store.getSeedPhrase().split(" ")
|
|
|
|
|
|
|
|
onSeedPhraseRevealedChanged: {
|
|
|
|
root.store.seedPhraseRevealed = seedPhraseRevealed
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.preferredWidth: parent.width
|
2024-10-15 19:26:12 +00:00
|
|
|
Layout.topMargin: 2 * Theme.padding
|
2023-03-22 15:48:44 +00:00
|
|
|
Layout.alignment: Qt.AlignCenter
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
visible: !root.store.seedPhraseRevealed
|
|
|
|
font.pixelSize: Constants.addAccountPopup.labelFontSize1
|
|
|
|
textFormat: Text.RichText
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
color: Theme.palette.dangerColor1
|
|
|
|
text: qsTr("The next screen contains your seed phrase.<br/><b>Anyone</b> who sees it can use it to access to your funds.")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|