mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-10 22:17:13 -06:00
Typography: removed thin font/style because
- there is no thin font available on Windows - previously used "Segoe UI Light" for `thin.font` and "Segoe UI Semilight" for `light.font`, but "Segoe UI Semilight" is too close to regular font so that it is better to use "Segoe UI Light" for `light.font` and drop `thin.font` - the usefulness of having thin font in addition to light font is low on macOS use "HelveticaNeue-Thin" for `light.font` (instead of "HelveticaNeue-Light")
This commit is contained in:
@@ -141,7 +141,6 @@ class BasicComponentsPanel
|
||||
JLabel h2Label = new JLabel();
|
||||
JLabel h3Label = new JLabel();
|
||||
JLabel h4Label = new JLabel();
|
||||
JLabel thinLabel = new JLabel();
|
||||
JLabel lightLabel = new JLabel();
|
||||
JLabel semiboldLabel = new JLabel();
|
||||
JLabel fontZoomLabel = new JLabel();
|
||||
@@ -724,15 +723,10 @@ class BasicComponentsPanel
|
||||
h4Label.putClientProperty("FlatLaf.styleClass", "h4");
|
||||
add(h4Label, "cell 1 15 5 1");
|
||||
|
||||
//---- thinLabel ----
|
||||
thinLabel.setText("thin");
|
||||
thinLabel.putClientProperty("FlatLaf.style", "font: 200% $thin.font");
|
||||
add(thinLabel, "cell 1 15 5 1,gapx 30");
|
||||
|
||||
//---- lightLabel ----
|
||||
lightLabel.setText("light");
|
||||
lightLabel.putClientProperty("FlatLaf.style", "font: 200% $light.font");
|
||||
add(lightLabel, "cell 1 15 5 1");
|
||||
add(lightLabel, "cell 1 15 5 1,gapx 30");
|
||||
|
||||
//---- semiboldLabel ----
|
||||
semiboldLabel.setText("semibold");
|
||||
|
||||
@@ -719,19 +719,12 @@ new FormModel {
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 15 5 1"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "thinLabel"
|
||||
"text": "thin"
|
||||
"$client.FlatLaf.style": "font: 200% $thin.font"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 15 5 1,gapx 30"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "lightLabel"
|
||||
"text": "light"
|
||||
"$client.FlatLaf.style": "font: 200% $light.font"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 15 5 1"
|
||||
"value": "cell 1 15 5 1,gapx 30"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "semiboldLabel"
|
||||
|
||||
Reference in New Issue
Block a user