add focus proxy for sequencers

This commit is contained in:
🪞👃🪞 2024-10-03 15:52:21 +03:00
parent 47cdf5869b
commit 4be2df1347
2 changed files with 71 additions and 17 deletions

View file

@ -885,6 +885,14 @@ impl Content for Sequencer<Tui> {
.fg(Color::Rgb(70, 80, 50))))
}
}
impl Focusable<Tui> for Sequencer<Tui> {
fn is_focused (&self) -> bool {
self.focused
}
fn set_focused (&mut self, focused: bool) {
self.focused = focused
}
}
/// Colors of piano keys
const KEY_COLORS: [(Color, Color);6] = [