status-desktop/ui/app/mainui/SplashScreen.qml

36 lines
780 B
QML
Raw Normal View History

import QtQuick 2.12
import utils 1.0
// import Qt.labs.lottieqt 1.0
Item {
id: root
anchors.fill: parent
visible: (opacity > 0.0001)
Behavior on opacity { NumberAnimation { duration: 250 }}
Timer {
running: true
interval: 2000
onTriggered: {
root.opacity = 0.0;
}
}
AnimatedImage {
id: splashLogo
anchors.centerIn: parent
scale: 0.5
source: Style.gif("status_splash")
}
// NOTE: keep it if we will decide to switch on lottie
// LottieAnimation {
// anchors.centerIn: parent
// autoPlay: true
// loops: LottieAnimation.Infinite
// quality: LottieAnimation.HighQuality
// source: Style.lottie("status_splash")
// }
}