From 7f5831ca23908dd20d4ce6eb2e277f8f3a6332a5 Mon Sep 17 00:00:00 2001 From: Louis Knight-Webb Date: Fri, 27 Jun 2025 21:48:05 +0100 Subject: [PATCH] Task attempt 6e204469-447f-4543-a0fd-1cd71cc49ee2 - Final changes --- frontend/src/components/logo.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/logo.tsx b/frontend/src/components/logo.tsx index fb337b52..6aae3af0 100644 --- a/frontend/src/components/logo.tsx +++ b/frontend/src/components/logo.tsx @@ -7,13 +7,14 @@ export function Logo({ className = '' }: { className?: string }) { useEffect(() => { const updateTheme = () => { - if (theme === 'dark') { - setIsDark(true); - } else if (theme === 'light') { + if (theme === 'light') { setIsDark(false); - } else { + } else if (theme === 'system') { // System theme setIsDark(window.matchMedia('(prefers-color-scheme: dark)').matches); + } else { + // All other themes (dark, purple, green, blue, orange, red) have dark backgrounds + setIsDark(true); } };