mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 12:46:42 +01:00
wip: cleanup old code
This commit is contained in:
parent
0d7f78e74f
commit
5d3e564949
10 changed files with 1464 additions and 1512 deletions
|
|
@ -1,8 +1,8 @@
|
|||
use crate::*;
|
||||
pub struct PoolView<'a>(pub bool, pub &'a PoolModel);
|
||||
pub struct PoolView<'a>(pub bool, pub &'a MidiPool);
|
||||
render!(TuiOut: (self: PoolView<'a>) => {
|
||||
let Self(compact, model) = self;
|
||||
let PoolModel { clips, mode, .. } = self.1;
|
||||
let MidiPool { clips, mode, .. } = self.1;
|
||||
let color = self.1.clip().map(|c|c.read().unwrap().color).unwrap_or_else(||TuiTheme::g(32).into());
|
||||
let on_bg = |x|x;//Bsp::b(Repeat(" "), Tui::bg(color.darkest.rgb, x));
|
||||
let border = |x|x;//Outer(Style::default().fg(color.dark.rgb).bg(color.darkest.rgb)).enclose(x);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue