diff --git a/crates/tek_core/examples/demo.rs b/crates/tek_core/examples/demo.rs index 1f16a769..470930a9 100644 --- a/crates/tek_core/examples/demo.rs +++ b/crates/tek_core/examples/demo.rs @@ -36,22 +36,22 @@ impl Demo { impl Content for Demo { type Engine = Tui; fn content (&self) -> impl Widget { - Align::Center(Fixed::XY(10, 10, Layers::new(|add|{ + Align::Center(Layers::new(|add|{ add(&FillBg(Color::Rgb(128,0,0)))?; - add(&Split::down(|add|{ + add(&Outset::XY(2, 2, Align::Center(Split::down(|add|{ add(&Layers::new(|add|{ add(&FillBg(Color::Rgb(0,128,0)))?; - add(&Align::Center("12345"))?; + add(&Outset::XY(2, 2, Align::Center("12345")))?; add(&Align::Center("FOO")) }))?; add(&Layers::new(|add|{ - add(&FillBg(Color::Rgb(0,0,128)))?; - add(&Align::Center("1234567"))?; - add(&Align::Center("BAR")) + add(&Outset::XY(2, 2, Align::Center("1234567")))?; + add(&Align::Center("BAR"))?; + add(&FillBg(Color::Rgb(0,0,128))) }))?; Ok(()) - })) - }))) + })))) + })) } }