From c95de3e37943252f972267cea98f7995dcee0839 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 5 Oct 2021 14:30:42 +0200 Subject: [PATCH] Add main layout for printer list page The actual printer list is not implemented yet and some of these elements may need to be swapped out if there are no printers available. But this is the basis of it. Contributes to issue CURA-8609. --- .../Materials/MaterialsSyncDialog.qml | 33 ++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml index b4162b63e9..caa693c685 100644 --- a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml +++ b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml @@ -189,7 +189,38 @@ Window color: UM.Theme.getColor("text") Layout.preferredHeight: height } - //TODO: Add contents. + Rectangle + { + color: "pink" + width: parent.width + Layout.preferredWidth: width + Layout.fillHeight: true + //TODO: Add printer list. + } + Cura.TertiaryButton + { + text: catalog.i18nc("@button", "Troubleshooting") + iconSource: UM.Theme.getIcon("LinkExternal") + Layout.preferredHeight: height + } + Item + { + width: parent.width + height: childrenRect.height + Layout.preferredWidth: width + Layout.preferredHeight: height + Cura.SecondaryButton + { + anchors.left: parent.left + text: catalog.i18nc("@button", "Sync materials with USB") + onClicked: swipeView.currentIndex = swipeView.count - 1 //Go to the last page, which is USB. + } + Cura.PrimaryButton + { + anchors.right: parent.right + text: catalog.i18nc("@button", "Sync") + } + } } } }