mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
Penis
This commit is contained in:
@@ -22,6 +22,7 @@ const showUsername = GetBooleanParam("showUsername", true);
|
|||||||
const showMessage = GetBooleanParam("showMessage", true);
|
const showMessage = GetBooleanParam("showMessage", true);
|
||||||
const font = urlParams.get("font") || "";
|
const font = urlParams.get("font") || "";
|
||||||
const fontSize = urlParams.get("fontSize") || "30";
|
const fontSize = urlParams.get("fontSize") || "30";
|
||||||
|
const lineSpacing = urlParams.get("lineSpacing") || "1.7";
|
||||||
const background = urlParams.get("background") || "#000000";
|
const background = urlParams.get("background") || "#000000";
|
||||||
const opacity = urlParams.get("opacity") || "0.85";
|
const opacity = urlParams.get("opacity") || "0.85";
|
||||||
|
|
||||||
@@ -48,6 +49,9 @@ const showStreamElementsTips = GetBooleanParam("showStreamElementsTips", true);
|
|||||||
document.body.style.fontFamily = font;
|
document.body.style.fontFamily = font;
|
||||||
document.body.style.fontSize = `${fontSize}px`;
|
document.body.style.fontSize = `${fontSize}px`;
|
||||||
|
|
||||||
|
// Set line spacing
|
||||||
|
document.documentElement.style.setProperty('--line-spacing', `${lineSpacing}em`);
|
||||||
|
|
||||||
// Set the background color
|
// Set the background color
|
||||||
const opacity255 = Math.round(parseFloat(opacity) * 255);
|
const opacity255 = Math.round(parseFloat(opacity) * 255);
|
||||||
let hexOpacity = opacity255.toString(16);
|
let hexOpacity = opacity255.toString(16);
|
||||||
|
|||||||
@@ -74,6 +74,16 @@
|
|||||||
"defaultValue": 30,
|
"defaultValue": 30,
|
||||||
"group": "Appearance"
|
"group": "Appearance"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "lineSpacing",
|
||||||
|
"label": "Line Spacing",
|
||||||
|
"description": "",
|
||||||
|
"type": "number",
|
||||||
|
"min": 0,
|
||||||
|
"defaultValue": 1.7,
|
||||||
|
"step": ".1",
|
||||||
|
"group": "Appearance"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "background",
|
"id": "background",
|
||||||
"label": "Background",
|
"label": "Background",
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
--margin: 40px;
|
--margin: 40px;
|
||||||
--border-radius: 20px;
|
--border-radius: 20px;
|
||||||
|
/* --line-spacing: 1.7em; */
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
@@ -148,7 +149,7 @@ li {
|
|||||||
|
|
||||||
#message {
|
#message {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 1.7em;
|
line-height: var(--line-spacing);
|
||||||
}
|
}
|
||||||
|
|
||||||
#card {
|
#card {
|
||||||
|
|||||||
Reference in New Issue
Block a user