From c3055c2c7912c6642d69b623b6302fa7ee761cc9 Mon Sep 17 00:00:00 2001 From: rhld16 Date: Fri, 19 Dec 2025 23:46:36 +0000 Subject: [PATCH] fix(themeHandler): properly keep track of color theme when using preset --- 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 = () => {