slint/internal/compiler/tests/syntax/lookup/deprecated_property.slint
2023-07-10 10:12:11 +02:00

27 lines
1 KiB
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
export Xxx := Rectangle {
color: white;
// ^warning{The property 'color' has been deprecated. Please use 'background' instead}
r := Rectangle {
background: root.color;
// ^warning{The property 'color' has been deprecated. Please use 'background' instead}
animate color {
// ^warning{The property 'color' has been deprecated. Please use 'background' instead}
duration: 250ms;
}
}
minimum-height: root.maximum-width;
// ^warning{The property 'minimum-height' has been deprecated. Please use 'min-height' instead}
// ^^warning{The property 'maximum-width' has been deprecated. Please use 'max-width' instead}
callback not_called;
not_called() => {
color = #000000;
// ^warning{The property 'color' has been deprecated. Please use 'background' instead}
}
}