fix: broken config uses + move gif speed adjustments to Config.general

This commit is contained in:
2 * r + 2 * t 2026-04-11 21:54:27 +10:00
parent ba95924578
commit 9cf3ad4094
6 changed files with 6 additions and 6 deletions

View file

@ -402,7 +402,7 @@ Item {
height: visualiser.height * 0.75 height: visualiser.height * 0.75
playing: Players.active?.isPlaying ?? false playing: Players.active?.isPlaying ?? false
speed: Audio.beatTracker.bpm / Tokens.anim.mediaGifSpeedAdjustment // qmllint disable unresolved-type speed: Audio.beatTracker.bpm / Config.general.mediaGifSpeedAdjustment // qmllint disable unresolved-type
source: Paths.absolutePath(Config.paths.mediaGif) source: Paths.absolutePath(Config.paths.mediaGif)
asynchronous: true asynchronous: true
fillMode: AnimatedImage.PreserveAspectFit fillMode: AnimatedImage.PreserveAspectFit

View file

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

View file

@ -53,7 +53,7 @@ Row {
anchors.bottom: icon.top anchors.bottom: icon.top
anchors.bottomMargin: Tokens.spacing.small anchors.bottomMargin: Tokens.spacing.small
implicitWidth: Tokens.sizes.dashboard.resourceProgessThickness implicitWidth: Tokens.sizes.dashboard.resourceProgressThickness
color: Colours.layer(Colours.palette.m3surfaceContainerHigh, 2) color: Colours.layer(Colours.palette.m3surfaceContainerHigh, 2)
radius: Tokens.rounding.full radius: Tokens.rounding.full

View file

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

View file

@ -204,8 +204,6 @@ class AppearanceAnim : public ConfigObject {
Q_OBJECT Q_OBJECT
QML_ANONYMOUS QML_ANONYMOUS
CONFIG_PROPERTY(qreal, mediaGifSpeedAdjustment, 300)
CONFIG_PROPERTY(qreal, sessionGifSpeed, 0.7)
CONFIG_SUBOBJECT(AnimDurations, durations) CONFIG_SUBOBJECT(AnimDurations, durations)
public: public:

View file

@ -53,6 +53,8 @@ class GeneralConfig : public ConfigObject {
CONFIG_PROPERTY(QString, logo) CONFIG_PROPERTY(QString, logo)
CONFIG_PROPERTY(QStringList, excludedScreens) CONFIG_PROPERTY(QStringList, excludedScreens)
CONFIG_PROPERTY(qreal, mediaGifSpeedAdjustment, 300)
CONFIG_PROPERTY(qreal, sessionGifSpeed, 0.7)
CONFIG_SUBOBJECT(GeneralApps, apps) CONFIG_SUBOBJECT(GeneralApps, apps)
CONFIG_SUBOBJECT(GeneralIdle, idle) CONFIG_SUBOBJECT(GeneralIdle, idle)
CONFIG_SUBOBJECT(GeneralBattery, battery) CONFIG_SUBOBJECT(GeneralBattery, battery)