blob: 3bf9315421835f69d4285532c2116ed12b24ea15 (
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
|
import "." as Skin
import QtQuick 2.12
import QtQuick.Layouts 1.11
import "Theme"
Item {
id: root
property string group // required
Rectangle {
id: gainKnobFrame
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
height: width
color: Theme.knobBackgroundColor
radius: 5
Skin.ControlKnob {
id: gainKnob
anchors.centerIn: parent
width: 48
height: 48
group: root.group
key: "pregain"
color: Theme.gainKnobColor
}
}
Item {
anchors.top: gainKnobFrame.bottom
anchors.topMargin: 5
anchors.bottomMargin: 5
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: pflButton.top
Skin.VuMeter {
x: 15
y: (parent.height - height) / 2
width: 4
height: parent.height - 40
group: root.group
key: "VuMeterL"
}
Skin.VuMeter {
x: parent.width - width - 15
y: (parent.height - height) / 2
width: 4
height: parent.height - 40
group: root.group
key: "VuMeterR"
}
Skin.ControlSlider {
id: volumeSlider
anchors.fill: parent
group: root.group
key: "volume"
barColor: Theme.volumeSliderBarColor
bg: Theme.imgVolumeSliderBackground
}
}
Skin.ControlButton {
id: pflButton
group: root.group
key: "pfl"
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
text: "PFL"
activeColor: Theme.pflActiveButtonColor
toggleable: true
}
}
|