mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-10 22:17:13 -06:00
Testing: support interprocess Laf sync (enable/disable with Alt+Shift+S)
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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() );
|
||||
|
||||
Reference in New Issue
Block a user