Skip to content

Commit

Permalink
Rename gap width variable for clarity in PresetPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Apr 25, 2024
1 parent 63418a1 commit 32bc8ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/tote_bag/juce_gui/components/panels/PresetPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ void PresetPanel::resized()

// This is used to set the gap between load button and previous button as well
// as next button and preset display box
const auto loadPrevBoxGapWidth = juce::roundToInt (presetBoundsWidth * .016f);
presetBounds.removeFromLeft (loadPrevBoxGapWidth);
const auto prevNextButtonAreaGapWidth = juce::roundToInt (presetBoundsWidth * .016f);
presetBounds.removeFromLeft (prevNextButtonAreaGapWidth);

const auto prevNextButtonHeight = juce::roundToInt (presetBoundsHeight * .2f);
const auto prevNextButtonY = presetBoundsCentreY - prevNextButtonHeight / 2;
Expand All @@ -148,7 +148,7 @@ void PresetPanel::resized()
.withY (prevNextButtonY)
.withHeight (prevNextButtonHeight));

presetBounds.removeFromLeft (loadPrevBoxGapWidth);
presetBounds.removeFromLeft (prevNextButtonAreaGapWidth);

const auto presetDisplayHeight = juce::roundToInt (presetBoundsHeight * .85f);
const auto presetDisplayY = presetBoundsCentreY - presetDisplayHeight / 2;
Expand Down

0 comments on commit 32bc8ab

Please sign in to comment.