mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 00:05:59 +08:00
Set source size on image
CURA-11263
This commit is contained in:
parent
293f2ebda9
commit
0fd8284a5c
@ -38,6 +38,8 @@ UM.Dialog
|
|||||||
width: Math.floor(base.width * 0.85)
|
width: Math.floor(base.width * 0.85)
|
||||||
height: Math.floor(width * UM.Theme.getSize("logo").height / UM.Theme.getSize("logo").width)
|
height: Math.floor(width * UM.Theme.getSize("logo").height / UM.Theme.getSize("logo").width)
|
||||||
source: UM.Theme.getImage("logo")
|
source: UM.Theme.getImage("logo")
|
||||||
|
sourceSize.width: width
|
||||||
|
sourceSize.height: height
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user