From 56d9089a6ad4ef897c5ad19e312f47cd8c8f1a56 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Fri, 15 Apr 2016 15:56:26 +0300 Subject: [PATCH] inspection tool window: do not use red color for severity grouping --- .../intellij/codeInspection/ui/InspectionTreeCellRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionTreeCellRenderer.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionTreeCellRenderer.java index 651f08a9ac74..b28eeae6540e 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionTreeCellRenderer.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionTreeCellRenderer.java @@ -95,7 +95,7 @@ class InspectionTreeCellRenderer extends ColoredTreeCellRenderer { final Integer occur = entry.getValue(); SimpleTextAttributes attrs = SimpleTextAttributes.GRAY_ATTRIBUTES; - if (level == HighlightDisplayLevel.ERROR) { + if (level == HighlightDisplayLevel.ERROR && !myView.getGlobalInspectionContext().getUIOptions().GROUP_BY_SEVERITY) { attrs = attrs.derive(-1, JBColor.red.brighter(), null, null); } append(occur + " " + getPresentableName(level, occur > 1) + " ", patchAttr(node, attrs));