Summary
Add a dark mode option and make the application theme respond to the operating system's dark/light preference, in addition to an explicit toggle in Preferences.
Motivation
The app currently uses a hardcoded light-grey stylesheet. Users working in dimly-lit environments (indoor trainer sessions, evening rides) benefit from a dark UI that reduces eye strain and is consistent with OS-wide dark mode.
Acceptance Criteria
Summary
Add a dark mode option and make the application theme respond to the operating system's dark/light preference, in addition to an explicit toggle in Preferences.
Motivation
The app currently uses a hardcoded light-grey stylesheet. Users working in dimly-lit environments (indoor trainer sessions, evening rides) benefit from a dark UI that reduces eye strain and is consistent with OS-wide dark mode.
Acceptance Criteria
QStyleHints::colorScheme(Qt 6.5+) and falls back to a heuristic (palette midpoint brightness) on Qt 5 / older Qt 6z_stylesheet.cpp) are parameterised with two colour palettes (light and dark) instead of hard-coded colour literalsprefers-color-schememedia query on startup and applies it as the initial theme