show hotkeys in status bar

This commit is contained in:
🪞👃🪞 2024-11-28 13:14:47 +01:00
parent 51889d4b43
commit 86649ef994
3 changed files with 53 additions and 15 deletions

View file

@ -122,10 +122,11 @@ impl<'a> Content for PhraseView<'a> {
let piano_roll = row!(keys, note_area).fill_x();
let content = piano_roll.bg(Color::Rgb(40, 50, 30)).border(border);
let content = lay!(content, playhead);
let mut upper_left = format!("[{}] Sequencer", if *entered {""} else {" "});
let mut name = "".to_string();
if let Some(phrase) = phrase {
upper_left = format!("{upper_left}: {}", phrase.read().unwrap().name);
name = phrase.read().unwrap().name.clone();
}
let mut upper_left = format!("[{}] {name}", if *entered {""} else {" "},);
let mut lower_right = format!("{}", size.format());
lower_right = format!("┤Zoom: {}├─{lower_right}", pulses_to_name(time_scale));
//lower_right = format!("Zoom: {} (+{}:{}*{}|{})",