fix and test alignments

This commit is contained in:
🪞👃🪞 2025-01-01 21:04:39 +01:00
parent 9125e04e07
commit 3c14456566
8 changed files with 135 additions and 100 deletions

View file

@ -101,18 +101,18 @@ render!(Tui: (self: TransportView) => {
Tui::fg_bg(color.lightest.rgb, color.darkest.rgb, format!("{:>10}", value)),
Tui::fg_bg(color.darkest.rgb, color.base.rgb, ""),
);
Bsp::e(
Fixed::x(17, col!(
Fixed::x(40, Tui::bg(Color::Red, Bsp::e(
Tui::bg(Color::Green, Fixed::x(18, col!(
transport_field(" Beat", self.beat.clone()),
transport_field(" Time", format!("{:.1}s", self.current_second)),
transport_field(" BPM", self.bpm.clone()),
)),
Fixed::x(17, col!(
))),
Tui::bg(Color::Blue, Fixed::x(18, col!(
transport_field(" Rate", format!("{}", self.sr)),
transport_field(" Chunk", format!("{}", self.chunk)),
transport_field(" Lag", format!("{:.3}ms", self.latency)),
)),
)
))),
)))
});
impl HasFocus for TransportTui {
type Item = TransportFocus;