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