Skip to content

Commit

Permalink
Merge pull request musescore#18255 from HemantAntony/17949-aux_sends_…
Browse files Browse the repository at this point in the history
…too_close

Fix musescore#17949: Aux sends 1 and 2 are too close together
  • Loading branch information
RomanPudashkin committed Jul 5, 2023
2 parents 0fa70a2 + fd0aa79 commit 719ecf5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/framework/audio/qml/MuseScore/Audio/KnobControl.qml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Dial {
property alias navigation: navCtrl

property real radius: 16
property real backgroundHeight: radius + radius * Math.sin(prv.startAngle)

property bool isBalanceKnob: false

Expand Down Expand Up @@ -63,6 +64,9 @@ Dial {
readonly property real outerArcLineWidth: 3
readonly property real innerArcLineWidth: 2

readonly property real startAngle: -140 * (Math.PI/180) - Math.PI/2
readonly property real endAngle: 140 * (Math.PI/180) - Math.PI/2

readonly property color valueArcColor: ui.theme.accentColor
readonly property color outerArcColor: Utils.colorWithAlpha(ui.theme.buttonColor, 0.7)
readonly property color innerArcColor: Utils.colorWithAlpha(ui.theme.fontPrimaryColor, 0.5)
Expand Down Expand Up @@ -140,7 +144,7 @@ Dial {

ctx.strokeStyle = prv.outerArcColor
ctx.beginPath()
ctx.arc(width/2, height/2, root.radius - prv.outerArcLineWidth/2, -140 * (Math.PI/180) - Math.PI/2, 140 * (Math.PI/180) - Math.PI/2, false)
ctx.arc(width/2, height/2, root.radius - prv.outerArcLineWidth/2, prv.startAngle, prv.endAngle, false)
ctx.stroke()

ctx.strokeStyle = prv.valueArcColor
Expand Down
2 changes: 0 additions & 2 deletions src/playback/qml/MuseScore/Playback/MixerPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ ColumnLayout {
headerVisible: contextMenuModel.labelsSectionVisible
headerWidth: prv.headerWidth
channelItemWidth: prv.channelItemWidth
spacingAbove: 8

model: mixerPanelModel

Expand All @@ -219,7 +218,6 @@ ColumnLayout {
headerWidth: prv.headerWidth

channelItemWidth: prv.channelItemWidth
spacingAbove: 8

model: mixerPanelModel

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Item {
KnobControl {
id: audioSignalAmountKnob

radius: root.height / 2 + 2
radius: root.height / 2 + 1.5

from: 0
to: 100
Expand All @@ -81,7 +81,8 @@ Item {
readonly property bool isHovering: bypassBtn.mouseArea.containsMouse

Layout.fillWidth: true
Layout.fillHeight: true
Layout.preferredHeight: audioSignalAmountKnob.backgroundHeight
Layout.alignment: Qt.AlignTop

navigation.panel: root.navigationPanel
navigation.row: root.navigationRowStart + 1
Expand Down

0 comments on commit 719ecf5

Please sign in to comment.