Repository navigation
Expand file tree
/
Copy pathColorMenuChange.qml
More file actions
78 lines (69 loc) · 1.54 KB
/
Copy pathColorMenuChange.qml
File metadata and controls
78 lines (69 loc) · 1.54 KB
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
import QtQuick 2.7
Item {
anchors.fill: parent
id:root
signal finished()
Rectangle{
anchors.fill: parent
color:"#2196F3"
}
Rectangle{
anchors.centerIn: parent
id:backRect
color:"#FFEB3B"
width: 0
height: width
radius: width/2
NumberAnimation {
id:backgroundAnim
target: backRect
property:"width"
from:0
to:root.height*2
duration: 2000
running: false
}
NumberAnimation {
id:opacityAnim
target: backRect
property:"opacity"
from:0
to:1
duration: 2000
running: false
}
}
Rectangle{
anchors.fill: parent
color:"transparent"
Rectangle{
id:but
visible: true
x: root.width/2 - width/2
y: 50
width: 200
height:50
radius: width/2
opacity: 0
color: "#FF5722"
NumberAnimation {
id:opacityAnimButton
target: but
property:"opacity"
from:0
to:1
duration: 3500
running: false
onStopped: finished()
}
}
}
MouseArea{
anchors.fill: parent
onClicked:{
opacityAnim.start()
backgroundAnim.start()
opacityAnimButton.start()
}
}
}