Skip to content

Commit

Permalink
shift top buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Dec 30, 2023
1 parent 6429b43 commit 4d4a593
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/gui/panels/ValentineCenterPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,22 @@ void CenterPanel::resized()
const auto topRowButtonSpacer =
juce::roundToInt ((topRowSliders.getHeight() - topRowButtonWidth) * .5f);

crushEnableButton.setBounds (
topRowSliders.removeFromLeft (topRowButtonWidth).reduced (0, topRowButtonSpacer));
auto crushEnableButtonBounds =
topRowSliders.removeFromLeft (topRowButtonWidth).reduced (0, topRowButtonSpacer);
crushEnableButtonBounds.setX (crushEnableButtonBounds.getX()
+ (crushEnableButtonBounds.getWidth() / 1.75f));
crushEnableButton.setBounds (crushEnableButtonBounds);

crushSlider.setBounds (topRowSliders.removeFromLeft (topRowSliderWidth));

compressSlider.setBounds (topRowSliders.removeFromLeft (topRowSliderWidth));

saturateEnableButton.setBounds (
topRowSliders.removeFromLeft (topRowButtonWidth).reduced (0, topRowButtonSpacer));
auto saturateEnableButtonBounds =
topRowSliders.removeFromLeft (topRowButtonWidth).reduced (0, topRowButtonSpacer);
saturateEnableButtonBounds.setX (saturateEnableButtonBounds.getX()
+ (crushEnableButtonBounds.getWidth() / 1.75f));
saturateEnableButton.setBounds (saturateEnableButtonBounds);

saturateSlider.setBounds (topRowSliders.removeFromLeft (topRowSliderWidth));

const auto logoHeight = juce::roundToInt (topRowComponents.getHeight() * .25f);
Expand Down

0 comments on commit 4d4a593

Please sign in to comment.