inspection tool window: do not use red color for severity grouping

This commit is contained in:
Dmitry Batkovich
2016-04-15 15:56:26 +03:00
parent 4633f3ba3c
commit 56d9089a6a
@@ -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));