improvement(wrapped-ui): 移除 VHS 主题并优化 DOS/CRT 视觉效果

- 主题系统收敛为 Modern/Game Boy/DOS(快捷键改为 F1-F3)
- 删除 VHS 切换器与相关样式(卡片/控件/年份选择/图表等)
- DOS 主题统一使用像素字体,减弱发光强度并细化扫描线/闪烁参数
- DOS 闪烁光标改由 WrappedCRTOverlay 渲染,避免全局样式副作用
- 移除热力图 vhs 配色分支
This commit is contained in:
2977094657
2026-02-01 19:27:51 +08:00
parent 52ada9da64
commit 7ce6abecca
17 changed files with 81 additions and 942 deletions

View File

@@ -1,10 +1,10 @@
/**
* 年度总结页面主题管理 composable
* 支持种主题modern现代、gameboyGame Boy、dosDOS终端、vhsVHS录像带
* 支持种主题modern现代、gameboyGame Boy、dosDOS终端
*/
const STORAGE_KEY = 'wrapped-theme'
const VALID_THEMES = ['off', 'gameboy', 'dos', 'vhs']
const VALID_THEMES = ['off', 'gameboy', 'dos']
// 全局响应式状态(跨组件共享)
const theme = ref('off')
@@ -62,13 +62,12 @@ export function useWrappedTheme() {
const names = {
off: 'Modern',
gameboy: 'Game Boy',
dos: 'DOS Terminal',
vhs: 'VHS Tape'
dos: 'DOS Terminal'
}
return names[theme.value] || 'Modern'
})
// 全局 F1-F4 快捷键切换主题(仅初始化一次)
// 全局 F1-F3 快捷键切换主题(仅初始化一次)
const initKeyboardShortcuts = () => {
if (keyboardInitialized || !import.meta.client) return
keyboardInitialized = true
@@ -89,9 +88,6 @@ export function useWrappedTheme() {
} else if (e.key === 'F3') {
e.preventDefault()
setTheme('dos')
} else if (e.key === 'F4') {
e.preventDefault()
setTheme('vhs')
}
}