@radial-gradient
does not error when used on a property <color>
#6819
Labels
a:compiler
Slint compiler internal (not the codegen, not the parser)
diagnostics
Suggestions for better diagnostics
enhancement
New feature or request
good first issue
Good for newcomers
Language: Rust
Platform: Arm64
While messing around with brushes I noticed I wasn't getting the expected results from a gradient. Eventually I figured out that I was passing the macro to a
property <color>
and passing theproperty <color>
to aproperty <brush>
.Using gradient macros on
property <color>
should at least produce a warning. It will truncate the result to the first color provided to the macro, I do not believe this to be an intuitive outcome.The text was updated successfully, but these errors were encountered: