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
summary.text: qsTr("Passphrase to protect this file:")
validateButton.text: qsTr("Export")
validateButton.icon.name: "export-keys"
onAcceptedPasswordChanged: exportKeys(file, acceptedPassword)

View File

@ -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()

View File

@ -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