From 38b7f1761599da317b2336a744b2e9e2ca578218 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 28 Oct 2021 17:49:32 +0200 Subject: [PATCH] Add basic tab bar to select pages Contributes to issue CURA-8557. --- .../Marketplace/resources/qml/Marketplace.qml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/plugins/Marketplace/resources/qml/Marketplace.qml b/plugins/Marketplace/resources/qml/Marketplace.qml index 2213b3d456..13780c2aa8 100644 --- a/plugins/Marketplace/resources/qml/Marketplace.qml +++ b/plugins/Marketplace/resources/qml/Marketplace.qml @@ -66,6 +66,30 @@ Window text: catalog.i18nc("@header", "Install Plugins") } } + + Item + { + Layout.preferredWidth: parent.width + Layout.preferredHeight: childrenRect.height + + TabBar //Page selection. + { + anchors.right: parent.right + anchors.rightMargin: UM.Theme.getSize("default_margin").width + + TabButton + { + width: implicitWidth + text: catalog.i18nc("@button", "Plug-ins") + } + TabButton + { + width: implicitWidth + text: catalog.i18nc("@button", "Materials") + } + } + } + Rectangle //Page contents. { Layout.preferredWidth: parent.width