Skip to content

Commit

Permalink
Tweaks to labelslider label size and margin
Browse files Browse the repository at this point in the history
Real talk: probably have to refactor the label out of this.
As it stands, I can't adjust margin width in a non silly way
if necessary. Let's see....
  • Loading branch information
JoseDiazRohena committed Jan 13, 2024
1 parent c56981e commit 29fb1c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/tote_bag/juce_gui/components/widgets/LabelSlider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ void LabelSlider::resized()
{
auto sliderArea = getLocalBounds();

const auto labelHeight = juce::roundToInt (sliderArea.getHeight() * .120);
const auto labelHeight = juce::roundToInt (sliderArea.getHeight() * .1);
label.setBounds (sliderArea.removeFromTop (labelHeight));

const auto margin = sliderArea.getHeight() * .03f;
const auto margin = sliderArea.getHeight() * .07f;
sliderArea.removeFromTop (margin);

slider.setBounds (sliderArea);
Expand Down

0 comments on commit 29fb1c9

Please sign in to comment.