mirror of
https://github.com/emuplace/sudachi.emuplace.app.git
synced 2025-05-10 18:56:26 +02:00
Added automatic light and dark mode
This commit is contained in:
parent
984cab7a7b
commit
5cecf7a74b
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue