2019-07-21 21:14:16 +10:00
|
|
|
import QtQuick 2.12
|
|
|
|
import QtQuick.Controls 2.12
|
2019-08-28 09:47:58 +10:00
|
|
|
import QtQuick.Shapes 1.12
|
2019-07-21 21:14:16 +10:00
|
|
|
|
2019-07-24 16:14:34 +10:00
|
|
|
BusyIndicator {
|
|
|
|
id: indicator
|
2019-08-28 09:47:58 +10:00
|
|
|
implicitWidth: theme ? theme.controls.loader.defaultDimension : 96
|
|
|
|
implicitHeight: implicitWidth
|
2019-07-24 16:14:34 +10:00
|
|
|
|
2019-08-28 09:47:58 +10:00
|
|
|
contentItem: HIcon {
|
|
|
|
svgName: "loader"
|
|
|
|
dimension: indicator.width
|
|
|
|
property var pr: dimension
|
|
|
|
colorize: theme ? theme.controls.loader.colorize : "white"
|
|
|
|
mipmap: true
|
2019-07-24 16:14:34 +10:00
|
|
|
|
2019-08-28 09:47:58 +10:00
|
|
|
RotationAnimation on rotation {
|
|
|
|
id: rotationAnimation
|
|
|
|
from: 0
|
|
|
|
to: 360
|
|
|
|
running: true
|
|
|
|
loops: Animation.Infinite
|
|
|
|
duration: theme ? (theme.animationDuration * 6) : 600
|
|
|
|
easing.type: Easing.Linear
|
2019-07-24 16:14:34 +10:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|