summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-07-08 10:52:43 +0200
committerGitHub <noreply@github.com>2025-07-08 08:52:43 +0000
commit0a3c6939dd274f40672484695d909c2cc0d0d755 (patch)
tree465c10338230b895fdd06c8b3491f1734e8a2932 /tests
parent36ecbb2c8dccc1a31c43fee1466f1425844d8607 (diff)
Rewrite foundations of native elements (#6547)
Diffstat (limited to 'tests')
-rw-r--r--tests/src/world.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/src/world.rs b/tests/src/world.rs
index 6fa1cf60..9b16d612 100644
--- a/tests/src/world.rs
+++ b/tests/src/world.rs
@@ -214,13 +214,11 @@ fn library() -> Library {
.define("forest", Color::from_u8(0x43, 0xA1, 0x27, 0xFF));
// Hook up default styles.
+ lib.styles.set(PageElem::width, Smart::Custom(Abs::pt(120.0).into()));
+ lib.styles.set(PageElem::height, Smart::Auto);
lib.styles
- .set(PageElem::set_width(Smart::Custom(Abs::pt(120.0).into())));
- lib.styles.set(PageElem::set_height(Smart::Auto));
- lib.styles.set(PageElem::set_margin(Margin::splat(Some(Smart::Custom(
- Abs::pt(10.0).into(),
- )))));
- lib.styles.set(TextElem::set_size(TextSize(Abs::pt(10.0).into())));
+ .set(PageElem::margin, Margin::splat(Some(Smart::Custom(Abs::pt(10.0).into()))));
+ lib.styles.set(TextElem::size, TextSize(Abs::pt(10.0).into()));
lib
}