mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 22:31:14 +00:00
Print a warning when trying to animate deprecated properties
This commit is contained in:
parent
246398fcb3
commit
c771bcff45
10 changed files with 30 additions and 18 deletions
|
@ -22,7 +22,7 @@ MemoryTile := Rectangle {
|
|||
property <resource> icon;
|
||||
|
||||
background: solved ? #34CE57 : #3960D5;
|
||||
animate color { duration: 800ms; }
|
||||
animate background { duration: 800ms; }
|
||||
|
||||
Image {
|
||||
source: icon;
|
||||
|
|
|
@ -139,7 +139,7 @@ MainWindow := Window {
|
|||
}
|
||||
}
|
||||
|
||||
animate x, y, height, width, color, border_radius {
|
||||
animate x, y, height, width, background, border_radius {
|
||||
duration: 300ms;
|
||||
easing: ease_in_out;
|
||||
}
|
||||
|
|
|
@ -252,7 +252,7 @@ export MainWindow := Window {
|
|||
|
||||
Rectangle {
|
||||
background: current-theme.window-background-color;
|
||||
animate color { duration: 500ms; easing: ease-out; }
|
||||
animate background { duration: 500ms; easing: ease-out; }
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
|
@ -264,7 +264,7 @@ export MainWindow := Window {
|
|||
height: pieces_size * 5.4;
|
||||
x: (parent.width - width)/2;
|
||||
y: (parent.height - height)/2;
|
||||
animate color, border-color, border-width, border-radius { duration: 500ms; easing: ease-out; }
|
||||
animate background, border-color, border-width, border-radius { duration: 500ms; easing: ease-out; }
|
||||
|
||||
Rectangle {
|
||||
width: parent.width * 90%;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue