From d326e91008dc246494360421ba3ecdd02333096c Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Wed, 2 May 2018 17:54:48 +0200 Subject: [PATCH] Fix dpi scaling --- plugins/Toolbox/resources/qml/ToolboxDetailTile.qml | 4 ++-- plugins/Toolbox/resources/qml/ToolboxDownloadsGridTile.qml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/Toolbox/resources/qml/ToolboxDetailTile.qml b/plugins/Toolbox/resources/qml/ToolboxDetailTile.qml index 82b973609f..3888b314e0 100644 --- a/plugins/Toolbox/resources/qml/ToolboxDetailTile.qml +++ b/plugins/Toolbox/resources/qml/ToolboxDetailTile.qml @@ -79,8 +79,8 @@ Item { background: Rectangle { - implicitWidth: 96 - implicitHeight: 30 + implicitWidth: 96 * screenScaleFactor + implicitHeight: 30 * screenScaleFactor color: { if (installed) diff --git a/plugins/Toolbox/resources/qml/ToolboxDownloadsGridTile.qml b/plugins/Toolbox/resources/qml/ToolboxDownloadsGridTile.qml index 9e1a7c5a86..b1586e5c52 100644 --- a/plugins/Toolbox/resources/qml/ToolboxDownloadsGridTile.qml +++ b/plugins/Toolbox/resources/qml/ToolboxDownloadsGridTile.qml @@ -34,8 +34,8 @@ Item Image { anchors.centerIn: parent - width: UM.Theme.getSize("toolbox_thumbnail_small").width - 26 - height: UM.Theme.getSize("toolbox_thumbnail_small").height - 26 + width: UM.Theme.getSize("toolbox_thumbnail_small").width - UM.Theme.getSize("default_margin").width + height: UM.Theme.getSize("toolbox_thumbnail_small").height - UM.Theme.getSize("default_margin").width fillMode: Image.PreserveAspectFit source: model.icon_url || "../images/logobot.svg" mipmap: true