Skip to content

Commit

Permalink
Place Save and Load buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Feb 11, 2024
1 parent 9110338 commit c91af41
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/tote_bag/juce_gui/components/panels/PresetPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,18 @@ void PresetPanel::resized()
const auto totieButtonWidth = juce::roundToInt (presetBoundsWidth * .045f);
const auto totieBypassGapWidth = 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);
const auto saveLoadGapWidth = juce::roundToInt (presetBoundsWidth * .0127f);

presetBounds.removeFromLeft (leftTotieGapWidth);
presetBounds.removeFromLeft (totieButtonWidth);
presetBounds.removeFromLeft (totieBypassGapWidth);
mBypassButton.setBounds (presetBounds.removeFromLeft (bypassButtonWidth));
presetBounds.removeFromLeft (bypassSaveGap);
mSavePresetButton.setBounds (presetBounds.removeFromLeft (saveLoadButtonWidth));
presetBounds.removeFromLeft (saveLoadGapWidth);
mLoadPresetButton.setBounds (presetBounds.removeFromLeft (saveLoadButtonWidth));
}

void PresetPanel::setupPresetIncrementButtons()
Expand Down

0 comments on commit c91af41

Please sign in to comment.