mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-12 21:37:01 +00:00

Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
31 lines
1.2 KiB
Text
31 lines
1.2 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
|
|
|
|
import { StyleMetrics } from "std-widgets.slint";
|
|
|
|
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}
|
|
debug(StyleMetrics.dark-color-scheme);
|
|
// ^warning{The property 'StyleMetrics' has been deprecated. Please use 'Palette' instead}
|
|
}
|
|
|
|
}
|