mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 14:37:13 -06:00
uninstall defaults, but only in non-shared instances
This commit is contained in:
@@ -81,6 +81,16 @@ public class FlatSliderUI
|
||||
focusColor = UIManager.getColor( "Component.focusColor" );
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void uninstallDefaults( JSlider slider ) {
|
||||
super.uninstallDefaults( slider );
|
||||
|
||||
trackColor = null;
|
||||
thumbColor = null;
|
||||
disabledForeground = null;
|
||||
focusColor = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dimension getPreferredHorizontalSize() {
|
||||
return UIScale.scale( super.getPreferredHorizontalSize() );
|
||||
|
||||
@@ -53,6 +53,14 @@ public class FlatTextAreaUI
|
||||
inactiveBackground = UIManager.getColor( "TextArea.inactiveBackground" );
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void uninstallDefaults() {
|
||||
super.uninstallDefaults();
|
||||
|
||||
disabledBackground = null;
|
||||
inactiveBackground = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void paintBackground( Graphics g ) {
|
||||
JTextComponent c = getComponent();
|
||||
|
||||
Reference in New Issue
Block a user