mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
Add comment explaining why the use of JBR results in not having custom decorations
This commit is contained in:
@@ -750,6 +750,9 @@ class DemoFrame
|
||||
|
||||
boolean supportsWindowDecorations = UIManager.getLookAndFeel()
|
||||
.getSupportsWindowDecorations() || FlatNativeWindowBorder.isSupported();
|
||||
|
||||
// If the JetBrainsRuntime is used, it forces the use of it's own custom
|
||||
// window decoration, meaning we can't use our own.
|
||||
if( !supportsWindowDecorations || JBRCustomDecorations.isSupported() ) {
|
||||
windowDecorationsCheckBoxMenuItem.setEnabled( false );
|
||||
windowDecorationsCheckBoxMenuItem.setSelected( false );
|
||||
|
||||
Reference in New Issue
Block a user