summaryrefslogtreecommitdiff
path: root/tests/typ/insert
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-07-08 21:42:36 +0200
committerLaurenz <laurmaedje@gmail.com>2021-07-08 21:42:36 +0200
commit7e2c217cbc3805c4cae613baf4149cc82e10d503 (patch)
tree66c36a7cff800bc0b6b4ddcd2e85112219cd830d /tests/typ/insert
parent551e3af9d09a03aaa246cac46b98124bc10835ba (diff)
Rename some library arguments
- font - color -> fill - shorthands for families and size - decoration functions - color -> stroke - strength -> thickness - position -> offset - invert offsets: now positive goes downwards just like the rest of typst
Diffstat (limited to 'tests/typ/insert')
-rw-r--r--tests/typ/insert/circle.typ2
-rw-r--r--tests/typ/insert/square.typ2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/typ/insert/circle.typ b/tests/typ/insert/circle.typ
index fbb45435..8c35b988 100644
--- a/tests/typ/insert/circle.typ
+++ b/tests/typ/insert/circle.typ
@@ -30,7 +30,7 @@ Expanded by height.
// Test relative sizing.
#rect(width: 100%, height: 50pt, fill: rgb("aaa"))[
#align!(center, center)
- #font!(color: white)
+ #font!(fill: white)
#circle(radius: 10pt, fill: eastern)[A]
#circle(height: 60%, fill: eastern)[B]
#circle(width: 20% + 20pt, fill: eastern)[C]
diff --git a/tests/typ/insert/square.typ b/tests/typ/insert/square.typ
index f9efb98e..d003635d 100644
--- a/tests/typ/insert/square.typ
+++ b/tests/typ/insert/square.typ
@@ -5,7 +5,7 @@ Auto-sized square. \
#square(fill: eastern)[
#align!(center)
#pad!(5pt)
- #font!(color: white, weight: bold)
+ #font!(fill: white, weight: bold)
Typst
]