1
0
Fork 0
mirror of https://github.com/vinceliuice/MacSequoia-kde.git synced 2024-11-25 23:30:08 +00:00
MacSequoia-kde/plasma/look-and-feel/com.github.vinceliuice.MacSequoia-Dark/contents/splash/Splash.qml
vinceliuice 0f831a3dab Upload
2024-06-30 12:16:38 +08:00

71 lines
1.7 KiB
QML

import QtQuick 2.5
Image {
id: root
source: "images/background.jpeg"
property int stage
onStageChanged: {
if (stage == 1) {
introAnimation.running = true
}
}
Item {
id: content
anchors.fill: parent
opacity: 0
TextMetrics {
id: units
text: "M"
property int gridUnit: boundingRect.height
property int largeSpacing: units.gridUnit
property int smallSpacing: Math.max(2, gridUnit/4)
}
Image {
id: logo
//match SDDM/lockscreen avatar positioning
property real size: units.gridUnit * 8
anchors.centerIn: parent
source: "images/logo.svg"
// sourceSize.width: 503
// sourceSize.height: 99
}
Image {
id: busyIndicator
//in the middle of the remaining space
y: parent.height - (parent.height - logo.y) / 2 - height/2
anchors.horizontalCenter: parent.horizontalCenter
source: "images/loading-00.svg"
property real size: units.gridUnit * 1.5
sourceSize.height: units.gridUnit * 1.5
sourceSize.width: units.gridUnit * 1.5
RotationAnimator on rotation {
id: rotationAnimator
from: 0
to: 360
duration: 800
loops: Animation.Infinite
}
}
}
OpacityAnimator {
id: introAnimation
running: false
target: content
from: 0
to: 1
duration: 1000
easing.type: Easing.InOutQuad
}
}