macOS window buttons spacing:

- uninstall when switching from FlatLaf to another Laf
- install when switching from another Laf to FlatLaf

(for PR #779)
This commit is contained in:
Karl Tauber
2024-01-27 11:06:01 +01:00
parent ca514dd76e
commit c946ec170d
3 changed files with 78 additions and 29 deletions

View File

@@ -75,6 +75,14 @@ public class FlatMacOSTest
updateNativeButtonBounds();
}
@Override
public void updateUI() {
super.updateUI();
if( nativeButtonsBoundsField != null )
updateNativeButtonBounds();
}
private void fullWindowContentChanged() {
getRootPane().putClientProperty( "apple.awt.fullWindowContent", fullWindowContentCheckBox.isSelected() );
}