summaryrefslogtreecommitdiff
path: root/services/Wallpapers.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-24 16:31:23 +0800
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-24 16:31:23 +0800
commita0cc31ff581fb33c679b2016d2d00d4d86cb7031 (patch)
tree365854d14605e569e32228b1a2a6d6225c4e38bd /services/Wallpapers.qml
parenticons: better matching + add category icon (diff)
downloadcaelestia-shell-a0cc31ff581fb33c679b2016d2d00d4d86cb7031.tar.gz
caelestia-shell-a0cc31ff581fb33c679b2016d2d00d4d86cb7031.tar.bz2
caelestia-shell-a0cc31ff581fb33c679b2016d2d00d4d86cb7031.zip
refactor: path utils
Diffstat (limited to 'services/Wallpapers.qml')
-rw-r--r--services/Wallpapers.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/Wallpapers.qml b/services/Wallpapers.qml
index 4bfa72f..1de5227 100644
--- a/services/Wallpapers.qml
+++ b/services/Wallpapers.qml
@@ -1,16 +1,16 @@
pragma Singleton
import "root:/utils/scripts/fuzzysort.js" as Fuzzy
+import "root:/utils"
import Quickshell
import Quickshell.Io
import QtQuick
-import Qt.labs.platform
Singleton {
id: root
- readonly property string currentNamePath: `${StandardPaths.standardLocations(StandardPaths.GenericStateLocation)[0]}/caelestia/wallpaper/last.txt`.slice(7)
- readonly property string path: `${StandardPaths.standardLocations(StandardPaths.PicturesLocation)[0]}/Wallpapers`.slice(7)
+ readonly property string currentNamePath: `${Paths.state}/wallpaper/last.txt`.slice(7)
+ readonly property string path: `${Paths.pictures}/Wallpapers`.slice(7)
readonly property list<Wallpaper> list: wallpapers.instances
property bool showPreview: false