mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-18 11:58:11 +00:00
51 lines
1.1 KiB
QML
51 lines
1.1 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Window 2.2
|
|
|
|
import Common 1.0
|
|
|
|
import App.Styles 1.0
|
|
|
|
// =============================================================================
|
|
|
|
Window {
|
|
color: SplashScreenStyle.color
|
|
flags: Qt.SplashScreen
|
|
modality: Qt.ApplicationModal
|
|
visible: image.status === Image.Ready
|
|
|
|
x: (Screen.width - image.width) / 2
|
|
y: (Screen.height - image.height) / 2
|
|
|
|
height: image.paintedHeight
|
|
width: image.paintedWidth
|
|
|
|
onClosing: indicator.running = false
|
|
|
|
Image {
|
|
id: image
|
|
|
|
anchors.centerIn: parent
|
|
|
|
height: SplashScreenStyle.height
|
|
width: SplashScreenStyle.width
|
|
|
|
fillMode: Image.PreserveAspectFit
|
|
mipmap: true
|
|
|
|
source: Constants.imagesPath + 'splash_screen' + Constants.imagesFormat
|
|
|
|
BusyIndicator {
|
|
id: indicator
|
|
|
|
height: SplashScreenStyle.busyIndicator.height
|
|
width: SplashScreenStyle.busyIndicator.width
|
|
|
|
anchors {
|
|
bottom: parent.bottom
|
|
bottomMargin: SplashScreenStyle.busyIndicator.bottomMargin
|
|
|
|
horizontalCenter: parent.horizontalCenter
|
|
}
|
|
}
|
|
}
|
|
}
|