mirror of
https://github.com/robertvokac/time-calc.git
synced 2025-03-25 07:27:49 +01:00
Elapsed and remains text fields are now coloured (red or green), if the visibility mode is strongly colored
This commit is contained in:
parent
439e6514a3
commit
91ecac965a
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user