forked from AIIX/Mycroft-Ai-QtApplication
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Welcome.qml
391 lines (326 loc) · 12.5 KB
/
Welcome.qml
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
import QtQuick 2.5
Rectangle {
color: "#e63d8ac6"
Image {
anchors.fill: parent
source: "images/whitespace.jpg"
Rectangle {
id: rectangle1
width: parent.width / 7
color: "#00000000"
anchors.right: rectangle2.left
anchors.rightMargin: 0
anchors.left: parent.left
anchors.leftMargin: 0
anchors.top: parent.top
anchors.bottom: parent.bottom
Image {
id: image5anim
width: 100
height: 100
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
fillMode: Image.PreserveAspectFit
source: "images/mleftsmallanim.png"
}
}
Rectangle {
id: rectangle2
width: parent.width / 7
color: "#00000000"
anchors.right: rectangle3.left
anchors.rightMargin: 0
anchors.top: parent.top
anchors.bottom: parent.bottom
Image {
id: image3anim
width: 100
anchors.bottom: parent.bottom
anchors.bottomMargin: 160
anchors.top: parent.top
anchors.topMargin: 160
anchors.horizontalCenter: parent.horizontalCenter
sourceSize.width: 0
fillMode: Image.PreserveAspectFit
source: "images/mleftmidanim.png"
}
}
Rectangle {
id: rectangle3
width: parent.width / 7
color: "#00000000"
anchors.right: rectangle4.left
anchors.rightMargin: 0
anchors.top: parent.top
anchors.bottom: parent.bottom
Image {
id: image1anim
width: 100
anchors.top: parent.top
anchors.topMargin: 0
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
anchors.horizontalCenter: parent.horizontalCenter
fillMode: Image.PreserveAspectFit
source: "images/mleftanim.png"
}
}
Rectangle {
id: rectangle4
width: parent.width / 7
color: "#00000000"
anchors.right: rectangle5.left
anchors.rightMargin: 0
anchors.top: parent.top
anchors.bottom: parent.bottom
}
Rectangle {
id: rectangle5
width: parent.width / 7
color: "#00000000"
anchors.right: rectangle6.left
anchors.rightMargin: 0
anchors.top: parent.top
anchors.bottom: parent.bottom
Image {
id: image2anim
width: 100
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
anchors.top: parent.top
rotation: 180
fillMode: Image.PreserveAspectFit
source: "images/mleftanim.png"
}
}
Rectangle {
id: rectangle6
width: parent.width / 7
color: "#00000000"
anchors.right: rectangle7.left
anchors.rightMargin: 0
anchors.top: parent.top
anchors.bottom: parent.bottom
Image {
id: image4anim
width: 100
anchors.bottomMargin: 160
anchors.topMargin: 160
rotation: 180
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
anchors.top: parent.top
fillMode: Image.PreserveAspectFit
source: "images/mleftmidanim.png"
}
}
Rectangle {
id: rectangle7
width: parent.width / 7
color: "#00000000"
anchors.right: parent.right
anchors.rightMargin: 0
anchors.top: parent.top
anchors.bottom: parent.bottom
Image {
id: image6anim
width: 100
height: 100
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
rotation: 180
fillMode: Image.PreserveAspectFit
source: "images/mleftsmallanim.png"
}
}
Image {
id: image7anim
width: 100
height: 100
fillMode: Image.PreserveAspectFit
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
source: "images/mmidanim.png"
}
Text{
id : idText
height : parent.height
color: "#ffffff"
text : "Get Current Weather Stats"
anchors.verticalCenterOffset: -40
anchors.verticalCenter: idText3.verticalCenter
font.family: "Courier"
font.pointSize: 18
style: Text.Normal;
SequentialAnimation {
running: true
NumberAnimation { target: idText; property: "x"; to: idText.width * 4; easing.type: Easing.Linear; duration: 7000 }
NumberAnimation { target: idText; property: "x"; to: idText.width / 4 * -8; duration: 7000 }
loops: Animation.Infinite
}
}
Text{
id : idText2
height : parent.height
color: "#ffffff"
text : "Ask Questions"
anchors.verticalCenterOffset: 100
anchors.verticalCenter: parent.verticalCenter
font.family: "Courier"
font.pointSize: 18
style: Text.Normal;
SequentialAnimation {
running: true
NumberAnimation { target: idText2; property: "x"; to: idText.width / 4 * -8; duration: 7000 }
NumberAnimation { target: idText2; property: "x"; to: idText.width * 4; duration: 7000 }
loops: Animation.Infinite
}
}
Text{
id : idText3
height : parent.height
color: "#ffffff"
text : "Find Answers"
anchors.verticalCenterOffset: 175
anchors.verticalCenter: parent.verticalCenter
font.family: "Courier"
font.pointSize: 18
style: Text.Normal;
SequentialAnimation {
running: true
NumberAnimation { target: idText3; property: "x"; to: idText.width * 3; duration: 7000 }
NumberAnimation { target: idText3; property: "x"; to: idText.width / 3 * -8; duration: 7000 }
loops: Animation.Infinite
}
}
Text{
id : idText4
height : parent.height
color: "#ffffff"
text : "Discover Information"
anchors.verticalCenterOffset: -75
anchors.verticalCenter: idText.verticalCenter
font.family: "Courier"
font.pointSize: 18
style: Text.Normal;
SequentialAnimation {
running: true
NumberAnimation { target: idText4; property: "x"; to: idText.width / 5 * -8; duration: 6000 }
NumberAnimation { target: idText4; property: "x"; to: idText.width * 5; duration: 6000 }
loops: Animation.Infinite
}
}
Rectangle {
id: testanimid2
color: "#00000000"
rotation: 90
anchors.left: parent.left
anchors.leftMargin: 125
Text{
id : idText5
height : parent.height
color: "#ffffff"
text : "Set Reminders"
font.family: "Courier"
font.pointSize: 18
style: Text.Normal;
}
SequentialAnimation {
running: true
NumberAnimation { target: testanimid2; property: 'y'; from: idText.width / 4 * -8; to: idText.width * 4; duration: 7000 }
NumberAnimation { target: testanimid2; property: 'anchors.leftMargin'; from: idText.width / 4; to: idText.width / 2; duration: 10 }
NumberAnimation { target: testanimid2; property: 'rotation'; from: 90; to: -90; duration: 10 }
NumberAnimation { target: testanimid2; property: 'y'; from: idText.width * 4; to: idText.width / 4 * -8; duration: 7000 }
NumberAnimation { target: testanimid2; property: 'rotation'; from: -90; to: 90; duration: 10 }
NumberAnimation { target: testanimid2; property: 'anchors.leftMargin'; from: idText.width / 2; to: idText.width / 4; duration: 10 }
loops: Animation.Infinite
}
}
Rectangle {
id: testanimid3
color: "#00000000"
rotation: -90
anchors.left: parent.left
anchors.leftMargin: 225
Text{
id : idText6
height : parent.height
color: "#ffffff"
text : "Easy Calculations"
font.family: "Courier"
font.pointSize: 18
style: Text.Normal;
}
SequentialAnimation {
running: true
NumberAnimation { target: testanimid3; property: 'y'; from: idText.width * 4; to: idText.width / 4 * -8; duration: 7000 }
NumberAnimation { target: testanimid3; property: 'anchors.leftMargin'; from: idText.width / 2 * 5; to: idText.width / 12; duration: 10 }
NumberAnimation { target: testanimid3; property: 'rotation'; from: -90; to: 90; duration: 10 }
NumberAnimation { target: testanimid3; property: 'y'; from: idText.width / 4 * -8; to: idText.width * 4; duration: 7000 }
NumberAnimation { target: testanimid3; property: 'rotation'; from: 90; to: -90; duration: 10 }
NumberAnimation { target: testanimid3; property: 'anchors.leftMargin'; from: idText.width / 12; to: idText.width * 2 / 5; duration: 10 }
loops: Animation.Infinite
}
}
Rectangle {
id: testanimid4
color: "#00000000"
rotation: -90
anchors.left: parent.left
anchors.leftMargin: 50
Text{
id : idText7
height : parent.height
color: "#ffffff"
text : "Latest Stock Prices"
font.family: "Courier"
font.pointSize: 18
style: Text.Normal;
}
SequentialAnimation {
running: true
NumberAnimation { target: testanimid4; property: 'y'; from: idText.width * 7; to: idText.width / 6 * -5; duration: 8500 }
NumberAnimation { target: testanimid4; property: 'anchors.leftMargin'; from: idText.width / 3; to: idText.width / 7; duration: 10 }
NumberAnimation { target: testanimid4; property: 'rotation'; from: -90; to: 90; duration: 10 }
NumberAnimation { target: testanimid4; property: 'y'; from: idText.width / 6 * -8; to: idText.width * 6; duration: 6500 }
NumberAnimation { target: testanimid4; property: 'rotation'; from: 90; to: -90; duration: 10 }
NumberAnimation { target: testanimid4; property: 'anchors.leftMargin'; from: idText.width / 7; to: idText.width / 3; duration: 10 }
loops: Animation.Infinite
}
}
SequentialAnimation{
running: true
loops: Animation.Infinite
SequentialAnimation {
ParallelAnimation {
NumberAnimation { target: image5anim; property: 'opacity'; from: 0.1; to: 1; duration: 1000 }
NumberAnimation { target: image6anim; property: 'opacity'; from: 0.1; to: 1; duration: 1000 }
}
ParallelAnimation{
NumberAnimation { target: image3anim; property: 'opacity'; from: 0.1; to: 1; duration: 1500 }
NumberAnimation { target: image4anim; property: 'opacity'; from: 0.1; to: 1; duration: 1500 }
}
ParallelAnimation{
NumberAnimation { target: image1anim; property: 'opacity'; from: 0.1; to: 1; duration: 2000 }
NumberAnimation { target: image2anim; property: 'opacity'; from: 0.1; to: 1; duration: 2000 }
}
NumberAnimation { target: image7anim; property: 'opacity'; from: 0.1; to: 0.6; duration: 2000 }
}
SequentialAnimation {
ParallelAnimation {
NumberAnimation { target: image5anim; property: 'opacity'; from: 1; to: 0.1; duration: 1000 }
NumberAnimation { target: image6anim; property: 'opacity'; from: 1; to: 0.1; duration: 1000 }
}
ParallelAnimation{
NumberAnimation { target: image3anim; property: 'opacity'; from: 1; to: 0.1; duration: 1500 }
NumberAnimation { target: image4anim; property: 'opacity'; from: 1; to: 0.1; duration: 1500 }
}
ParallelAnimation{
NumberAnimation { target: image1anim; property: 'opacity'; from: 1; to: 0.1; duration: 2000 }
NumberAnimation { target: image2anim; property: 'opacity'; from: 1; to: 0.1; duration: 2000 }
}
NumberAnimation { target: image7anim; property: 'opacity'; from: 0.6; to: 0.1; duration: 2000 }
}
}
}
}