cushy/examples/layers.rs
Jonathan Johnson ab474e2b7d
Fixing example references to dependencies
Ensuring all examples use public paths to make copy/paste more likely to
be successful.
2024-10-10 09:06:43 -07:00

12 lines
279 B
Rust

use cushy::styles::Color;
use cushy::widget::MakeWidget;
use cushy::widgets::Space;
use cushy::Run;
fn main() -> cushy::Result {
Space::colored(Color::RED)
.and("Layers stack widgets on top of each other")
.into_layers()
.centered()
.run()
}