C++ / fmt (pull_request) Successful in 6s
JS/TS / fmt (pull_request) Successful in 19s
JS/TS / lint (pull_request) Successful in 21s
Python / static (pull_request) Successful in 53s
Rust / fmt (pull_request) Successful in 47s
C++ / build (pull_request) Successful in 1m54s
Rust / build (pull_request) Successful in 2m7s
Rust / clippy (pull_request) Successful in 1m31s
Python / verify (pull_request) Successful in 2m57s
C++ / clang-tidy (pull_request) Successful in 3m49s
33 lines
576 B
QML
33 lines
576 B
QML
pragma Singleton
|
|
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
import qs.Paths
|
|
|
|
Singleton {
|
|
id: root
|
|
|
|
property alias currentWallpaperPath: adapter.currentWallpaperPath
|
|
property alias lockscreenBg: adapter.lockscreenBg
|
|
|
|
FileView {
|
|
id: fileView
|
|
|
|
path: `${Paths.state}/wallpaper_path.json`
|
|
watchChanges: true
|
|
|
|
onAdapterUpdated: writeAdapter()
|
|
onFileChanged: {
|
|
reload();
|
|
Wallpapers.previewColorLock = false;
|
|
}
|
|
|
|
JsonAdapter {
|
|
id: adapter
|
|
|
|
property string currentWallpaperPath: ""
|
|
property string lockscreenBg: `${Paths.state}/lockscreen_bg.png`
|
|
}
|
|
}
|
|
}
|