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:
@@ -21,6 +21,7 @@ FlatLaf Change Log
|
|||||||
|
|
||||||
#### Fixed bugs
|
#### Fixed bugs
|
||||||
|
|
||||||
|
- Slider: Fixed painting of colored track if `JSlider.inverted` is `true`.
|
||||||
- Table and TableHeader: Fixed missing right vertical grid line if using table
|
- Table and TableHeader: Fixed missing right vertical grid line if using table
|
||||||
as row header in scroll pane. (issues #152 and #46)
|
as row header in scroll pane. (issues #152 and #46)
|
||||||
- TableHeader: Fixed position of column separators in right-to-left component
|
- TableHeader: Fixed position of column separators in right-to-left component
|
||||||
|
|||||||
@@ -279,6 +279,12 @@ debug*/
|
|||||||
}
|
}
|
||||||
|
|
||||||
if( coloredTrack != null ) {
|
if( coloredTrack != null ) {
|
||||||
|
if( slider.getInverted() ) {
|
||||||
|
RoundRectangle2D temp = track;
|
||||||
|
track = coloredTrack;
|
||||||
|
coloredTrack = temp;
|
||||||
|
}
|
||||||
|
|
||||||
g.setColor( trackValueColor );
|
g.setColor( trackValueColor );
|
||||||
((Graphics2D)g).fill( coloredTrack );
|
((Graphics2D)g).fill( coloredTrack );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user