mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
separate PhraseSelectorView from PhraseListView
This commit is contained in:
parent
bbf9ec0afd
commit
3273c85630
8 changed files with 258 additions and 185 deletions
|
|
@ -3,19 +3,27 @@ use crate::*;
|
|||
impl Content for SequencerTui {
|
||||
type Engine = Tui;
|
||||
fn content (&self) -> impl Widget<Engine = Tui> {
|
||||
SequencerStatusBar::with(self, col!(
|
||||
lay!(self.size, SequencerStatusBar::with(self, col!(
|
||||
TransportView::from(self),
|
||||
Split::right(20,
|
||||
PhraseListView::from(self),
|
||||
col_up!(
|
||||
PhraseSelector::play_phrase(&self.player).fixed_y(4),
|
||||
PhraseSelector::next_phrase(&self.player).fixed_y(4),
|
||||
PhraseListView::from(self),
|
||||
),
|
||||
PhraseView::from(self),
|
||||
).min_y(20)
|
||||
))
|
||||
)))
|
||||
}
|
||||
}
|
||||
|
||||
impl Content for SequencerStatusBar {
|
||||
type Engine = Tui;
|
||||
fn content (&self) -> impl Widget<Engine = Tui> {
|
||||
widget(&self.cpu).fg(Color::Rgb(255,128,0)).align_se().fill_x()
|
||||
row!(
|
||||
widget(&self.cpu).fg(Color::Rgb(255,128,0)),
|
||||
widget(&self.sr).fg(Color::Rgb(255,128,0)),
|
||||
widget(&self.size).fg(Color::Rgb(255,128,0)),
|
||||
).align_se().fill_x()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue