mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 22:10:54 +03:00
Window decorations: added debug option to paint title bar rectangles that are used by Windows 10/11 in WM_NCHITTEST to identify special areas
This commit is contained in:
@@ -57,6 +57,7 @@ public class FlatNativeWindowBorderTest
|
||||
SwingUtilities.invokeLater( () -> {
|
||||
FlatLightLaf.setup();
|
||||
FlatInspector.install( "ctrl shift alt X" );
|
||||
UIManager.put( "FlatLaf.debug.titlebar.showRectangles", true );
|
||||
|
||||
mainFrame = showFrame();
|
||||
} );
|
||||
|
||||
@@ -49,6 +49,7 @@ public class FlatWindowDecorationsTest
|
||||
|
||||
FlatTestFrame frame = FlatTestFrame.create( args, "FlatWindowDecorationsTest" );
|
||||
frame.applyComponentOrientationToFrame = true;
|
||||
UIManager.put( "FlatLaf.debug.titlebar.showRectangles", true );
|
||||
|
||||
Class<?> cls = FlatWindowDecorationsTest.class;
|
||||
List<Image> images = Arrays.asList(
|
||||
|
||||
Reference in New Issue
Block a user