mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
remove PhraseViewState
This commit is contained in:
parent
9319315595
commit
3569019b86
16 changed files with 432 additions and 473 deletions
|
|
@ -49,3 +49,53 @@ pub enum SequencerFocus {
|
|||
/// The phrase editor (sequencer) is focused
|
||||
PhraseEditor,
|
||||
}
|
||||
|
||||
impl_focus!(SequencerTui SequencerFocus [
|
||||
//&[
|
||||
//Menu,
|
||||
//Menu,
|
||||
//Menu,
|
||||
//Menu,
|
||||
//Menu,
|
||||
//],
|
||||
&[
|
||||
Content(Transport(TransportFocus::PlayPause)),
|
||||
Content(Transport(TransportFocus::Bpm)),
|
||||
Content(Transport(TransportFocus::Sync)),
|
||||
Content(Transport(TransportFocus::Clock)),
|
||||
Content(Transport(TransportFocus::Quant))
|
||||
],
|
||||
&[
|
||||
Content(Phrases),
|
||||
Content(Phrases),
|
||||
Content(PhraseEditor),
|
||||
Content(PhraseEditor),
|
||||
Content(PhraseEditor),
|
||||
],
|
||||
]);
|
||||
|
||||
/// Status bar for sequencer app
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum SequencerStatusBar {
|
||||
Transport,
|
||||
PhrasePool,
|
||||
PhraseEditor,
|
||||
}
|
||||
|
||||
impl StatusBar for SequencerStatusBar {
|
||||
type State = ();
|
||||
fn hotkey_fg () -> Color {
|
||||
TuiTheme::hotkey_fg()
|
||||
}
|
||||
fn update (&mut self, state: &()) {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
impl Content for SequencerStatusBar {
|
||||
type Engine = Tui;
|
||||
fn content (&self) -> impl Widget<Engine = Tui> {
|
||||
todo!();
|
||||
""
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue