Skip to content

Commit

Permalink
Get that crush slider in there
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Dec 12, 2023
1 parent 943e99a commit 7815b21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libs/tote_bag/juce_gui/lookandfeel/LookAndFeel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ LookAndFeel::LookAndFeel()

// slider text box colours
setColour (juce::Slider::textBoxTextColourId, juce::Colours::black);
setColour (juce::Slider::textBoxOutlineColourId, vPinkDark);
setColour (juce::Slider::textBoxOutlineColourId, vPink);
setColour (juce::Slider::rotarySliderOutlineColourId, vPinkDark);
setColour (juce::Slider::rotarySliderFillColourId, juce::Colours::floralwhite);

Expand Down
4 changes: 4 additions & 0 deletions src/gui/panels/ValentineCenterPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ CenterPanel::CenterPanel (ValentineAudioProcessor& processor)
BinaryData::logo_218x40_svgSize))
{
addAndMakeVisible (crushEnableButton);
addAndMakeVisible (crushSlider);
addAndMakeVisible (valentineLogo.get());
}

Expand Down Expand Up @@ -81,6 +82,9 @@ void CenterPanel::resized()

crushEnableButton.setBounds (crushButtonBounds);

const auto crushSliderBounds = topRowSliders.removeFromLeft (topRowSliderWidth);
crushSlider.setBounds (crushSliderBounds);

const auto logoHeight = juce::roundToInt (topRowComponents.getHeight() * .25f);
topRowComponents.removeFromTop (logoHeight * 1.45f);
topRowComponents.removeFromRight (logoHeight * .5f);
Expand Down

0 comments on commit 7815b21

Please sign in to comment.