Styling: set "shared" flag to true when shared icon is assigned

This commit is contained in:
Karl Tauber
2021-07-05 23:12:45 +02:00
parent ac291b688d
commit 713a01bfa9
3 changed files with 3 additions and 0 deletions

View File

@@ -202,6 +202,7 @@ public class FlatButtonUI
toolbarSelectedBackground = UIManager.getColor( prefix + "toolbar.selectedBackground" ); toolbarSelectedBackground = UIManager.getColor( prefix + "toolbar.selectedBackground" );
helpButtonIcon = UIManager.getIcon( "HelpButton.icon" ); helpButtonIcon = UIManager.getIcon( "HelpButton.icon" );
helpButtonIconShared = true;
defaults_initialized = true; defaults_initialized = true;
} }

View File

@@ -102,6 +102,7 @@ public class FlatPasswordFieldUI
showCapsLock = UIManager.getBoolean( "PasswordField.showCapsLock" ); showCapsLock = UIManager.getBoolean( "PasswordField.showCapsLock" );
capsLockIcon = UIManager.getIcon( "PasswordField.capsLockIcon" ); capsLockIcon = UIManager.getIcon( "PasswordField.capsLockIcon" );
capsLockIconShared = true;
} }
@Override @Override

View File

@@ -105,6 +105,7 @@ public class FlatRadioButtonUI
defaultBackground = UIManager.getColor( prefix + "background" ); defaultBackground = UIManager.getColor( prefix + "background" );
iconShared = true;
defaults_initialized = true; defaults_initialized = true;
} }