fix terminal theming

i've got no fucking clue why this works
This commit is contained in:
end-4
2026-05-04 10:24:11 +02:00
parent f992294ec2
commit e7c283e91e
@@ -41,19 +41,12 @@ Singleton {
} }
function openFallbackPicker(darkMode = Appearance.m3colors.darkmode) { function openFallbackPicker(darkMode = Appearance.m3colors.darkmode) {
applyProc.exec([ Quickshell.execDetached([Directories.wallpaperSwitchScriptPath, "--mode", darkMode ? "dark" : "light"]);
Directories.wallpaperSwitchScriptPath,
"--mode", (darkMode ? "dark" : "light")
])
} }
function apply(path, darkMode = Appearance.m3colors.darkmode) { function apply(path, darkMode = Appearance.m3colors.darkmode) {
if (!path || path.length === 0) return if (!path || path.length === 0) return;
applyProc.exec([ Quickshell.execDetached([Directories.wallpaperSwitchScriptPath, "--mode", darkMode ? "dark" : "light", "--image", path]);
Directories.wallpaperSwitchScriptPath,
"--image", path,
"--mode", (darkMode ? "dark" : "light")
])
root.changed() root.changed()
} }