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:
Karl Tauber
2022-11-16 20:07:11 +01:00
parent 5f047ddda9
commit 4d175da3a0
3 changed files with 9 additions and 7 deletions

View File

@@ -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();
} );

View File

@@ -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(