status-desktop/ui/shared/status/core/StatusLoadingIndicator.qml
Pascal Precht aa8d9a7f48 feat: introduce StatusLoadingIndicator component
A `StatusIcon` that rotates infinitely and can be used for indicating
pending states.

Usage:

```
StatusLoadingIndicator {
    width: 24 // default: 17
    height: 24 // default: 17
    color: "red" // default: loading asset color
}
```

This also removes `LoadingImage` component from `ui/shared`.

Closes #2360
2021-04-27 14:56:09 -04:00

18 lines
273 B
QML

import QtQuick 2.13
import "."
StatusIcon {
id: root
icon: "loading"
height: 17
width: 17
RotationAnimator {
target: root;
from: 0;
to: 360;
duration: 1200
running: true
loops: Animation.Infinite
}
}