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