From 63418a16b79dc05ae74bd7ccc92c23fa6a7c4375 Mon Sep 17 00:00:00 2001 From: Jose Diaz Date: Mon, 22 Apr 2024 22:13:50 +0200 Subject: [PATCH] Adjust size and placement of clip enable button to spec --- src/gui/panels/ValentineBottomRowPanel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/panels/ValentineBottomRowPanel.cpp b/src/gui/panels/ValentineBottomRowPanel.cpp index 25c30be0..8d69ee93 100644 --- a/src/gui/panels/ValentineBottomRowPanel.cpp +++ b/src/gui/panels/ValentineBottomRowPanel.cpp @@ -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); @@ -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;