From 2ce31d0e71390e63986b0692d90132a3ecb5a644 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 9 Nov 2021 15:51:34 +0100 Subject: [PATCH] Add placeholder image The 'CicleOutline' image doesn't exist. There is no design for this image so I'm adding the placeholder that the previous Marketplace had. Contributes to issue CURA-8561. --- plugins/Marketplace/resources/images/placeholder.svg | 3 +++ plugins/Marketplace/resources/qml/PackageCard.qml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 plugins/Marketplace/resources/images/placeholder.svg diff --git a/plugins/Marketplace/resources/images/placeholder.svg b/plugins/Marketplace/resources/images/placeholder.svg new file mode 100644 index 0000000000..cc674a4b38 --- /dev/null +++ b/plugins/Marketplace/resources/images/placeholder.svg @@ -0,0 +1,3 @@ + + + diff --git a/plugins/Marketplace/resources/qml/PackageCard.qml b/plugins/Marketplace/resources/qml/PackageCard.qml index 88eeb50356..52e11ebff9 100644 --- a/plugins/Marketplace/resources/qml/PackageCard.qml +++ b/plugins/Marketplace/resources/qml/PackageCard.qml @@ -32,7 +32,7 @@ Rectangle Layout.preferredWidth: UM.Theme.getSize("card_icon").width Layout.preferredHeight: UM.Theme.getSize("card_icon").height - source: packageData.iconUrl != "" ? packageData.iconUrl : UM.Theme.getImage("CicleOutline") + source: packageData.iconUrl != "" ? packageData.iconUrl : "../images/placeholder.svg" } Column