Task attempt 6e204469-447f-4543-a0fd-1cd71cc49ee2 - Final changes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user