You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could work around by moving the gradients into a global and just reference it from inside the ternary operator. Looks like a bug in the parser to me.
Edit: Above statement isn't true. It's also not working when using a global.
The text was updated successfully, but these errors were encountered:
levrik
changed the title
@linear-gradient broken when used in 2nd position of ternary operator@linear-gradient macro broken in ternary operator
May 5, 2022
When using the
@linear-gradient
macro in the 2nd position of the ternary operator, just the first color value found is being used.I simplified the code a lot for demonstration purposes.
These 2 codeblocks can be just copied into
Window
of https://slint-ui.com/releases/0.2.2/editor/ to reproduce.I could work around by moving the gradients into a global and just reference it from inside the ternary operator. Looks like a bug in the parser to me.Edit: Above statement isn't true. It's also not working when using a global.
The text was updated successfully, but these errors were encountered: