Skip to content

Commit

Permalink
Adjust size and placement of clip enable button to spec
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Apr 25, 2024
1 parent b56e13b commit 63418a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/panels/ValentineBottomRowPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void BottomRowPanel::resized()
{
auto bounds = getLocalBounds();

const auto clipButtonWidth = juce::roundToInt (bounds.getWidth() / 60.0f);
const auto clipButtonWidth = juce::roundToInt (bounds.getWidth() / 46.0f);
const auto adjustedComponentWidth = bounds.getWidth() - clipButtonWidth;
const auto sliderWidth = juce::roundToInt (adjustedComponentWidth / 6.0f);

Expand All @@ -83,7 +83,7 @@ void BottomRowPanel::resized()
.withX (dividerCentreX)
.withWidth (dividerThickness);

const auto buttonNudge = juce::roundToInt (sliderWidth / 14.0f);
const auto buttonNudge = juce::roundToInt (sliderWidth / 15.0f);

const auto clipButtonInitialX = bounds.getX();
const auto clipButtonX = clipButtonInitialX + buttonNudge;
Expand Down

0 comments on commit 63418a1

Please sign in to comment.