arranger: tweaks, incl. remove unused rendering code

This commit is contained in:
🪞👃🪞 2025-05-17 15:02:38 +03:00
parent 5ed69edd02
commit ef6aa9ab07
7 changed files with 65 additions and 300 deletions

View file

@ -13,9 +13,9 @@ impl MidiEditor {
(clip.color, clip.name.clone(), clip.length, clip.looped)
} else { (ItemTheme::G[64], String::new().into(), 0, false) };
Fixed::x(20, col!(
Fill::x(Align::w(FieldV(color, "Clip ", format!("{name}")))),
Fill::x(Align::w(FieldH(color, "Length", format!("{length}")))),
Fill::x(Align::w(FieldH(color, "Loop ", looped.to_string()))),
Fill::x(Align::w(Bsp::e(" Clip ", format!("{name}")))),
Fill::x(Align::w(Bsp::e(" Length ", format!("{length}")))),
Fill::x(Align::w(Bsp::e(" Loop ", looped.to_string()))),
))
}
@ -31,9 +31,9 @@ impl MidiEditor {
let note_pos = format!("{:>3}", note_pos);
let note_len = format!("{:>4}", self.get_note_len());
Fixed::x(20, col!(
Fill::x(Align::w(FieldH(color, "Time", format!("{length}/{time_zoom}+{time_pos}")))),
Fill::x(Align::w(FieldH(color, "Lock", format!("{time_lock}")))),
Fill::x(Align::w(FieldH(color, "Note", format!("{note_name} {note_pos} {note_len}")))),
Fill::x(Align::w(Bsp::e(" Time ", format!("{length}/{time_zoom}+{time_pos}")))),
Fill::x(Align::w(Bsp::e(" Lock ", format!("{time_lock}")))),
Fill::x(Align::w(Bsp::e(" Note ", format!("{note_name} {note_pos} {note_len}")))),
))
}