mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 13:24:48 +00:00

Move "internal" crates into the `internal` directory. This first batch includes most of sixtyfps_runtime but leaves the rendering backends alone for now. pre-commit applied some cleanups to the moved files: - Consistent newline at end of file policy - trimming trailing whitespace - Formatting Cargo.toml files.
29 lines
1.8 KiB
Text
29 lines
1.8 KiB
Text
// Copyright © SixtyFPS GmbH <info@sixtyfps.io>
|
|
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
|
|
|
|
// Cannot be put in the easing.60 test because it is in a different pass
|
|
|
|
X := Rectangle {
|
|
property<brush> g1: @linear-gradient();
|
|
// ^error{Expected angle expression}
|
|
property<brush> g2: @linear-gradient(to left, blue, red);
|
|
// ^error{Angle expression must be an angle followed by a comma}
|
|
property<brush> g3: @linear-gradient(0deg, blue, red);
|
|
property<brush> g4: @linear-gradient(45deg, blue 45%, red red);
|
|
// ^error{Cannot convert color to float}
|
|
property<brush> g5: @linear-gradient(128deg, blue 45%, red);
|
|
property<brush> g6: @linear-gradient(90deg, blue 45%, red 88%);
|
|
property<brush> g7: @linear-gradient(90deg, 42 45%, red 0.3);
|
|
// ^error{Cannot convert float to color}
|
|
property<brush> g8: @linear-gradient(90deg, blue red green);
|
|
// ^error{Cannot convert color to float}
|
|
// ^^error{Expected comma}
|
|
property<brush> g9: @linear-gradient(0deg blue, blue, red);
|
|
// ^error{Angle expression must be an angle followed by a comma}
|
|
property<brush> g10: @linear-gradient(90deg, blue 10% red 20%, yellow);
|
|
// ^error{Expected comma}
|
|
property<brush> g11: @linear-gradient(20deg,);
|
|
property<brush> g12: @linear-gradient(2, blue 45%, red 88%);
|
|
// ^error{Cannot convert float to angle. Use an unit, or multiply by 1deg to convert explicitly}
|
|
property<brush> g13: @linear-gradient(90deg + 0.5turn, true ? blue : red 45%, red 88% + 0.1);
|
|
}
|