mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-13 07:17:13 -06:00
Button: reset shadow variables on LaF switch
This commit is contained in:
@@ -149,6 +149,10 @@ public class FlatButtonUI
|
|||||||
shadowWidth = FlatUIUtils.getUIInt( "Button.shadowWidth", 2 );
|
shadowWidth = FlatUIUtils.getUIInt( "Button.shadowWidth", 2 );
|
||||||
shadowColor = UIManager.getColor( "Button.shadowColor" );
|
shadowColor = UIManager.getColor( "Button.shadowColor" );
|
||||||
defaultShadowColor = UIManager.getColor( "Button.default.shadowColor" );
|
defaultShadowColor = UIManager.getColor( "Button.default.shadowColor" );
|
||||||
|
} else {
|
||||||
|
shadowWidth = 0;
|
||||||
|
shadowColor = null;
|
||||||
|
defaultShadowColor = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultBackground = FlatUIUtils.getUIColor( "Button.default.startBackground", "Button.default.background" );
|
defaultBackground = FlatUIUtils.getUIColor( "Button.default.startBackground", "Button.default.background" );
|
||||||
|
|||||||
Reference in New Issue
Block a user