mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
arranger: tweaks, incl. remove unused rendering code
This commit is contained in:
parent
5ed69edd02
commit
ef6aa9ab07
7 changed files with 65 additions and 300 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue