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 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 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 @@ -50,15 +50,6 @@ ElDialog { onClicked: doAccept() } - FlatButton { - Layout.fillWidth: true - Layout.preferredWidth: 1 - textUnderIcon: false - text: qsTr('Yes') - icon.source: Qt.resolvedUrl('../../icons/confirmed.png') - visible: yesno - onClicked: doAccept() - } FlatButton { Layout.fillWidth: true Layout.preferredWidth: 1 @@ -68,6 +59,15 @@ ElDialog { visible: yesno onClicked: doReject() } + FlatButton { + Layout.fillWidth: true + Layout.preferredWidth: 1 + textUnderIcon: false + text: qsTr('Yes') + icon.source: Qt.resolvedUrl('../../icons/confirmed.png') + visible: yesno + onClicked: doAccept() + } } } }