mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 20:56:43 +01:00
load project from file
This commit is contained in:
parent
e2a842492e
commit
eeb2faf064
9 changed files with 320 additions and 245 deletions
13
src/view.rs
13
src/view.rs
|
|
@ -143,12 +143,13 @@ impl App {
|
|||
note_cursor: self.note_cursor,
|
||||
note_start: self.note_start,
|
||||
}.render(buf, area)?;
|
||||
let track = self.tracks.get(self.track_cursor - 1).unwrap();
|
||||
if phrase.is_none() && self.section == AppSection::Sequencer {
|
||||
let label = format!("[ENTER] Create new clip: {}", track.name);
|
||||
let x = area.x + seq_area.width / 2 - (label.len() / 2) as u16;
|
||||
let y = area.y + seq_area.height / 2;
|
||||
label.blit(buf, x, y, Some(Style::default().white()));
|
||||
if let Some(track) = self.tracks.get(self.track_cursor - 1) {
|
||||
if phrase.is_none() && self.section == AppSection::Sequencer {
|
||||
let label = format!("[ENTER] Create new clip: {}", track.name);
|
||||
let x = area.x + seq_area.width / 2 - (label.len() / 2) as u16;
|
||||
let y = area.y + seq_area.height / 2;
|
||||
label.blit(buf, x, y, Some(Style::default().white()));
|
||||
}
|
||||
}
|
||||
Ok(seq_area)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue