From dc73a30540d0c1f74dd45b3985b7567ea918fc6c Mon Sep 17 00:00:00 2001 From: Space Time Date: Fri, 13 Dec 2024 21:57:19 +0800 Subject: [PATCH] =?UTF-8?q?1.1.3=20->=201.1.4=20=E7=AC=AC56=E6=AC=A1?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Utils/ForegroundGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utils/ForegroundGenerator.cs b/Utils/ForegroundGenerator.cs index 06c0fc8..4a30f09 100644 --- a/Utils/ForegroundGenerator.cs +++ b/Utils/ForegroundGenerator.cs @@ -17,7 +17,7 @@ internal static class ForegroundGenerator double blueContrast = Math.Min(Math.Abs(hue - 206.57), 360 - Math.Abs(hue - 206.57)); double redContrast = Math.Min(Math.Abs(hue - 4.11), 360 - Math.Abs(hue - 4.11)); - return (blackContrast >= 4 && whiteContrast >= 3 ? null : + return (blackContrast >= 5.5 && whiteContrast >= 2.5 ? null : blackContrast >= whiteContrast ? Colors.Black : Colors.White, (Color)ColorConverter.ConvertFromString(blueContrast >= redContrast ? "#2196f3" : "#f44336")); }