Skip to content

Commit

Permalink
Merge pull request #181 from steve1316/fix-dark-mode
Browse files Browse the repository at this point in the history
Fix dark mode not being on by default
  • Loading branch information
steve1316 authored Apr 13, 2023
2 parents 245c1de + 5538042 commit b73ae63
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ import StartHelper from "./helpers/StartHelper"
import { Icon } from "@iconify/react"

const App = () => {
const [colorScheme, setColorScheme] = useLocalStorage<ColorScheme>({
key: "mantine-color-scheme",
defaultValue: "light",
getInitialValueInEffect: true,
})
const toggleColorScheme = (value?: ColorScheme) => setColorScheme(value || (colorScheme === "dark" ? "light" : "dark"))

// Check if an application update is available on GitHub.
useEffect(() => {
// Warn that the application's env is still set to development.
Expand Down Expand Up @@ -105,8 +98,8 @@ const App = () => {
}

return (
<ColorSchemeProvider colorScheme={colorScheme} toggleColorScheme={toggleColorScheme}>
<MantineProvider theme={{ colorScheme }} withGlobalStyles withNormalizeCSS>
<ColorSchemeProvider colorScheme={"dark"} toggleColorScheme={() => "dark"}>
<MantineProvider theme={{ colorScheme: "dark" }} withGlobalStyles withNormalizeCSS>
<BotStateProvider>
<MessageLogProvider>
<StartHelper />
Expand Down

0 comments on commit b73ae63

Please sign in to comment.