mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 23:07:15 -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" );
|
focusColor = UIManager.getColor( "Component.focusColor" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void uninstallDefaults( JSlider slider ) {
|
||||||
|
super.uninstallDefaults( slider );
|
||||||
|
|
||||||
|
trackColor = null;
|
||||||
|
thumbColor = null;
|
||||||
|
disabledForeground = null;
|
||||||
|
focusColor = null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Dimension getPreferredHorizontalSize() {
|
public Dimension getPreferredHorizontalSize() {
|
||||||
return UIScale.scale( super.getPreferredHorizontalSize() );
|
return UIScale.scale( super.getPreferredHorizontalSize() );
|
||||||
|
|||||||
@@ -53,6 +53,14 @@ public class FlatTextAreaUI
|
|||||||
inactiveBackground = UIManager.getColor( "TextArea.inactiveBackground" );
|
inactiveBackground = UIManager.getColor( "TextArea.inactiveBackground" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void uninstallDefaults() {
|
||||||
|
super.uninstallDefaults();
|
||||||
|
|
||||||
|
disabledBackground = null;
|
||||||
|
inactiveBackground = null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void paintBackground( Graphics g ) {
|
protected void paintBackground( Graphics g ) {
|
||||||
JTextComponent c = getComponent();
|
JTextComponent c = getComponent();
|
||||||
|
|||||||
Reference in New Issue
Block a user