From cef5c5da2a6051e578f90c0ceb936117f2c6b62b Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 5 Oct 2021 12:05:26 +0200 Subject: [PATCH] Add link to help and button to continue These two are aligned vertically. Contributes to issue CURA-8609. --- .../Materials/MaterialsSyncDialog.qml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml index be95efa009..2a8828ca82 100644 --- a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml +++ b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml @@ -4,6 +4,7 @@ import QtQuick 2.1 import QtQuick.Controls 2.1 import QtQuick.Window 2.1 +import Cura 1.1 as Cura import UM 1.2 as UM Window @@ -54,6 +55,33 @@ Window sourceSize.width: width } } + + Cura.PrimaryButton + { + id: startButton + anchors + { + right: parent.right + rightMargin: UM.Theme.getSize("default_margin").width + bottom: parent.bottom + bottomMargin: UM.Theme.getSize("default_margin").height + } + text: catalog.i18nc("@button", "Start") + onClicked: swipeView.currentIndex += 1 + } + Cura.TertiaryButton + { + anchors + { + left: parent.left + leftMargin: UM.Theme.getSize("default_margin").width + verticalCenter: startButton.verticalCenter + } + text: catalog.i18nc("@button", "Why do I need to sync material profiles?") + iconSource: UM.Theme.getIcon("LinkExternal") + isIconOnRightSide: true + onClicked: Qt.openUrlExternally("https://ultimaker.com") + } } } } \ No newline at end of file