blob: b8180f9aa5987ec96bc89abbe2aa786025199eda (
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
|
import QtQuick 2.0
import QtMultimedia 5.0
Rectangle {
id: controlRoot
signal clicked
property bool videoMode: camera.captureMode === Camera.CaptureVideo
width: 180 * root.contentScale
height: width
radius: width / 2
color: mouser.pressed ? (controlRoot.videoMode ? "#77fa334f" : "#7798c66c") : "#77333333"
visible: enabled
Rectangle {
id: center
anchors.centerIn: parent
width: parent.width * 0.45
height: width
radius: width / 2
opacity: mouser.pressed ? 0.7 : 1
color: controlRoot.videoMode ? "#fa334f" : "#98c66c"
}
Rectangle {
anchors.centerIn: parent
color: "white"
visible: camera.videoRecorder.recorderStatus === CameraRecorder.RecordingStatus
width: center.width * 0.3
height: width
}
MouseArea {
id: mouser
anchors.fill: parent
onClicked: controlRoot.clicked()
}
}
|