fix: respect the selection arc

This commit is contained in:
Dar
2024-10-23 15:30:06 +02:00
parent 25c2bbc851
commit 8004d2761a

View File

@@ -577,7 +577,11 @@ public class FlatTreeUI
if( alternateRowColor != null && row % 2 != 0 ) {
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