mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
remove AppFocus
This commit is contained in:
parent
3273c85630
commit
e4027619e8
14 changed files with 127 additions and 140 deletions
|
|
@ -6,7 +6,7 @@ pub struct TransportTui {
|
|||
pub clock: ClockModel,
|
||||
pub size: Measure<Tui>,
|
||||
pub cursor: (usize, usize),
|
||||
pub focus: FocusState<AppFocus<TransportFocus>>,
|
||||
pub focus: FocusState<TransportFocus>,
|
||||
}
|
||||
|
||||
/// Create app state from JACK handle.
|
||||
|
|
@ -18,9 +18,7 @@ impl TryFrom<&Arc<RwLock<JackClient>>> for TransportTui {
|
|||
clock: ClockModel::from(&Arc::new(jack.read().unwrap().transport())),
|
||||
size: Measure::new(),
|
||||
cursor: (0, 0),
|
||||
focus: FocusState::Entered(
|
||||
AppFocus::Content(TransportFocus::PlayPause)
|
||||
)
|
||||
focus: FocusState::Entered(TransportFocus::PlayPause)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
@ -60,11 +58,11 @@ impl FocusWrap<TransportFocus> for Option<TransportFocus> {
|
|||
impl_focus!(TransportTui TransportFocus [
|
||||
//&[Menu],
|
||||
&[
|
||||
Content(PlayPause),
|
||||
Content(Bpm),
|
||||
Content(Quant),
|
||||
Content(Sync),
|
||||
Content(Clock),
|
||||
PlayPause,
|
||||
Bpm,
|
||||
Quant,
|
||||
Sync,
|
||||
Clock,
|
||||
],
|
||||
]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue