From dfd5fbb24a63d6116549dbb07b30bc5bf23a7e6f Mon Sep 17 00:00:00 2001 From: Jose Diaz Rohena Date: Sun, 7 Jan 2024 01:13:50 +0100 Subject: [PATCH] Make slider meters nicer --- libs/tote_bag/juce_gui/lookandfeel/LookAndFeel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/tote_bag/juce_gui/lookandfeel/LookAndFeel.cpp b/libs/tote_bag/juce_gui/lookandfeel/LookAndFeel.cpp index acd07135..adca2fc2 100644 --- a/libs/tote_bag/juce_gui/lookandfeel/LookAndFeel.cpp +++ b/libs/tote_bag/juce_gui/lookandfeel/LookAndFeel.cpp @@ -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()) { @@ -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)); } } @@ -177,7 +177,7 @@ void LookAndFeel::drawRotarySlider (juce::Graphics& g, { auto bounds = juce::Rectangle (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);