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

@ -205,16 +205,13 @@ impl Arrangement {
}
impl ScenesView for Arrangement {
fn arrangement (&self) -> &Arrangement {
self
}
fn h_scenes (&self) -> u16 {
fn h_scenes (&self) -> u16 {
(self.height() as u16).saturating_sub(20)
}
fn w_side (&self) -> u16 {
fn w_side (&self) -> u16 {
(self.width() as u16 * 2 / 10).max(20)
}
fn w_mid (&self) -> u16 {
fn w_mid (&self) -> u16 {
(self.width() as u16).saturating_sub(2 * self.w_side()).max(40)
}
}