Elapsed and remains text fields are now coloured (red or green), if the visibility mode is strongly colored

This commit is contained in:
Robert Vokac 2024-05-18 17:12:54 +02:00
parent 439e6514a3
commit 91ecac965a
No known key found for this signature in database
GPG Key ID: C459E1E4B4A986BB

View File

@ -1243,17 +1243,10 @@ public class MainWindow extends TWindow {
break; break;
} }
boolean grey = Visibility boolean stronglyColored = Visibility
.valueOf(timeCalcApp.visibilityProperty.getValue()) .valueOf(timeCalcApp.visibilityProperty.getValue())
.isGray(); .isStronglyColored();
if (grey) { if (stronglyColored) {
// remainingDayTextField.setForeground(Color.GRAY);
// elapsedDayTextField.setForeground(Color.GRAY);
// remainingWeekTextField.setForeground(Color.GRAY);
// elapsedWeekTextField.setForeground(Color.GRAY);
// remainingPauseTextField.setForeground(Color.GRAY);
// elapsedPauseTextField.setForeground(Color.GRAY);
} else {
remainingDayTextField.setForeground(Color.RED); remainingDayTextField.setForeground(Color.RED);
elapsedDayTextField.setForeground(Color.GREEN); elapsedDayTextField.setForeground(Color.GREEN);
remainingWeekTextField.setForeground(Color.RED); remainingWeekTextField.setForeground(Color.RED);