Small change

This commit is contained in:
Robert Vokac 2024-04-03 16:25:51 +02:00
parent 3f2db2f80f
commit dcc27eefd2
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055

View File

@ -339,9 +339,12 @@ public class Widget extends JPanel implements
boolean isMoney = getClass() == ProgressMoney.class;
if (isLife || isMoney || typeProperty.getValue().equals(WidgetType.PRESENTATION.name().toLowerCase())) {
brush.setColor(visibility.isStronglyColored() ? Color.BLUE : Color.GRAY);
// if(visibility.isStronglyColored() && (getClass() == ProgressFuelGauge.class || getClass() == ProgressDot.class)) {
// brush.setColor(Color.BLUE);
// }
if(visibility.isStronglyColored() && (getClass() == ProgressFuelGauge.class)) {
brush.setColor(Color.GRAY);
}
if(visibility.isWeaklyColored() && (getClass() == ProgressFuelGauge.class)) {
brush.setColor(Color.LIGHT_GRAY);
}
brush.setFont(FONT);
brush.drawString(progress.getWidgetType(WidgetType.valueOf(typeProperty.getValue().toUpperCase())).name(),
(int) (getWidth() * 0.5d - 20d), 15);