mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
Merge pull request #9586 from Ultimaker/CURA-8145_fix_animated_images
Support animated images in what's new pages
This commit is contained in:
commit
ecd70a98b9
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue