Enter-tainer / typst-preview

[DEPRECATED] Use tinymist instead
https://Enter-tainer.github.io/typst-preview/
MIT License
444 stars 21 forks source link

grey linear gradient appears red with shadow in preview #269

Closed nineff closed 8 months ago

nineff commented 8 months ago

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 8 months ago

Screenshot 2024-03-11 110032

Enter-tainer commented 8 months ago

i guess this is the same as #268

Enter-tainer commented 8 months ago

we confused the color space. will fix in next version

Enter-tainer commented 8 months ago

fixed in incoming(maybe 30min) version