slint/tests/manual/opacity_inheritance.slint
Aurindam Jana 3523e86359
Simplify commercial license (#3063)
Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
2024-05-31 14:06:17 +02:00

44 lines
1 KiB
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
export TestCase := Window {
preferred-width: 800px;
preferred-height: 600px;
background: white;
Rectangle {
background: purple;
height: 50px;
Text {
text: "This is purple rectangle, for comparison";
}
}
Rectangle {
opacity: 0.5;
width: 200px;
height: 100px;
y: 50px;
background: red;
Text {
text: "This rectangle should be rose";
}
Rectangle {
background: blue;
width: 400px;
height: 50px;
x: 25px;
y: 25px;
Text {
text: "This rectangle should be evenly filled with a blue'ish tint, not purple as well as be wider than the rose rectangle.";
color: green;
width: 400px;
wrap: word-wrap;
}
}
}
}