fixed broken wallpaer tiling function
This commit is contained in:
@@ -1769,6 +1769,8 @@
|
|||||||
.getElementById("wallpaperColorPicker")
|
.getElementById("wallpaperColorPicker")
|
||||||
.addEventListener("input", changeWallpaper, false);
|
.addEventListener("input", changeWallpaper, false);
|
||||||
document
|
document
|
||||||
|
.getElementById("wallpaperRepeatToggle")
|
||||||
|
.addEventListener("change", toggleWallpaperRepeat, false);
|
||||||
|
|
||||||
/** load container data */
|
/** load container data */
|
||||||
let zIndexMapData = JSON.parse(localStorage.getItem("zIndexMapData")) || [];
|
let zIndexMapData = JSON.parse(localStorage.getItem("zIndexMapData")) || [];
|
||||||
@@ -2092,8 +2094,11 @@
|
|||||||
repeatWallpaper = this.checked;
|
repeatWallpaper = this.checked;
|
||||||
if (repeatWallpaper) {
|
if (repeatWallpaper) {
|
||||||
document.body.style.backgroundSize = "contain";
|
document.body.style.backgroundSize = "contain";
|
||||||
|
document.body.style.backgroundRepeat = "repeat";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
document.body.style.backgroundSize = "cover";
|
document.body.style.backgroundSize = "cover";
|
||||||
|
document.body.style.backgroundRepeat = "no-repeat";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user