mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
wip: focus refactor, e6
This commit is contained in:
parent
6a25a3b858
commit
b663a09c15
1 changed files with 4 additions and 4 deletions
|
|
@ -91,11 +91,11 @@ macro_rules! impl_phrases_view_state {
|
|||
}
|
||||
impl_phrases_view_state!(PhrasesModel [self: false] [self: false]);
|
||||
impl_phrases_view_state!(SequencerTui::phrases
|
||||
[self: self.focused() == FocusState::Focused(SequencerFocus::Phrases)]
|
||||
[self: self.focused() == FocusState::Entered(SequencerFocus::Phrases)]);
|
||||
[self: self.focused() == AppFocus::Content(SequencerFocus::Phrases)]
|
||||
[self: self.focused() == AppFocus::Content(SequencerFocus::Phrases)]);
|
||||
impl_phrases_view_state!(ArrangerTui::phrases
|
||||
[self: self.focused() == FocusState::Focused(ArrangerFocus::Phrases)]
|
||||
[self: self.focused() == FocusState::Entered(SequencerFocus::Phrases)]);
|
||||
[self: self.focused() == AppFocus::Content(ArrangerFocus::Phrases)]
|
||||
[self: self.focused() == AppFocus::Content(ArrangerFocus::Phrases)]);
|
||||
|
||||
pub trait PhraseViewState: Send + Sync {
|
||||
fn phrase_editing (&self) -> &Option<Arc<RwLock<Phrase>>>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue