summaryrefslogtreecommitdiff
path: root/tests/typ/insert
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-30 22:32:24 +0200
committerGitHub <noreply@github.com>2021-06-30 22:32:24 +0200
commit17e89468847735df10381c47c46c7d82d33cc463 (patch)
treeb0ce55f7d62aac399717aac3ab5a76c981c66f65 /tests/typ/insert
parent911b5818344e85a58da9db895a333d22484b7ae7 (diff)
Remove color literals (#39)
Diffstat (limited to 'tests/typ/insert')
-rw-r--r--tests/typ/insert/circle.typ6
-rw-r--r--tests/typ/insert/ellipse.typ2
-rw-r--r--tests/typ/insert/rect.typ14
-rw-r--r--tests/typ/insert/square.typ4
4 files changed, 13 insertions, 13 deletions
diff --git a/tests/typ/insert/circle.typ b/tests/typ/insert/circle.typ
index 1c8808a4..fbb45435 100644
--- a/tests/typ/insert/circle.typ
+++ b/tests/typ/insert/circle.typ
@@ -4,7 +4,7 @@
// Test auto sizing.
Auto-sized circle. \
-#circle(fill: #eb5278)[
+#circle(fill: rgb("eb5278"))[
#align!(center, center)
But, soft!
]
@@ -28,9 +28,9 @@ Expanded by height.
---
// Test relative sizing.
-#rect(width: 100%, height: 50pt, fill: #aaa)[
+#rect(width: 100%, height: 50pt, fill: rgb("aaa"))[
#align!(center, center)
- #font!(color: #fff)
+ #font!(color: 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/ellipse.typ b/tests/typ/insert/ellipse.typ
index a086ab74..29f9b556 100644
--- a/tests/typ/insert/ellipse.typ
+++ b/tests/typ/insert/ellipse.typ
@@ -2,7 +2,7 @@
---
100% rect in 100% ellipse in fixed rect. \
-#rect(width: 3cm, height: 2cm, fill: #2a631a)[
+#rect(width: 3cm, height: 2cm, fill: rgb("2a631a"))[
#ellipse!(width: 100%, height: 100%, fill: forest)
#rect!(width: 100%, height: 100%, fill: conifer)
#align!(center, center)
diff --git a/tests/typ/insert/rect.typ b/tests/typ/insert/rect.typ
index 93df071b..7f6bb899 100644
--- a/tests/typ/insert/rect.typ
+++ b/tests/typ/insert/rect.typ
@@ -9,19 +9,19 @@
#rect(fill: conifer)[Textbox]
// Empty with fixed width and height.
-#rect(width: 3cm, height: 12pt, fill: #CB4CED)
+#rect(width: 3cm, height: 12pt, fill: rgb("CB4CED"))
// Fixed width, text height.
-#rect(width: 2cm, fill: #9650D6, pad(5pt)[Fixed and padded])
+#rect(width: 2cm, fill: rgb("9650D6"), pad(5pt)[Fixed and padded])
// Page width, fixed height.
-#rect(height: 1cm, width: 100%, fill: #734CED)[Topleft]
+#rect(height: 1cm, width: 100%, fill: rgb("734CED"))[Topleft]
// Not visible, but creates a gap between the boxes above and below
// due to line spacing.
-#rect(width: 1in, fill: #ff0000)
+#rect(width: 1in, fill: rgb("ff0000"))
// These are in a row!
-#rect(width: 0.5in, height: 10pt, fill: #D6CD67)
-#rect(width: 0.5in, height: 10pt, fill: #EDD466)
-#rect(width: 0.5in, height: 10pt, fill: #E3BE62)
+#rect(width: 0.5in, height: 10pt, fill: rgb("D6CD67"))
+#rect(width: 0.5in, height: 10pt, fill: rgb("EDD466"))
+#rect(width: 0.5in, height: 10pt, fill: rgb("E3BE62"))
diff --git a/tests/typ/insert/square.typ b/tests/typ/insert/square.typ
index 4dd8964f..f9efb98e 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: #fff, weight: bold)
+ #font!(color: white, weight: bold)
Typst
]
@@ -13,7 +13,7 @@ Auto-sized square. \
// Length wins over width and height.
// Error: 2:9-2:20 unexpected argument
// Error: 1:22-1:34 unexpected argument
-#square(width: 10cm, height: 20cm, length: 1cm, fill: #eb5278)
+#square(width: 10cm, height: 20cm, length: 1cm, fill: rgb("eb5278"))
---
// Test height overflow.