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

@ -25,6 +25,7 @@ component ButtonRectangle := Rectangle {
width: 100;
height: 75;
color: button_area.pressed ? red : button_color;
animate color { duration: 200; }
button_area := TouchArea {
width: root.width;
height: root.height;