This commit is contained in:
nuttylmao
2025-03-27 02:09:55 +11:00
parent 6c53d973f7
commit d3726c5dda
3 changed files with 16 additions and 1 deletions
+4
View File
@@ -22,6 +22,7 @@ const showUsername = GetBooleanParam("showUsername", true);
const showMessage = GetBooleanParam("showMessage", true);
const font = urlParams.get("font") || "";
const fontSize = urlParams.get("fontSize") || "30";
const lineSpacing = urlParams.get("lineSpacing") || "1.7";
const background = urlParams.get("background") || "#000000";
const opacity = urlParams.get("opacity") || "0.85";
@@ -48,6 +49,9 @@ const showStreamElementsTips = GetBooleanParam("showStreamElementsTips", true);
document.body.style.fontFamily = font;
document.body.style.fontSize = `${fontSize}px`;
// Set line spacing
document.documentElement.style.setProperty('--line-spacing', `${lineSpacing}em`);
// Set the background color
const opacity255 = Math.round(parseFloat(opacity) * 255);
let hexOpacity = opacity255.toString(16);