big flat pt.13: fixed warnings, let's see what it has in store

This commit is contained in:
🪞👃🪞 2024-12-30 21:52:20 +01:00
parent e21ef1af94
commit 5bc3517dde
13 changed files with 68 additions and 45 deletions

View file

@ -137,7 +137,11 @@ render!(<Tui>|self:Groovebox|{
Fill::xy(lay!([
&self.size,
Fill::xy(Align::s(Fixed::y(2, GrooveboxStatus::from(self)))),
Shrink::y(2, col!(![transport, selector, status]))
Shrink::y(2, col!(![
transport,
selector,
status
]))
]))
});
@ -165,6 +169,14 @@ impl<'a, T: Render<Tui>> Content<Tui> for EditStatus<'a, T> {
]), &self.3))
}
}
impl<'a, T: Render<Tui>> Render<Tui> for EditStatus<'a, T> {
fn min_size (&self, to: [u16;2]) -> Perhaps<[u16;2]> {
self.content().unwrap().min_size(to)
}
fn render (&self, to: &mut TuiOutput) -> Usually<()> {
self.content().unwrap().render(to)
}
}
struct GrooveboxSamples<'a>(&'a Groovebox);
render!(<Tui>|self: GrooveboxSamples<'a>|{