mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 06:47:01 +00:00
aa8d9a7f48
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
18 lines
273 B
QML
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
|
|
}
|
|
}
|