summaryrefslogtreecommitdiff
path: root/services/Colours.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/Colours.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/Colours.qml')
-rw-r--r--services/Colours.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/Colours.qml b/services/Colours.qml
index 07e2345..8b6ce00 100644
--- a/services/Colours.qml
+++ b/services/Colours.qml
@@ -1,10 +1,10 @@
pragma Singleton
import "root:/config"
+import "root:/utils"
import Quickshell
import Quickshell.Io
import QtQuick
-import Qt.labs.platform
Singleton {
id: root
@@ -54,14 +54,14 @@ Singleton {
}
FileView {
- path: `${StandardPaths.standardLocations(StandardPaths.GenericStateLocation)[0]}/caelestia/scheme/current-mode.txt`
+ path: `${Paths.state}/scheme/current-mode.txt`
watchChanges: true
onFileChanged: reload()
onLoaded: root.light = text() === "light"
}
FileView {
- path: `${StandardPaths.standardLocations(StandardPaths.GenericStateLocation)[0]}/caelestia/scheme/current.txt`
+ path: `${Paths.state}/scheme/current.txt`
watchChanges: true
onFileChanged: reload()
onLoaded: root.load(text(), false)