2024-10-15 19:26:12 +00:00
import QtQuick 2.15
import QtQuick . Controls 2.15
import QtQuick . Layouts 1.15
2022-05-26 13:40:41 +00:00
import shared . panels 1.0
import utils 1.0
2022-07-13 12:29:38 +00:00
import StatusQ . Controls 0.1
import StatusQ . Core . Theme 0.1
import StatusQ . Core 0.1
2022-06-28 10:55:33 +00:00
ColumnLayout {
id: root
2022-05-26 13:40:41 +00:00
2022-06-28 10:55:33 +00:00
readonly property bool allAccepted: havePen . checked && writeDown . checked && storeIt . checked
2022-05-26 13:40:41 +00:00
2024-10-15 19:26:12 +00:00
spacing: Theme . padding
2022-05-26 13:40:41 +00:00
2022-09-27 08:51:53 +00:00
Item {
2022-06-28 10:55:33 +00:00
Layout.fillWidth: true
Layout.fillHeight: true
2022-05-26 13:40:41 +00:00
2022-09-27 08:51:53 +00:00
Item {
anchors.fill: parent
clip: true
2022-06-28 10:55:33 +00:00
2022-09-27 08:51:53 +00:00
StatusScrollView {
id: flick
2022-07-15 10:57:23 +00:00
2022-09-27 08:51:53 +00:00
anchors.fill: parent
2023-05-31 20:58:23 +00:00
contentWidth: availableWidth
2022-06-28 10:55:33 +00:00
2023-01-17 11:41:53 +00:00
ScrollBar.vertical.policy: ScrollBar . AlwaysOn
2022-09-27 08:51:53 +00:00
clip: false
2022-07-15 10:57:23 +00:00
2022-09-27 08:51:53 +00:00
ColumnLayout {
id: flickLayout
width: flick . availableWidth
2024-10-15 19:26:12 +00:00
spacing: Theme . padding
2022-07-15 10:57:23 +00:00
2022-09-27 08:51:53 +00:00
Image {
id: keysImg
fillMode: Image . PreserveAspectFit
2024-10-15 19:26:12 +00:00
source: Theme . png ( "onboarding/keys" )
2022-09-27 08:51:53 +00:00
mipmap: true
Layout.alignment: Qt . AlignHCenter
Layout.preferredWidth: 120
Layout.preferredHeight: width
2023-04-26 15:33:24 +00:00
cache: false
2022-09-27 08:51:53 +00:00
}
StyledText {
id: txtTitle
text: qsTr ( "Secure Your Assets and Funds" )
horizontalAlignment: Text . AlignHCenter
wrapMode: Text . WordWrap
font.bold: true
font.pixelSize: 22
Layout.fillWidth: true
}
ColumnLayout {
Layout.fillWidth: true
2024-10-15 19:26:12 +00:00
Layout.leftMargin: Theme . padding
Layout.rightMargin: Theme . padding
spacing: Theme . bigPadding
2022-09-27 08:51:53 +00:00
StyledText {
id: txtDesc
2024-10-15 19:26:12 +00:00
font.pixelSize: Theme . primaryTextFontSize
2022-09-27 08:51:53 +00:00
horizontalAlignment: Text . AlignHCenter
2024-02-20 18:26:36 +00:00
wrapMode: Text . WordWrap
2022-09-27 08:51:53 +00:00
text: qsTr ( "Your seed phrase is a 12-word passcode to your funds." )
Layout.fillWidth: true
}
StyledText {
id: secondTxtDesc
horizontalAlignment: Text . AlignHCenter
wrapMode: Text . WordWrap
textFormat: Text . RichText
2024-10-15 19:26:12 +00:00
font.pixelSize: Theme . primaryTextFontSize
2022-09-27 08:51:53 +00:00
lineHeight: 1.2
text: qsTr ( "Your seed phrase cannot be recovered if lost. Therefore, you <b>must</b> back it up. The simplest way is to <b>write it down offline and store it somewhere secure.</b>" )
Layout.fillWidth: true
}
}
ColumnLayout {
Layout.fillWidth: true
2024-10-15 19:26:12 +00:00
Layout.leftMargin: Theme . xlPadding
Layout.rightMargin: Theme . xlPadding
Layout.topMargin: Theme . bigPadding
spacing: Theme . bigPadding / 2
2022-09-27 08:51:53 +00:00
StatusCheckBox {
id: havePen
objectName: "Acknowledgements_havePen"
2024-10-15 19:26:12 +00:00
spacing: Theme . padding
2022-09-27 08:51:53 +00:00
text: qsTr ( "I have a pen and paper" )
2024-10-15 19:26:12 +00:00
font.pixelSize: Theme . primaryTextFontSize
2022-09-27 08:51:53 +00:00
Layout.fillWidth: true
}
StatusCheckBox {
id: writeDown
objectName: "Acknowledgements_writeDown"
2024-10-15 19:26:12 +00:00
spacing: Theme . padding
2022-09-27 08:51:53 +00:00
text: qsTr ( "I am ready to write down my seed phrase" )
2024-10-15 19:26:12 +00:00
font.pixelSize: Theme . primaryTextFontSize
2022-09-27 08:51:53 +00:00
Layout.fillWidth: true
}
StatusCheckBox {
id: storeIt
objectName: "Acknowledgements_storeIt"
2024-10-15 19:26:12 +00:00
spacing: Theme . padding
2022-09-27 08:51:53 +00:00
text: qsTr ( "I know where I’ ll store it" )
2024-10-15 19:26:12 +00:00
font.pixelSize: Theme . primaryTextFontSize
2022-09-27 08:51:53 +00:00
Layout.fillWidth: true
}
}
2022-07-15 10:57:23 +00:00
}
2022-06-28 10:55:33 +00:00
}
2022-05-26 13:40:41 +00:00
}
}
2024-02-20 18:26:36 +00:00
Item {
2022-06-28 10:55:33 +00:00
Layout.fillWidth: true
2024-10-15 19:26:12 +00:00
Layout.preferredHeight: ( warningText . contentHeight + Theme . padding )
2022-06-28 10:55:33 +00:00
2022-05-26 13:40:41 +00:00
StyledText {
2024-02-20 18:26:36 +00:00
id: warningText
2022-05-26 13:40:41 +00:00
anchors.fill: parent
2024-10-15 19:26:12 +00:00
anchors.margins: Theme . halfPadding
2022-05-26 13:40:41 +00:00
horizontalAlignment: Text . AlignHCenter
verticalAlignment: Text . AlignVCenter
2024-10-15 19:26:12 +00:00
font.pixelSize: Theme . primaryTextFontSize
2022-05-26 13:40:41 +00:00
wrapMode: Text . WordWrap
color: Theme . palette . dangerColor1
2022-07-15 10:57:23 +00:00
lineHeight: 1.2
2022-05-26 13:40:41 +00:00
text: qsTr ( "You can only complete this process once. Status will not store your seed phrase and can never help you recover it." )
}
2022-06-28 10:55:33 +00:00
2022-05-26 13:40:41 +00:00
Rectangle {
anchors.fill: parent
2024-10-15 19:26:12 +00:00
radius: Theme . radius
2022-05-26 13:40:41 +00:00
color: Theme . palette . dangerColor1
opacity: 0.1
}
}
2022-07-15 10:57:23 +00:00
}