From 39f540ff529770a681de5512978b74e40e9af88b Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 30 Nov 2021 18:25:24 +0100 Subject: [PATCH] Add information on compatibilities with air manager Similar to the Material Station. Contributes to issue CURA-8585. --- .../Marketplace/resources/qml/PackageCard.qml | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/plugins/Marketplace/resources/qml/PackageCard.qml b/plugins/Marketplace/resources/qml/PackageCard.qml index 36c7338232..e978f41396 100644 --- a/plugins/Marketplace/resources/qml/PackageCard.qml +++ b/plugins/Marketplace/resources/qml/PackageCard.qml @@ -494,7 +494,7 @@ Rectangle { width: parent.width - text: catalog.i18nc("@header", "Compatible with material station") + text: catalog.i18nc("@header", "Compatible with Material Station") font: UM.Theme.getFont("medium_bold") color: UM.Theme.getColor("text") elide: Text.ElideRight @@ -511,6 +511,34 @@ Rectangle } } + Column + { + width: parent.width - parent.padding * 2 + + visible: packageData.packageType === "material" + spacing: 0 + + Label + { + width: parent.width + + text: catalog.i18nc("@header", "Optimized for Air Manager") + font: UM.Theme.getFont("medium_bold") + color: UM.Theme.getColor("text") + elide: Text.ElideRight + } + + Label + { + width: parent.width + + text: packageData.isCompatibleAirManager ? catalog.i18nc("@info", "Yes") : catalog.i18nc("@info", "No") + font: UM.Theme.getFont("medium") + color: UM.Theme.getColor("text") + elide: Text.ElideRight + } + } + Cura.SecondaryButton { anchors.horizontalCenter: parent.horizontalCenter