Button: reset shadow variables on LaF switch

This commit is contained in:
Karl Tauber
2019-12-20 14:43:08 +01:00
parent 69750dba19
commit a483403774

View File

@@ -149,6 +149,10 @@ public class FlatButtonUI
shadowWidth = FlatUIUtils.getUIInt( "Button.shadowWidth", 2 );
shadowColor = UIManager.getColor( "Button.shadowColor" );
defaultShadowColor = UIManager.getColor( "Button.default.shadowColor" );
} else {
shadowWidth = 0;
shadowColor = null;
defaultShadowColor = null;
}
defaultBackground = FlatUIUtils.getUIColor( "Button.default.startBackground", "Button.default.background" );