mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-07 22:40:53 +03:00
Typography:
- use semibold for `h1`, `h2` and `h3` - added `h1.regular`, `h2.regular` and `h3.regular`
This commit is contained in:
@@ -72,20 +72,29 @@
|
||||
|
||||
#---- h1 ----
|
||||
|
||||
- h1.font [active] Segoe UI plain 24 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h1.font [active] Helvetica Neue plain 25 javax.swing.plaf.FontUIResource [UI]
|
||||
- h1.font [active] Segoe UI Semibold plain 24 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h1.font [active] HelveticaNeue-Medium plain 25 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
- h1.regular.font [active] Segoe UI plain 24 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h1.regular.font [active] Helvetica Neue plain 25 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- h2 ----
|
||||
|
||||
- h2.font [active] Segoe UI plain 18 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h2.font [active] Helvetica Neue plain 19 javax.swing.plaf.FontUIResource [UI]
|
||||
- h2.font [active] Segoe UI Semibold plain 18 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h2.font [active] HelveticaNeue-Medium plain 19 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
- h2.regular.font [active] Segoe UI plain 18 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h2.regular.font [active] Helvetica Neue plain 19 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- h3 ----
|
||||
|
||||
- h3.font [active] Segoe UI plain 15 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h3.font [active] Helvetica Neue plain 16 javax.swing.plaf.FontUIResource [UI]
|
||||
- h3.font [active] Segoe UI Semibold plain 15 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h3.font [active] HelveticaNeue-Medium plain 16 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
- h3.regular.font [active] Segoe UI plain 15 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h3.regular.font [active] Helvetica Neue plain 16 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- h4 ----
|
||||
|
||||
@@ -1385,8 +1385,11 @@ ViewportUI com.formdev.flatlaf.ui.FlatViewportUI
|
||||
|
||||
[style].h00 font: $h00.font
|
||||
[style].h0 font: $h0.font
|
||||
[style].h1.regular font: $h1.regular.font
|
||||
[style].h1 font: $h1.font
|
||||
[style].h2.regular font: $h2.regular.font
|
||||
[style].h2 font: $h2.font
|
||||
[style].h3.regular font: $h3.regular.font
|
||||
[style].h3 font: $h3.font
|
||||
[style].h4 font: $h4.font
|
||||
[style].large font: $large.font
|
||||
@@ -1425,17 +1428,20 @@ h00.font [active] Segoe UI plain 36 javax.swing.plaf.Fo
|
||||
|
||||
#---- h1 ----
|
||||
|
||||
h1.font [active] Segoe UI plain 24 javax.swing.plaf.FontUIResource [UI]
|
||||
h1.font [active] Segoe UI Semibold plain 24 javax.swing.plaf.FontUIResource [UI]
|
||||
h1.regular.font [active] Segoe UI plain 24 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- h2 ----
|
||||
|
||||
h2.font [active] Segoe UI plain 18 javax.swing.plaf.FontUIResource [UI]
|
||||
h2.font [active] Segoe UI Semibold plain 18 javax.swing.plaf.FontUIResource [UI]
|
||||
h2.regular.font [active] Segoe UI plain 18 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- h3 ----
|
||||
|
||||
h3.font [active] Segoe UI plain 15 javax.swing.plaf.FontUIResource [UI]
|
||||
h3.font [active] Segoe UI Semibold plain 15 javax.swing.plaf.FontUIResource [UI]
|
||||
h3.regular.font [active] Segoe UI plain 15 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- h4 ----
|
||||
|
||||
@@ -72,20 +72,29 @@
|
||||
|
||||
#---- h1 ----
|
||||
|
||||
- h1.font [active] Segoe UI plain 24 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h1.font [active] Helvetica Neue plain 25 javax.swing.plaf.FontUIResource [UI]
|
||||
- h1.font [active] Segoe UI Semibold plain 24 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h1.font [active] HelveticaNeue-Medium plain 25 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
- h1.regular.font [active] Segoe UI plain 24 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h1.regular.font [active] Helvetica Neue plain 25 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- h2 ----
|
||||
|
||||
- h2.font [active] Segoe UI plain 18 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h2.font [active] Helvetica Neue plain 19 javax.swing.plaf.FontUIResource [UI]
|
||||
- h2.font [active] Segoe UI Semibold plain 18 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h2.font [active] HelveticaNeue-Medium plain 19 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
- h2.regular.font [active] Segoe UI plain 18 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h2.regular.font [active] Helvetica Neue plain 19 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- h3 ----
|
||||
|
||||
- h3.font [active] Segoe UI plain 15 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h3.font [active] Helvetica Neue plain 16 javax.swing.plaf.FontUIResource [UI]
|
||||
- h3.font [active] Segoe UI Semibold plain 15 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h3.font [active] HelveticaNeue-Medium plain 16 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
- h3.regular.font [active] Segoe UI plain 15 javax.swing.plaf.FontUIResource [UI]
|
||||
+ h3.regular.font [active] Helvetica Neue plain 16 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- h4 ----
|
||||
|
||||
@@ -1390,8 +1390,11 @@ ViewportUI com.formdev.flatlaf.ui.FlatViewportUI
|
||||
|
||||
[style].h00 font: $h00.font
|
||||
[style].h0 font: $h0.font
|
||||
[style].h1.regular font: $h1.regular.font
|
||||
[style].h1 font: $h1.font
|
||||
[style].h2.regular font: $h2.regular.font
|
||||
[style].h2 font: $h2.font
|
||||
[style].h3.regular font: $h3.regular.font
|
||||
[style].h3 font: $h3.font
|
||||
[style].h4 font: $h4.font
|
||||
[style].large font: $large.font
|
||||
@@ -1430,17 +1433,20 @@ h00.font [active] Segoe UI plain 36 javax.swing.plaf.Fo
|
||||
|
||||
#---- h1 ----
|
||||
|
||||
h1.font [active] Segoe UI plain 24 javax.swing.plaf.FontUIResource [UI]
|
||||
h1.font [active] Segoe UI Semibold plain 24 javax.swing.plaf.FontUIResource [UI]
|
||||
h1.regular.font [active] Segoe UI plain 24 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- h2 ----
|
||||
|
||||
h2.font [active] Segoe UI plain 18 javax.swing.plaf.FontUIResource [UI]
|
||||
h2.font [active] Segoe UI Semibold plain 18 javax.swing.plaf.FontUIResource [UI]
|
||||
h2.regular.font [active] Segoe UI plain 18 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- h3 ----
|
||||
|
||||
h3.font [active] Segoe UI plain 15 javax.swing.plaf.FontUIResource [UI]
|
||||
h3.font [active] Segoe UI Semibold plain 15 javax.swing.plaf.FontUIResource [UI]
|
||||
h3.regular.font [active] Segoe UI plain 15 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- h4 ----
|
||||
|
||||
@@ -1394,8 +1394,11 @@ ViewportUI com.formdev.flatlaf.ui.FlatViewportUI
|
||||
|
||||
[style].h00 font: $h00.font
|
||||
[style].h0 font: $h0.font
|
||||
[style].h1.regular font: $h1.regular.font
|
||||
[style].h1 font: $h1.font
|
||||
[style].h2.regular font: $h2.regular.font
|
||||
[style].h2 font: $h2.font
|
||||
[style].h3.regular font: $h3.regular.font
|
||||
[style].h3 font: $h3.font
|
||||
[style].h4 font: $h4.font
|
||||
[style].large font: $large.font
|
||||
@@ -1434,17 +1437,20 @@ h00.font [active] Segoe UI plain 36 javax.swing.plaf.Fo
|
||||
|
||||
#---- h1 ----
|
||||
|
||||
h1.font [active] Segoe UI plain 24 javax.swing.plaf.FontUIResource [UI]
|
||||
h1.font [active] Segoe UI Semibold plain 24 javax.swing.plaf.FontUIResource [UI]
|
||||
h1.regular.font [active] Segoe UI plain 24 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- h2 ----
|
||||
|
||||
h2.font [active] Segoe UI plain 18 javax.swing.plaf.FontUIResource [UI]
|
||||
h2.font [active] Segoe UI Semibold plain 18 javax.swing.plaf.FontUIResource [UI]
|
||||
h2.regular.font [active] Segoe UI plain 18 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- h3 ----
|
||||
|
||||
h3.font [active] Segoe UI plain 15 javax.swing.plaf.FontUIResource [UI]
|
||||
h3.font [active] Segoe UI Semibold plain 15 javax.swing.plaf.FontUIResource [UI]
|
||||
h3.regular.font [active] Segoe UI plain 15 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- h4 ----
|
||||
|
||||
@@ -437,6 +437,8 @@ public class FlatTypographyTest
|
||||
fontPreview2.setBaseSize(12);
|
||||
fontPreview2.setFontSize(24);
|
||||
fontPreview2.setFontType("H1");
|
||||
fontPreview2.setSemibold(true);
|
||||
fontPreview2.setShowPlain(true);
|
||||
add(fontPreview2, "cell 0 6");
|
||||
|
||||
//---- fontPreview12 ----
|
||||
@@ -510,6 +512,8 @@ public class FlatTypographyTest
|
||||
fontPreview3.setBaseSize(12);
|
||||
fontPreview3.setFontSize(18);
|
||||
fontPreview3.setFontType("H2");
|
||||
fontPreview3.setSemibold(true);
|
||||
fontPreview3.setShowPlain(true);
|
||||
add(fontPreview3, "cell 0 7");
|
||||
|
||||
//---- fontPreview13 ----
|
||||
@@ -583,6 +587,8 @@ public class FlatTypographyTest
|
||||
fontPreview4.setBaseSize(12);
|
||||
fontPreview4.setFontSize(15);
|
||||
fontPreview4.setFontType("H3");
|
||||
fontPreview4.setSemibold(true);
|
||||
fontPreview4.setShowPlain(true);
|
||||
add(fontPreview4, "cell 0 8");
|
||||
|
||||
//---- fontPreview14 ----
|
||||
@@ -1080,9 +1086,8 @@ public class FlatTypographyTest
|
||||
}
|
||||
|
||||
private void updateFont() {
|
||||
Font defaultFont = getBaseFont();
|
||||
previewLabel.setFont( defaultFont.deriveFont( bold ? Font.BOLD : Font.PLAIN, fontSize ) );
|
||||
preview2Label.setFont( defaultFont.deriveFont( Font.PLAIN, fontSize ) );
|
||||
previewLabel.setFont( getBaseFont().deriveFont( bold ? Font.BOLD : Font.PLAIN, fontSize ) );
|
||||
preview2Label.setFont( getDefaultFont().deriveFont( (float) fontSize ) );
|
||||
}
|
||||
|
||||
private void updateDescription() {
|
||||
@@ -1109,7 +1114,12 @@ public class FlatTypographyTest
|
||||
font = UIManager.getFont( "semibold.font" );
|
||||
|
||||
if( font == null )
|
||||
font = UIManager.getFont( "defaultFont" );
|
||||
font = getDefaultFont();
|
||||
return font;
|
||||
}
|
||||
|
||||
private Font getDefaultFont() {
|
||||
Font font = UIManager.getFont( "defaultFont" );
|
||||
if( font == null )
|
||||
font = UIManager.getFont( "Label.font" );
|
||||
return font;
|
||||
|
||||
@@ -335,6 +335,8 @@ new FormModel {
|
||||
"baseSize": 12
|
||||
"fontSize": 24
|
||||
"fontType": "H1"
|
||||
"semibold": true
|
||||
"showPlain": true
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 6"
|
||||
} )
|
||||
@@ -430,6 +432,8 @@ new FormModel {
|
||||
"baseSize": 12
|
||||
"fontSize": 18
|
||||
"fontType": "H2"
|
||||
"semibold": true
|
||||
"showPlain": true
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 7"
|
||||
} )
|
||||
@@ -525,6 +529,8 @@ new FormModel {
|
||||
"baseSize": 12
|
||||
"fontSize": 15
|
||||
"fontType": "H3"
|
||||
"semibold": true
|
||||
"showPlain": true
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 8"
|
||||
} )
|
||||
|
||||
Reference in New Issue
Block a user