mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-07 06:20:53 +03:00
fix: respect the selection arc
This commit is contained in:
@@ -577,7 +577,11 @@ public class FlatTreeUI
|
|||||||
|
|
||||||
if( alternateRowColor != null && row % 2 != 0 ) {
|
if( alternateRowColor != null && row % 2 != 0 ) {
|
||||||
g.setColor( alternateRowColor );
|
g.setColor( alternateRowColor );
|
||||||
FlatUIUtils.paintComponentBackground((Graphics2D) g, 0, bounds.y, tree.getWidth(), bounds.height, 0, 0);
|
|
||||||
|
// paint respecting selection arc
|
||||||
|
final float arc = UIScale.scale( selectionArc / 2f );
|
||||||
|
FlatUIUtils.paintSelection( (Graphics2D) g, 0, bounds.y, tree.getWidth(), bounds.height,
|
||||||
|
UIScale.scale( selectionInsets ), arc, arc, arc, arc, 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
// do not paint row if editing
|
// do not paint row if editing
|
||||||
|
|||||||
Reference in New Issue
Block a user