From 0f200680be1e8ace49301e7fec8f6667c87de904 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 10 May 2022 16:30:13 +0100 Subject: [PATCH] Ensure nav background colour is properly updated when changing theme --- .../design/[screenId]/theme/_components/AppThemeSelect.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/theme/_components/AppThemeSelect.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/theme/_components/AppThemeSelect.svelte index 7a003a72a2..66994cd232 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/theme/_components/AppThemeSelect.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/theme/_components/AppThemeSelect.svelte @@ -16,8 +16,8 @@ try { const theme = ThemeOptions[e.detail] ?? ThemeOptions[2] await store.actions.theme.save(theme) - await store.actions.customTheme.save({ - ...get(store).customTheme, + await store.actions.navigation.save({ + ...get(store).navigation, navBackground: theme === "spectrum--light" ? "var(--spectrum-global-color-gray-50)"