From 0729d9e4022e39bdbfe00ed18b3233eed7ed5738 Mon Sep 17 00:00:00 2001 From: Sarahtonin Date: Mon, 31 Aug 2026 17:16:30 +0200 Subject: [PATCH] Removed dark text border around light name text, since the background is already dark enough anyway. --- Scripts/Garden/Users.js | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/Scripts/Garden/Users.js b/Scripts/Garden/Users.js index 3bf49c3..8049b5e 100644 --- a/Scripts/Garden/Users.js +++ b/Scripts/Garden/Users.js @@ -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 + ); + } }