diff options
| author | Sander Ferdinand <sa.ferdinand@gmail.com> | 2018-03-31 14:57:00 +0200 |
|---|---|---|
| committer | Sander Ferdinand <sa.ferdinand@gmail.com> | 2018-03-31 21:34:04 +0200 |
| commit | afd624d0c0ef6f5c96d8077fae47596d3f817ff7 (patch) | |
| tree | 0a0392a1447f4ac868eec22fa9372847d16e7a0f | |
| parent | 47dc499413824290e1bf1a3aefedc21f028933da (diff) | |
| download | monzero-gui-afd624d0c0ef6f5c96d8077fae47596d3f817ff7.tar.gz monzero-gui-afd624d0c0ef6f5c96d8077fae47596d3f817ff7.tar.xz monzero-gui-afd624d0c0ef6f5c96d8077fae47596d3f817ff7.zip | |
Key reuse warning
| -rw-r--r-- | pages/Keys.qml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pages/Keys.qml b/pages/Keys.qml index 37ea3060..1b3aaeac 100644 --- a/pages/Keys.qml +++ b/pages/Keys.qml @@ -58,6 +58,52 @@ Rectangle { spacing: 30 * scaleRatio Layout.fillWidth: true + RowLayout{ + // TODO: Move the warning box to its own component, so it can be used in multiple places + visible: warningText.text !== "" + + Rectangle { + id: statusRect + Layout.preferredHeight: warningText.height + 26 + Layout.fillWidth: true + + radius: 2 + border.color: Qt.rgba(255, 255, 255, 0.25) + border.width: 1 + color: "transparent" + + GridLayout{ + Layout.fillWidth: true + Layout.preferredHeight: warningText.height + 40 + + Image { + Layout.alignment: Qt.AlignVCenter + Layout.preferredHeight: 33 + Layout.preferredWidth: 33 + Layout.leftMargin: 10 + Layout.topMargin: 10 + source: "../images/warning.png" + } + + Text { + id: warningText + Layout.topMargin: 12 * scaleRatio + Layout.preferredWidth: statusRect.width - 80 + Layout.leftMargin: 6 + text: qsTr("WARNING: Do not reuse your Monero keys on another fork, UNLESS this fork has key reuse mitigations built in. Doing so will harm your privacy." + translationManager.emptyString) + wrapMode: Text.Wrap + font.family: Style.fontRegular.name + font.pixelSize: 15 * scaleRatio + color: Style.defaultFontColor + textFormat: Text.RichText + onLinkActivated: { + appWindow.startDaemon(appWindow.persistentSettings.daemonFlags); + } + } + } + } + } + //! Manage wallet ColumnLayout { Layout.fillWidth: true |
