Kde: Add splashscreen theme

This commit is contained in:
EliverLara
2019-06-23 12:26:13 -05:00
parent c05719ec9c
commit e8a6269ba1
7 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
import QtQuick 2.5
Image {
id: root
source: "images/background.png"
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 * 12
anchors.centerIn: parent
source: "images/sweetlogo.png"
sourceSize.width: size
sourceSize.height: size
}
Image {
id: busyIndicator
//in the middle of the remaining space
y: parent.height - (parent.height - logo.y) / 3 - height/2
anchors.horizontalCenter: parent.horizontalCenter
source: "images/busy.svg"
sourceSize.height: units.gridUnit * 3
sourceSize.width: units.gridUnit * 3
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
}
}