mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 05:52:41 +00:00
f2883fdcee
Closes #16624
31 lines
630 B
QML
31 lines
630 B
QML
import QtQuick 2.15
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
SequentialAnimation {
|
|
id: root
|
|
|
|
property var target: null
|
|
property color fromColor: Theme.palette.directColor1
|
|
property color toColor: Theme.palette.baseColor5
|
|
property int duration: 500 // in milliseconds
|
|
|
|
loops: 3
|
|
|
|
ColorAnimation {
|
|
target: root.target
|
|
property: "color"
|
|
from: root.fromColor
|
|
to: root.toColor
|
|
duration: root.duration
|
|
}
|
|
|
|
ColorAnimation {
|
|
target: root.target
|
|
property: "color"
|
|
from: root.toColor
|
|
to: root.fromColor
|
|
duration: root.duration
|
|
}
|
|
}
|