propegate colorblind mode beyond start/stop

This commit is contained in:
Cooper Quintin
2024-11-25 15:49:21 -08:00
committed by Will Greenberg
parent 15f128add1
commit 95e8f846d3
4 changed files with 14 additions and 2 deletions
+2
View File
@@ -27,6 +27,7 @@ pub enum DisplayState {
Recording,
Paused,
WarningDetected,
RecordingCBM,
}
impl From<DisplayState> for Color565 {
@@ -34,6 +35,7 @@ impl From<DisplayState> for Color565 {
match state {
DisplayState::Paused => Color565::White,
DisplayState::Recording => Color565::Green,
DisplayState::RecordingCBM => Color565::Blue,
DisplayState::WarningDetected => Color565::Red,
}
}