mirror of
https://github.com/luneko/SweetTokyoNight.git
synced 2025-12-16 16:39:52 +01:00
KDE: Update splashscreen animations
This commit is contained in:
@@ -28,26 +28,62 @@ Image {
|
|||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: logo
|
id: logo
|
||||||
//match SDDM/lockscreen avatar positioning
|
|
||||||
property real size: units.gridUnit * 12
|
property real size: units.gridUnit * 12
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
||||||
source: "images/sweetlogo.png"
|
source: "images/sweetlogo.png"
|
||||||
|
|
||||||
sourceSize.width: size
|
sourceSize.width: size
|
||||||
sourceSize.height: size
|
sourceSize.height: size
|
||||||
|
|
||||||
|
ParallelAnimation {
|
||||||
|
running: true
|
||||||
|
|
||||||
|
ScaleAnimator {
|
||||||
|
target: logo
|
||||||
|
from: 0
|
||||||
|
to: 1
|
||||||
|
duration: 700
|
||||||
|
}
|
||||||
|
|
||||||
|
SequentialAnimation {
|
||||||
|
running: true
|
||||||
|
loops: Animation.Infinite
|
||||||
|
|
||||||
|
OpacityAnimator {
|
||||||
|
target: logo
|
||||||
|
from: 0.85
|
||||||
|
to: 1
|
||||||
|
duration: 1200
|
||||||
|
}
|
||||||
|
OpacityAnimator {
|
||||||
|
target: logo
|
||||||
|
from: 1
|
||||||
|
to: 0.85
|
||||||
|
duration: 1200
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: busyIndicator
|
id: busyIndicator
|
||||||
//in the middle of the remaining space
|
|
||||||
y: parent.height - (parent.height - logo.y) / 3 - height/2
|
y: parent.height - (parent.height - logo.y) / 3 - height/2
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
source: "images/busy.svg"
|
source: "images/busy.svg"
|
||||||
sourceSize.height: units.gridUnit * 3
|
sourceSize.height: units.gridUnit * 3
|
||||||
sourceSize.width: units.gridUnit * 3
|
sourceSize.width: units.gridUnit * 3
|
||||||
RotationAnimator on rotation {
|
|
||||||
|
ParallelAnimation{
|
||||||
|
running: true
|
||||||
|
|
||||||
|
ScaleAnimator{
|
||||||
|
target: busyIndicator
|
||||||
|
from: 0
|
||||||
|
to: 1
|
||||||
|
duration: 800
|
||||||
|
}
|
||||||
|
|
||||||
|
RotationAnimator{
|
||||||
|
target: busyIndicator
|
||||||
id: rotationAnimator
|
id: rotationAnimator
|
||||||
from: 0
|
from: 0
|
||||||
to: 360
|
to: 360
|
||||||
@@ -55,6 +91,7 @@ Image {
|
|||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user