-
Notifications
You must be signed in to change notification settings - Fork 6
/
MusicLoading.qml
76 lines (63 loc) · 1.42 KB
/
MusicLoading.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
//MusicLoading.qml
import QtQuick 2.12
import QtGraphicalEffects 1.0
Item {
property Item parentWindow: parent
id:self
visible: false
scale: visible
width:200
height:180
anchors.centerIn: parentWindow
DropShadow{
anchors.fill: rect
radius: 8
horizontalOffset: 1
verticalOffset:1
samples: 16
color: "#60000000"
source: rect
}
Rectangle{
id:rect
color: "#4003a9f4"
radius: 5
anchors.fill: parent
Image{
id:image
source: "qrc:/images/loading"
width: 50
height: 50
anchors.centerIn: parent
NumberAnimation {
property: "rotation"
from:0
to:360
target: image
loops:Animation.Infinite
running: self.visible
duration: 500
}
}
Text{
id:content
text:"Loading..."
color: "#eeffffff"
font{
family: window.mFONT_FAMILY
pointSize: 11
}
anchors{
top:image.bottom
topMargin: 10
horizontalCenter: parent.horizontalCenter
}
}
}
function open(){
visible = true
}
function close(){
visible = false
}
}