Skip to content
Snippets Groups Projects
Commit 347c7087 authored by Alexander's avatar Alexander
Browse files

[*] add factor pt to revovery qr form

parent 24c664eb
No related branches found
No related tags found
2 merge requests!59Features 2608,!51Features 2608
...@@ -11,7 +11,7 @@ Rectangle { ...@@ -11,7 +11,7 @@ Rectangle {
Rectangle { Rectangle {
id: qrCodeTextArea id: qrCodeTextArea
height: 30 height: 30 * pt
color: "#757184" color: "#757184"
anchors.right: parent.right anchors.right: parent.right
anchors.left: parent.left anchors.left: parent.left
...@@ -22,12 +22,12 @@ Rectangle { ...@@ -22,12 +22,12 @@ Rectangle {
color: "#ffffff" color: "#ffffff"
text: qsTr("QR Code") text: qsTr("QR Code")
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.bottomMargin: 8 anchors.bottomMargin: 8 * pt
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: 8 anchors.topMargin: 8 * pt
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 16 anchors.leftMargin: 16 * pt
font.pointSize: 12 font.pointSize: 12 * pt
horizontalAlignment: Text.AlignLeft horizontalAlignment: Text.AlignLeft
font.family: "Roboto" font.family: "Roboto"
font.styleName: "Normal" font.styleName: "Normal"
...@@ -38,9 +38,9 @@ Rectangle { ...@@ -38,9 +38,9 @@ Rectangle {
Rectangle { Rectangle {
id: saveQrCodeDescription id: saveQrCodeDescription
color: "#edeff2" color: "#edeff2"
height: 42 height: 42 * pt
anchors.top: qrCodeTextArea.bottom anchors.top: qrCodeTextArea.bottom
anchors.topMargin: 24 anchors.topMargin: 24 * pt
anchors.left: qrCodeTextArea.left anchors.left: qrCodeTextArea.left
anchors.right: qrCodeTextArea.right anchors.right: qrCodeTextArea.right
anchors.leftMargin: 1 * pt anchors.leftMargin: 1 * pt
...@@ -49,7 +49,7 @@ Rectangle { ...@@ -49,7 +49,7 @@ Rectangle {
Text { Text {
anchors.fill: parent anchors.fill: parent
text: qsTr("Keep these QR-code in a safe place. They will be\nrequired to restore your wallet in case of loss of\naccess to it") text: qsTr("Keep these QR-code in a safe place. They will be\nrequired to restore your wallet in case of loss of\naccess to it")
font.pointSize: 14 font.pointSize: 14 * pt
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
color: "#FF0300" color: "#FF0300"
...@@ -64,13 +64,13 @@ Rectangle { ...@@ -64,13 +64,13 @@ Rectangle {
Rectangle { Rectangle {
id: qrCodeImageArea id: qrCodeImageArea
height: 200 height: 200 * pt
width: 200 width: 200 * pt
anchors.top: saveQrCodeDescription.bottom anchors.top: saveQrCodeDescription.bottom
anchors.topMargin: 24 anchors.topMargin: 24 * pt
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
color: "#EDEFF2" color: "#EDEFF2"
border.width: 1 border.width: 1 * pt
border.color: "#C7C6CE" border.color: "#C7C6CE"
Image { Image {
...@@ -84,20 +84,20 @@ Rectangle { ...@@ -84,20 +84,20 @@ Rectangle {
Rectangle { Rectangle {
id: notifyQrCodeSavedArea id: notifyQrCodeSavedArea
height: 100 height: 100 * pt
color: "#EDEFF2"
anchors.top: qrCodeImageArea.bottom anchors.top: qrCodeImageArea.bottom
anchors.topMargin: 24 anchors.topMargin: 24 * pt
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
color: "#EDEFF2" anchors.leftMargin: 1 * pt
anchors.leftMargin: 1
Text { Text {
id: notifyText id: notifyText
anchors.centerIn: parent anchors.centerIn: parent
text: qsTr("") text: qsTr("")
color: "#6F9F00" color: "#6F9F00"
font.pointSize: 14 font.pointSize: 14 * pt
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
} }
...@@ -105,32 +105,32 @@ Rectangle { ...@@ -105,32 +105,32 @@ Rectangle {
RowLayout { RowLayout {
id: actionButtons id: actionButtons
height: 44 height: 44 * pt
anchors.leftMargin: 1 anchors.leftMargin: 1 * pt
spacing: 60 spacing: 60 * pt
anchors.top: notifyQrCodeSavedArea.bottom anchors.top: notifyQrCodeSavedArea.bottom
anchors.topMargin: 24 anchors.topMargin: 24 * pt
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
Layout.leftMargin: 26 Layout.leftMargin: 26 * pt
Layout.columnSpan: 2 Layout.columnSpan: 2
Button { Button {
id: nextButton id: nextButton
height: 44 height: 44 * pt
width: 130 * pt
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
width: 130
Text { Text {
id: nextButtonText id: nextButtonText
text: qsTr("Next") text: qsTr("Create")
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
color: "#ffffff" color: "#ffffff"
font.family: "Roboto" font.family: "Roboto"
font.styleName: "Normal" font.styleName: "Normal"
font.weight: Font.Normal font.weight: Font.Normal
font.pointSize: 16 font.pointSize: 18 * pt
horizontalAlignment: Text.AlignLeft horizontalAlignment: Text.AlignLeft
} }
...@@ -143,10 +143,9 @@ Rectangle { ...@@ -143,10 +143,9 @@ Rectangle {
Button { Button {
id: saveQrCodeButton id: saveQrCodeButton
height: 44 height: 44 * pt
width: 130 width: 130 * pt
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
checkable: true
Text { Text {
id: saveQrCodeButtonText id: saveQrCodeButtonText
...@@ -157,7 +156,7 @@ Rectangle { ...@@ -157,7 +156,7 @@ Rectangle {
font.family: "Roboto" font.family: "Roboto"
font.styleName: "Normal" font.styleName: "Normal"
font.weight: Font.Normal font.weight: Font.Normal
font.pointSize: 16 font.pointSize: 18 * pt
horizontalAlignment: Text.AlignLeft horizontalAlignment: Text.AlignLeft
} }
...@@ -174,3 +173,10 @@ Rectangle { ...@@ -174,3 +173,10 @@ Rectangle {
} }
} }
} }
/*##^##
Designer {
D{i:0;autoSize:true;height:480;width:640}
}
##^##*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment