rename AppSection -> AppFocus

This commit is contained in:
🪞👃🪞 2024-07-12 19:11:47 +03:00
parent 94738d3e89
commit 58cd51dfbf
7 changed files with 19 additions and 18 deletions

View file

@ -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,

View file

@ -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)

View file

@ -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(),