From 39be9ec94c2fe8091dca24131ef7c2cae5f6b436 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Thu, 29 Nov 2012 11:51:30 +0100 Subject: [PATCH] IDEA-96027 Welcome Screen: menu arrow buttons are not anti-aliased (cherry picked from commit 3050a708f71974ac0f1567f36bdd6a3e4a71800e) --- .../openapi/wm/impl/welcomeScreen/CardActionsPanel.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/platform-impl/src/com/intellij/openapi/wm/impl/welcomeScreen/CardActionsPanel.java b/platform/platform-impl/src/com/intellij/openapi/wm/impl/welcomeScreen/CardActionsPanel.java index e35e6b2d49d0..08ce9caa0db5 100644 --- a/platform/platform-impl/src/com/intellij/openapi/wm/impl/welcomeScreen/CardActionsPanel.java +++ b/platform/platform-impl/src/com/intellij/openapi/wm/impl/welcomeScreen/CardActionsPanel.java @@ -24,10 +24,12 @@ import com.intellij.ide.DataManager; import com.intellij.openapi.actionSystem.*; import com.intellij.openapi.actionSystem.impl.ActionButtonWithText; import com.intellij.openapi.actionSystem.impl.PresentationFactory; +import com.intellij.openapi.ui.GraphicsConfig; import com.intellij.openapi.util.IconLoader; import com.intellij.ui.JBCardLayout; import com.intellij.ui.LightColors; import com.intellij.util.ui.CenteredIcon; +import com.intellij.util.ui.GraphicsUtil; import javax.swing.*; import javax.swing.border.EmptyBorder; @@ -185,11 +187,13 @@ public class CardActionsPanel extends JPanel { int x = bounds.width - icon.getIconWidth() - 15; if (getPopState() == POPPED) { + final GraphicsConfig config = GraphicsUtil.setupAAPainting(g); g.setColor(WelcomeScreenColors.CAPTION_BACKGROUND); g.fillOval(x - 3, y - 3, icon.getIconWidth() + 6, icon.getIconHeight() + 6); g.setColor(WelcomeScreenColors.GROUP_ICON_BORDER_COLOR); g.drawOval(x - 3, y - 3, icon.getIconWidth() + 6, icon.getIconHeight() + 6); + config.restore(); } else { icon = IconLoader.getDisabledIcon(icon);