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

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>|{

View file

@ -11,18 +11,20 @@ pub(crate) use ::tek_layout::{
Engine, Size, Area,
Output, Content, Render, render,
Input, Handle, handle, kexp, key_pat, key_event_pat, key_event_expr,
Tui, TuiInput, TuiOutput,
crossterm::{
self,
event::{
Event, KeyEvent, KeyEventKind, KeyEventState, KeyModifiers,
KeyCode::{self, *},
tui::{
Tui, TuiInput, TuiOutput,
crossterm::{
self,
event::{
Event, KeyEvent, KeyEventKind, KeyEventState, KeyModifiers,
KeyCode::{self, *},
}
},
ratatui::{
self,
prelude::{Color, Style, Stylize, Buffer, Modifier},
buffer::Cell,
}
},
ratatui::{
self,
prelude::{Color, Style, Stylize, Buffer, Modifier},
buffer::Cell,
}
}
};