From bdfb54dea8d953f5c35473ea0c8d4f2374923b13 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Thu, 21 Jun 2012 17:38:31 +0200 Subject: [PATCH] fix border around URL --- .../src/com/intellij/ui/EditorNotificationPanel.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/platform-api/src/com/intellij/ui/EditorNotificationPanel.java b/platform/platform-api/src/com/intellij/ui/EditorNotificationPanel.java index a77cfe0b18b9..cc2c14b4939b 100644 --- a/platform/platform-api/src/com/intellij/ui/EditorNotificationPanel.java +++ b/platform/platform-api/src/com/intellij/ui/EditorNotificationPanel.java @@ -22,6 +22,7 @@ import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.editor.colors.EditorColors; import com.intellij.openapi.editor.colors.EditorColorsManager; +import com.intellij.util.ui.UIUtil; import org.jetbrains.annotations.NonNls; import javax.swing.*; @@ -45,7 +46,7 @@ public class EditorNotificationPanel extends JPanel { add(myLabel, BorderLayout.CENTER); myLinksPanel = new JPanel(new FlowLayout()); - myLinksPanel.setBackground(LightColors.YELLOW); + myLinksPanel.setBackground(getBackground()); add(myLinksPanel, BorderLayout.EAST); } @@ -56,7 +57,7 @@ public class EditorNotificationPanel extends JPanel { @Override public Color getBackground() { Color color = EditorColorsManager.getInstance().getGlobalScheme().getColor(EditorColors.NOTIFICATION_BACKGROUND); - return color == null ? new Color(0xffffcc) : color; + return color == null ? UIUtil.getToolTipBackground() : color; } public HyperlinkLabel createActionLabel(final String text, @NonNls final String actionId) {