wip: ArrangerStandalone

This commit is contained in:
🪞👃🪞 2024-08-21 21:03:46 +03:00
parent 1104093395
commit 3cbb2d2e0b
19 changed files with 165 additions and 231 deletions

View file

@ -97,19 +97,19 @@ impl App {
}
render!(App |self, buf, area| {
Split::down([
&self.transport,
&self.arranger,
&If(self.arranger.selected.is_clip(), &Split::right([
&tek_mixer::TrackView {
Split::down()
.add_ref(&self.transport)
.add_ref(&self.arranger)
.add(If(self.arranger.selected.is_clip(), &Split::right()
.add(tek_mixer::TrackView {
direction: Direction::Down,
entered: self.entered,
focused: self.section == AppFocus::Chain,
chain: self.mixer.track()
},
&self.arranger.sequencer(),
]))
]).render(buf, area)?;
})
.add_ref(&self.arranger.sequencer())
))
.render(buf, area)?;
if let Some(ref modal) = *MODAL.lock().unwrap() {
modal.render(buf, area)?;
}

View file

@ -4,8 +4,8 @@ use crate::*;
use std::path::{Path, PathBuf};
use std::fs::{File, create_dir_all};
const CONFIG_FILE_NAME: &'static str = "tek.toml";
const PROJECT_FILE_NAME: &'static str = "project.toml";
const CONFIG_FILE_NAME: &str = "tek.toml";
const PROJECT_FILE_NAME: &str = "project.toml";
/// Filesystem locations of things.
pub struct AppPaths {