GUI: fix some text colors not using the theme color (#12737)

Co-authored-by: TandEm <tandem@users.noreply.github.com>
This commit is contained in:
TandEm 2024-08-27 02:17:34 +10:00 committed by GitHub
parent 71ac5cf11f
commit 8b57b7ee75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View file

@ -431,7 +431,7 @@
text = text + Integer.toString(second);
}
this.editTimeRemaining.setText(text);
// red color for small time
Color timerColor;
if (s <= 10) {
@ -439,10 +439,10 @@
} else if (s <= 30) {
timerColor = new Color(255, 160, 60); // orange
} else {
timerColor = Color.BLACK;
timerColor = PreferencesDialog.getCurrentTheme().getTextColor();
}
this.editTimeRemaining.setForeground(timerColor);
// warning sound at the end
if (s == 6 && !draftBooster.isEmptyGrid()) {
AudioManager.playOnCountdown1();