Skip to content

Commit 23425d3

Browse files
authored
fix: invert the favicon on dark mode (#10097)
1 parent 983e8c3 commit 23425d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/src/pages/WorkspacePage/WorkspaceReadyPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ export const WorkspaceReadyPage = ({
104104
return;
105105
}
106106
const isDark = window.matchMedia("(prefers-color-scheme: dark)");
107-
setFaviconTheme(isDark ? "dark" : "light");
107+
// We want the favicon the opposite of the theme.
108+
setFaviconTheme(isDark ? "light" : "dark");
108109
}, []);
109110
const buildLogs = useWorkspaceBuildLogs(workspace.latest_build.id);
110111
const shouldDisplayBuildLogs =

0 commit comments

Comments
 (0)