mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 22:47:13 -06:00
Slider: fixed painting of colored track if JSlider.inverted is true
This commit is contained in:
@@ -279,6 +279,12 @@ debug*/
|
||||
}
|
||||
|
||||
if( coloredTrack != null ) {
|
||||
if( slider.getInverted() ) {
|
||||
RoundRectangle2D temp = track;
|
||||
track = coloredTrack;
|
||||
coloredTrack = temp;
|
||||
}
|
||||
|
||||
g.setColor( trackValueColor );
|
||||
((Graphics2D)g).fill( coloredTrack );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user