slint/internal/compiler/tests/syntax/basic/opacity.slint
2022-02-02 10:05:45 +01:00

14 lines
375 B
Text

// Copyright © SixtyFPS GmbH <info@sixtyfps.io>
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
SuperSimple := Window {
opacity: 0.5;
// ^warning{The opacity property cannot be used on the root element, it will not be applied}
Rectangle {
opacity: false;
// ^error{Cannot convert bool to float}
}
}