mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
arranger: rename track/scene/clip
This commit is contained in:
parent
ea463db139
commit
70b1ec5a02
15 changed files with 53 additions and 40 deletions
|
|
@ -162,7 +162,7 @@ impl<'a> Render for TracksHeader<'a> {
|
|||
if x > width {
|
||||
break
|
||||
}
|
||||
track.name.blit(buf, offset + x + 1, y, Some(Style::default()))?;
|
||||
track.name.read().unwrap().blit(buf, offset + x + 1, y, Some(Style::default()))?;
|
||||
}
|
||||
Ok(Rect { x: area.x, y, width, height: 2 })
|
||||
}
|
||||
|
|
@ -211,7 +211,7 @@ fn scene_row <'a> (
|
|||
let Rect { y, width, .. } = area;
|
||||
let playing = scene.is_playing(tracks);
|
||||
(if playing { "▶" } else { " " }).blit(buf, area.x, y, None)?;
|
||||
scene.name.blit(buf, area.x + 1, y, None)?;
|
||||
scene.name.read().unwrap().blit(buf, area.x + 1, y, None)?;
|
||||
let style = Some(Style::default().white());
|
||||
for (track, (w, x)) in track_cols.iter().enumerate() {
|
||||
let x = *x as u16 + offset;
|
||||
|
|
@ -223,7 +223,7 @@ fn scene_row <'a> (
|
|||
) {
|
||||
if let Some(phrase) = track.phrases.get(*clip) {
|
||||
let phrase = phrase.read().unwrap();
|
||||
phrase.name.blit(buf, x + 1, y, style)?;
|
||||
phrase.name.read().unwrap().blit(buf, x + 1, y, style)?;
|
||||
if track.sequence == Some(*clip) {
|
||||
fill_bg(buf, Rect {
|
||||
x: x - 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue