Use lighter text in dark mode

This commit is contained in:
SiboVG 2023-09-28 19:44:10 +02:00
parent 1c73621899
commit c783de1083

View File

@ -609,7 +609,12 @@ public class ThrustCurveMotorSelectionPanel extends JPanel implements MotorSelec
public static Color getColor(int index) {
return (Color) CURVE_COLORS[index % CURVE_COLORS.length];
Color color = (Color) CURVE_COLORS[index % CURVE_COLORS.length];
if (UITheme.isLightTheme(GUIUtil.getUITheme())) {
return color;
} else {
return color.brighter().brighter();
}
}