diff --git a/src/components/settings/appearance/ThemeSelection.tsx b/src/components/settings/appearance/ThemeSelection.tsx index a47b4e16..98652e05 100644 --- a/src/components/settings/appearance/ThemeSelection.tsx +++ b/src/components/settings/appearance/ThemeSelection.tsx @@ -22,20 +22,24 @@ export const ShimThemeBaseSelector = observer(() => { { + const customVars = { ...theme.getCustomVariables() }; theme.setBase(base); - theme.reset(); + Object.entries(customVars).forEach(([key, value]) => { + theme.setVariable(key, value); + }); }} /> ); }); -export default function ThemeSelection() { +export default observer(function ThemeSelection() { const theme = useApplicationState().settings.theme; return ( <> {/** Allow users to change base theme */} + {/** Provide a link to the theme shop */} +

+ ); -} +});