Add light/dark mode toggle for matugen
This commit is contained in:
parent
dbdfbdc746
commit
5aeeb8458f
3 changed files with 25 additions and 2 deletions
|
|
@ -62,7 +62,15 @@ Singleton {
|
|||
|
||||
Process {
|
||||
id: generateColorsProcess
|
||||
command: ["matugen", "image", WallpaperService.currentWallpaper, "--config", Quickshell.shellDir + "/Assets/Matugen/matugen.toml"]
|
||||
command: {
|
||||
var cmd = ["matugen", "image", WallpaperService.currentWallpaper, "--config", Quickshell.shellDir + "/Assets/Matugen/matugen.toml"]
|
||||
if (!Settings.data.colorSchemes.darkMode) {
|
||||
cmd.push("--mode", "light")
|
||||
} else {
|
||||
cmd.push("--mode", "dark")
|
||||
}
|
||||
return cmd
|
||||
}
|
||||
workingDirectory: Quickshell.shellDir
|
||||
running: false
|
||||
stdout: StdioCollector {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue