From a0cc31ff581fb33c679b2016d2d00d4d86cb7031 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 24 May 2025 16:31:23 +0800 Subject: refactor: path utils --- services/Colours.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'services/Colours.qml') 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) -- cgit v1.2.3-freya