diff --git a/.markdownlint.jsonc b/.markdownlint.jsonc new file mode 100644 index 0000000..4862ac1 --- /dev/null +++ b/.markdownlint.jsonc @@ -0,0 +1,5 @@ +{ + "MD041": false, //first-line-heading + "MD013": false, //line-length + "MD033": false //inline-html +} diff --git a/README.md b/README.md index b7deb54..b632a0a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@
- +- + | - + |
Container::default()
.with_size(size!(100%, 50%))
.with_align(Alignment::Center)
.with_padding(5.)
.with_gap(10.)
- .with_corner_radius(10.)
- .with_background(color::WHITE)
+ .with_background(frame_rect! {
+ color: (0.5, 0.5, 0.5, 1.),
+ corner_radius: 10.,
+ })
.with_children(|ui| {
Text::default()
.with_text("Hello, world")
@@ -41,8 +44,10 @@
.add_child(ui);
Container::default()
.with_padding((10., 20.))
- .with_corner_radius((2.5, 30., 2.5, 2.5))
- .with_background(color::DARK_RED)
+ .with_background(frame_rect! {
+ color: color::DARK_RED,
+ corner_radius: (2.5, 30., 2.5, 2.5),
+ })
.with_children(|ui| {
Text::default()
.with_text("Lorem ipsum dolor sit amet, consectetur adipiscing elit.")
@@ -51,7 +56,7 @@
})
.add_child(ui);
})
- .add_root(&mut hui, resolution);
+ .add_root(ui, size);