|
1 | 1 | package com.intellij.plugins.bodhi.pmd.tree; |
2 | 2 |
|
3 | 3 | import com.intellij.icons.AllIcons; |
| 4 | +import com.intellij.ui.JBColor; |
4 | 5 | import net.sourceforge.pmd.lang.rule.RulePriority; |
5 | 6 | import org.jetbrains.annotations.NotNull; |
6 | 7 |
|
|
17 | 18 | * @author jborgers |
18 | 19 | */ |
19 | 20 | public enum Severity { |
20 | | - BLOCKER(RulePriority.HIGH, "Blocker", AllIcons.Ide.FatalError, new Color(188, 98, 98)), |
21 | | - CRITICAL(RulePriority.MEDIUM_HIGH, "Critical", AllIcons.Debugger.KillProcess, new Color(152, 98, 90)), |
22 | | - MAJOR(RulePriority.MEDIUM, "Major", AllIcons.General.Warning, new Color(142, 122, 38)), |
23 | | - MINOR(RulePriority.MEDIUM_LOW, "Minor", AllIcons.Nodes.WarningIntroduction, new Color(126, 126, 126)), |
24 | | - INFO(RulePriority.LOW, "Info", AllIcons.General.Information, new Color(48, 116, 148)); |
| 21 | + BLOCKER(RulePriority.HIGH, "Blocker", AllIcons.Ide.FatalError, |
| 22 | + new JBColor(new Color(218, 8, 8), new Color(255, 98, 98))), |
| 23 | + CRITICAL(RulePriority.MEDIUM_HIGH, "Critical", AllIcons.Debugger.KillProcess, |
| 24 | + new JBColor(new Color(208, 108, 8), new Color(255, 158, 8))), |
| 25 | + MAJOR(RulePriority.MEDIUM, "Major", AllIcons.General.Warning, |
| 26 | + new JBColor(new Color(178, 118, 8), new Color(248, 198, 8))), |
| 27 | + MINOR(RulePriority.MEDIUM_LOW, "Minor", AllIcons.Nodes.WarningIntroduction, |
| 28 | + new JBColor(new Color(128, 128, 118), new Color(208, 208, 198))), |
| 29 | + INFO(RulePriority.LOW, "Info", AllIcons.General.Information, |
| 30 | + new JBColor(new Color(48, 78, 208), new Color(148, 188, 255))); |
25 | 31 |
|
26 | 32 | private final RulePriority rulePriority; |
27 | 33 | private final String name; |
|
0 commit comments