grey linear gradient appears red with shadow in preview
nineff opened this issue · 4 comments
nineff commented
Describe the bug
See title & screenshot. Left side is official typst output, right side is preview.
To Reproduce
use the following code:
#show quote.where(block: true): it => {
align(center)[
#rect(
radius: 2mm,
inset: 5mm,
width: 100%,
fill: gradient.linear(luma(240), luma(210)),
)[
#place(top + left, dy: -7mm)[
#rect(
radius: 1mm,
width: 7mm,
height: 5mm,
fill: luma(120),
)[#text(size: 20pt, baseline: -1.3pt, fill: white, font: "Trebuchet MS")[”]]
]
#v(2mm)
#align(left)[#emph(it.body)]
#if it.has("attribution") and it.attribution != none {
align(right)[-- #it.attribution]
}
]
]
}
#quote(attribution: "some latin dude, probably", block: true)[#lorem(50)]
Expected behavior
A grey gradient should prieview as grey, not red
*Package/Software version:
typst-preview extension version: v0.10.9
(0.11.0-rc1)
nineff commented
Enter-tainer commented
i guess this is the same as #268
Enter-tainer commented
we confused the color space. will fix in next version
Enter-tainer commented
fixed in incoming(maybe 30min) version