mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-06-13 16:23:30 -07:00
propegate colorblind mode beyond start/stop
This commit is contained in:
committed by
Will Greenberg
parent
15f128add1
commit
95e8f846d3
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user