Set source size on image

CURA-11263
This commit is contained in:
c.lamboo 2023-11-02 16:53:03 +01:00
parent 293f2ebda9
commit 0fd8284a5c

View file

@ -38,6 +38,8 @@ UM.Dialog
width: Math.floor(base.width * 0.85)
height: Math.floor(width * UM.Theme.getSize("logo").height / UM.Theme.getSize("logo").width)
source: UM.Theme.getImage("logo")
sourceSize.width: width
sourceSize.height: height
fillMode: Image.PreserveAspectFit
anchors.centerIn: parent