diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-04 22:38:23 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-04 22:38:23 +1000 |
| commit | d5afda9d953f423fb88100e0d496db87a0e3e47d (patch) | |
| tree | e6125d7740820c654eeb85336f43aafaba47719a /modules/dashboard/dash | |
| parent | nix: remove unneeded deps (diff) | |
| download | caelestia-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')
| -rw-r--r-- | modules/dashboard/dash/Media.qml | 8 |
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 |