Skip to content

Commit

Permalink
squash with the changes it is reverting
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Apr 17, 2024
1 parent 2c7a68f commit 854dfef
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/gui/panels/ValentineTopRowPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,7 @@ void TopRowPanel::resized()
{
auto bounds = getLocalBounds();

const auto slidersAreaHeight = juce::roundToInt (bounds.getHeight() * .95f);
const auto slidersAreaY = bounds.getCentreY() - slidersAreaHeight / 2;

auto sliders = bounds.removeFromLeft (juce::roundToInt (bounds.getWidth() * .65f))
.withY (slidersAreaY)
.withHeight (slidersAreaHeight);

auto sliders = bounds.removeFromLeft (juce::roundToInt (bounds.getWidth() * .65f));
const auto buttonWidth = juce::roundToInt (sliders.getWidth() * .033f);
const auto adjustedComponentWidth = sliders.getWidth() - (buttonWidth * 2.0f);
const auto sliderWidth = juce::roundToInt (adjustedComponentWidth / 3.0f);
Expand Down

0 comments on commit 854dfef

Please sign in to comment.