Files
WeChatDataAnalysis/frontend/components/wrapped/shared/WrappedThemeSwitcher.vue
2977094657 e9c81caa12 improvement(wrapped-ui): 下线 DOS 主题并优化 Wrapped 多主题体验
- 移除 DOS 主题入口、切换器组件与相关样式逻辑,统一主题为 Modern / GameBoy / Win98。

- 新增 WrappedGameboyDither 组件,并在背景与 CRT 叠加层中引入 GameBoy 噪点效果。

- 优化 wrapped 页面视口高度与背景同步逻辑(含 ResizeObserver 与 100dvh 适配),提升桌面容器显示稳定性。

- 调整封面标题与预览位移、回复速度卡片滚动行为等细节,提升主题下视觉与交互一致性。
2026-02-07 20:59:03 +08:00

18 lines
473 B
Vue

<template>
<component :is="themeSwitcherComponent" />
</template>
<script setup>
const { theme } = useWrappedTheme()
// 根据当前主题动态选择对应的切换器组件
const themeSwitcherComponent = computed(() => {
const map = {
off: resolveComponent('WrappedThemeSwitcherModern'),
gameboy: resolveComponent('WrappedThemeSwitcherGameboy'),
win98: resolveComponent('WrappedThemeSwitcherWin98')
}
return map[theme.value] || map.off
})
</script>