From 098a91f2acd162e34a7a325c8997478a9f5757a9 Mon Sep 17 00:00:00 2001 From: xufuhan Date: Mon, 26 Jan 2026 17:55:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=99=E4=B8=AA=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/PerformanceAnalysis.tsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/components/PerformanceAnalysis.tsx b/components/PerformanceAnalysis.tsx index 00393ef..a850245 100644 --- a/components/PerformanceAnalysis.tsx +++ b/components/PerformanceAnalysis.tsx @@ -27,9 +27,18 @@ function CalendarDay({ day, value, type }: CalendarDayProps) { const dayTextStyle = isCurrent ? "text-[#fcfcfd]" : "text-[#9ca1af] dark:text-gray-400"; - const valueTextStyle = isCurrent - ? "text-[#fcfcfd]" - : "text-[#111827] dark:text-white"; + + // Value text color should match the type + let valueTextStyle = ""; + if (isCurrent) { + valueTextStyle = "text-[#fcfcfd]"; + } else if (type === "positive") { + valueTextStyle = "text-[#10b981] dark:text-green-400"; + } else if (type === "negative") { + valueTextStyle = "text-[#dc2626] dark:text-red-400"; + } else { + valueTextStyle = "text-[#9ca1af] dark:text-gray-400"; + } return (