summaryrefslogtreecommitdiff
path: root/tests/typ/layout
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/layout
parent911b5818344e85a58da9db895a333d22484b7ae7 (diff)
Remove color literals (#39)
Diffstat (limited to 'tests/typ/layout')
-rw-r--r--tests/typ/layout/grid-1.typ24
-rw-r--r--tests/typ/layout/grid-3.typ4
-rw-r--r--tests/typ/layout/pad.typ2
-rw-r--r--tests/typ/layout/stack.typ2
4 files changed, 16 insertions, 16 deletions
diff --git a/tests/typ/layout/grid-1.typ b/tests/typ/layout/grid-1.typ
index 2938a7f2..ad55b53f 100644
--- a/tests/typ/layout/grid-1.typ
+++ b/tests/typ/layout/grid-1.typ
@@ -6,18 +6,18 @@
#page!(width: 100pt, height: 140pt)
#grid(
columns: (auto, 1fr, 3fr, 0.25cm, 3%, 2mm + 10%),
- rect(0.5cm, #2a631a),
+ rect(0.5cm, rgb("2a631a")),
rect(100%, forest),
rect(100%, conifer),
- rect(100%, #ff0000),
- rect(100%, #00ff00),
- rect(80%, #00faf0),
- rect(1cm, #00ff00),
- rect(0.5cm, #2a631a),
+ rect(100%, rgb("ff0000")),
+ rect(100%, rgb("00ff00")),
+ rect(80%, rgb("00faf0")),
+ rect(1cm, rgb("00ff00")),
+ rect(0.5cm, rgb("2a631a")),
rect(100%, forest),
rect(100%, conifer),
- rect(100%, #ff0000),
- rect(100%, #00ff00),
+ rect(100%, rgb("ff0000")),
+ rect(100%, rgb("00ff00")),
)
#grid()
@@ -29,7 +29,7 @@
gutter-rows: (1fr,),
rect(fill: eastern)[dddaa aaa aaa],
rect(fill: conifer)[ccc],
- rect(width: 100%, fill: #dddddd)[aaa],
+ rect(width: 100%, fill: rgb("dddddd"))[aaa],
)
---
@@ -38,11 +38,11 @@
columns: (1fr, 1cm, 1fr, 1fr),
column-dir: ttb,
rows: (auto, 1fr),
- rect(height: 100%, fill: #222222)[foo],
- rect(height: 100%, fill: #547d0a)[bar],
+ rect(height: 100%, fill: rgb("222222"))[foo],
+ rect(height: 100%, fill: rgb("547d0a"))[bar],
rect(height: 100%, fill: eastern)[hab],
rect(height: 100%, fill: conifer)[baz],
- rect(height: 100%, width: 100%, fill: #547d0a)[bar],
+ rect(height: 100%, width: 100%, fill: rgb("547d0a"))[bar],
)
---
diff --git a/tests/typ/layout/grid-3.typ b/tests/typ/layout/grid-3.typ
index 62af4072..38572520 100644
--- a/tests/typ/layout/grid-3.typ
+++ b/tests/typ/layout/grid-3.typ
@@ -67,9 +67,9 @@
columns: 2 * (1fr,),
rows: (1fr, 2fr, auto, 1fr, 1cm),
gutter-rows: 4 * (10pt,),
- rect(height: 100%, width: 100%, fill: #ff0000)[No height],
+ rect(height: 100%, width: 100%, fill: rgb("ff0000"))[No height],
[foo],
- rect(height: 100%, width: 100%, fill: #fc0030)[Still no height],
+ rect(height: 100%, width: 100%, fill: rgb("fc0030"))[Still no height],
[bar],
[The nature of being itself is in question. Am I One? Am I Many? What is being alive?],
[baz],
diff --git a/tests/typ/layout/pad.typ b/tests/typ/layout/pad.typ
index 05f9b359..d43cafc5 100644
--- a/tests/typ/layout/pad.typ
+++ b/tests/typ/layout/pad.typ
@@ -7,7 +7,7 @@
// All sides together.
#rect(fill: conifer)[
#pad!(10pt, right: 20pt)
- #rect(width: 20pt, height: 20pt, fill: #eb5278)
+ #rect(width: 20pt, height: 20pt, fill: rgb("eb5278"))
]
// Error: 13-23 missing argument: body
diff --git a/tests/typ/layout/stack.typ b/tests/typ/layout/stack.typ
index 89e587c7..fd5201df 100644
--- a/tests/typ/layout/stack.typ
+++ b/tests/typ/layout/stack.typ
@@ -3,7 +3,7 @@
---
#let rect(width, color) = rect(width: width, height: 1cm, fill: color)
#stack(
- rect(2cm, #2a631a),
+ rect(2cm, rgb("2a631a")),
rect(3cm, forest),
rect(1cm, conifer),
)