From 8e9491e33015c816d7502e7fd1fab5ff466357f3 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 13 Apr 2023 10:49:41 +0200 Subject: [PATCH] messageDialog: move yes to the right, no to the left. According to the Google Android guidelines, "The dismissive action of a dialog is always on the left." source: https://uxplanet.org/primary-secondary-action-buttons-c16df9b36150 --- electrum/gui/qml/components/MessageDialog.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/electrum/gui/qml/components/MessageDialog.qml b/electrum/gui/qml/components/MessageDialog.qml index 1256df7e8..285270254 100644 --- a/electrum/gui/qml/components/MessageDialog.qml +++ b/electrum/gui/qml/components/MessageDialog.qml @@ -54,19 +54,19 @@ ElDialog { Layout.fillWidth: true Layout.preferredWidth: 1 textUnderIcon: false - text: qsTr('Yes') - icon.source: Qt.resolvedUrl('../../icons/confirmed.png') + text: qsTr('No') + icon.source: Qt.resolvedUrl('../../icons/closebutton.png') visible: yesno - onClicked: doAccept() + onClicked: doReject() } FlatButton { Layout.fillWidth: true Layout.preferredWidth: 1 textUnderIcon: false - text: qsTr('No') - icon.source: Qt.resolvedUrl('../../icons/closebutton.png') + text: qsTr('Yes') + icon.source: Qt.resolvedUrl('../../icons/confirmed.png') visible: yesno - onClicked: doReject() + onClicked: doAccept() } } }