slint/api
Simon Hausmann 50d9211e0a Fix failing default_color.60 test
Allow converting a brush to a color. In the case of a gradient, the color of the first stop is returned.

For the C++ generator this requires adding the extra case of explicitly
calling the `Brush(const Color &)` constructor, despite it being implicit,
in order to generate the correct code when we have IR that casts twice:

```
   Expression::Cast {
       from: Expression::Cast {
           from: Expression::Cast {
               from: Expression::NumberLiteral(...),
               to: Type::Color,
           }
           to: Type::Brush,
       },
       to: Type::Color,
   }
```
2021-02-04 13:44:10 +01:00
..
sixtyfps-cpp Fix failing default_color.60 test 2021-02-04 13:44:10 +01:00
sixtyfps-node Support complex product of units 2021-02-04 12:56:14 +01:00
sixtyfps-rs For the master documentation, use the master version of the interpreter 2021-02-03 15:50:34 +01:00
sixtyfps-wasm-interpreter Update version number everywhere 2021-01-28 16:34:13 +01:00