Fix popup shadow issue on Linux

Linux adds drop shadow to heavy weight popups. So there is no
need to draw shadow manually.
This commit is contained in:
Amit Mendapara
2020-05-10 22:46:57 +05:30
committed by GitHub
parent 0a0f834f23
commit 71248f1708

View File

@@ -61,8 +61,8 @@ public class FlatPopupFactory
if( popup == null )
return super.getPopup( owner, contents, x, y );
// macOS adds drop shadow to heavy weight popups
if( SystemInfo.IS_MAC )
// macOS and Linux adds drop shadow to heavy weight popups
if( SystemInfo.IS_MAC || SystemInfo.IS_LINUX )
return popup;
// create drop shadow popup