From dad03e3be5b0a7c1159e0207cce11540ca830359 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Mon, 3 Jan 2022 17:21:18 +0100 Subject: feat(filter): add option to filter by subdirectory (#190) --- components/Tweaks/Visual/ThemeSelect.tsx | 63 ++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 components/Tweaks/Visual/ThemeSelect.tsx (limited to 'components/Tweaks/Visual/ThemeSelect.tsx') diff --git a/components/Tweaks/Visual/ThemeSelect.tsx b/components/Tweaks/Visual/ThemeSelect.tsx new file mode 100644 index 0000000..eed6daf --- /dev/null +++ b/components/Tweaks/Visual/ThemeSelect.tsx @@ -0,0 +1,63 @@ +import React, { useContext } from 'react' +import { + Box, + Button, + Flex, + Menu, + MenuButton, + MenuItem, + MenuList, + Portal, + Text, +} from '@chakra-ui/react' + +import { themes } from '../../themes' +import { ChevronDownIcon } from '@chakra-ui/icons' +import { ThemeContext } from '../../../util/themecontext' + +export const ThemeSelect = () => { + type Theme = { [key: string]: string } + const { emacsTheme, setEmacsTheme, highlightColor } = useContext(ThemeContext) + return ( + + Theme + + } + > + {emacsTheme[0]} + + + ''} + justifyContent="space-between" + alignItems="center" + display="flex" + > + + + {Object.keys(themes).map((theme: string, i: number) => ( + setEmacsTheme([theme, themes[theme]])} + justifyContent="space-between" + alignItems="center" + display="flex" + > + {theme} + + {Object.values(themes[theme as string]).map((color: string) => { + return + })} + + + ))} + + + + ) +} -- cgit v1.2.3