Use dark theme aware JBColor instead of java.awt.Color. Use the JBColor constructor to specify regular and dark theme colors, to avoid using bad looking colors under dark themes.