From ffd1a4d8125422ac3dcb83f70fd79726195c9675 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 29 Nov 2021 18:46:56 +0100 Subject: [PATCH] Add button to visit plug-in website There are a lot of buttons leading to websites now: An arrow leading to the author website. An author name leading to the author website. A 'read more' label leading to the plug-in website and this new button leading to the plug-in website. Maybe we should raise this with the designer. Contributes to issue CURA-8565. --- plugins/Marketplace/resources/qml/PackageCard.qml | 10 ++++++++++ resources/themes/cura-light/icons/default/Globe.svg | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 resources/themes/cura-light/icons/default/Globe.svg diff --git a/plugins/Marketplace/resources/qml/PackageCard.qml b/plugins/Marketplace/resources/qml/PackageCard.qml index e435699717..ada49c5f53 100644 --- a/plugins/Marketplace/resources/qml/PackageCard.qml +++ b/plugins/Marketplace/resources/qml/PackageCard.qml @@ -406,6 +406,16 @@ Rectangle color: UM.Theme.getColor("text") wrapMode: Text.Wrap } + + Cura.SecondaryButton + { + anchors.horizontalCenter: parent.horizontalCenter + + text: catalog.i18nc("@button", "Visit plug-in website") + iconSource: UM.Theme.getIcon("Globe") + outlineColor: "transparent" + onClicked: Qt.openUrlExternally(packageData.packageInfoUrl) + } } } diff --git a/resources/themes/cura-light/icons/default/Globe.svg b/resources/themes/cura-light/icons/default/Globe.svg new file mode 100644 index 0000000000..4d955e9615 --- /dev/null +++ b/resources/themes/cura-light/icons/default/Globe.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file