From 2fd1c3451a44dfa716b036436cf7bd0e29e93165 Mon Sep 17 00:00:00 2001 From: nbats <44333466+nbats@users.noreply.github.com> Date: Thu, 1 Jan 2026 00:22:34 -0800 Subject: [PATCH] Revert "swarm (#4520)" This reverts commit cc9c619396d87a86ad0cba6f2dbaec1414e68e1b. --- docs/.vitepress/theme/themes/configs/index.ts | 4 +++- docs/.vitepress/theme/themes/themeHandler.ts | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/.vitepress/theme/themes/configs/index.ts b/docs/.vitepress/theme/themes/configs/index.ts index b8f90fec3..a6df1af17 100644 --- a/docs/.vitepress/theme/themes/configs/index.ts +++ b/docs/.vitepress/theme/themes/configs/index.ts @@ -13,11 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +import { christmasTheme } from './christmas' import { catppuccinTheme } from './catppuccin' import type { ThemeRegistry } from '../types' export const themeRegistry: ThemeRegistry = { catppuccin: catppuccinTheme, + christmas: christmasTheme, } -export { catppuccinTheme } +export { christmasTheme, catppuccinTheme } diff --git a/docs/.vitepress/theme/themes/themeHandler.ts b/docs/.vitepress/theme/themes/themeHandler.ts index b8a406625..eb8ce5a29 100644 --- a/docs/.vitepress/theme/themes/themeHandler.ts +++ b/docs/.vitepress/theme/themes/themeHandler.ts @@ -25,9 +25,9 @@ const STORAGE_KEY_THEME_DATA = 'vitepress-theme-data' export class ThemeHandler { private state = ref({ - currentTheme: 'swarm', + currentTheme: 'christmas', currentMode: 'light' as DisplayMode, - theme: themeRegistry.swarm + theme: themeRegistry.christmas }) private amoledEnabled = ref(false) @@ -39,7 +39,7 @@ export class ThemeHandler { if (typeof window === 'undefined') return // Load saved preferences - const savedTheme = localStorage.getItem(STORAGE_KEY_THEME) || 'swarm' + const savedTheme = localStorage.getItem(STORAGE_KEY_THEME) || 'christmas' const savedMode = localStorage.getItem(STORAGE_KEY_MODE) as DisplayMode | null const savedAmoled = localStorage.getItem(STORAGE_KEY_AMOLED) === 'true' @@ -263,8 +263,8 @@ export class ThemeHandler { public setTheme(themeName: string) { if (!themeRegistry[themeName]) { - console.warn(`Theme "${themeName}" not found. Using swam theme.`) - themeName = 'swarm' + console.warn(`Theme "${themeName}" not found. Using christmas theme.`) + themeName = 'christmas' } this.state.value.currentTheme = themeName