Better icons and details text for password popups

This commit is contained in:
miruka 2020-06-26 04:06:01 -04:00
parent d40852a11c
commit 088462c4f9
3 changed files with 6 additions and 1 deletions

View File

@ -39,6 +39,7 @@ HFileDialogOpener {
id: exportPasswordPopup id: exportPasswordPopup
summary.text: qsTr("Passphrase to protect this file:") summary.text: qsTr("Passphrase to protect this file:")
validateButton.text: qsTr("Export") validateButton.text: qsTr("Export")
validateButton.icon.name: "export-keys"
onAcceptedPasswordChanged: exportKeys(file, acceptedPassword) onAcceptedPasswordChanged: exportKeys(file, acceptedPassword)

View File

@ -26,6 +26,7 @@ HFileDialogOpener {
qsTr("This might take a while...") : qsTr("This might take a while...") :
qsTr("Passphrase used to protect this file:") qsTr("Passphrase used to protect this file:")
validateButton.text: qsTr("Import") validateButton.text: qsTr("Import")
validateButton.icon.name: "import-keys"
onClosed: if (importFuture) importFuture.cancel() onClosed: if (importFuture) importFuture.cancel()

View File

@ -16,6 +16,7 @@ HFlickableColumnPopup {
property bool okClicked: false property bool okClicked: false
readonly property alias summary: summary readonly property alias summary: summary
readonly property alias details: details
readonly property alias validateButton: validateButton readonly property alias validateButton: validateButton
signal cancelled() signal cancelled()
@ -53,7 +54,7 @@ HFlickableColumnPopup {
page.footer: ButtonLayout { page.footer: ButtonLayout {
ApplyButton { ApplyButton {
id: validateButton id: validateButton
text: qsTr("Validate") text: qsTr("Confirm")
enabled: Boolean(passwordField.text) enabled: Boolean(passwordField.text)
onClicked: validate() onClicked: validate()
} }
@ -79,6 +80,8 @@ HFlickableColumnPopup {
SummaryLabel { id: summary } SummaryLabel { id: summary }
DetailsLabel { id: details }
HRowLayout { HRowLayout {
spacing: theme.spacing spacing: theme.spacing