mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
fix ci; fix deps breakage from upgrade
This commit is contained in:
parent
6600d8fc3c
commit
7c652135ad
6 changed files with 25 additions and 38 deletions
|
|
@ -10,21 +10,23 @@ pub struct TransportTui {
|
|||
pub size: Measure<Tui>,
|
||||
pub cursor: (usize, usize),
|
||||
pub focus: TransportFocus,
|
||||
pub color: ItemPalette,
|
||||
}
|
||||
from_jack!(|jack|TransportTui Self {
|
||||
jack: jack.clone(),
|
||||
clock: ClockModel::from(jack),
|
||||
size: Measure::new(),
|
||||
cursor: (0, 0),
|
||||
focus: TransportFocus::PlayPause
|
||||
focus: TransportFocus::PlayPause,
|
||||
color: ItemPalette::random(),
|
||||
});
|
||||
has_clock!(|self: TransportTui|&self.clock);
|
||||
audio!(|self: TransportTui, client, scope|ClockAudio(self).process(client, scope));
|
||||
handle!(<Tui>|self: TransportTui, from|TransportCommand::execute_with_state(self, from));
|
||||
render!(<Tui>|self: TransportTui|row!([
|
||||
Fixed::xy(5, 3, PlayPause(false)),
|
||||
Fixed::y(3, TransportView::new(self, None, true))
|
||||
]));
|
||||
render!(<Tui>|self: TransportTui|Fixed::y(3, row!([
|
||||
" ", Fixed::x(5, PlayPause(false)),
|
||||
" ", Shrink::x(1, TransportView::new(self, Some(self.color), true)),
|
||||
])));
|
||||
impl std::fmt::Debug for TransportTui {
|
||||
fn fmt (&self, f: &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error> {
|
||||
f.debug_struct("TransportTui")
|
||||
|
|
@ -88,7 +90,6 @@ impl TransportView {
|
|||
render!(<Tui>|self: TransportView|{
|
||||
let color = self.color;
|
||||
Fixed::y(3, Tui::bg(color.base.rgb, Fill::x(row!([
|
||||
//PlayPause(self.started), " ",
|
||||
col!([
|
||||
TransportField(" Beat", self.beat.as_str(), &color),
|
||||
TransportField(" Time", format!("{:.1}s", self.current_second).as_str(), &color),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue