add option for a background image, add default background

This commit is contained in:
stefan.tollkuehn committed 2026-09-30 13:35:46 +02:00
1 parent eb1e62c511
commit f3f47aee4d
2 files changed
+20 -1

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

+20 -1
View File
@@ -440,7 +440,10 @@
* Timeout trying to start the jitsi-meet-electron client
*/
launchTimeout: 2000,
/*
* set wallpaper for webpage
*/
backgroundImage: "assets/background.png",
/*
* Download URLs for jitsi-meet-electron client
*/
@@ -796,6 +799,21 @@
return typeof value === "string" ? value : null;
}
/* ============================================================
* BACKGROUND IMAGE
* ============================================================
*/
function applyBackgroundImage() {
if (!CONFIG.backgroundImage) {
return;
}
document.body.style.backgroundImage = `url("${CONFIG.backgroundImage}")`;
document.body.style.backgroundSize = "cover";
document.body.style.backgroundPosition = "center";
}
/* ============================================================
* DOM elements
* ============================================================
@@ -1436,6 +1454,7 @@ END:VCALENDAR`;
*/
applyTranslations();
applyBackgroundImage();
initialize();
</script>
</body>