status-desktop/ui/app/mainui/SplashScreen.qml
Alexandra Betouni c2977e468f feat(onboarding): Added SplashScreen
- Added SplashScreen as initial screen before
onboard as per new designs.
- Also moved all onboarding related code from
main to onboarding section and switched to
import this and all other sections as
qml modules, exposing this way only
necessary files.
- Cleaned up unecessary qmldir files and
imports.

Closes #4954
2022-03-08 14:02:24 -05:00

41 lines
864 B
QML

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;
}
}
Image {
width: 150
height: 150
fillMode: Image.PreserveAspectFit
anchors.centerIn: parent
source: Style.svg("status-logo-circle")
}
LottieAnimation {
anchors.centerIn: parent
autoPlay: false
loops: LottieAnimation.Infinite
quality: LottieAnimation.MediumQuality
source: Style.lottie("status_splash")
onStatusChanged: {
if (status === LottieAnimation.Ready) {
start();
}
}
}
}