From 461fcf24437481ab4c76f9ce5e54a8747acde317 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Mon, 6 Mar 2023 16:02:08 +0100 Subject: [PATCH] qml: wizard use flatbuttons --- electrum/gui/qml/components/wizard/Wizard.qml | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/electrum/gui/qml/components/wizard/Wizard.qml b/electrum/gui/qml/components/wizard/Wizard.qml index d34678c01..77979bea0 100644 --- a/electrum/gui/qml/components/wizard/Wizard.qml +++ b/electrum/gui/qml/components/wizard/Wizard.qml @@ -150,36 +150,42 @@ ElDialog { currentIndex: pages.currentIndex } - RowLayout { - Layout.alignment: Qt.AlignHCenter - Button { + ButtonContainer { + Layout.fillWidth: true + + FlatButton { + Layout.fillWidth: true + Layout.preferredWidth: 1 visible: pages.currentIndex == 0 text: qsTr("Cancel") onClicked: wizard.reject() } - - Button { + FlatButton { + Layout.fillWidth: true + Layout.preferredWidth: 1 visible: pages.currentIndex > 0 text: qsTr('Back') onClicked: pages.prev() } - - Button { + FlatButton { + Layout.fillWidth: true + Layout.preferredWidth: 1 text: qsTr("Next") visible: !pages.lastpage enabled: pages.pagevalid onClicked: pages.next() } - - Button { + FlatButton { id: finishButton + Layout.fillWidth: true + Layout.preferredWidth: 1 text: qsTr("Finish") visible: pages.lastpage enabled: pages.pagevalid onClicked: pages.finish() } - } + } }