diff --git a/plugins/Toolbox/resources/qml/components/ToolboxDownloadsGridTile.qml b/plugins/Toolbox/resources/qml/components/ToolboxDownloadsGridTile.qml index 51afddb6f3..49c8c4573e 100644 --- a/plugins/Toolbox/resources/qml/components/ToolboxDownloadsGridTile.qml +++ b/plugins/Toolbox/resources/qml/components/ToolboxDownloadsGridTile.qml @@ -66,6 +66,8 @@ Item anchors.centerIn: parent width: UM.Theme.getSize("toolbox_thumbnail_small").width - UM.Theme.getSize("wide_margin").width height: UM.Theme.getSize("toolbox_thumbnail_small").height - UM.Theme.getSize("wide_margin").width + sourceSize.width: width + sourceSize.height: height fillMode: Image.PreserveAspectFit source: model.icon_url || "../../images/placeholder.svg" mipmap: true diff --git a/plugins/Toolbox/resources/qml/components/ToolboxDownloadsShowcaseTile.qml b/plugins/Toolbox/resources/qml/components/ToolboxDownloadsShowcaseTile.qml index 4dae6ac168..1ee38b02e5 100644 --- a/plugins/Toolbox/resources/qml/components/ToolboxDownloadsShowcaseTile.qml +++ b/plugins/Toolbox/resources/qml/components/ToolboxDownloadsShowcaseTile.qml @@ -22,6 +22,8 @@ Rectangle id: thumbnail height: UM.Theme.getSize("toolbox_thumbnail_large").height - 4 * UM.Theme.getSize("default_margin").height width: UM.Theme.getSize("toolbox_thumbnail_large").height - 4 * UM.Theme.getSize("default_margin").height + sourceSize.height: height + sourceSize.width: width fillMode: Image.PreserveAspectFit source: model.icon_url || "../../images/placeholder.svg" mipmap: true diff --git a/plugins/Toolbox/resources/qml/dialogs/CompatibilityDialog.qml b/plugins/Toolbox/resources/qml/dialogs/CompatibilityDialog.qml index 35144d4630..b33036847b 100644 --- a/plugins/Toolbox/resources/qml/dialogs/CompatibilityDialog.qml +++ b/plugins/Toolbox/resources/qml/dialogs/CompatibilityDialog.qml @@ -71,6 +71,8 @@ UM.Dialog{ source: model.icon_url || "../../images/placeholder.svg" height: lineHeight width: height + sourceSize.height: height + sourceSize.width: width mipmap: true fillMode: Image.PreserveAspectFit } @@ -114,6 +116,8 @@ UM.Dialog{ source: model.icon_url || "../../images/placeholder.svg" height: lineHeight width: height + sourceSize.height: height + sourceSize.width: width mipmap: true fillMode: Image.PreserveAspectFit } diff --git a/plugins/Toolbox/resources/qml/dialogs/ToolboxLicenseDialog.qml b/plugins/Toolbox/resources/qml/dialogs/ToolboxLicenseDialog.qml index 17ece52292..6e6df2ee67 100644 --- a/plugins/Toolbox/resources/qml/dialogs/ToolboxLicenseDialog.qml +++ b/plugins/Toolbox/resources/qml/dialogs/ToolboxLicenseDialog.qml @@ -53,6 +53,8 @@ UM.Dialog id: icon width: 30 * screenScaleFactor height: width + sourceSize.width: width + sourceSize.height: height fillMode: Image.PreserveAspectFit source: licenseModel.iconUrl || "../../images/placeholder.svg" mipmap: true diff --git a/plugins/Toolbox/resources/qml/pages/ToolboxDetailPage.qml b/plugins/Toolbox/resources/qml/pages/ToolboxDetailPage.qml index 3917aebb41..3c28763862 100644 --- a/plugins/Toolbox/resources/qml/pages/ToolboxDetailPage.qml +++ b/plugins/Toolbox/resources/qml/pages/ToolboxDetailPage.qml @@ -48,6 +48,10 @@ Item fillMode: Image.PreserveAspectFit source: details === null ? "" : (details.icon_url || "../../images/placeholder.svg") mipmap: true + height: UM.Theme.getSize("toolbox_thumbnail_large").height - 4 * UM.Theme.getSize("default_margin").height + width: UM.Theme.getSize("toolbox_thumbnail_large").height - 4 * UM.Theme.getSize("default_margin").height + sourceSize.height: height + sourceSize.width: width } }