mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 23:07:15 -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.lineTo( 10, 5.5 );
|
||||||
arrow.closePath();
|
arrow.closePath();
|
||||||
|
|
||||||
|
if( !c.getComponentOrientation().isLeftToRight() )
|
||||||
|
g.rotate( Math.toRadians( 180 ), width / 2., height / 2. );
|
||||||
|
|
||||||
g.fill( arrow );
|
g.fill( arrow );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user