mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
wip: highlight keys
This commit is contained in:
parent
dff42ca5a7
commit
1e3d96e64e
5 changed files with 124 additions and 35 deletions
|
|
@ -129,6 +129,7 @@ impl App {
|
|||
}.render(buf, area)
|
||||
}
|
||||
fn draw_phrase (&self, buf: &mut Buffer, area: Rect) -> Usually<Rect> {
|
||||
let track = self.tracks.get(self.track_cursor - 1);
|
||||
let phrase = self.phrase();
|
||||
let seq_area = SequencerView {
|
||||
phrase,
|
||||
|
|
@ -140,8 +141,10 @@ impl App {
|
|||
time_zoom: self.time_zoom,
|
||||
note_cursor: self.note_cursor,
|
||||
note_start: self.note_start,
|
||||
notes_in: if let Some(track) = track { &track.notes_in } else { &[false;128] },
|
||||
notes_out: if let Some(track) = track { &track.notes_out } else { &[false;128] },
|
||||
}.render(buf, area)?;
|
||||
if let Some(track) = self.tracks.get(self.track_cursor - 1) {
|
||||
if let Some(track) = track {
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue