menu: appearance + controls (#22)

This commit is contained in:
Jens K.
2024-12-23 10:39:53 +01:00
committed by GitHub
parent c9b444e91a
commit 98ee2bc16b
3 changed files with 125 additions and 14 deletions

View File

@@ -211,6 +211,10 @@ impl<T> Clock<T> {
&self.mode
}
pub fn is_running(&self) -> bool {
self.mode == Mode::Tick
}
pub fn is_edit_mode(&mut self) -> bool {
matches!(self.mode, Mode::Editable(_, _))
}