Skip to content

Commit

Permalink
Make slider meters nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Jan 7, 2024
1 parent 7035e72 commit dfd5fbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/tote_bag/juce_gui/lookandfeel/LookAndFeel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void LookAndFeel::drawRotarySliderMeter (juce::Graphics& g,
g.strokePath (backgroundArc,
juce::PathStrokeType (lineWidth,
juce::PathStrokeType::curved,
juce::PathStrokeType::butt));
juce::PathStrokeType::rounded));

if (slider.isEnabled())
{
Expand All @@ -114,7 +114,7 @@ void LookAndFeel::drawRotarySliderMeter (juce::Graphics& g,
g.strokePath (valueArc,
juce::PathStrokeType (lineWidth,
juce::PathStrokeType::curved,
juce::PathStrokeType::butt));
juce::PathStrokeType::rounded));
}
}

Expand Down Expand Up @@ -177,7 +177,7 @@ void LookAndFeel::drawRotarySlider (juce::Graphics& g,
{
auto bounds = juce::Rectangle<int> (x, y, width, height).toFloat();
auto radius = juce::jmin (bounds.getWidth(), bounds.getHeight()) / 2.0f;
auto lineW = radius * 0.125f;
auto lineW = radius * 0.090f;
auto arcRadius = radius - lineW;
const auto toAngle =
rotaryStartAngle + sliderPos * (rotaryEndAngle - rotaryStartAngle);
Expand Down

0 comments on commit dfd5fbb

Please sign in to comment.