fix HexWaveBackground: onRunningChanged resolves to ShaderEffect, use Connections

This commit is contained in:
Damocles 2026-04-17 21:51:20 +02:00
parent b27c4a2abc
commit 15a49726b5

View file

@ -28,13 +28,15 @@ Item {
property color uC1: M.Theme.base0E property color uC1: M.Theme.base0E
property color uC2: M.Theme.base09 property color uC2: M.Theme.base09
// Reset animations when stopped Connections {
onRunningChanged: { target: root
function onRunningChanged() {
if (!root.running) { if (!root.running) {
fx.uWavePhase = -200; fx.uWavePhase = -200;
fx.uBreath = 0; fx.uBreath = 0;
} }
} }
}
// Wave animation: 6s sweep + 8s pause // Wave animation: 6s sweep + 8s pause
SequentialAnimation on uWavePhase { SequentialAnimation on uWavePhase {