mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-12 00:15:48 +01:00
📄 Documenting keybinds for theme switch
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { createStyles, Switch, Group, useMantineColorScheme } from '@mantine/core';
|
import { createStyles, Switch, Group, useMantineColorScheme, Kbd } from '@mantine/core';
|
||||||
import { Sun, MoonStars } from 'tabler-icons-react';
|
import { Sun, MoonStars } from 'tabler-icons-react';
|
||||||
|
|
||||||
const useStyles = createStyles((theme) => ({
|
const useStyles = createStyles((theme) => ({
|
||||||
@@ -40,6 +40,9 @@ export function ColorSchemeSwitch() {
|
|||||||
<Switch checked={colorScheme === 'dark'} onChange={() => toggleColorScheme()} size="md" />
|
<Switch checked={colorScheme === 'dark'} onChange={() => toggleColorScheme()} size="md" />
|
||||||
</div>
|
</div>
|
||||||
Switch to {colorScheme === 'dark' ? 'light' : 'dark'} mode
|
Switch to {colorScheme === 'dark' ? 'light' : 'dark'} mode
|
||||||
|
<Group spacing={2}>
|
||||||
|
<Kbd>Ctrl</Kbd>+<Kbd>J</Kbd>
|
||||||
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user