extract PulseAnimation component from 3 modules
This commit is contained in:
parent
8d76df6ef5
commit
b5be146619
5 changed files with 29 additions and 60 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue