summaryrefslogtreecommitdiff
path: root/modules/dashboard/dash/Media.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-04 22:38:23 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-04 22:38:23 +1000
commitd5afda9d953f423fb88100e0d496db87a0e3e47d (patch)
treee6125d7740820c654eeb85336f43aafaba47719a /modules/dashboard/dash/Media.qml
parentnix: remove unneeded deps (diff)
downloadcaelestia-shell-d5afda9d953f423fb88100e0d496db87a0e3e47d.tar.gz
caelestia-shell-d5afda9d953f423fb88100e0d496db87a0e3e47d.tar.bz2
caelestia-shell-d5afda9d953f423fb88100e0d496db87a0e3e47d.zip
plugin: add BeatTracker
Replaces beat-detector.cpp
Diffstat (limited to 'modules/dashboard/dash/Media.qml')
-rw-r--r--modules/dashboard/dash/Media.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/dashboard/dash/Media.qml b/modules/dashboard/dash/Media.qml
index 7cb9e3e..657c364 100644
--- a/modules/dashboard/dash/Media.qml
+++ b/modules/dashboard/dash/Media.qml
@@ -1,7 +1,9 @@
import qs.components
+import qs.components.misc
import qs.services
import qs.config
import qs.utils
+import Caelestia
import QtQuick
import QtQuick.Shapes
@@ -31,6 +33,10 @@ Item {
onTriggered: Players.active?.positionChanged()
}
+ Ref {
+ service: BeatTracker
+ }
+
Shape {
preferredRendererType: Shape.CurveRenderer
@@ -208,7 +214,7 @@ Item {
anchors.margins: Appearance.padding.large * 2
playing: Players.active?.isPlaying ?? false
- speed: BeatDetector.bpm / 300
+ speed: BeatTracker.bpm / 300
source: Paths.absolutePath(Config.paths.mediaGif)
asynchronous: true
fillMode: AnimatedImage.PreserveAspectFit