From 00286254f91f4bf8054b3d59bf5b888b04b5d0cc Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Mon, 6 Mar 2023 16:47:19 +0100 Subject: [PATCH] qml: wizard button padding, wizardcomponent now a Pane --- electrum/gui/qml/components/wizard/Wizard.qml | 2 ++ .../gui/qml/components/wizard/WizardComponent.qml | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qml/components/wizard/Wizard.qml b/electrum/gui/qml/components/wizard/Wizard.qml index 77979bea0..8db489eca 100644 --- a/electrum/gui/qml/components/wizard/Wizard.qml +++ b/electrum/gui/qml/components/wizard/Wizard.qml @@ -11,6 +11,7 @@ ElDialog { width: parent.width height: parent.height + padding: 0 title: wizardTitle + (pages.currentItem.title ? ' - ' + pages.currentItem.title : '') iconSource: '../../../icons/electrum.png' @@ -103,6 +104,7 @@ ElDialog { id: pages Layout.fillWidth: true Layout.fillHeight: true + interactive: false clip:true diff --git a/electrum/gui/qml/components/wizard/WizardComponent.qml b/electrum/gui/qml/components/wizard/WizardComponent.qml index 3f841f8cb..df633c2f3 100644 --- a/electrum/gui/qml/components/wizard/WizardComponent.qml +++ b/electrum/gui/qml/components/wizard/WizardComponent.qml @@ -1,6 +1,8 @@ import QtQuick 2.0 +import QtQuick.Controls 2.3 +import QtQuick.Controls.Material 2.0 -Item { +Pane { id: root signal next signal prev @@ -10,6 +12,13 @@ Item { property bool last: false property string title: '' + leftPadding: constants.paddingXLarge + rightPadding: constants.paddingXLarge + + background: Rectangle { + color: Material.dialogColor + } + onAccept: { apply() }