IDEA-133781 Inspection settings: custom severity levels are shown in grey and black colors

This commit is contained in:
Dmitry Batkovich
2014-12-04 13:17:02 +03:00
parent 5a37bee62c
commit a6e77bd317
2 changed files with 6 additions and 4 deletions
@@ -115,11 +115,11 @@ public class HighlightDisplayLevel {
@NotNull
public static Icon createIconByMask(final Color renderColor) {
return new MyColorIcon(EMPTY_ICON_DIM, renderColor);
return new TheColorIcon(EMPTY_ICON_DIM, renderColor);
}
private static class MyColorIcon extends ColorIcon implements ColoredIcon {
public MyColorIcon(int size, @NotNull Color color) {
public static class TheColorIcon extends ColorIcon implements ColoredIcon {
public TheColorIcon(int size, @NotNull Color color) {
super(size, color);
}
@@ -93,7 +93,9 @@ public class SeverityRegistrar implements JDOMExternalizable, Comparator<Highlig
myRendererColors.put(severity.getName(), renderColor);
}
myOrderMap = null;
HighlightDisplayLevel.registerSeverity(severity, getHighlightInfoTypeBySeverity(severity).getAttributesKey());
Color color = info.getAttributes().getErrorStripeColor();
new HighlightDisplayLevel(severity, new HighlightDisplayLevel.TheColorIcon(HighlightDisplayLevel.EMPTY_ICON_DIM, color));
severitiesChanged();
}