Support animated images in what's new pages

Let's hope they don't go too crazy with the file size of these. But animated GIFs are now supported here.

Fixes CURA-8145.
This commit is contained in:
Ghostkeeper 2021-04-16 16:13:52 +02:00
parent df5c52d1c6
commit 2ecdd799c6
No known key found for this signature in database
GPG Key ID: D2A8871EE34EC59A

View File

@ -71,7 +71,7 @@ Item
width: whatsNewViewport.width
height: whatsNewViewport.height
Image
AnimatedImage
{
id: subpageImage
@ -84,9 +84,9 @@ Item
right: parent.right
rightMargin: UM.Theme.getSize("thick_margin").width
}
width: sourceSize.width
sourceSize.width: Math.round(parent.width - (UM.Theme.getSize("thick_margin").height * 2))
width: Math.round(parent.width - (UM.Theme.getSize("thick_margin").height * 2))
fillMode: Image.PreserveAspectFit
onStatusChanged: playing = (status == AnimatedImage.Ready)
source: manager.getSubpageImageSource(index)
}