fix HexWaveBackground: onRunningChanged resolves to ShaderEffect, use Connections
This commit is contained in:
parent
b27c4a2abc
commit
15a49726b5
1 changed files with 7 additions and 5 deletions
|
|
@ -28,13 +28,15 @@ Item {
|
|||
property color uC1: M.Theme.base0E
|
||||
property color uC2: M.Theme.base09
|
||||
|
||||
// Reset animations when stopped
|
||||
onRunningChanged: {
|
||||
Connections {
|
||||
target: root
|
||||
function onRunningChanged() {
|
||||
if (!root.running) {
|
||||
fx.uWavePhase = -200;
|
||||
fx.uBreath = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Wave animation: 6s sweep + 8s pause
|
||||
SequentialAnimation on uWavePhase {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue