diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2018-09-12 18:18:36 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2018-09-12 18:18:36 -0500 |
| commit | 3fd37b96a0acbbf54db62f8d84b392ae3e7b85f9 (patch) | |
| tree | 68f7eb2427287fd90d7054ab65c73a290dfaf3a0 /wizard/WizardOptions.qml | |
| parent | c46b5c82cd4bb10756fd3fc47cba491614160099 (diff) | |
| parent | 9bb6a25f311bccff3d089ae0b0a4156b16d6e109 (diff) | |
| download | monzero-gui-3fd37b96a0acbbf54db62f8d84b392ae3e7b85f9.tar.gz monzero-gui-3fd37b96a0acbbf54db62f8d84b392ae3e7b85f9.tar.xz monzero-gui-3fd37b96a0acbbf54db62f8d84b392ae3e7b85f9.zip | |
Merge pull request #1446
9bb6a25 Add support for creating hardware wallet (stoffu)
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 { |
