mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-10 22:17:13 -06:00
Typography: added light and semibold font/style
This commit is contained in:
@@ -53,6 +53,8 @@ public class FlatThemePreviewFonts
|
||||
FlatThemePreviewFonts.FontPreview mediumPreview = new FlatThemePreviewFonts.FontPreview();
|
||||
FlatThemePreviewFonts.FontPreview smallPreview = new FlatThemePreviewFonts.FontPreview();
|
||||
FlatThemePreviewFonts.FontPreview miniPreview = new FlatThemePreviewFonts.FontPreview();
|
||||
FlatThemePreviewFonts.FontPreview lightPreview = new FlatThemePreviewFonts.FontPreview();
|
||||
FlatThemePreviewFonts.FontPreview semiboldPreview = new FlatThemePreviewFonts.FontPreview();
|
||||
FlatThemePreviewFonts.FontPreview monospacedPreview = new FlatThemePreviewFonts.FontPreview();
|
||||
JLabel scaleLabel = new JLabel();
|
||||
scaleValueLabel = new JLabel();
|
||||
@@ -76,6 +78,8 @@ public class FlatThemePreviewFonts
|
||||
"[bottom]" +
|
||||
"[bottom]" +
|
||||
"[bottom]para" +
|
||||
"[]" +
|
||||
"[]para" +
|
||||
"[]para" +
|
||||
"[]"));
|
||||
|
||||
@@ -143,19 +147,29 @@ public class FlatThemePreviewFonts
|
||||
miniPreview.setFontStyle("mini");
|
||||
add(miniPreview, "cell 0 12,gapx 12");
|
||||
|
||||
//---- lightPreview ----
|
||||
lightPreview.setFontType("Light");
|
||||
lightPreview.setFontStyle("light");
|
||||
add(lightPreview, "cell 0 13,gapx 12");
|
||||
|
||||
//---- semiboldPreview ----
|
||||
semiboldPreview.setFontType("Semibold");
|
||||
semiboldPreview.setFontStyle("semibold");
|
||||
add(semiboldPreview, "cell 0 14,gapx 12");
|
||||
|
||||
//---- monospacedPreview ----
|
||||
monospacedPreview.setFontType("Monospaced");
|
||||
monospacedPreview.setFontStyle("monospaced");
|
||||
add(monospacedPreview, "cell 0 13,gapx 12");
|
||||
add(monospacedPreview, "cell 0 15,gapx 12");
|
||||
|
||||
//---- scaleLabel ----
|
||||
scaleLabel.setText("Fonts are scaled by:");
|
||||
add(scaleLabel, "cell 0 14,gapx 12");
|
||||
add(scaleLabel, "cell 0 16,gapx 12");
|
||||
|
||||
//---- scaleValueLabel ----
|
||||
scaleValueLabel.setText("1x");
|
||||
scaleValueLabel.putClientProperty("FlatLaf.styleClass", "h2");
|
||||
add(scaleValueLabel, "cell 0 14");
|
||||
add(scaleValueLabel, "cell 0 16");
|
||||
// JFormDesigner - End of component initialization //GEN-END:initComponents
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ new FormModel {
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$layoutConstraints": "ltr,insets dialog,hidemode 3"
|
||||
"$columnConstraints": "[left]unrel"
|
||||
"$rowConstraints": "[][bottom][bottom][bottom][bottom][bottom][bottom]para[][bottom][bottom][bottom][bottom][bottom]para[]para[]"
|
||||
"$rowConstraints": "[][bottom][bottom][bottom][bottom][bottom][bottom]para[][bottom][bottom][bottom][bottom][bottom]para[][]para[]para[]"
|
||||
} ) {
|
||||
name: "this"
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
@@ -105,18 +105,32 @@ new FormModel {
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 12,gapx 12"
|
||||
} )
|
||||
add( new FormComponent( "com.formdev.flatlaf.themeeditor.FlatThemePreviewFonts$FontPreview" ) {
|
||||
name: "lightPreview"
|
||||
"fontType": "Light"
|
||||
"fontStyle": "light"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 13,gapx 12"
|
||||
} )
|
||||
add( new FormComponent( "com.formdev.flatlaf.themeeditor.FlatThemePreviewFonts$FontPreview" ) {
|
||||
name: "semiboldPreview"
|
||||
"fontType": "Semibold"
|
||||
"fontStyle": "semibold"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 14,gapx 12"
|
||||
} )
|
||||
add( new FormComponent( "com.formdev.flatlaf.themeeditor.FlatThemePreviewFonts$FontPreview" ) {
|
||||
name: "monospacedPreview"
|
||||
"fontType": "Monospaced"
|
||||
"fontStyle": "monospaced"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 13,gapx 12"
|
||||
"value": "cell 0 15,gapx 12"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "scaleLabel"
|
||||
"text": "Fonts are scaled by:"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 14,gapx 12"
|
||||
"value": "cell 0 16,gapx 12"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "scaleValueLabel"
|
||||
@@ -126,11 +140,11 @@ new FormModel {
|
||||
"JavaCodeGenerator.variableLocal": false
|
||||
}
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 14"
|
||||
"value": "cell 0 16"
|
||||
} )
|
||||
}, new FormLayoutConstraints( null ) {
|
||||
"location": new java.awt.Point( 5, 0 )
|
||||
"size": new java.awt.Dimension( 335, 405 )
|
||||
"size": new java.awt.Dimension( 335, 495 )
|
||||
} )
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$layoutConstraints": "insets 0,hidemode 3"
|
||||
@@ -162,7 +176,7 @@ new FormModel {
|
||||
"value": "cell 1 0"
|
||||
} )
|
||||
}, new FormLayoutConstraints( null ) {
|
||||
"location": new java.awt.Point( 5, 435 )
|
||||
"location": new java.awt.Point( 5, 545 )
|
||||
"size": new java.awt.Dimension( 235, 65 )
|
||||
} )
|
||||
}
|
||||
|
||||
@@ -1071,9 +1071,11 @@ ViewportUI
|
||||
[style].h3
|
||||
[style].h4
|
||||
[style].large
|
||||
[style].light
|
||||
[style].medium
|
||||
[style].mini
|
||||
[style].monospaced
|
||||
[style].semibold
|
||||
[style].small
|
||||
activeCaption
|
||||
activeCaptionBorder
|
||||
@@ -1102,12 +1104,14 @@ infoText
|
||||
laf.dark
|
||||
laf.scaleFactor
|
||||
large.font
|
||||
light.font
|
||||
medium.font
|
||||
menu
|
||||
menuText
|
||||
mini.font
|
||||
monospaced.font
|
||||
scrollbar
|
||||
semibold.font
|
||||
small.font
|
||||
swingx/TaskPaneUI
|
||||
text
|
||||
|
||||
Reference in New Issue
Block a user