wip: sample selector

This commit is contained in:
🪞👃🪞 2024-07-20 19:47:42 +03:00
parent 4603bbd0da
commit f303a8d552
13 changed files with 278 additions and 125 deletions

View file

@ -1,8 +1,8 @@
//! Rendering of application to display.
use crate::{render, App, core::*};
use crate::{render, App, core::*, devices::chain::ChainView, model::MODAL};
submod! { border chain split theme }
submod! { border split theme }
render!(App |self, buf, area| {
Split::down([
@ -13,7 +13,7 @@ render!(App |self, buf, area| {
&self.sequencer,
]))
]).render(buf, area)?;
if let Some(ref modal) = self.modal {
if let Some(ref modal) = *MODAL.lock().unwrap() {
modal.render(buf, area)?;
}
Ok(area)