Skip to content

Commit 36a9238

Browse files
authored
Merge pull request #205 from jborgers/Issue-204
Severity level colored sums difficult to see in dark mode #204
2 parents 8d22397 + 93afc96 commit 36a9238

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

src/main/java/com/intellij/plugins/bodhi/pmd/tree/Severity.java

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.intellij.plugins.bodhi.pmd.tree;
22

33
import com.intellij.icons.AllIcons;
4+
import com.intellij.ui.JBColor;
45
import net.sourceforge.pmd.lang.rule.RulePriority;
56
import org.jetbrains.annotations.NotNull;
67

@@ -17,11 +18,16 @@
1718
* @author jborgers
1819
*/
1920
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)));
2531

2632
private final RulePriority rulePriority;
2733
private final String name;

0 commit comments

Comments
 (0)