mirror of
https://github.com/robertvokac/time-calc.git
synced 2025-03-25 07:27:49 +01:00
Small change
This commit is contained in:
parent
3f2db2f80f
commit
dcc27eefd2
@ -339,9 +339,12 @@ public class Widget extends JPanel implements
|
|||||||
boolean isMoney = getClass() == ProgressMoney.class;
|
boolean isMoney = getClass() == ProgressMoney.class;
|
||||||
if (isLife || isMoney || typeProperty.getValue().equals(WidgetType.PRESENTATION.name().toLowerCase())) {
|
if (isLife || isMoney || typeProperty.getValue().equals(WidgetType.PRESENTATION.name().toLowerCase())) {
|
||||||
brush.setColor(visibility.isStronglyColored() ? Color.BLUE : Color.GRAY);
|
brush.setColor(visibility.isStronglyColored() ? Color.BLUE : Color.GRAY);
|
||||||
// if(visibility.isStronglyColored() && (getClass() == ProgressFuelGauge.class || getClass() == ProgressDot.class)) {
|
if(visibility.isStronglyColored() && (getClass() == ProgressFuelGauge.class)) {
|
||||||
// brush.setColor(Color.BLUE);
|
brush.setColor(Color.GRAY);
|
||||||
// }
|
}
|
||||||
|
if(visibility.isWeaklyColored() && (getClass() == ProgressFuelGauge.class)) {
|
||||||
|
brush.setColor(Color.LIGHT_GRAY);
|
||||||
|
}
|
||||||
brush.setFont(FONT);
|
brush.setFont(FONT);
|
||||||
brush.drawString(progress.getWidgetType(WidgetType.valueOf(typeProperty.getValue().toUpperCase())).name(),
|
brush.drawString(progress.getWidgetType(WidgetType.valueOf(typeProperty.getValue().toUpperCase())).name(),
|
||||||
(int) (getWidth() * 0.5d - 20d), 15);
|
(int) (getWidth() * 0.5d - 20d), 15);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user