mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-13 15:27:16 -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()
|
boolean supportsWindowDecorations = UIManager.getLookAndFeel()
|
||||||
.getSupportsWindowDecorations() || FlatNativeWindowBorder.isSupported();
|
.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() ) {
|
if( !supportsWindowDecorations || JBRCustomDecorations.isSupported() ) {
|
||||||
windowDecorationsCheckBoxMenuItem.setEnabled( false );
|
windowDecorationsCheckBoxMenuItem.setEnabled( false );
|
||||||
windowDecorationsCheckBoxMenuItem.setSelected( false );
|
windowDecorationsCheckBoxMenuItem.setSelected( false );
|
||||||
|
|||||||
Reference in New Issue
Block a user