mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
wip: view builtins remain a problem
This commit is contained in:
parent
0192d85a19
commit
e81955890c
4 changed files with 182 additions and 147 deletions
|
|
@ -132,4 +132,33 @@ impl ViewCache {
|
|||
cache.bpm.update(None, rewrite!(buf, "{}", ViewCache::BPM_EMPTY));
|
||||
}
|
||||
}
|
||||
|
||||
//pub fn view_h2 (&self) -> impl Content<TuiOut> {
|
||||
//let cache = self.project.clock.view_cache.clone();
|
||||
//let cache = cache.read().unwrap();
|
||||
//add(&Fixed::x(15, Align::w(Bsp::s(
|
||||
//FieldH(theme, "Beat", cache.beat.view.clone()),
|
||||
//FieldH(theme, "Time", cache.time.view.clone()),
|
||||
//))));
|
||||
//add(&Fixed::x(13, Align::w(Bsp::s(
|
||||
//Fill::x(Align::w(FieldH(theme, "BPM", cache.bpm.view.clone()))),
|
||||
//Fill::x(Align::w(FieldH(theme, "SR ", cache.sr.view.clone()))),
|
||||
//))));
|
||||
//add(&Fixed::x(12, Align::w(Bsp::s(
|
||||
//Fill::x(Align::w(FieldH(theme, "Buf", cache.buf.view.clone()))),
|
||||
//Fill::x(Align::w(FieldH(theme, "Lat", cache.lat.view.clone()))),
|
||||
//))));
|
||||
//add(&Bsp::s(
|
||||
//Fill::x(Align::w(FieldH(theme, "Selected", Align::w(self.selection().describe(
|
||||
//self.tracks(),
|
||||
//self.scenes()
|
||||
//))))),
|
||||
//Fill::x(Align::w(FieldH(theme, format!("History ({})", self.history.len()),
|
||||
//self.history.last().map(|last|Fill::x(Align::w(format!("{:?}", last.0)))))))
|
||||
//));
|
||||
////if let Some(last) = self.history.last() {
|
||||
////add(&FieldV(theme, format!("History ({})", self.history.len()),
|
||||
////Fill::x(Align::w(format!("{:?}", last.0)))));
|
||||
////}
|
||||
//}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue