protected Color getGradientColor(boolean active) { Color color = active ? painterResource.getColor(GRADIENT_COLOR_ACTIVE) : painterResource.getColor(GRADIENT_COLOR); return color == null ? SwingUtility.darker(getBackgroundColor(active), 0.75) : color; }