wallpaper selector: fix dark mode

This commit is contained in:
end-4
2025-08-24 14:25:39 +07:00
parent 8bbf040100
commit 8277a2d942
4 changed files with 21 additions and 52 deletions
@@ -29,8 +29,11 @@ Singleton {
id: applyProc
}
function openFallbackPicker() {
applyProc.exec([Directories.wallpaperSwitchScriptPath])
function openFallbackPicker(darkMode = Appearance.m3colors.darkmode) {
applyProc.exec([
Directories.wallpaperSwitchScriptPath,
"--mode", (darkMode ? "dark" : "light")
])
}
function apply(path, darkMode = Appearance.m3colors.darkmode) {
@@ -62,7 +65,7 @@ Singleton {
}
function select(filePath, darkMode = Appearance.m3colors.darkmode) {
selectProc.select(filePath);
selectProc.select(filePath, darkMode);
}
Process {