mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-27 03:46:17 -06:00
FlatLineBorder: use arc from Label or Panel, if not specified in border (issue #842)
This commit is contained in:
@@ -553,7 +553,7 @@ class MoreComponentsPanel
|
||||
|
||||
//---- label10 ----
|
||||
label10.setText("rounded border");
|
||||
label10.putClientProperty("FlatLaf.style", "border: 2,10,2,10,#135b76,1,999");
|
||||
label10.putClientProperty("FlatLaf.style", "arc: 999; border: 2,10,2,10,#135b76");
|
||||
label10.setBackground(new Color(0xb8e4f3));
|
||||
label10.setForeground(new Color(0x135b76));
|
||||
add(label10, "cell 1 13 4 1");
|
||||
|
||||
@@ -517,7 +517,7 @@ new FormModel {
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label10"
|
||||
"text": "rounded border"
|
||||
"$client.FlatLaf.style": "border: 2,10,2,10,#135b76,1,999"
|
||||
"$client.FlatLaf.style": "arc: 999; border: 2,10,2,10,#135b76"
|
||||
"background": new java.awt.Color( 184, 228, 243, 255 )
|
||||
"foreground": new java.awt.Color( 19, 91, 118, 255 )
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
|
||||
Reference in New Issue
Block a user