From 088462c4f9dc19b63a6d4725e5b7755a6ad4c976 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 26 Jun 2020 04:06:01 -0400 Subject: [PATCH] Better icons and details text for password popups --- src/gui/Dialogs/ExportKeys.qml | 1 + src/gui/Dialogs/ImportKeys.qml | 1 + src/gui/Popups/PasswordPopup.qml | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/Dialogs/ExportKeys.qml b/src/gui/Dialogs/ExportKeys.qml index 784825ff..a8fbeb99 100644 --- a/src/gui/Dialogs/ExportKeys.qml +++ b/src/gui/Dialogs/ExportKeys.qml @@ -39,6 +39,7 @@ HFileDialogOpener { id: exportPasswordPopup summary.text: qsTr("Passphrase to protect this file:") validateButton.text: qsTr("Export") + validateButton.icon.name: "export-keys" onAcceptedPasswordChanged: exportKeys(file, acceptedPassword) diff --git a/src/gui/Dialogs/ImportKeys.qml b/src/gui/Dialogs/ImportKeys.qml index 42c2a46d..0d008866 100644 --- a/src/gui/Dialogs/ImportKeys.qml +++ b/src/gui/Dialogs/ImportKeys.qml @@ -26,6 +26,7 @@ HFileDialogOpener { qsTr("This might take a while...") : qsTr("Passphrase used to protect this file:") validateButton.text: qsTr("Import") + validateButton.icon.name: "import-keys" onClosed: if (importFuture) importFuture.cancel() diff --git a/src/gui/Popups/PasswordPopup.qml b/src/gui/Popups/PasswordPopup.qml index a4237a20..d896a910 100644 --- a/src/gui/Popups/PasswordPopup.qml +++ b/src/gui/Popups/PasswordPopup.qml @@ -16,6 +16,7 @@ HFlickableColumnPopup { property bool okClicked: false readonly property alias summary: summary + readonly property alias details: details readonly property alias validateButton: validateButton signal cancelled() @@ -53,7 +54,7 @@ HFlickableColumnPopup { page.footer: ButtonLayout { ApplyButton { id: validateButton - text: qsTr("Validate") + text: qsTr("Confirm") enabled: Boolean(passwordField.text) onClicked: validate() } @@ -79,6 +80,8 @@ HFlickableColumnPopup { SummaryLabel { id: summary } + DetailsLabel { id: details } + HRowLayout { spacing: theme.spacing