From 2ecdd799c6a48496636c93bd908729605db151a8 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 16 Apr 2021 16:13:52 +0200 Subject: [PATCH] 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. --- resources/qml/WelcomePages/WhatsNewContent.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/qml/WelcomePages/WhatsNewContent.qml b/resources/qml/WelcomePages/WhatsNewContent.qml index 7b38c6f85a..e94a0b4744 100644 --- a/resources/qml/WelcomePages/WhatsNewContent.qml +++ b/resources/qml/WelcomePages/WhatsNewContent.qml @@ -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) }