From be29e44fbb94a678796a65bfb8095c6fcfbc9f41 Mon Sep 17 00:00:00 2001 From: "vadim.lomshakov" Date: Mon, 23 Jan 2017 14:21:09 +0300 Subject: [PATCH] [rider]: allow to change question label icon --- .../src/com/intellij/codeInsight/hint/HintUtil.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/codeInsight/hint/HintUtil.java b/platform/platform-impl/src/com/intellij/codeInsight/hint/HintUtil.java index 9131970c6555..4628bd59d940 100644 --- a/platform/platform-impl/src/com/intellij/codeInsight/hint/HintUtil.java +++ b/platform/platform-impl/src/com/intellij/codeInsight/hint/HintUtil.java @@ -108,6 +108,11 @@ public class HintUtil { } public static JComponent createQuestionLabel(String text) { + final Icon icon = AllIcons.General.Help_small; + return createQuestionLabel(text, icon); + } + + public static JComponent createQuestionLabel(String text, Icon icon) { HintHint hintHint = new HintHint().setTextBg(QUESTION_COLOR) .setTextFg(JBColor.foreground()) .setFont(getBoldFont()) @@ -115,7 +120,7 @@ public class HintUtil { HintLabel label = new HintLabel(); label.setText(text, hintHint); - label.setIcon(AllIcons.General.Help_small); + label.setIcon(icon); if (!hintHint.isAwtTooltip()) { label.setBorder(createHintBorder());