mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
add focus proxy for sequencers
This commit is contained in:
parent
47cdf5869b
commit
4be2df1347
2 changed files with 71 additions and 17 deletions
|
|
@ -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] = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue