mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-04-04 05:10:44 +02:00
convert to workspace, add suil bindings crate
This commit is contained in:
parent
bd6f8ff9bf
commit
dacce119c4
52 changed files with 1994 additions and 116 deletions
20
src/view.rs
20
src/view.rs
|
|
@ -1,20 +0,0 @@
|
|||
//! Rendering of application to display.
|
||||
|
||||
use crate::{render, App, core::*, devices::chain::ChainView, model::MODAL};
|
||||
|
||||
submod! { border split theme }
|
||||
|
||||
render!(App |self, buf, area| {
|
||||
Split::down([
|
||||
&self.transport,
|
||||
&self.arranger,
|
||||
&If(self.arranger.selected.is_clip(), &Split::right([
|
||||
&ChainView::vertical(&self),
|
||||
&self.sequencer,
|
||||
]))
|
||||
]).render(buf, area)?;
|
||||
if let Some(ref modal) = *MODAL.lock().unwrap() {
|
||||
modal.render(buf, area)?;
|
||||
}
|
||||
Ok(area)
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue