mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
Typography: added thin font/style
This commit is contained in:
@@ -53,6 +53,7 @@ public class FlatThemePreviewFonts
|
||||
FlatThemePreviewFonts.FontPreview mediumPreview = new FlatThemePreviewFonts.FontPreview();
|
||||
FlatThemePreviewFonts.FontPreview smallPreview = new FlatThemePreviewFonts.FontPreview();
|
||||
FlatThemePreviewFonts.FontPreview miniPreview = new FlatThemePreviewFonts.FontPreview();
|
||||
FlatThemePreviewFonts.FontPreview thinPreview = new FlatThemePreviewFonts.FontPreview();
|
||||
FlatThemePreviewFonts.FontPreview lightPreview = new FlatThemePreviewFonts.FontPreview();
|
||||
FlatThemePreviewFonts.FontPreview semiboldPreview = new FlatThemePreviewFonts.FontPreview();
|
||||
FlatThemePreviewFonts.FontPreview monospacedPreview = new FlatThemePreviewFonts.FontPreview();
|
||||
@@ -79,6 +80,7 @@ public class FlatThemePreviewFonts
|
||||
"[bottom]" +
|
||||
"[bottom]para" +
|
||||
"[]" +
|
||||
"[]" +
|
||||
"[]para" +
|
||||
"[]para" +
|
||||
"[]"));
|
||||
@@ -147,29 +149,34 @@ public class FlatThemePreviewFonts
|
||||
miniPreview.setFontStyle("mini");
|
||||
add(miniPreview, "cell 0 12,gapx 12");
|
||||
|
||||
//---- thinPreview ----
|
||||
thinPreview.setFontType("Thin");
|
||||
thinPreview.setFontStyle("thin");
|
||||
add(thinPreview, "cell 0 13,gapx 12");
|
||||
|
||||
//---- lightPreview ----
|
||||
lightPreview.setFontType("Light");
|
||||
lightPreview.setFontStyle("light");
|
||||
add(lightPreview, "cell 0 13,gapx 12");
|
||||
add(lightPreview, "cell 0 14,gapx 12");
|
||||
|
||||
//---- semiboldPreview ----
|
||||
semiboldPreview.setFontType("Semibold");
|
||||
semiboldPreview.setFontStyle("semibold");
|
||||
add(semiboldPreview, "cell 0 14,gapx 12");
|
||||
add(semiboldPreview, "cell 0 15,gapx 12");
|
||||
|
||||
//---- monospacedPreview ----
|
||||
monospacedPreview.setFontType("Monospaced");
|
||||
monospacedPreview.setFontStyle("monospaced");
|
||||
add(monospacedPreview, "cell 0 15,gapx 12");
|
||||
add(monospacedPreview, "cell 0 16,gapx 12");
|
||||
|
||||
//---- scaleLabel ----
|
||||
scaleLabel.setText("Fonts are scaled by:");
|
||||
add(scaleLabel, "cell 0 16,gapx 12");
|
||||
add(scaleLabel, "cell 0 17,gapx 12");
|
||||
|
||||
//---- scaleValueLabel ----
|
||||
scaleValueLabel.setText("1x");
|
||||
scaleValueLabel.putClientProperty("FlatLaf.styleClass", "h2");
|
||||
add(scaleValueLabel, "cell 0 16");
|
||||
add(scaleValueLabel, "cell 0 17");
|
||||
// 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[]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,32 +105,39 @@ 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: "thinPreview"
|
||||
"fontType": "Thin"
|
||||
"fontStyle": "thin"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 13,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"
|
||||
"value": "cell 0 14,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"
|
||||
"value": "cell 0 15,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 15,gapx 12"
|
||||
"value": "cell 0 16,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 16,gapx 12"
|
||||
"value": "cell 0 17,gapx 12"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "scaleValueLabel"
|
||||
@@ -140,7 +147,7 @@ new FormModel {
|
||||
"JavaCodeGenerator.variableLocal": false
|
||||
}
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 16"
|
||||
"value": "cell 0 17"
|
||||
} )
|
||||
}, new FormLayoutConstraints( null ) {
|
||||
"location": new java.awt.Point( 5, 0 )
|
||||
|
||||
@@ -1077,6 +1077,7 @@ ViewportUI
|
||||
[style].monospaced
|
||||
[style].semibold
|
||||
[style].small
|
||||
[style].thin
|
||||
activeCaption
|
||||
activeCaptionBorder
|
||||
activeCaptionText
|
||||
@@ -1119,6 +1120,7 @@ textHighlight
|
||||
textHighlightText
|
||||
textInactiveText
|
||||
textText
|
||||
thin.font
|
||||
window
|
||||
windowBorder
|
||||
windowText
|
||||
|
||||
Reference in New Issue
Block a user