mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
wip: zoom lock
This commit is contained in:
parent
94491a323a
commit
44c28183de
11 changed files with 107 additions and 89 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue