Apply screenScaleFactor to image size

Contributes to CURA-8689
This commit is contained in:
jelle spijker 2022-11-02 14:00:35 +01:00 committed by jspijker
parent 1ebc0b487e
commit 1dfac6bb71
2 changed files with 5 additions and 5 deletions

View File

@ -42,8 +42,8 @@ Control
Image Image
{ {
source: UM.Theme.getImage("add_printer") source: UM.Theme.getImage("add_printer")
Layout.preferredWidth: 200 Layout.preferredWidth: 200 * screenScaleFactor
Layout.preferredHeight: 200 Layout.preferredHeight: 200 * screenScaleFactor
} }
ColumnLayout ColumnLayout

View File

@ -67,8 +67,8 @@ Control
{ {
id: image id: image
source: imageSource source: imageSource
width: 180 width: 180 * screenScaleFactor
height: 180 height: 180 * screenScaleFactor
sourceSize.width: width sourceSize.width: width
sourceSize.height: height sourceSize.height: height
} }