From 12ffe7c58471e9b979da6bace4361028d76205bc Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Tue, 20 Aug 2013 09:48:35 +0200 Subject: [PATCH] IDEA-95904 Darcula parameter info pop-up colors hard to read --- .../intellij/codeInsight/hint/ParameterInfoComponent.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/hint/ParameterInfoComponent.java b/platform/lang-impl/src/com/intellij/codeInsight/hint/ParameterInfoComponent.java index ab4cc84710bb..2e1d2a5fc6c1 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/hint/ParameterInfoComponent.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/hint/ParameterInfoComponent.java @@ -47,7 +47,6 @@ class ParameterInfoComponent extends JPanel { private final OneElementComponent[] myPanels; private static final Color BACKGROUND_COLOR = HintUtil.INFORMATION_COLOR; - private static final Color FOREGROUND_COLOR = JBColor.foreground(); private static final Color HIGHLIGHTED_BORDER_COLOR = new JBColor(new Color(231, 254, 234), Gray._100); private final Font NORMAL_FONT; private final Font BOLD_FONT; @@ -338,7 +337,7 @@ class ParameterInfoComponent extends JPanel { myLabel.setBackground(background); setBackground(background); - myLabel.setForeground(FOREGROUND_COLOR); + myLabel.setForeground(JBColor.foreground()); if (flagsMap.isEmpty()) { myLabel.setText(XmlStringUtil.wrapInHtml(XmlStringUtil.escapeString(text))); @@ -347,6 +346,11 @@ class ParameterInfoComponent extends JPanel { String labelText = buildLabelText(text, flagsMap); myLabel.setText(labelText); } + + //IDEA-95904 Darcula parameter info pop-up colors hard to read + if (UIUtil.isUnderDarcula()) { + myLabel.setText(myLabel.getText().replace("", "")); + } } private String buildLabelText(@NotNull final String text, @NotNull final Map flagsMap) { final StringBuilder labelText = new StringBuilder(text);