slint/internal/compiler/tests/syntax/basic/opacity.slint
Tobias Hunger bbdd6aeab7 compiler: Ignore leading whitespace when parsing
... and update all out test cases accordingly.
2023-04-26 17:22:13 +02:00

17 lines
504 B
Text

// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
export 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}
}
visible: false;
// ^warning{The visible property cannot be used on the root element, it will not be applied}
}