fix wizard popups background on macs
authorAlexey Pegov <alexey.pegov@jetbrains.com>
Wed, 11 Aug 2010 12:25:49 +0000 (16:25 +0400)
committerAlexey Pegov <alexey.pegov@jetbrains.com>
Wed, 11 Aug 2010 12:25:49 +0000 (16:25 +0400)
platform/platform-impl/src/com/intellij/ui/popup/AbstractPopup.java

index db179130e98b17ff91d3767ecc8b0d77dc97025f..5bfb2e92403cb2bd21efdc0a61aec265c62085b3 100644 (file)
@@ -1025,6 +1025,10 @@ public class AbstractPopup implements JBPopup {
       else {
         setBorder(border);
       }
       else {
         setBorder(border);
       }
+
+      if (drawMacCorner && UIUtil.isUnderAquaLookAndFeel()) {
+        setBackground(new Color(UIUtil.getPanelBackgound().getRGB()));
+      }
     }
 
     public void paint(Graphics g) {
     }
 
     public void paint(Graphics g) {