Skip to content

Commit

Permalink
cleanup naming of totie
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Feb 11, 2024
1 parent 047c04a commit ab0312f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libs/tote_bag/juce_gui/components/panels/PresetPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ void PresetPanel::resized()

const auto presetBoundsWidth = presetBounds.getWidth();

const auto leftTotieGapWidth = juce::roundToInt (presetBoundsWidth * .02f);
const auto totieButtonWidth = juce::roundToInt (presetBoundsWidth * .045f);
const auto totieBypassGapWidth = juce::roundToInt (presetBoundsWidth * .005f);
const auto leftInfoButtonWidth = juce::roundToInt (presetBoundsWidth * .02f);
const auto infoButtonWidth = juce::roundToInt (presetBoundsWidth * .045f);
const auto infoButtonBypassGapWidth = juce::roundToInt (presetBoundsWidth * .005f);
const auto bypassButtonWidth = juce::roundToInt (presetBoundsWidth * .15f);
const auto bypassSaveGap = juce::roundToInt (presetBoundsWidth * .10f);
const auto saveLoadButtonWidth = juce::roundToInt (presetBoundsWidth * .19f);
Expand All @@ -82,9 +82,9 @@ void PresetPanel::resized()
const auto prevNextGapWidth = juce::roundToInt (presetBoundsWidth * .0112f);
const auto presetBoxWidth = juce::roundToInt (presetBoundsWidth * .25f);

presetBounds.removeFromLeft (leftTotieGapWidth);
presetBounds.removeFromLeft (totieButtonWidth);
presetBounds.removeFromLeft (totieBypassGapWidth);
presetBounds.removeFromLeft (leftInfoButtonWidth);
mInfoButton.setBounds (presetBounds.removeFromLeft (infoButtonWidth));
presetBounds.removeFromLeft (infoButtonBypassGapWidth);
mBypassButton.setBounds (presetBounds.removeFromLeft (bypassButtonWidth));
presetBounds.removeFromLeft (bypassSaveGap);
mSavePresetButton.setBounds (presetBounds.removeFromLeft (saveLoadButtonWidth));
Expand Down

0 comments on commit ab0312f

Please sign in to comment.