Skip to content

Commit

Permalink
Re-hotfix after incident: temp disable dark mode for conference demo
Browse files Browse the repository at this point in the history
  • Loading branch information
kognise committed Nov 4, 2023
1 parent 7b1d3c9 commit ee1613c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/components/navbar-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ export default function EditorNavbar(props: EditorNavbarProps) {
</a>
</li>

<li>
{/* <li>
<Button onClick={toggleTheme}>
{ isDark.value ? "Light" : "Dark" }
</Button>
</li>
</li> */}

<li>
<Button
Expand Down
9 changes: 5 additions & 4 deletions src/lib/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ export const muted = signal<boolean>(false)
export const errorLog = signal<NormalizedError[]>([])
export const openEditor = signal<OpenEditor | null>(null)
export const bitmaps = signal<[string, string][]>([])
export const isDark = signal<boolean>(localStorage.getItem("isDark") == "true");
// export const isDark = signal<boolean>(localStorage.getItem("isDark") == "true");
export const isDark = signal<boolean>(false)

export const toggleTheme = () => {
isDark.value = !isDark.value;
console.log(isDark.value);
localStorage.setItem("isDark", isDark.value.toString());
// isDark.value = !isDark.value;
// console.log(isDark.value);
// localStorage.setItem("isDark", isDark.value.toString());
}
5 changes: 0 additions & 5 deletions src/pages/~/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ if (games.length === 0 && unnamedGames.length > 0) {
flex-direction: column;
overflow: hidden;
}
@media (prefers-color-scheme: dark) {
body {
color: white;
}
}

.columns {
flex: 1;
Expand Down

0 comments on commit ee1613c

Please sign in to comment.