From 89ec4df6a5a47d1cc9b8777f5c21690a336e1b33 Mon Sep 17 00:00:00 2001 From: rhld16 <24809571+rhld16@users.noreply.github.com> Date: Fri, 19 Dec 2025 23:51:33 +0000 Subject: [PATCH] fix(themeHandler): properly keep track of color theme when using preset (#4459) --- docs/.vitepress/theme/components/ColorPicker.vue | 5 +++-- docs/.vitepress/theme/themes/themeHandler.ts | 5 ----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/docs/.vitepress/theme/components/ColorPicker.vue b/docs/.vitepress/theme/components/ColorPicker.vue index a4102dace..efafa54ba 100644 --- a/docs/.vitepress/theme/components/ColorPicker.vue +++ b/docs/.vitepress/theme/components/ColorPicker.vue @@ -202,6 +202,7 @@ onMounted(async () => { }) watch(selectedColor, async (color) => { + if (!color) return; const theme = generateThemeFromColor(color) themeRegistry[`color-${color}`] = theme // Explicitly set the theme to override any previous selection @@ -225,7 +226,7 @@ const toggleAmoled = () => {