mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-09 20:40:27 +00:00
wizard: add copying seed to clipboard warning
This commit is contained in:
parent
48a267f631
commit
c2e27772e4
2 changed files with 23 additions and 15 deletions
|
@ -7,6 +7,7 @@ import "." as MoneroComponents
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
property alias text: content.text
|
property alias text: content.text
|
||||||
|
property alias textColor: content.color
|
||||||
property int fontSize: 15 * scaleRatio
|
property int fontSize: 15 * scaleRatio
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
|
@ -30,7 +30,7 @@ import QtQuick 2.2
|
||||||
import moneroComponents.TranslationManager 1.0
|
import moneroComponents.TranslationManager 1.0
|
||||||
import QtQuick.Dialogs 1.2
|
import QtQuick.Dialogs 1.2
|
||||||
import QtQuick.Layouts 1.2
|
import QtQuick.Layouts 1.2
|
||||||
import "../components"
|
import "../components" as MoneroComponents
|
||||||
import 'utils.js' as Utils
|
import 'utils.js' as Utils
|
||||||
|
|
||||||
// Reusable component for mnaging wallet (account name, path, private key)
|
// Reusable component for mnaging wallet (account name, path, private key)
|
||||||
|
@ -157,7 +157,7 @@ ColumnLayout {
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.bottomMargin: rowSpacing
|
Layout.bottomMargin: rowSpacing
|
||||||
|
|
||||||
Label {
|
MoneroComponents.Label {
|
||||||
Layout.topMargin: 20 * scaleRatio
|
Layout.topMargin: 20 * scaleRatio
|
||||||
fontFamily: "Arial"
|
fontFamily: "Arial"
|
||||||
fontColor: "#555555"
|
fontColor: "#555555"
|
||||||
|
@ -166,7 +166,7 @@ ColumnLayout {
|
||||||
+ translationManager.emptyString
|
+ translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
|
||||||
LineEdit {
|
MoneroComponents.LineEdit {
|
||||||
id: accountName
|
id: accountName
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.maximumWidth: 600 * scaleRatio
|
Layout.maximumWidth: 600 * scaleRatio
|
||||||
|
@ -178,13 +178,20 @@ ColumnLayout {
|
||||||
fontColor: "black"
|
fontColor: "black"
|
||||||
fontBold: false
|
fontBold: false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MoneroComponents.WarningBox {
|
||||||
|
color: "#DBDBDB"
|
||||||
|
textColor: "#4A4646"
|
||||||
|
visible: !recoverFromDevice && !recoverMode
|
||||||
|
text: qsTr("WARNING: Copying your seed to clipboard can expose you to malicious software, which may record your seed and steal your Monero. Please write down your seed manually.") + translationManager.emptyString
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GridLayout{
|
GridLayout{
|
||||||
columns: (isMobile)? 2 : 4
|
columns: (isMobile)? 2 : 4
|
||||||
visible: recoverMode
|
visible: recoverMode
|
||||||
|
|
||||||
StandardButton {
|
MoneroComponents.StandardButton {
|
||||||
id: recoverFromSeedButton
|
id: recoverFromSeedButton
|
||||||
text: qsTr("Restore from seed") + translationManager.emptyString
|
text: qsTr("Restore from seed") + translationManager.emptyString
|
||||||
enabled: recoverFromKeys.visible
|
enabled: recoverFromKeys.visible
|
||||||
|
@ -194,7 +201,7 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StandardButton {
|
MoneroComponents.StandardButton {
|
||||||
id: recoverFromKeysButton
|
id: recoverFromKeysButton
|
||||||
text: qsTr("Restore from keys") + translationManager.emptyString
|
text: qsTr("Restore from keys") + translationManager.emptyString
|
||||||
enabled: recoverFromSeed.visible
|
enabled: recoverFromSeed.visible
|
||||||
|
@ -204,7 +211,7 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StandardButton {
|
MoneroComponents.StandardButton {
|
||||||
id: qrfinderButton
|
id: qrfinderButton
|
||||||
text: qsTr("From QR Code") + translationManager.emptyString
|
text: qsTr("From QR Code") + translationManager.emptyString
|
||||||
visible : appWindow.qrScannerEnabled
|
visible : appWindow.qrScannerEnabled
|
||||||
|
@ -236,7 +243,7 @@ ColumnLayout {
|
||||||
id: recoverFromKeys
|
id: recoverFromKeys
|
||||||
visible: recoverMode && !recoverFromSeedMode
|
visible: recoverMode && !recoverFromSeedMode
|
||||||
columns: 1
|
columns: 1
|
||||||
LineEdit {
|
MoneroComponents.LineEdit {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
id: addressLine
|
id: addressLine
|
||||||
Layout.maximumWidth: 600 * scaleRatio
|
Layout.maximumWidth: 600 * scaleRatio
|
||||||
|
@ -252,7 +259,7 @@ ColumnLayout {
|
||||||
fontColor: "black"
|
fontColor: "black"
|
||||||
fontBold: false
|
fontBold: false
|
||||||
}
|
}
|
||||||
LineEdit {
|
MoneroComponents.LineEdit {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
id: viewKeyLine
|
id: viewKeyLine
|
||||||
Layout.maximumWidth: 600 * scaleRatio
|
Layout.maximumWidth: 600 * scaleRatio
|
||||||
|
@ -269,7 +276,7 @@ ColumnLayout {
|
||||||
fontBold: false
|
fontBold: false
|
||||||
|
|
||||||
}
|
}
|
||||||
LineEdit {
|
MoneroComponents.LineEdit {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.maximumWidth: 600 * scaleRatio
|
Layout.maximumWidth: 600 * scaleRatio
|
||||||
Layout.minimumWidth: 200 * scaleRatio
|
Layout.minimumWidth: 200 * scaleRatio
|
||||||
|
@ -289,7 +296,7 @@ ColumnLayout {
|
||||||
|
|
||||||
// Restore Height
|
// Restore Height
|
||||||
RowLayout {
|
RowLayout {
|
||||||
LineEdit {
|
MoneroComponents.LineEdit {
|
||||||
id: restoreHeightItem
|
id: restoreHeightItem
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.maximumWidth: 600 * scaleRatio
|
Layout.maximumWidth: 600 * scaleRatio
|
||||||
|
@ -312,7 +319,7 @@ ColumnLayout {
|
||||||
// Subaddress lookahead
|
// Subaddress lookahead
|
||||||
RowLayout {
|
RowLayout {
|
||||||
visible: recoverFromDevice
|
visible: recoverFromDevice
|
||||||
LineEdit {
|
MoneroComponents.LineEdit {
|
||||||
id: subaddressLookaheadItem
|
id: subaddressLookaheadItem
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.maximumWidth: 600 * scaleRatio
|
Layout.maximumWidth: 600 * scaleRatio
|
||||||
|
@ -332,7 +339,7 @@ ColumnLayout {
|
||||||
// Device name
|
// Device name
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
visible: recoverFromDevice
|
visible: recoverFromDevice
|
||||||
Label {
|
MoneroComponents.Label {
|
||||||
Layout.topMargin: 20 * scaleRatio
|
Layout.topMargin: 20 * scaleRatio
|
||||||
fontFamily: "Arial"
|
fontFamily: "Arial"
|
||||||
fontColor: "#555555"
|
fontColor: "#555555"
|
||||||
|
@ -344,7 +351,7 @@ ColumnLayout {
|
||||||
ListElement { column1: qsTr("Ledger") ; column2: "Ledger"; }
|
ListElement { column1: qsTr("Ledger") ; column2: "Ledger"; }
|
||||||
// ListElement { column1: qsTr("Trezor") ; column2: "Trezor"; }
|
// ListElement { column1: qsTr("Trezor") ; column2: "Trezor"; }
|
||||||
}
|
}
|
||||||
StandardDropdown {
|
MoneroComponents.StandardDropdown {
|
||||||
id: deviceNameDropdown
|
id: deviceNameDropdown
|
||||||
dataModel: deviceNameModel
|
dataModel: deviceNameModel
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
@ -358,7 +365,7 @@ ColumnLayout {
|
||||||
// Wallet store location
|
// Wallet store location
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
z: deviceNameDropdown.z - 1
|
z: deviceNameDropdown.z - 1
|
||||||
Label {
|
MoneroComponents.Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.topMargin: 20 * scaleRatio
|
Layout.topMargin: 20 * scaleRatio
|
||||||
fontSize: 14
|
fontSize: 14
|
||||||
|
@ -367,7 +374,7 @@ ColumnLayout {
|
||||||
text: qsTr("Your wallet is stored in") + ": " + fileUrlInput.text;
|
text: qsTr("Your wallet is stored in") + ": " + fileUrlInput.text;
|
||||||
}
|
}
|
||||||
|
|
||||||
LineEdit {
|
MoneroComponents.LineEdit {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.maximumWidth: 600 * scaleRatio
|
Layout.maximumWidth: 600 * scaleRatio
|
||||||
Layout.minimumWidth: 200 * scaleRatio
|
Layout.minimumWidth: 200 * scaleRatio
|
||||||
|
|
Loading…
Reference in a new issue