diff options
| author | stoffu <stoffu@protonmail.ch> | 2018-06-04 17:05:29 +0900 |
|---|---|---|
| committer | stoffu <stoffu@protonmail.ch> | 2018-08-24 12:54:43 +0900 |
| commit | 9bb6a25f311bccff3d089ae0b0a4156b16d6e109 (patch) | |
| tree | 8faa3a811497f4be297d3d9ebd1188a391a38006 /wizard/WizardOptions.qml | |
| parent | c3f41ae0038a2338566e702264c3095857acac1c (diff) | |
| download | monzero-gui-9bb6a25f311bccff3d089ae0b0a4156b16d6e109.tar.gz monzero-gui-9bb6a25f311bccff3d089ae0b0a4156b16d6e109.tar.xz monzero-gui-9bb6a25f311bccff3d089ae0b0a4156b16d6e109.zip | |
Add support for creating hardware wallet
Diffstat (limited to 'wizard/WizardOptions.qml')
| -rw-r--r-- | wizard/WizardOptions.qml | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/wizard/WizardOptions.qml b/wizard/WizardOptions.qml index 65a32582..3406c036 100644 --- a/wizard/WizardOptions.qml +++ b/wizard/WizardOptions.qml @@ -37,9 +37,10 @@ ColumnLayout { signal createWalletClicked() signal recoveryWalletClicked() signal openWalletClicked() + signal createWalletFromDeviceClicked() opacity: 0 visible: false - property int buttonSize: (isMobile) ? 80 * scaleRatio : 190 * scaleRatio + property int buttonSize: (isMobile) ? 80 * scaleRatio : 140 * scaleRatio property int buttonImageSize: (isMobile) ? buttonSize - 10 * scaleRatio : buttonSize - 30 * scaleRatio function onPageClosed() { @@ -227,6 +228,51 @@ ColumnLayout { wrapMode: Text.WordWrap } } + + GridLayout { + Layout.fillHeight: true + Layout.fillWidth: true + flow: !isMobile ? GridLayout.TopToBottom : GridLayout.LeftToRight + rowSpacing: 20 * scaleRatio + columnSpacing: 10 * scaleRatio + + Rectangle { + Layout.preferredHeight: page.buttonSize + Layout.preferredWidth: page.buttonSize + radius: page.buttonSize + color: createWalletFromDeviceArea.containsMouse ? "#DBDBDB" : "#FFFFFF" + + + Image { + width: page.buttonImageSize + height: page.buttonImageSize + fillMode: Image.PreserveAspectFit + horizontalAlignment: Image.AlignRight + verticalAlignment: Image.AlignTop + anchors.centerIn: parent + source: "qrc:///images/createWalletFromDevice.png" + } + + MouseArea { + id: createWalletFromDeviceArea + anchors.fill: parent + hoverEnabled: true + onClicked: { + page.createWalletFromDeviceClicked() + } + } + } + + Text { + Layout.preferredWidth: page.buttonSize + font.family: "Arial" + font.pixelSize: 16 * scaleRatio + color: "#4A4949" + horizontalAlignment: Text.AlignHCenter + wrapMode: Text.WordWrap + text: qsTr("Create a new wallet from hardware device") + translationManager.emptyString + } + } } ColumnLayout { |
