mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 14:37:13 -06:00
Popup: allow disabling native drop shadows for popups on macOS
This commit is contained in:
@@ -50,7 +50,7 @@ public class FlatPopupFactory
|
|||||||
public Popup getPopup( Component owner, Component contents, int x, int y )
|
public Popup getPopup( Component owner, Component contents, int x, int y )
|
||||||
throws IllegalArgumentException
|
throws IllegalArgumentException
|
||||||
{
|
{
|
||||||
if( !UIManager.getBoolean( "Popup.dropShadowPainted" ) && !SystemInfo.IS_MAC )
|
if( !UIManager.getBoolean( "Popup.dropShadowPainted" ) )
|
||||||
return super.getPopup( owner, contents, x, y );
|
return super.getPopup( owner, contents, x, y );
|
||||||
|
|
||||||
// always use heavy weight popup because the drop shadow increases
|
// always use heavy weight popup because the drop shadow increases
|
||||||
|
|||||||
Reference in New Issue
Block a user