Skip to content

Commit

Permalink
Define slider pointer thickness independent of length
Browse files Browse the repository at this point in the history
This makes it easier to tweak these, and will make later
understanding refactors easier.
  • Loading branch information
JoseDiazRohena committed Jan 6, 2024
1 parent 6909cfa commit 4eb36f5
Showing 1 changed file with 1 addition 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 @@ -134,7 +134,7 @@ void LookAndFeel::drawRotarySliderBase (juce::Graphics& g,

juce::Path p;
const auto pointerLength = radius * 0.33f;
const auto pointerThickness = pointerLength * .2f;
const auto pointerThickness = radius * .066f;
const auto pointerX = -pointerThickness * 0.5f;
const auto pointerY = juce::roundToInt (juce::jmax ((rw * .05f), 1.0f)) - radius;
const auto cornerSize = pointerThickness * .35f;
Expand Down

0 comments on commit 4eb36f5

Please sign in to comment.