mickleness / pumpernickel

This Java project includes classes related to desktop applications, Swing, performance, image processing, data structures, and other misc topics.
https://mickleness.github.io/pumpernickel/
MIT License
66 stars 12 forks source link

Sliders: render left-hand-side darker #107

Open mickleness opened 1 year ago

mickleness commented 1 year ago

Many sliders these paint the left hand side a darker color than the right hand side.

image

The ShowcaseExampleDemo#ShowcaseSlider may already do this for Windows.

We could generally do the same thing on Mac using the VectorGraphics2D to intercept and hijack the calls to paint the track.

(Also, maybe a separate ticket: the thumb position of sliders on Mac lines up with the extreme left/right of the component. This makes UI lines cleaner (there's not a lot of extra padding on the left/right). This may be a harder thing to change, though...)