From d3726c5dda8774b8a9be0180332474d5c2bf9722 Mon Sep 17 00:00:00 2001 From: nuttylmao Date: Thu, 27 Mar 2025 02:09:55 +1100 Subject: [PATCH] Penis --- multichat-overlay/script.js | 4 ++++ multichat-overlay/settings/settings.json | 10 ++++++++++ multichat-overlay/style.css | 3 ++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/multichat-overlay/script.js b/multichat-overlay/script.js index 76199e3..1f64c69 100644 --- a/multichat-overlay/script.js +++ b/multichat-overlay/script.js @@ -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); diff --git a/multichat-overlay/settings/settings.json b/multichat-overlay/settings/settings.json index 86ec891..4284532 100644 --- a/multichat-overlay/settings/settings.json +++ b/multichat-overlay/settings/settings.json @@ -74,6 +74,16 @@ "defaultValue": 30, "group": "Appearance" }, + { + "id": "lineSpacing", + "label": "Line Spacing", + "description": "", + "type": "number", + "min": 0, + "defaultValue": 1.7, + "step": ".1", + "group": "Appearance" + }, { "id": "background", "label": "Background", diff --git a/multichat-overlay/style.css b/multichat-overlay/style.css index 6b3f2f2..b0eb3f1 100644 --- a/multichat-overlay/style.css +++ b/multichat-overlay/style.css @@ -3,6 +3,7 @@ padding: 0; --margin: 40px; --border-radius: 20px; + /* --line-spacing: 1.7em; */ } html { @@ -148,7 +149,7 @@ li { #message { font-weight: 400; - line-height: 1.7em; + line-height: var(--line-spacing); } #card {