forked from ghostfox/qyouradio
34 lines
745 B
QML
34 lines
745 B
QML
import QtQuick 6.8
|
|
import QtQuick.Controls 6.8
|
|
import QtQuick.Controls.Basic 6.8
|
|
|
|
BusyIndicator {
|
|
id: spinner
|
|
contentItem: Rectangle {
|
|
implicitWidth: 44
|
|
implicitHeight: 44
|
|
color: "transparent"
|
|
radius: 44
|
|
border.width: 4
|
|
border.color: Colors.primaryAlt
|
|
|
|
Rectangle {
|
|
width: 12
|
|
height: 12
|
|
anchors.top: parent.top
|
|
anchors.topMargin: 8
|
|
color: Colors.primary
|
|
radius: 12
|
|
}
|
|
|
|
RotationAnimator {
|
|
target: spinner
|
|
running: spinner.visible && spinner.running
|
|
from: 0
|
|
to: 360
|
|
loops: Animation.Infinite
|
|
duration: 1250
|
|
}
|
|
}
|
|
}
|