From 3db63143e98ecdf4660cbd1a46ad4cc603f82846 Mon Sep 17 00:00:00 2001 From: Asraye Date: Mon, 15 Sep 2025 03:29:07 +1000 Subject: [PATCH] fix: make colour picker reactive --- .../settings/appearance/ThemeSelection.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 */} +

+ ); -} +});