config: make gifs configurable
This commit is contained in:
parent
6455f6c719
commit
ae12e0d4f8
4 changed files with 5 additions and 3 deletions
|
|
@ -3,4 +3,6 @@ import Quickshell.Io
|
||||||
|
|
||||||
JsonObject {
|
JsonObject {
|
||||||
property string wallpaperDir: Paths.strip(`${Paths.pictures}/Wallpapers`)
|
property string wallpaperDir: Paths.strip(`${Paths.pictures}/Wallpapers`)
|
||||||
|
property string sessionGif: "root:/assets/kurukuru.gif"
|
||||||
|
property string mediaGif: "root:/assets/bongocat.gif"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -524,7 +524,7 @@ Item {
|
||||||
|
|
||||||
playing: root.shouldUpdate && (Players.active?.isPlaying ?? false)
|
playing: root.shouldUpdate && (Players.active?.isPlaying ?? false)
|
||||||
speed: BeatDetector.bpm / 300
|
speed: BeatDetector.bpm / 300
|
||||||
source: "root:/assets/bongocat.gif"
|
source: Config.paths.mediaGif
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
fillMode: AnimatedImage.PreserveAspectFit
|
fillMode: AnimatedImage.PreserveAspectFit
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -222,7 +222,7 @@ Item {
|
||||||
|
|
||||||
playing: root.shouldUpdate && (Players.active?.isPlaying ?? false)
|
playing: root.shouldUpdate && (Players.active?.isPlaying ?? false)
|
||||||
speed: BeatDetector.bpm / 300
|
speed: BeatDetector.bpm / 300
|
||||||
source: "root:/assets/bongocat.gif"
|
source: Config.paths.mediaGif
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
fillMode: AnimatedImage.PreserveAspectFit
|
fillMode: AnimatedImage.PreserveAspectFit
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ Column {
|
||||||
playing: visible
|
playing: visible
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
speed: 0.7
|
speed: 0.7
|
||||||
source: "root:/assets/kurukuru.gif"
|
source: Config.paths.sessionGif
|
||||||
}
|
}
|
||||||
|
|
||||||
SessionButton {
|
SessionButton {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue