Testing: support interprocess Laf sync (enable/disable with Alt+Shift+S)

This commit is contained in:
Karl Tauber
2025-03-09 13:31:38 +01:00
parent 0bc2513c46
commit c486f695f2
4 changed files with 155 additions and 24 deletions

View File

@@ -142,6 +142,9 @@ public class FlatSingleComponentTest
// register Alt+Shift+F1, F2, ... keys to change system scale factor
DemoPrefs.registerSystemScaleFactors( this );
// register Alt+Shift+S to enable/disable interprocess Laf sync
DemoPrefs.initLafSync( this );
// register Alt+R key to toggle component orientation
registerKey( "alt R", () -> {
applyComponentOrientation( getComponentOrientation().isLeftToRight()

View File

@@ -176,6 +176,9 @@ public class FlatTestFrame
// register Alt+Shift+F1, F2, ... keys to change system scale factor
DemoPrefs.registerSystemScaleFactors( this );
// register Alt+Shift+S to enable/disable interprocess Laf sync
DemoPrefs.initLafSync( this );
// register Ctrl+0, Ctrl++ and Ctrl+- to change font size
registerKey( SystemInfo.isMacOS ? "meta 0" : "ctrl 0", () -> restoreFont() );
registerKey( SystemInfo.isMacOS ? "meta PLUS" : "ctrl PLUS", () -> incrFont() );