extract PulseAnimation component from 3 modules

This commit is contained in:
Damocles 2026-04-24 09:04:09 +02:00
parent 8d76df6ef5
commit b5be146619
5 changed files with 29 additions and 60 deletions

View file

@ -13,25 +13,9 @@ M.PinnableSection {
property real _blinkOpacity: 1
SequentialAnimation {
M.PulseAnimation on _blinkOpacity {
running: S.BatteryService.critical
loops: Animation.Infinite
NumberAnimation {
target: root
property: "_blinkOpacity"
to: 0.45
duration: 400
easing.type: Easing.InOutQuad
}
NumberAnimation {
target: root
property: "_blinkOpacity"
to: 1
duration: 400
easing.type: Easing.InOutQuad
}
onRunningChanged: if (!running)
root._blinkOpacity = 1
minOpacity: 0.45
}
// Bar widgets