wip: zoom lock

This commit is contained in:
🪞👃🪞 2025-01-02 17:20:37 +01:00
parent 94491a323a
commit 44c28183de
11 changed files with 107 additions and 89 deletions

View file

@ -1,16 +1,16 @@
use crate::*;
pub struct PhraseSelector {
pub struct ClipSelected {
pub(crate) title: &'static str,
pub(crate) name: String,
pub(crate) color: ItemPalette,
pub(crate) time: String,
}
render!(Tui: (self: PhraseSelector) =>
render!(Tui: (self: ClipSelected) =>
Field(self.color, self.title, format!("{} {}", self.time, self.name)));
impl PhraseSelector {
impl ClipSelected {
// beats elapsed
pub fn play_phrase <T: HasPlayPhrase + HasClock> (state: &T) -> Self {