From cfdb01caaf088ca3a48b07e8f6bb78c78f58fec3 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 30 Nov 2021 18:13:06 +0100 Subject: [PATCH] Show list of compatible support materials Contributes to issue CURA-8585. --- .../Marketplace/resources/qml/PackageCard.qml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/plugins/Marketplace/resources/qml/PackageCard.qml b/plugins/Marketplace/resources/qml/PackageCard.qml index 25ba92886e..98059d9938 100644 --- a/plugins/Marketplace/resources/qml/PackageCard.qml +++ b/plugins/Marketplace/resources/qml/PackageCard.qml @@ -449,6 +449,40 @@ Rectangle } } + Column + { + id: compatibleSupportMaterialColumn + width: parent.width - parent.padding * 2 + + visible: packageData.packageType === "material" + spacing: 0 + + Label + { + width: parent.width + + text: catalog.i18nc("@header", "Compatible support materials") + font: UM.Theme.getFont("medium_bold") + color: UM.THeme.getColor("text") + elide: Text.ElideRight + } + + Repeater + { + model: packageData.compatibleSupportMaterials + + Label + { + width: compatibleSupportMaterialColumn.width + + text: modelData + font: UM.Theme.getFont("medium") + color: UM.Theme.getColor("text") + elide: Text.ElideRight + } + } + } + Cura.SecondaryButton { anchors.horizontalCenter: parent.horizontalCenter