mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
wip: reimplement arranger because i'm sick of that shit
This commit is contained in:
parent
182107bfa5
commit
094d5dd451
6 changed files with 120 additions and 12 deletions
|
|
@ -3,7 +3,7 @@ use crate::*;
|
|||
/// Define a type alias for iterators of sized items (columns).
|
||||
macro_rules! def_sizes_iter {
|
||||
($Type:ident => $($Item:ty),+) => {
|
||||
pub(crate) trait $Type<'a> =
|
||||
pub trait $Type<'a> =
|
||||
Iterator<Item=(usize, $(&'a $Item,)+ usize, usize)> + Send + Sync + 'a;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ impl<'a> ArrangerView<'a> {
|
|||
) -> Self {
|
||||
let is_editing = editor.is_some();
|
||||
let h_tracks_area = 5;
|
||||
let h_scenes_area = (arrangement.height() as u16).saturating_sub(50);
|
||||
let h_scenes_area = (arrangement.height() as u16).saturating_sub(20);
|
||||
let h_scenes = arrangement.h_scenes(is_editing);
|
||||
Self {
|
||||
arrangement,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue