Improve train status formatting

This change adds proper singular/plural labels for minutes and hours in the lateness display, fixes green status text contrast for dark mode, and updates the README to credit the Amtrak.js models used as a base.
This commit is contained in:
Tony Bark 2026-08-24 20:07:11 -04:00
parent bf420b7480
commit 79176585b4
4 changed files with 16 additions and 5 deletions

View file

@ -103,7 +103,7 @@ struct ContentView: View {
func statusColour(_ color: Color) -> Color {
switch color {
case .green:
return .black
return .adaptive(light: .white, dark: .black)
default:
return .white
}