mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +03:00
UIDefaultsKeysDump: exclude unused UI properties
This commit is contained in:
@@ -68,6 +68,20 @@ public class UIDefaultsKeysDump
|
||||
collectKeys( FlatDarculaLaf.class.getName(), keys );
|
||||
collectKeys( FlatTestLaf.class.getName(), keys );
|
||||
|
||||
// remove unused keys (defined in BasicLookAndFeel)
|
||||
keys.remove( "Button.textIconGap" );
|
||||
keys.remove( "Button.textShiftOffset" );
|
||||
keys.remove( "CheckBox.textIconGap" );
|
||||
keys.remove( "CheckBox.textShiftOffset" );
|
||||
keys.remove( "RadioButton.textIconGap" );
|
||||
keys.remove( "RadioButton.textShiftOffset" );
|
||||
keys.remove( "TabbedPane.contentOpaque" );
|
||||
keys.remove( "TabbedPane.selectedTabPadInsets" );
|
||||
keys.remove( "TabbedPane.shadow" );
|
||||
keys.remove( "TabbedPane.tabsOverlapBorder" );
|
||||
keys.remove( "ToggleButton.textIconGap" );
|
||||
keys.remove( "ToggleButton.textShiftOffset" );
|
||||
|
||||
// write key file
|
||||
try( Writer fileWriter = new BufferedWriter( new OutputStreamWriter(
|
||||
new FileOutputStream( keysFile ), StandardCharsets.UTF_8 ) ) )
|
||||
|
||||
@@ -64,8 +64,6 @@ Button.selectedForeground
|
||||
Button.shadow
|
||||
Button.startBackground
|
||||
Button.startBorderColor
|
||||
Button.textIconGap
|
||||
Button.textShiftOffset
|
||||
Button.toolbar.disabledSelectedBackground
|
||||
Button.toolbar.disabledSelectedForeground
|
||||
Button.toolbar.hoverBackground
|
||||
@@ -149,8 +147,6 @@ CheckBox.icon[filled].selectedBorderColor
|
||||
CheckBox.icon[filled].selectedBorderWidth
|
||||
CheckBox.margin
|
||||
CheckBox.rollover
|
||||
CheckBox.textIconGap
|
||||
CheckBox.textShiftOffset
|
||||
CheckBoxMenuItem.acceleratorForeground
|
||||
CheckBoxMenuItem.acceleratorSelectionForeground
|
||||
CheckBoxMenuItem.arrowIcon
|
||||
@@ -655,8 +651,6 @@ RadioButton.light
|
||||
RadioButton.margin
|
||||
RadioButton.rollover
|
||||
RadioButton.shadow
|
||||
RadioButton.textIconGap
|
||||
RadioButton.textShiftOffset
|
||||
RadioButtonMenuItem.acceleratorForeground
|
||||
RadioButtonMenuItem.acceleratorSelectionForeground
|
||||
RadioButtonMenuItem.arrowIcon
|
||||
@@ -855,7 +849,6 @@ TabbedPane.closePressedBackground
|
||||
TabbedPane.closePressedForeground
|
||||
TabbedPane.closeSize
|
||||
TabbedPane.contentAreaColor
|
||||
TabbedPane.contentOpaque
|
||||
TabbedPane.contentSeparatorHeight
|
||||
TabbedPane.darkShadow
|
||||
TabbedPane.disabledForeground
|
||||
@@ -881,9 +874,7 @@ TabbedPane.selectedBackground
|
||||
TabbedPane.selectedForeground
|
||||
TabbedPane.selectedInsets
|
||||
TabbedPane.selectedLabelShift
|
||||
TabbedPane.selectedTabPadInsets
|
||||
TabbedPane.selectionFollowsFocus
|
||||
TabbedPane.shadow
|
||||
TabbedPane.showTabSeparators
|
||||
TabbedPane.tabAlignment
|
||||
TabbedPane.tabArc
|
||||
@@ -901,7 +892,6 @@ TabbedPane.tabSeparatorsFullHeight
|
||||
TabbedPane.tabType
|
||||
TabbedPane.tabWidthMode
|
||||
TabbedPane.tabsOpaque
|
||||
TabbedPane.tabsOverlapBorder
|
||||
TabbedPane.tabsPopupPolicy
|
||||
TabbedPane.textIconGap
|
||||
TabbedPane.underlineColor
|
||||
@@ -1130,8 +1120,6 @@ ToggleButton.tab.selectedBackground
|
||||
ToggleButton.tab.selectedForeground
|
||||
ToggleButton.tab.underlineColor
|
||||
ToggleButton.tab.underlineHeight
|
||||
ToggleButton.textIconGap
|
||||
ToggleButton.textShiftOffset
|
||||
ToggleButton.toolbar.disabledSelectedBackground
|
||||
ToggleButton.toolbar.disabledSelectedForeground
|
||||
ToggleButton.toolbar.hoverBackground
|
||||
|
||||
Reference in New Issue
Block a user