Introduce undefined values for properties and struct fields #5164
Labels
a:language-slint
Compiler for the .slint language (mO,bF)
rfc
Request for comments: proposals for changes
I have the following use case:
The following example does not work as expected, because the top left border radius of inner
Rectangle
will not be rendered with8px
but instead with0
. The problem is, that if theborder-radius
field onStyle
is not explicit set it will defaults to0
and it overwrites the setting ofborder-top-left-radius
. What could help to solve this problem is to introduceundefined
for values and use this as default e.g. forborder-radius
instead of0
, so that is handled like there is no value set on the propertyborder-radius
.The text was updated successfully, but these errors were encountered: