forked from mixxxdj/mixxx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AuxiliaryUnit.qml
111 lines (90 loc) · 2.58 KB
/
AuxiliaryUnit.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
import "." as Skin
import QtQuick 2.12
import "Theme"
Row {
id: root
required property int unitNumber
property string group: "[Auxiliary" + unitNumber + "]"
spacing: 5
Skin.VuMeter {
id: vuMeter
group: root.group
key: "VuMeter"
width: 4
height: parent.height
}
Rectangle {
id: gainKnobFrame
width: 52
height: width
color: Theme.knobBackgroundColor
radius: 5
Skin.ControlKnob {
id: gainKnob
anchors.centerIn: parent
width: 48
height: width
arcStart: Knob.ArcStart.Minimum
group: root.group
key: "pregain"
color: Theme.gainKnobColor
}
}
Column {
Skin.SectionText {
width: parent.width
height: root.height / 2
text: "AUX " + root.unitNumber
}
Skin.ControlButton {
id: pflButton
group: root.group
key: "pfl"
text: "PFL"
activeColor: Theme.pflActiveButtonColor
toggleable: true
}
}
Skin.EmbeddedBackground {
id: embedded
height: parent.height
width: 56
Skin.OrientationToggleButton {
id: orientationButton
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.verticalCenter
group: root.group
key: "orientation"
color: Theme.crossfaderOrientationColor
}
Skin.InfoBarButton {
id: fx1Button
anchors.left: parent.left
anchors.right: parent.horizontalCenter
anchors.top: parent.verticalCenter
anchors.bottom: parent.bottom
group: "[EffectRack1_EffectUnit1]"
key: "group_" + root.group + "_enable"
activeColor: Theme.deckActiveColor
foreground: Skin.EmbeddedText {
anchors.centerIn: parent
text: "FX1"
}
}
Skin.InfoBarButton {
group: "[EffectRack1_EffectUnit2]"
anchors.left: parent.horizontalCenter
anchors.right: parent.right
anchors.top: parent.verticalCenter
anchors.bottom: parent.bottom
key: "group_" + root.group + "_enable"
activeColor: Theme.deckActiveColor
foreground: Skin.EmbeddedText {
anchors.centerIn: parent
text: "FX2"
}
}
}
}