wip: saner rendering on arranger header

This commit is contained in:
🪞👃🪞 2025-01-07 18:15:50 +01:00
parent b2fb71b405
commit 0b365e05c8
6 changed files with 195 additions and 174 deletions

View file

@ -56,12 +56,11 @@ impl ArrangerTrack {
fn longest_name (tracks: &[Self]) -> usize {
tracks.iter().map(|s|s.name().read().unwrap().len()).fold(0, usize::max)
}
pub const MIN_WIDTH: usize = 6;
fn width_inc (&mut self) {
*self.width_mut() += 1;
}
fn width_dec (&mut self) {
if self.width() > Self::MIN_WIDTH {
if self.width() > Arranger::TRACK_MIN_WIDTH {
*self.width_mut() -= 1;
}
}