mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-07 14:30:56 +03:00
MenuBar: do not use TitlePane.unifiedBackground if window decorations are disabled for the window
This commit is contained in:
@@ -104,8 +104,9 @@ public class FlatMenuBarUI
|
|||||||
|
|
||||||
// do not paint background for unified title pane
|
// do not paint background for unified title pane
|
||||||
// (not storing value of "TitlePane.unifiedBackground" in class to allow changing at runtime)
|
// (not storing value of "TitlePane.unifiedBackground" in class to allow changing at runtime)
|
||||||
if( UIManager.getBoolean( "TitlePane.unifiedBackground" ) )
|
if( UIManager.getBoolean( "TitlePane.unifiedBackground" ) &&
|
||||||
return false;
|
FlatNativeWindowBorder.hasCustomDecoration( (Window) rootPane.getParent() ) )
|
||||||
|
return false;
|
||||||
|
|
||||||
// paint background in full screen mode
|
// paint background in full screen mode
|
||||||
if( FlatUIUtils.isFullScreen( rootPane ) )
|
if( FlatUIUtils.isFullScreen( rootPane ) )
|
||||||
|
|||||||
Reference in New Issue
Block a user