mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 21:34:50 +00:00
Add support for animating color properties
This commit is contained in:
parent
be75cb2b21
commit
b8ca0fe3c9
9 changed files with 91 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue