mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
Tree: horizontally flip collapsedIcon in right-to-left component orientation
This commit is contained in:
@@ -43,6 +43,9 @@ public class FlatTreeCollapsedIcon
|
||||
arrow.lineTo( 10, 5.5 );
|
||||
arrow.closePath();
|
||||
|
||||
if( !c.getComponentOrientation().isLeftToRight() )
|
||||
g.rotate( Math.toRadians( 180 ), width / 2., height / 2. );
|
||||
|
||||
g.fill( arrow );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user