status-desktop/ui/onboarding/KeysMain.qml

90 lines
2.7 KiB
QML
Raw Normal View History

2020-06-17 19:18:31 +00:00
import QtQuick 2.13
import QtQuick.Controls 2.13
import "../shared"
2020-06-22 13:35:16 +00:00
import "../imports"
Page {
2020-06-15 15:20:38 +00:00
id: page
property alias btnExistingKey: btnExistingKey
property alias btnGenKey: btnGenKey
2020-06-15 15:20:38 +00:00
Item {
id: container
width: 425
height: {
let h = 0
const children = this.children
Object.keys(children).forEach(function (key) {
const child = children[key]
h += child.height + Style.current.padding
2020-06-15 15:20:38 +00:00
})
return h
}
2020-06-15 15:20:38 +00:00
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
2020-06-15 15:20:38 +00:00
Image {
id: keysImg
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
fillMode: Image.PreserveAspectFit
source: "img/keys@2x.jpg"
2020-06-15 15:20:38 +00:00
}
StyledText {
2020-06-15 15:20:38 +00:00
id: txtTitle1
//% "Get your keys"
text: qsTrId("intro-wizard-title1")
anchors.topMargin: Style.current.padding
2020-06-15 15:20:38 +00:00
font.bold: true
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: keysImg.bottom
font.letterSpacing: -0.2
font.pixelSize: 22
}
StyledText {
2020-06-15 15:20:38 +00:00
id: txtDesc1
color: Style.current.darkGrey
//% "A set of keys controls your account. Your keys live on your device, so only you can use them."
text: qsTrId("a-set-of-keys-controls-your-account.-your-keys-live-on-your-device,-so-only-you-can-use-them.")
2020-06-15 15:20:38 +00:00
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
anchors.right: parent.right
anchors.left: parent.left
anchors.top: txtTitle1.bottom
anchors.topMargin: Style.current.padding
2020-06-15 15:20:38 +00:00
font.pixelSize: 15
}
2020-06-15 15:20:38 +00:00
StyledButton {
id: btnGenKey
height: 44
anchors.top: txtDesc1.bottom
anchors.topMargin: 40
anchors.horizontalCenter: parent.horizontalCenter
//% "I'm new, generate keys"
label: qsTrId("im-new,-generate-keys")
2020-06-15 15:20:38 +00:00
}
2020-06-15 15:20:38 +00:00
StyledButton {
id: btnExistingKey
//% "Access existing key"
label: qsTrId("access-existing-key")
2020-06-15 15:20:38 +00:00
anchors.top: btnGenKey.bottom
anchors.topMargin: Style.current.padding
2020-06-15 15:20:38 +00:00
anchors.horizontalCenter: parent.horizontalCenter
height: 44
background: Rectangle {color: "transparent"}
}
}
}
/*##^##
Designer {
2020-06-15 15:20:38 +00:00
D{i:0;autoSize:true;formeditorColor:"#ffffff";formeditorZoom:0.8999999761581421;height:760;width:1080}
}
##^##*/