Add support for animating color properties

This commit is contained in:
Simon Hausmann 2020-06-27 16:51:48 +02:00
parent be75cb2b21
commit b8ca0fe3c9
9 changed files with 91 additions and 2 deletions

View file

@ -40,6 +40,7 @@ component ButtonRectangle := Rectangle {
color: black;
}
color: { button_area.pressed ? red : #5898; }
animate color { duration: 500; }
animate x {
duration: 200;
}