forked from mixxxdj/mixxx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CrossfaderRow.qml
102 lines (81 loc) · 2.14 KB
/
CrossfaderRow.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
import "." as Skin
import QtQuick 2.12
import "Theme"
Item {
id: root
required property real crossfaderWidth
implicitHeight: crossfader.height
Skin.SectionBackground {
anchors.fill: microphoneRow
}
Row {
id: microphoneRow
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: crossfader.left
layoutDirection: Qt.RightToLeft
padding: 5
spacing: 10
Skin.MicrophoneUnit {
unitNumber: 1
}
Skin.MicrophoneUnit {
unitNumber: 2
}
Skin.MicrophoneUnit {
unitNumber: 3
}
Skin.MicrophoneUnit {
unitNumber: 4
}
Skin.MicrophoneDuckingPanel {
}
}
Skin.SectionBackground {
id: crossfader
anchors.centerIn: parent
width: root.crossfaderWidth
height: crossfaderSlider.height + 20
Skin.ControlSlider {
id: crossfaderSlider
anchors.left: parent.left
anchors.right: parent.right
anchors.leftMargin: 5
anchors.rightMargin: 5
anchors.verticalCenter: parent.verticalCenter
orientation: Qt.Horizontal
group: "[Master]"
key: "crossfader"
barColor: Theme.crossfaderBarColor
barStart: 0.5
fg: Theme.imgCrossfaderHandle
bg: Theme.imgCrossfaderBackground
}
}
Row {
id: auxiliaryRow
anchors.left: crossfader.right
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.right: parent.right
padding: 5
spacing: 10
Skin.AuxiliaryUnit {
layoutDirection: Qt.RightToLeft
unitNumber: 1
}
Skin.AuxiliaryUnit {
layoutDirection: Qt.RightToLeft
unitNumber: 2
}
Skin.AuxiliaryUnit {
layoutDirection: Qt.RightToLeft
unitNumber: 3
}
Skin.AuxiliaryUnit {
layoutDirection: Qt.RightToLeft
unitNumber: 4
}
}
}