mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-21 11:08:55 +00:00
- use the new illustration image - fixup the image size - respect the correct splash screen duration, based on user settings Fixes #17236
52 lines
1.5 KiB
QML
52 lines
1.5 KiB
QML
import QtQuick 2.15
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import StatusQ.Core 0.1
|
|
import StatusQ.Core.Theme 0.1
|
|
import StatusQ.Controls 0.1
|
|
|
|
import utils 1.0
|
|
|
|
Item {
|
|
property alias text: loadingText.text
|
|
property alias secondaryText: secondaryText.text
|
|
property alias progress: progressBar.value
|
|
|
|
ColumnLayout {
|
|
anchors.centerIn: parent
|
|
spacing: 20
|
|
Image {
|
|
objectName: "loadingAnimation"
|
|
Layout.alignment: Qt.AlignHCenter
|
|
Layout.preferredWidth: 320
|
|
Layout.preferredHeight: 320
|
|
source: Theme.png("status-preparing")
|
|
}
|
|
StatusBaseText {
|
|
id: loadingText
|
|
Layout.topMargin: 12
|
|
Layout.fillWidth: true
|
|
horizontalAlignment: Qt.AlignHCenter
|
|
font.pixelSize: 22
|
|
font.bold: true
|
|
text: qsTr("Preparing Status for you")
|
|
}
|
|
StatusBaseText {
|
|
id: secondaryText
|
|
Layout.fillWidth: true
|
|
horizontalAlignment: Qt.AlignHCenter
|
|
color: Theme.palette.baseColor1
|
|
text: qsTr("Hang in there! Just a few more seconds!")
|
|
}
|
|
StatusProgressBar {
|
|
id: progressBar
|
|
Layout.alignment: Qt.AlignHCenter
|
|
Layout.preferredWidth: 200
|
|
Layout.preferredHeight: 4
|
|
Layout.bottomMargin: 100
|
|
fillColor: Theme.palette.primaryColor1
|
|
opacity: progress > 0 ? 1 : 0
|
|
}
|
|
}
|
|
}
|