mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +03:00
Merge PR #987: Enhance FlatUIUtils.getBorderArc to support FlatLineBorder Arc value
This commit is contained in:
@@ -474,6 +474,9 @@ public class FlatUIUtils
|
||||
* Returns the scaled arc diameter of the border for the given component.
|
||||
*/
|
||||
public static float getBorderArc( JComponent c ) {
|
||||
if( c.getBorder() instanceof FlatLineBorder )
|
||||
return UIScale.scale( ((FlatLineBorder)c.getBorder()).getArc() );
|
||||
|
||||
FlatBorder border = getOutsideFlatBorder( c );
|
||||
return (border != null)
|
||||
? UIScale.scale( (float) border.getArc( c ) )
|
||||
|
||||
Reference in New Issue
Block a user