forked from ghostfox/qyouradio
heugh jazz
This commit is contained in:
32
QYRComponents/BusyIndicator.qml
Normal file
32
QYRComponents/BusyIndicator.qml
Normal file
@@ -0,0 +1,32 @@
|
||||
import QtQuick 6.8
|
||||
import QtQuick.Controls 6.8
|
||||
import QtQuick.Controls.Basic 6.8
|
||||
|
||||
BusyIndicator {
|
||||
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: parent
|
||||
// running: parent.parent.visible && parent.parent.running
|
||||
// from: 0
|
||||
// to: 360
|
||||
// loops: Animation.Infinite
|
||||
// duration: 1250
|
||||
// }
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,7 @@ qt_add_qml_module(QYRComponents
|
||||
Label.qml
|
||||
TabButton.qml
|
||||
YouAds.qml
|
||||
QML_FILES BusyIndicator.qml
|
||||
# SOURCES qyrcomponents.cpp qyrcomponents.h
|
||||
)
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@ import QtQuick.Controls.Basic 6.8
|
||||
Slider {
|
||||
snapMode: Slider.SnapAlways
|
||||
|
||||
property real buffered
|
||||
|
||||
implicitWidth: 130
|
||||
implicitHeight: 20
|
||||
|
||||
@@ -26,6 +28,17 @@ Slider {
|
||||
background: Rectangle {
|
||||
color: "#555"
|
||||
radius: 5
|
||||
|
||||
Rectangle {
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
|
||||
visible: parent.parent.buffered != 0
|
||||
width: parent.width * parent.parent.buffered
|
||||
color: "#888"
|
||||
radius: 5
|
||||
}
|
||||
}
|
||||
|
||||
handle: Rectangle {
|
||||
|
||||
Reference in New Issue
Block a user