From a4e357fb37d76d32d06ad8cc21e47bb2cc064cfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20d=27Herbais=20de=20Thun?= Date: Tue, 3 Oct 2023 19:31:02 +0200 Subject: Gradient Part 2 - Linear gradients (#2279) --- crates/typst-ide/src/complete.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'crates/typst-ide/src') diff --git a/crates/typst-ide/src/complete.rs b/crates/typst-ide/src/complete.rs index dcf98a31..83e339f9 100644 --- a/crates/typst-ide/src/complete.rs +++ b/crates/typst-ide/src/complete.rs @@ -1169,6 +1169,26 @@ impl<'a> CompletionContext<'a> { "cmyk(${c}, ${m}, ${y}, ${k})", "A custom CMYK color.", ); + self.snippet_completion( + "oklab()", + "oklab(${l}, ${a}, ${b}, ${alpha})", + "A custom Oklab color.", + ); + self.snippet_completion( + "color.linear-rgb()", + "color.linear-rgb(${r}, ${g}, ${b}, ${a})", + "A custom linear RGBA color.", + ); + self.snippet_completion( + "color.hsv()", + "color.hsv(${h}, ${s}, ${v}, ${a})", + "A custom HSVA color.", + ); + self.snippet_completion( + "color.hsl()", + "color.hsl(${h}, ${s}, ${l}, ${a})", + "A custom HSLA color.", + ); self.scope_completions(false, |value| value.ty() == *ty); } else if *ty == Type::of::() { self.snippet_completion( -- cgit v1.2.3