auto light/dark scheme

This commit is contained in:
Zacharias-Brohn
2026-02-19 14:41:42 +01:00
parent d97cb0d583
commit 79428bb209
5 changed files with 92 additions and 1 deletions
+4 -1
View File
@@ -3,11 +3,14 @@ pragma Singleton
import Quickshell
import Quickshell.Io
import QtQuick
import qs.Config
Singleton {
id: root
property var args
readonly property string mode: Config.general.color.mode
readonly property string threshold: mode === "dark" ? "--threshold=9" : "--dynamic-threshold"
function generateColors(wallpaperPath) {
root.args = wallpaperPath;
@@ -16,7 +19,7 @@ Singleton {
Process {
id: wallustProc
command: ["wallust", "run", root.args, "--palette=dark", "--ignore-sequence=cursor", "--threshold=9" ]
command: ["wallust", "run", root.args, `--palette=${root.mode}`, "--ignore-sequence=cursor", `${root.threshold}` ]
running: false
}
}