feat(@desktop): Replace image on animation on splash screen

Close #4984
This commit is contained in:
mishkarogachev 2022-05-12 13:28:46 +03:00 committed by Iuri Matias
parent ef36853690
commit 244dda1b7d
4 changed files with 20 additions and 20 deletions

View File

@ -17,24 +17,19 @@ Item {
}
}
Image {
width: 150
height: 150
fillMode: Image.PreserveAspectFit
AnimatedImage {
id: splashLogo
anchors.centerIn: parent
source: Style.svg("status-logo-circle")
scale: 0.5
source: Style.gif("status_splash")
}
// NOTE: keep it if we will decide to switch on lottie
// LottieAnimation {
// anchors.centerIn: parent
// autoPlay: false
// autoPlay: true
// loops: LottieAnimation.Infinite
// quality: LottieAnimation.MediumQuality
// quality: LottieAnimation.HighQuality
// source: Style.lottie("status_splash")
// onStatusChanged: {
// if (status === LottieAnimation.Ready) {
// start();
// }
// }
// }
}

View File

@ -23,6 +23,8 @@ var qrcExtensions = map[string]bool{
".webm": true,
".qm": true,
".txt": true,
".gif": true,
".json": true,
}
func main() {

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 KiB

View File

@ -52,4 +52,7 @@ QtObject {
function lottie(name) {
return assetPath + "lottie/" + name + ".json";
}
function gif(name) {
return assetPath + "gif/" + name + ".gif";
}
}