UIDefaultsKeysDump: also use FlatTestLaf, which adds missing keys to FlatLafUIKeys.txt

This commit is contained in:
Karl Tauber
2021-07-10 13:28:02 +02:00
parent 548d651d29
commit 4d8b544aed
2 changed files with 36 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ import java.util.Locale;
import javax.swing.UIDefaults; import javax.swing.UIDefaults;
import javax.swing.UIManager; import javax.swing.UIManager;
import com.formdev.flatlaf.*; import com.formdev.flatlaf.*;
import com.formdev.flatlaf.testing.FlatTestLaf;
/** /**
* Collects all FlatLaf UI defaults keys and dumps them to a file. * Collects all FlatLaf UI defaults keys and dumps them to a file.
@@ -60,6 +61,7 @@ public class UIDefaultsKeysDump
collectKeys( FlatDarkLaf.class.getName(), keys ); collectKeys( FlatDarkLaf.class.getName(), keys );
collectKeys( FlatIntelliJLaf.class.getName(), keys ); collectKeys( FlatIntelliJLaf.class.getName(), keys );
collectKeys( FlatDarculaLaf.class.getName(), keys ); collectKeys( FlatDarculaLaf.class.getName(), keys );
collectKeys( FlatTestLaf.class.getName(), keys );
// write key file // write key file
try( Writer fileWriter = new BufferedWriter( new FileWriter( keysFile ) ) ) { try( Writer fileWriter = new BufferedWriter( new FileWriter( keysFile ) ) ) {

View File

@@ -18,6 +18,8 @@ Button.default.background
Button.default.boldText Button.default.boldText
Button.default.borderColor Button.default.borderColor
Button.default.borderWidth Button.default.borderWidth
Button.default.endBackground
Button.default.endBorderColor
Button.default.focusColor Button.default.focusColor
Button.default.focusedBackground Button.default.focusedBackground
Button.default.focusedBorderColor Button.default.focusedBorderColor
@@ -25,12 +27,16 @@ Button.default.foreground
Button.default.hoverBackground Button.default.hoverBackground
Button.default.hoverBorderColor Button.default.hoverBorderColor
Button.default.pressedBackground Button.default.pressedBackground
Button.default.startBackground
Button.default.startBorderColor
Button.defaultButtonFollowsFocus Button.defaultButtonFollowsFocus
Button.disabledBackground Button.disabledBackground
Button.disabledBorderColor Button.disabledBorderColor
Button.disabledForeground Button.disabledForeground
Button.disabledSelectedBackground Button.disabledSelectedBackground
Button.disabledText Button.disabledText
Button.endBackground
Button.endBorderColor
Button.focusInputMap Button.focusInputMap
Button.focusedBackground Button.focusedBackground
Button.focusedBorderColor Button.focusedBorderColor
@@ -49,6 +55,8 @@ Button.rollover
Button.selectedBackground Button.selectedBackground
Button.selectedForeground Button.selectedForeground
Button.shadow Button.shadow
Button.startBackground
Button.startBorderColor
Button.textIconGap Button.textIconGap
Button.textShiftOffset Button.textShiftOffset
Button.toolbar.hoverBackground Button.toolbar.hoverBackground
@@ -142,6 +150,7 @@ ComboBox.buttonBackground
ComboBox.buttonDarkShadow ComboBox.buttonDarkShadow
ComboBox.buttonDisabledArrowColor ComboBox.buttonDisabledArrowColor
ComboBox.buttonEditableBackground ComboBox.buttonEditableBackground
ComboBox.buttonFocusedBackground
ComboBox.buttonHighlight ComboBox.buttonHighlight
ComboBox.buttonHoverArrowColor ComboBox.buttonHoverArrowColor
ComboBox.buttonPressedArrowColor ComboBox.buttonPressedArrowColor
@@ -150,6 +159,7 @@ ComboBox.buttonStyle
ComboBox.disabledBackground ComboBox.disabledBackground
ComboBox.disabledForeground ComboBox.disabledForeground
ComboBox.editorColumns ComboBox.editorColumns
ComboBox.focusedBackground
ComboBox.font ComboBox.font
ComboBox.foreground ComboBox.foreground
ComboBox.isEnterSelectablePopup ComboBox.isEnterSelectablePopup
@@ -157,6 +167,7 @@ ComboBox.maximumRowCount
ComboBox.minimumWidth ComboBox.minimumWidth
ComboBox.noActionOnKeyNavigation ComboBox.noActionOnKeyNavigation
ComboBox.padding ComboBox.padding
ComboBox.popupBackground
ComboBox.selectionBackground ComboBox.selectionBackground
ComboBox.selectionForeground ComboBox.selectionForeground
ComboBox.timeFactor ComboBox.timeFactor
@@ -197,6 +208,7 @@ EditorPane.caretBlinkRate
EditorPane.caretForeground EditorPane.caretForeground
EditorPane.disabledBackground EditorPane.disabledBackground
EditorPane.focusInputMap EditorPane.focusInputMap
EditorPane.focusedBackground
EditorPane.font EditorPane.font
EditorPane.foreground EditorPane.foreground
EditorPane.inactiveBackground EditorPane.inactiveBackground
@@ -226,6 +238,7 @@ FormattedTextField.caretBlinkRate
FormattedTextField.caretForeground FormattedTextField.caretForeground
FormattedTextField.disabledBackground FormattedTextField.disabledBackground
FormattedTextField.focusInputMap FormattedTextField.focusInputMap
FormattedTextField.focusedBackground
FormattedTextField.font FormattedTextField.font
FormattedTextField.foreground FormattedTextField.foreground
FormattedTextField.inactiveBackground FormattedTextField.inactiveBackground
@@ -295,7 +308,9 @@ JXBusyLabel.baseColor
JXBusyLabel.highlightColor JXBusyLabel.highlightColor
JXDatePicker.border JXDatePicker.border
JXHeader.background JXHeader.background
JXHeader.descriptionForeground
JXHeader.startBackground JXHeader.startBackground
JXHeader.titleForeground
JXMonthView.arrowColor JXMonthView.arrowColor
JXMonthView.background JXMonthView.background
JXMonthView.daysOfTheWeekForeground JXMonthView.daysOfTheWeekForeground
@@ -475,6 +490,11 @@ OptionPane.buttonPadding
OptionPane.errorIcon OptionPane.errorIcon
OptionPane.font OptionPane.font
OptionPane.foreground OptionPane.foreground
OptionPane.icon.errorColor
OptionPane.icon.foreground
OptionPane.icon.informationColor
OptionPane.icon.questionColor
OptionPane.icon.warningColor
OptionPane.iconMessageGap OptionPane.iconMessageGap
OptionPane.informationIcon OptionPane.informationIcon
OptionPane.maxCharactersPerLine OptionPane.maxCharactersPerLine
@@ -500,6 +520,7 @@ PasswordField.caretForeground
PasswordField.disabledBackground PasswordField.disabledBackground
PasswordField.echoChar PasswordField.echoChar
PasswordField.focusInputMap PasswordField.focusInputMap
PasswordField.focusedBackground
PasswordField.font PasswordField.font
PasswordField.foreground PasswordField.foreground
PasswordField.inactiveBackground PasswordField.inactiveBackground
@@ -651,11 +672,14 @@ Slider.foreground
Slider.highlight Slider.highlight
Slider.horizontalSize Slider.horizontalSize
Slider.hoverThumbColor Slider.hoverThumbColor
Slider.hoverTrackColor
Slider.minimumHorizontalSize Slider.minimumHorizontalSize
Slider.minimumVerticalSize Slider.minimumVerticalSize
Slider.onlyLeftMouseButtonDrag Slider.onlyLeftMouseButtonDrag
Slider.pressedThumbColor Slider.pressedThumbColor
Slider.pressedTrackColor
Slider.shadow Slider.shadow
Slider.thumbBorderColor
Slider.thumbColor Slider.thumbColor
Slider.thumbSize Slider.thumbSize
Slider.tickColor Slider.tickColor
@@ -678,6 +702,7 @@ Spinner.disabledBackground
Spinner.disabledForeground Spinner.disabledForeground
Spinner.editorAlignment Spinner.editorAlignment
Spinner.editorBorderPainted Spinner.editorBorderPainted
Spinner.focusedBackground
Spinner.font Spinner.font
Spinner.foreground Spinner.foreground
Spinner.padding Spinner.padding
@@ -753,6 +778,7 @@ TabbedPane.tabHeight
TabbedPane.tabInsets TabbedPane.tabInsets
TabbedPane.tabRunOverlay TabbedPane.tabRunOverlay
TabbedPane.tabSelectionHeight TabbedPane.tabSelectionHeight
TabbedPane.tabSeparatorColor
TabbedPane.tabSeparatorsFullHeight TabbedPane.tabSeparatorsFullHeight
TabbedPane.tabWidthMode TabbedPane.tabWidthMode
TabbedPane.tabsOpaque TabbedPane.tabsOpaque
@@ -820,6 +846,7 @@ TextArea.caretBlinkRate
TextArea.caretForeground TextArea.caretForeground
TextArea.disabledBackground TextArea.disabledBackground
TextArea.focusInputMap TextArea.focusInputMap
TextArea.focusedBackground
TextArea.font TextArea.font
TextArea.foreground TextArea.foreground
TextArea.inactiveBackground TextArea.inactiveBackground
@@ -838,6 +865,7 @@ TextField.caretForeground
TextField.darkShadow TextField.darkShadow
TextField.disabledBackground TextField.disabledBackground
TextField.focusInputMap TextField.focusInputMap
TextField.focusedBackground
TextField.font TextField.font
TextField.foreground TextField.foreground
TextField.highlight TextField.highlight
@@ -856,6 +884,7 @@ TextPane.caretBlinkRate
TextPane.caretForeground TextPane.caretForeground
TextPane.disabledBackground TextPane.disabledBackground
TextPane.focusInputMap TextPane.focusInputMap
TextPane.focusedBackground
TextPane.font TextPane.font
TextPane.foreground TextPane.foreground
TextPane.inactiveBackground TextPane.inactiveBackground
@@ -865,6 +894,7 @@ TextPane.selectionBackground
TextPane.selectionForeground TextPane.selectionForeground
TextPaneUI TextPaneUI
TitlePane.background TitlePane.background
TitlePane.borderColor
TitlePane.buttonHoverBackground TitlePane.buttonHoverBackground
TitlePane.buttonMaximizedHeight TitlePane.buttonMaximizedHeight
TitlePane.buttonPressedBackground TitlePane.buttonPressedBackground
@@ -902,9 +932,11 @@ ToggleButton.disabledBackground
ToggleButton.disabledSelectedBackground ToggleButton.disabledSelectedBackground
ToggleButton.disabledText ToggleButton.disabledText
ToggleButton.focusInputMap ToggleButton.focusInputMap
ToggleButton.focusedBackground
ToggleButton.font ToggleButton.font
ToggleButton.foreground ToggleButton.foreground
ToggleButton.highlight ToggleButton.highlight
ToggleButton.hoverBackground
ToggleButton.iconTextGap ToggleButton.iconTextGap
ToggleButton.light ToggleButton.light
ToggleButton.margin ToggleButton.margin
@@ -916,6 +948,7 @@ ToggleButton.shadow
ToggleButton.tab.disabledUnderlineColor ToggleButton.tab.disabledUnderlineColor
ToggleButton.tab.focusBackground ToggleButton.tab.focusBackground
ToggleButton.tab.hoverBackground ToggleButton.tab.hoverBackground
ToggleButton.tab.selectedBackground
ToggleButton.tab.underlineColor ToggleButton.tab.underlineColor
ToggleButton.tab.underlineHeight ToggleButton.tab.underlineHeight
ToggleButton.textIconGap ToggleButton.textIconGap
@@ -962,6 +995,7 @@ Tree.dropCellBackground
Tree.dropCellForeground Tree.dropCellForeground
Tree.dropLineColor Tree.dropLineColor
Tree.editorBorder Tree.editorBorder
Tree.editorBorderSelectionColor
Tree.expandedIcon Tree.expandedIcon
Tree.focusInputMap Tree.focusInputMap
Tree.focusInputMap.RightToLeft Tree.focusInputMap.RightToLeft