Skip to content

Commit

Permalink
All of the components are in. Hooray
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Feb 11, 2024
1 parent c91af41 commit dc43303
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libs/tote_bag/juce_gui/components/panels/PresetPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ void PresetPanel::resized()
const auto bypassSaveGap = juce::roundToInt (presetBoundsWidth * .10f);
const auto saveLoadButtonWidth = juce::roundToInt (presetBoundsWidth * .19f);
const auto saveLoadGapWidth = juce::roundToInt (presetBoundsWidth * .0127f);
const auto loadPrevGapWidth = juce::roundToInt (presetBoundsWidth * .028f);
const auto prevNextButtonWidth = juce::roundToInt(presetBoundsWidth * .0225f);
const auto prevNextGapWidth = juce::roundToInt(presetBoundsWidth * .0112f);
const auto presetBoxWidth = juce::roundToInt(presetBoundsWidth * .25f);

presetBounds.removeFromLeft (leftTotieGapWidth);
presetBounds.removeFromLeft (totieButtonWidth);
Expand All @@ -135,6 +139,13 @@ void PresetPanel::resized()
mSavePresetButton.setBounds (presetBounds.removeFromLeft (saveLoadButtonWidth));
presetBounds.removeFromLeft (saveLoadGapWidth);
mLoadPresetButton.setBounds (presetBounds.removeFromLeft (saveLoadButtonWidth));
presetBounds.removeFromLeft (prevNextButtonWidth);
mPreviousPreset.setBounds(presetBounds.removeFromLeft(prevNextButtonWidth));
presetBounds.removeFromLeft(prevNextGapWidth);
mNextPreset.setBounds(presetBounds.removeFromLeft(prevNextButtonWidth));
presetBounds.removeFromLeft(prevNextGapWidth);
mPresetDisplay.setBounds(presetBounds.removeFromLeft(presetBoxWidth));

}

void PresetPanel::setupPresetIncrementButtons()
Expand Down

0 comments on commit dc43303

Please sign in to comment.