mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 20:56:43 +01:00
rename AppSection -> AppFocus
This commit is contained in:
parent
94738d3e89
commit
58cd51dfbf
7 changed files with 19 additions and 18 deletions
|
|
@ -14,7 +14,7 @@ pub struct ArrangerView<'a> {
|
|||
impl<'a> ArrangerView<'a> {
|
||||
pub fn new (app: &'a App, vertical: bool) -> Self {
|
||||
Self {
|
||||
focused: app.section == AppSection::Arranger,
|
||||
focused: app.section == AppFocus::Arranger,
|
||||
entered: app.entered,
|
||||
scenes: &app.scenes,
|
||||
tracks: &app.tracks,
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ impl<'a> ChainView<'a> {
|
|||
Self {
|
||||
direction,
|
||||
entered: app.entered,
|
||||
focused: app.section == AppSection::Chain,
|
||||
focused: app.section == AppFocus::Chain,
|
||||
track: match app.track_cursor {
|
||||
0 => None,
|
||||
_ => app.tracks.get(app.track_cursor - 1)
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ impl<'a> SequencerView<'a> {
|
|||
};
|
||||
Self {
|
||||
phrase: app.phrase(),
|
||||
focused: app.section == AppSection::Sequencer,
|
||||
focused: app.section == AppFocus::Sequencer,
|
||||
entered: app.entered,
|
||||
ppq: app.transport.ppq(),
|
||||
now: app.transport.pulse(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue