mirror of
https://github.com/emuplace/sudachi.emuplace.app.git
synced 2024-11-27 20:34:31 +01:00
Added automatic light and dark mode
This commit is contained in:
parent
984cab7a7b
commit
5cecf7a74b
@ -62,8 +62,10 @@ export default function App() {
|
||||
|
||||
const [opened, setOpened] = useState(false);
|
||||
|
||||
const date = new Date();
|
||||
|
||||
return (
|
||||
<MantineProvider theme={theme}>
|
||||
<MantineProvider theme={theme} forceColorScheme={date.getHours() >= 7 && date.getHours() <= 19 ? "light" : "dark"}>
|
||||
<Container>
|
||||
<Flex align={'center'} justify={'center'} h={'100vh'}>
|
||||
<Stack>
|
||||
|
Loading…
Reference in New Issue
Block a user