Popup: allow disabling native drop shadows for popups on macOS

This commit is contained in:
Karl Tauber
2020-05-12 16:42:55 +02:00
parent ff481d759f
commit 01287d0669

View File

@@ -50,7 +50,7 @@ public class FlatPopupFactory
public Popup getPopup( Component owner, Component contents, int x, int y )
throws IllegalArgumentException
{
if( !UIManager.getBoolean( "Popup.dropShadowPainted" ) && !SystemInfo.IS_MAC )
if( !UIManager.getBoolean( "Popup.dropShadowPainted" ) )
return super.getPopup( owner, contents, x, y );
// always use heavy weight popup because the drop shadow increases