Added the ability to opt out of the integrated wallpaper service. (#109)

This commit is contained in:
Jas Singh
2024-08-11 01:15:06 -07:00
committed by GitHub
parent 0d7bd7dbc2
commit 1eef504fc2
8 changed files with 41 additions and 4 deletions

View File

@@ -37,10 +37,19 @@ export const initializeTrackers = (resetCssFunc: Function) => {
})
Wallpaper.connect("changed", () => {
console.info("Wallpaper changed, regenerating Matugen colors...")
if (options.theme.matugen.value) {
options.resetTheme();
resetCssFunc();
}
})
options.wallpaper.image.connect("changed", () => {
if ((!Wallpaper.isRunning() && options.theme.matugen.value) || !options.wallpaper.enable.value) {
console.info("Wallpaper path changed, regenerating Matugen colors...")
options.resetTheme();
resetCssFunc();
}
})
}