-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch the equalizer mixer to stem control if the deck is loaded with a stem file
- Loading branch information
1 parent
d14d0db
commit 36af073
Showing
8 changed files
with
317 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import "." as Skin | ||
import Mixxx 1.0 as Mixxx | ||
import QtQuick 2.12 | ||
|
||
Item { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import "." as Skin | ||
import Mixxx 1.0 as Mixxx | ||
import QtQuick 2.12 | ||
import "Theme" | ||
|
||
Rectangle { | ||
id: root | ||
|
||
property alias knob: knob | ||
|
||
required property string group | ||
required property string label | ||
required property color stemColor | ||
required property int index | ||
|
||
width: 56 | ||
height: 56 | ||
radius: 5 | ||
color: stemColor | ||
|
||
Skin.ControlKnob { | ||
id: knob | ||
group: root.group | ||
key: `stem_${root.index}_volume` | ||
color: Theme.gainKnobColor | ||
anchors.topMargin: 5 | ||
anchors.top: root.top | ||
anchors.horizontalCenter: root.horizontalCenter | ||
|
||
arcStart: 0 | ||
|
||
width: 36 | ||
height: 36 | ||
} | ||
|
||
Text { | ||
anchors.bottom: root.bottom | ||
anchors.horizontalCenter: root.horizontalCenter | ||
text: label | ||
} | ||
|
||
Mixxx.ControlProxy { | ||
id: statusControl | ||
|
||
group: root.group | ||
key: `stem_${root.index}_mute` | ||
} | ||
|
||
Rectangle { | ||
id: statusButton | ||
|
||
anchors.left: root.left | ||
anchors.top: root.top | ||
anchors.leftMargin: 4 | ||
anchors.topMargin: 4 | ||
width: 8 | ||
height: width | ||
radius: width / 2 | ||
border.width: 1 | ||
border.color: Theme.buttonNormalColor | ||
color: statusControl.value ? knob.color : "transparent" | ||
|
||
TapHandler { | ||
onTapped: statusControl.value = !statusControl.value | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.