From e0508b0f4f1fd4d0b705f70097e717cb9d03248a Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 9 Nov 2021 15:08:33 +0100 Subject: [PATCH] Correct size and margins for package icon Contributes to issue CURA-8561. --- plugins/Marketplace/resources/qml/PackageCard.qml | 6 +++--- resources/themes/cura-light/theme.json | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/Marketplace/resources/qml/PackageCard.qml b/plugins/Marketplace/resources/qml/PackageCard.qml index c200910077..9925801abc 100644 --- a/plugins/Marketplace/resources/qml/PackageCard.qml +++ b/plugins/Marketplace/resources/qml/PackageCard.qml @@ -24,10 +24,10 @@ Rectangle { top: parent.top left: parent.left - margins: UM.Theme.getSize("thin_margin").width + margins: UM.Theme.getSize("default_margin").width } - width: UM.Theme.getSize("section_icon").width * 3 - height: UM.Theme.getSize("section_icon").height * 3 + width: UM.Theme.getSize("card_icon").width + height: UM.Theme.getSize("card_icon").height source: packageData.iconUrl != "" ? packageData.iconUrl : UM.Theme.getImage("CicleOutline") } diff --git a/resources/themes/cura-light/theme.json b/resources/themes/cura-light/theme.json index abd4844f47..07ed1a899d 100644 --- a/resources/themes/cura-light/theme.json +++ b/resources/themes/cura-light/theme.json @@ -553,7 +553,9 @@ "standard_list_lineheight": [1.5, 1.5], "standard_arrow": [1.0, 1.0], + "card": [25.0, 8.75], + "card_icon": [6.0, 6.0], "button": [4, 4], "button_icon": [2.5, 2.5],