Removed dark text border around light name text, since the background is

already dark enough anyway.
This commit is contained in:
sarah committed 2026-08-31 17:16:30 +02:00
1 parent 80ebe9ae8e
commit 0729d9e402
1 file changed
+16 -7
+16 -7
View File
@@ -98,10 +98,16 @@ function GetPlayerColourOutline(
DarkLuminance
);
return DarkContrast >=
if (
DarkContrast >=
LightContrast
? "var(--Crust)"
: "var(--Text)";
) {
return null;
}
return "var(--Text)";
}
@@ -156,10 +162,13 @@ function ApplyPlayerColour(
Element.style.color =
Colour;
Element.style.textShadow =
GetPlayerColourShadow(
Outline
);
if (Outline !== null) {
Element.style.textShadow =
GetPlayerColourShadow(
Outline
);
}
}