diff options
Diffstat (limited to 'services/Colours.qml')
| -rw-r--r-- | services/Colours.qml | 6 |
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) |