mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
fix and test alignments
This commit is contained in:
parent
9125e04e07
commit
3c14456566
8 changed files with 135 additions and 100 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue