Skip to content

Commit

Permalink
Nudge output clip button over
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Dec 28, 2023
1 parent 2eee3f1 commit afd8982
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/gui/panels/ValentineCenterPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,12 @@ void CenterPanel::resized()
const auto bottomRowButtonSpacer =
juce::roundToInt ((bottomRowComponents.getHeight() - bottomRowButtonWidth) * .5f);

clipEnableButton.setBounds (bottomRowComponents.removeFromLeft (bottomRowButtonWidth)
.reduced (0, bottomRowButtonSpacer));
// Scootch the clip button closer to the slider it relates to
auto clipButtonBounds = bottomRowComponents.removeFromLeft (bottomRowButtonWidth)
.reduced (0, bottomRowButtonSpacer);
clipButtonBounds.setX (clipButtonBounds.getX()
+ (clipButtonBounds.getWidth() / 1.5f));
clipEnableButton.setBounds (clipButtonBounds);
outputSlider.setBounds (bottomRowComponents.removeFromLeft (bottomRowSliderWidth));

mixSlider.setBounds (bottomRowComponents.removeFromLeft (bottomRowSliderWidth));
Expand Down

0 comments on commit afd8982

Please sign in to comment.