config: allow adjusting the speed of gifs (#1147)

Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com>
This commit is contained in:
Evertiro 2026-02-04 02:04:10 -06:00 committed by GitHub
parent 4c72e3e06b
commit 7a41a85954
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 9 additions and 3 deletions

View file

@ -219,6 +219,8 @@ default, you must create it manually.
```json
{
"appearance": {
"mediaGifSpeedAdjustment": 300,
"sessionGifSpeed": 0.7,
"anim": {
"durations": {
"scale": 1

View file

@ -80,6 +80,8 @@ JsonObject {
}
component Anim: JsonObject {
property real mediaGifSpeedAdjustment: 300
property real sessionGifSpeed: 0.7
property AnimCurves curves: AnimCurves {}
property AnimDurations durations: AnimDurations {}
}

View file

@ -122,6 +122,8 @@ Singleton {
}
},
anim: {
mediaGifSpeedAdjustment: 300,
sessionGifSpeed: 0.7,
durations: {
scale: appearance.anim.durations.scale
}

View file

@ -380,7 +380,7 @@ Item {
height: visualiser.height * 0.75
playing: Players.active?.isPlaying ?? false
speed: Audio.beatTracker.bpm / 300
speed: Audio.beatTracker.bpm / Appearance.anim.mediaGifSpeedAdjustment
source: Paths.absolutePath(Config.paths.mediaGif)
asynchronous: true
fillMode: AnimatedImage.PreserveAspectFit

View file

@ -213,7 +213,7 @@ Item {
anchors.margins: Appearance.padding.large * 2
playing: Players.active?.isPlaying ?? false
speed: Audio.beatTracker.bpm / 300
speed: Audio.beatTracker.bpm / Appearance.anim.mediaGifSpeedAdjustment
source: Paths.absolutePath(Config.paths.mediaGif)
asynchronous: true
fillMode: AnimatedImage.PreserveAspectFit

View file

@ -53,7 +53,7 @@ Column {
playing: visible
asynchronous: true
speed: 0.7
speed: Appearance.anim.sessionGifSpeed
source: Paths.absolutePath(Config.paths.sessionGif)
}