mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-13 18:38:11 +02:00
Removed dark text border around light name text, since the background is
already dark enough anyway.
This commit is contained in:
1 parent
80ebe9ae8e
commit
0729d9e402
1 file changed
+16
-7
+16
-7
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user