aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-12-29 15:03:27 -0600
committerluigi1111 <luigi1111w@gmail.com>2018-12-29 15:03:27 -0600
commit659b89936f19c5cef01247007f68b2985ce2e1c9 (patch)
tree633892505edd175a13963dea9abd336c10ec5140
parentf2fad10483081d6415e6dd108b8bcdffc9358d55 (diff)
parenta8a518d728e921b1598eed08dfd5ef33e534a431 (diff)
downloadmonzero-gui-659b89936f19c5cef01247007f68b2985ce2e1c9.tar.gz
monzero-gui-659b89936f19c5cef01247007f68b2985ce2e1c9.tar.xz
monzero-gui-659b89936f19c5cef01247007f68b2985ce2e1c9.zip
Merge pull request #1821
a8a518d Keys: add clipboard warning (mmbyday)
-rw-r--r--pages/Keys.qml41
1 files changed, 40 insertions, 1 deletions
diff --git a/pages/Keys.qml b/pages/Keys.qml
index b2ac4b1f..0694c83b 100644
--- a/pages/Keys.qml
+++ b/pages/Keys.qml
@@ -115,14 +115,53 @@ Rectangle {
Layout.topMargin: 10 * scaleRatio
text: qsTr("Mnemonic seed") + translationManager.emptyString
}
+
Rectangle {
Layout.fillWidth: true
- height: 2
+ height: 2 * scaleRatio
color: Style.dividerColor
opacity: Style.dividerOpacity
Layout.bottomMargin: 10 * scaleRatio
}
+ Rectangle {
+ id: warningTextRec
+ Layout.preferredHeight: warningTextSeed.height + 26 * scaleRatio
+ Layout.fillWidth: true
+
+ radius: 2 * scaleRatio
+ border.color: Qt.rgba(255, 255, 255, 0.25)
+ border.width: 1 * scaleRatio
+ color: "transparent"
+
+ GridLayout{
+ Layout.fillWidth: true
+ Layout.preferredHeight: warningTextSeed.height + 40 * scaleRatio
+
+ Image {
+ Layout.alignment: Qt.AlignVCenter
+ Layout.preferredHeight: 33 * scaleRatio
+ Layout.preferredWidth: 33 * scaleRatio
+ Layout.leftMargin: 10 * scaleRatio
+ Layout.topMargin: 10 * scaleRatio
+ source: "../images/warning.png"
+ }
+
+ Text {
+ id: warningTextSeed
+ Layout.topMargin: 12 * scaleRatio
+ Layout.preferredWidth: statusRect.width - 80 * scaleRatio
+ Layout.leftMargin: 6 * scaleRatio
+ 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
+ wrapMode: Text.Wrap
+ font.family: Style.fontRegular.name
+ font.pixelSize: 15 * scaleRatio
+ color: Style.defaultFontColor
+ textFormat: Text.RichText
+ }
+ }
+ }
+
LineEditMulti{
id: seedText
spacing: 0