Skip to content

Commit 3145e1c

Browse files
committed
LateNightQML: fix mixer fader bar bindings
1 parent a310c86 commit 3145e1c

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

res/skins/LateNightQML/Controls/Fader.qml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ Skin.ControlFader {
1212
property alias handleSource: handleImage.source
1313
property color valueLineColor: LateNightTheme.mixerSliderBarColor
1414

15-
bar: !centeredBar
16-
barColor: valueLineColor
17-
barMargin: 8
18-
barWidth: 2
15+
bar.color: valueLineColor
16+
bar.enabled: !centeredBar
17+
bar.margin: 8
18+
bar.width: 2
1919
implicitHeight: backgroundImage.implicitHeight + (backgroundMargin * 2)
2020
implicitWidth: backgroundImage.implicitWidth + (backgroundMargin * 2)
2121
showDefaultHandle: false
@@ -42,7 +42,7 @@ Skin.ControlFader {
4242
readonly property real start: root.width / 2
4343

4444
color: root.valueLineColor
45-
height: root.barWidth
45+
height: root.bar.width
4646
radius: height / 2
4747
visible: root.centeredBar && root.horizontal && width > 0
4848
width: Math.abs(handleCenter - start)

res/skins/LateNightQML/Mixer/Crossfader.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Item {
1616
LateNightControls.Fader {
1717
anchors.centerIn: parent
1818
backgroundSource: root.compact ? LateNightTheme.assetMixerCrossfaderSmallBackground : LateNightTheme.assetMixerCrossfaderBackground
19-
barMargin: 7
20-
barStart: 0.5
19+
bar.margin: 7
20+
bar.start: 0.5
2121
centeredBar: true
2222
centeredBarAxis: 19
2323
group: "[Master]"

0 commit comments

Comments
 (0)