mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-02-22 16:59:02 +01:00
update layout macro invocations
This commit is contained in:
parent
e677d1d7d4
commit
83eb9dd2fa
19 changed files with 153 additions and 169 deletions
|
|
@ -171,10 +171,6 @@ fn draw_sample (
|
|||
}
|
||||
|
||||
impl Content<Tui> for AddSampleModal {
|
||||
fn min_size (&self, to: [u16;2]) -> Perhaps<[u16;2]> {
|
||||
todo!()
|
||||
//Align::Center(()).layout(to)
|
||||
}
|
||||
fn render (&self, to: &mut TuiOutput) -> Usually<()> {
|
||||
todo!()
|
||||
//let area = to.area();
|
||||
|
|
|
|||
|
|
@ -50,8 +50,8 @@ render!(Tui: (self: SamplerTui) => {
|
|||
let fg = self.color.base.rgb;
|
||||
let bg = self.color.darkest.rgb;
|
||||
let border = Fill::xy(Outer(Style::default().fg(fg).bg(bg)));
|
||||
let with_border = |x|lay!([border, Fill::xy(&x)]);
|
||||
let with_size = |x|lay!([self.size, x]);
|
||||
let with_border = |x|lay!(border, Fill::xy(&x));
|
||||
let with_size = |x|lay!(self.size, x);
|
||||
Tui::bg(bg, Fill::xy(with_border(Bsp::s(
|
||||
Tui::fg(self.color.light.rgb, Tui::bold(true, &"Sampler")),
|
||||
with_size(Shrink::y(1, Bsp::e(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue