summaryrefslogtreecommitdiffstats
path: root/usr/share/plasma/look-and-feel/org.mageia.breeze.desktop/contents/splash/Splash.qml
blob: db18f64da1ddb09ea6d1d873fb669e463b6aa069 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
/*   vim:set foldenable foldmethod=marker:
 *
 *   2014 by DarkBeastOfPrey
 *   Copyright (C) 2011 Ivan Cukic <ivan.cukic(at)kde.org>
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License version 2,
 *   or (at your option) any later version, as published by the Free
 *   Software Foundation
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details
 *
 *   You should have received a copy of the GNU General Public
 *   License along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

import QtQuick 2.2

Item {
    id: main

    width: screenSize.width
    height: screenSize.height
    // width: 300
    // height: 300

    /* property declarations --------------------------{{{ */
    property int stage
    /* }}} */

    /* signal declarations ----------------------------{{{ */

    /* }}} */

    /* JavaScript functions ---------------------------{{{ */
    onStageChanged: {
        if (stage == 1) {
            mageia.opacity = 0.25
            bubble1.opacity = 0.25
        }
        if (stage == 2) {
            mageia.opacity = 1
            bubble1.opacity = 1
            bubble2.opacity = 1
        }
        if (stage == 3) {
            bubble3.opacity = 1
        }
        if (stage == 4) {
            bubble4.opacity = 1
        }
        if (stage == 5) {
            bubble5.opacity = 1
        }
        if (stage == 6) {
        }
    }
    /* }}} */

    /* object properties ------------------------------{{{ */

    /* }}} */

    /* child objects ----------------------------------{{{ */

  Image {
    id: background
    source: "images/background.png"
    anchors.fill: parent

        anchors {
            top: parent.top
            left: parent.left
            right: parent.right
            bottom: parent.bottom

        }
        opacity: 1
    }

    Image {
        id: bubble1
        smooth: true

        x: (parent.width) /4 + 30
        y: (parent.height) /  4

        source: "images/bubble1.png"

        opacity: 0
        Behavior on opacity { NumberAnimation { duration: 3000; easing { type: Easing.InOutQuad } } }
    }

    Image {
        id: bubble2
        smooth: true

        x: (parent.width) /4 + 30
        y: (parent.height) /  4

        source: "images/bubble2.png"

        opacity: 0
        Behavior on opacity { NumberAnimation { duration: 3000; easing { type: Easing.InOutQuad } } }
    }

        Image {
        id: bubble3
        smooth: true

        x: (parent.width) /4 + 30
        y: (parent.height) /  4

        source: "images/bubble3.png"

        opacity: 0
        Behavior on opacity { NumberAnimation { duration: 3000; easing { type: Easing.InOutQuad } } }
    }

        Image {
        id: bubble4
        smooth: true

        x: (parent.width) /4 + 30
        y: (parent.height) /  4

        source: "images/bubble4.png"

        opacity: 0
        Behavior on opacity { NumberAnimation { duration: 3000; easing { type: Easing.InOutQuad } } }
    }

        Image {
        id: bubble5
        smooth: true

        x: (parent.width) /4 + 30
        y: (parent.height) /  4

        source: "images/bubble5.png"

        opacity: 0
        Behavior on opacity { NumberAnimation { duration: 3000; easing { type: Easing.InOutQuad } } }
    }

    Image {
        id: mageia
        smooth: true

        x: (parent.width) / 4 + 30
        y: (parent.height) / 4

        source: "images/logo.png"

        opacity: 0
        Behavior on opacity { NumberAnimation { duration: 3000; easing { type: Easing.InOutQuad } } }
    }

    /* }}} */

    /* stages -----------------------------------------{{{ */

    /* }}} */

    /* transitions ------------------------------------{{{ */

    /* }}} */
}