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
+12 -3
+12 -3
View File
@@ -98,10 +98,16 @@ function GetPlayerColourOutline(
DarkLuminance DarkLuminance
); );
return DarkContrast >=
if (
DarkContrast >=
LightContrast LightContrast
? "var(--Crust)" ) {
: "var(--Text)"; return null;
}
return "var(--Text)";
} }
@@ -156,10 +162,13 @@ function ApplyPlayerColour(
Element.style.color = Element.style.color =
Colour; Colour;
if (Outline !== null) {
Element.style.textShadow = Element.style.textShadow =
GetPlayerColourShadow( GetPlayerColourShadow(
Outline Outline
); );
}
} }