summaryrefslogtreecommitdiff
path: root/raveos-plasma-theme/theme-data/plasma-splash/contents/splash/Splash.qml
blob: dbd80c6567b3c8f9ec6c87cac91120d62d2a9590 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import QtQuick
import org.kde.kirigami as Kirigami

Rectangle {
    id: root
    color: "black"

    property int stage

    Image {
        anchors.fill: parent
        source: "images/background.jpg"
        fillMode: Image.PreserveAspectCrop
        asynchronous: true
    }

    Rectangle {
        anchors.fill: parent
        color: "#66000000"
    }

    Item {
        anchors.fill: parent
        opacity: stage >= 2 ? 1 : 0

        Image {
            id: logo
            anchors.centerIn: parent
            source: "images/new-RP-logo.png"
            asynchronous: true
            sourceSize.width: Kirigami.Units.gridUnit * 12
            sourceSize.height: Kirigami.Units.gridUnit * 12
            fillMode: Image.PreserveAspectFit
        }

        Image {
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.top: logo.bottom
            anchors.topMargin: Kirigami.Units.largeSpacing * 2
            source: "/usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/splash/images/busywidget.svgz"
            sourceSize.width: Kirigami.Units.gridUnit * 2
            sourceSize.height: Kirigami.Units.gridUnit * 2
            asynchronous: true
            RotationAnimator on rotation {
                from: 0
                to: 360
                duration: 2000
                loops: Animation.Infinite
                running: stage >= 2 && Kirigami.Units.longDuration > 1
            }
        }
    }
}