Print a warning when trying to animate deprecated properties

This commit is contained in:
Simon Hausmann 2021-02-02 22:50:52 +01:00
parent 246398fcb3
commit c771bcff45
10 changed files with 30 additions and 18 deletions

View file

@ -22,7 +22,7 @@ MemoryTile := Rectangle {
property <resource> icon;
background: solved ? #34CE57 : #3960D5;
animate color { duration: 800ms; }
animate background { duration: 800ms; }
Image {
source: icon;

View file

@ -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;
}

View file

@ -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%;