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);