2023-03-14 02:52:16 +00:00
|
|
|
import QtQuick 2.0
|
|
|
|
import QtQuick.Layouts 1.12
|
|
|
|
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
import StatusQ.Components 0.1
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
2023-08-21 10:58:21 +00:00
|
|
|
import shared.views 1.0
|
|
|
|
|
2023-03-14 02:52:16 +00:00
|
|
|
Column {
|
|
|
|
id: root
|
|
|
|
|
2023-08-21 10:58:21 +00:00
|
|
|
property int type: SyncingCodeInstructions.Type.AppSync
|
|
|
|
|
2023-03-14 02:52:16 +00:00
|
|
|
spacing: 4
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: d
|
|
|
|
readonly property int listItemHeight: 40
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
height: d.listItemHeight
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
text: qsTr("1. Open Status App on your desktop device")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
height: d.listItemHeight
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
text: qsTr("2. Open")
|
|
|
|
}
|
|
|
|
StatusRoundIcon {
|
|
|
|
asset.name: "settings"
|
|
|
|
}
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.directColor1
|
|
|
|
text: qsTr("Settings")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
height: d.listItemHeight
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
text: qsTr("3. Navigate to the ")
|
|
|
|
}
|
|
|
|
StatusRoundIcon {
|
2023-08-21 10:58:21 +00:00
|
|
|
asset.name: {
|
|
|
|
if (root.type === SyncingCodeInstructions.Type.KeypairSync) {
|
|
|
|
return "wallet"
|
|
|
|
}
|
|
|
|
return "rotate"
|
|
|
|
}
|
2023-03-14 02:52:16 +00:00
|
|
|
}
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
2023-08-21 10:58:21 +00:00
|
|
|
text: {
|
|
|
|
if (root.type === SyncingCodeInstructions.Type.KeypairSync) {
|
|
|
|
return qsTr("Wallet tab")
|
|
|
|
}
|
|
|
|
return qsTr("Syncing tab")
|
|
|
|
}
|
2023-03-14 02:52:16 +00:00
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.directColor1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
height: d.listItemHeight
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
|
|
|
text: qsTr("4. Click")
|
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
}
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
2023-08-21 10:58:21 +00:00
|
|
|
text: {
|
|
|
|
if (root.type === SyncingCodeInstructions.Type.KeypairSync) {
|
|
|
|
return qsTr("Import missing keypairs")
|
|
|
|
}
|
|
|
|
return qsTr("Setup Syncing")
|
|
|
|
}
|
2023-03-14 02:52:16 +00:00
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.directColor1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
height: d.listItemHeight
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
2023-08-21 10:58:21 +00:00
|
|
|
text: qsTr("5.")
|
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
}
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
|
|
|
text: qsTr("Enable camera")
|
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.directColor1
|
|
|
|
}
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
|
|
|
text: qsTr("on this device")
|
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
height: d.listItemHeight
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
|
|
|
text: {
|
|
|
|
if (root.type === SyncingCodeInstructions.Type.KeypairSync) {
|
|
|
|
return qsTr("6. Scan or enter the encrypted key with this device")
|
|
|
|
}
|
|
|
|
return qsTr("6. Scan or enter the code")
|
|
|
|
}
|
2023-03-14 02:52:16 +00:00
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|