From dcb2f2ffd3c4bc0841afdb2d5465f2a01da4b3bd Mon Sep 17 00:00:00 2001 From: Icy <204663820+icyvert@users.noreply.github.com> Date: Wed, 10 Dec 2025 00:52:47 +0530 Subject: [PATCH 01/17] fix auto theme switch (#4422) * fix auto theme switch * removed redundant timeout --- docs/.vitepress/theme/themes/themeHandler.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/theme/themes/themeHandler.ts b/docs/.vitepress/theme/themes/themeHandler.ts index dccb8a569..f55d81c53 100644 --- a/docs/.vitepress/theme/themes/themeHandler.ts +++ b/docs/.vitepress/theme/themes/themeHandler.ts @@ -68,6 +68,9 @@ export class ThemeHandler { if (!localStorage.getItem(STORAGE_KEY_MODE)) { this.state.value.currentMode = e.matches ? 'dark' : 'light' this.applyTheme() + } + else { + this.applyTheme() } }) } @@ -380,7 +383,7 @@ export function useTheme() { onMounted(() => { // Ensure theme is applied on mount - handler.setMode(handler.getMode()) + handler.applyTheme() }) return { From f4f4a843e2b9ee49c5d4d2c59c2d0172889dea57 Mon Sep 17 00:00:00 2001 From: Samidy Date: Tue, 9 Dec 2025 22:22:58 +0300 Subject: [PATCH 02/17] Improve feedback window (#4421) * update background color for buttons to be always normal-dark background color * share feedback button too (this fix is not gonna work ik that for a fact brah) --- docs/.vitepress/theme/components/Feedback.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/.vitepress/theme/components/Feedback.vue b/docs/.vitepress/theme/components/Feedback.vue index 014c757db..391cc111f 100644 --- a/docs/.vitepress/theme/components/Feedback.vue +++ b/docs/.vitepress/theme/components/Feedback.vue @@ -166,7 +166,7 @@ const toggleCard = () => (isCardShown.value = !isCardShown.value)