1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
3
4// Verify that this compiles with all generators
5
6Test := Rectangle {
7 background: @linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
8 property <color> foo: #a23;
9 property <brush> bar: @linear-gradient(1.2rad, foo.darker(0.5), foo.brighter(0.5), );
10
11 for data in [{xx: #b56}] : Rectangle {
12 background: @linear-gradient(1.2rad, data.xx, blue);
13 }
14
15 property <color> c: @linear-gradient(90deg,#e2e1e1,#c5c5c5);
16}
17