forked from External/mage
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:
parent
71ac5cf11f
commit
8b57b7ee75
2 changed files with 8 additions and 8 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue