forked from Archives/Athou_commafeed
separate theme from layout in profile menu
This commit is contained in:
@@ -79,13 +79,18 @@ export function ProfileMenu(props: ProfileMenuProps) {
|
|||||||
<Trans>Settings</Trans>
|
<Trans>Settings</Trans>
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
|
|
||||||
|
<Divider />
|
||||||
|
<Menu.Label>
|
||||||
|
<Trans>Theme</Trans>
|
||||||
|
</Menu.Label>
|
||||||
|
<Menu.Item icon={dark ? <TbSun size={iconSize} /> : <TbMoon size={iconSize} />} onClick={() => toggleColorScheme()}>
|
||||||
|
{dark ? <Trans>Switch to light theme</Trans> : <Trans>Switch to dark theme</Trans>}
|
||||||
|
</Menu.Item>
|
||||||
|
|
||||||
<Divider />
|
<Divider />
|
||||||
<Menu.Label>
|
<Menu.Label>
|
||||||
<Trans>Display</Trans>
|
<Trans>Display</Trans>
|
||||||
</Menu.Label>
|
</Menu.Label>
|
||||||
<Menu.Item icon={dark ? <TbMoon size={iconSize} /> : <TbSun size={iconSize} />} onClick={() => toggleColorScheme()}>
|
|
||||||
<Trans>Theme</Trans>
|
|
||||||
</Menu.Item>
|
|
||||||
<SegmentedControl
|
<SegmentedControl
|
||||||
fullWidth
|
fullWidth
|
||||||
orientation="vertical"
|
orientation="vertical"
|
||||||
|
|||||||
Reference in New Issue
Block a user