import { Brush } from "@styled-icons/boxicons-solid"; import { observer } from "mobx-react-lite"; import { Link } from "react-router-dom"; // @ts-expect-error shade-blend-color does not have typings. import pSBC from "shade-blend-color"; import { Text } from "preact-i18n"; import { CategoryButton, ObservedInputElement } from "@revoltchat/ui"; import { useApplicationState } from "../../../mobx/State"; import { ThemeBaseSelector } from "./legacy/ThemeBaseSelector"; /** * ! LEGACY * Component providing a way to switch the base theme being used. */ export const ShimThemeBaseSelector = observer(() => { const theme = useApplicationState().settings.theme; return ( { const customVars = { ...theme.getCustomVariables() }; theme.setBase(base); Object.entries(customVars).forEach(([key, value]) => { theme.setVariable(key, value); }); }} /> ); }); export default observer(function ThemeSelection() { const theme = useApplicationState().settings.theme; return ( <> {/** Allow users to change base theme */} {/** Provide a link to the theme shop */} } action="chevron" description={ }>

{ theme.setVariable("accent", colour as string); theme.setVariable("scrollbar-thumb", pSBC(-0.2, colour)); }} /> ); });