UIDefaultsKeysDump: exclude unused UI properties

This commit is contained in:
Karl Tauber
2024-02-05 11:33:25 +01:00
parent 8adb7e3021
commit 3d8eb9eb66
2 changed files with 14 additions and 12 deletions

View File

@@ -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 ) ) )

View File

@@ -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