mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
wip: big flat pt.8: wh -> xy
This commit is contained in:
parent
da25b28ebf
commit
e958b4a2d2
27 changed files with 117 additions and 117 deletions
|
|
@ -22,8 +22,8 @@ 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::wh(5, 3, PlayPause(false)),
|
||||
Fixed::h(3, TransportView::new(self, None, true))
|
||||
Fixed::xy(5, 3, PlayPause(false)),
|
||||
Fixed::y(3, TransportView::new(self, None, true))
|
||||
]));
|
||||
impl std::fmt::Debug for TransportTui {
|
||||
fn fmt (&self, f: &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error> {
|
||||
|
|
@ -87,7 +87,7 @@ impl TransportView {
|
|||
}
|
||||
render!(<Tui>|self: TransportView|{
|
||||
let color = self.color;
|
||||
Fixed::h(3, Tui::bg(color.base.rgb, Fill::w(row!([
|
||||
Fixed::y(3, Tui::bg(color.base.rgb, Fill::x(row!([
|
||||
//PlayPause(self.started), " ",
|
||||
col!([
|
||||
TransportField(" Beat", self.beat.as_str(), &color),
|
||||
|
|
@ -114,7 +114,7 @@ render!(<Tui>|self: TransportField<'a>|row!([
|
|||
pub struct PlayPause(pub bool);
|
||||
render!(<Tui>|self: PlayPause|Tui::bg(
|
||||
if self.0{Color::Rgb(0,128,0)}else{Color::Rgb(128,64,0)},
|
||||
Fixed::w(5, col!(|add|if self.0 {
|
||||
Fixed::x(5, col!(|add|if self.0 {
|
||||
add(&Tui::fg(Color::Rgb(0, 255, 0), col!([
|
||||
" 🭍🭑🬽 ",
|
||||
" 🭞🭜🭘 ",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue