mirror of
https://github.com/LifeArchiveProject/WeChatDataAnalysis.git
synced 2026-02-19 14:20:51 +08:00
- 移除复古主题切换入口(控制面板/左上角按钮)与 Win98/CRT 相关 UI - 简化 useWrappedTheme:仅保留 off(Modern),历史主题值自动回退 - Modern 下也展示 LuckyBlock 占位图,并同步更新 README 说明
32 lines
763 B
JavaScript
32 lines
763 B
JavaScript
/**
|
||
* 年度总结页面主题管理 composable
|
||
* 仅保留 modern(现代)主题
|
||
*/
|
||
|
||
// 全局响应式状态(跨组件共享)
|
||
// Note: 历史上曾尝试过 gameboy / win98 等主题,但目前已移除,仅保留 Modern。
|
||
const theme = ref('off') // off === Modern
|
||
|
||
export function useWrappedTheme() {
|
||
const setTheme = (newTheme) => {
|
||
// Only keep Modern.
|
||
if (newTheme !== 'off') {
|
||
console.warn(`Wrapped theme '${newTheme}' has been removed; falling back to Modern.`)
|
||
}
|
||
theme.value = 'off'
|
||
}
|
||
|
||
const cycleTheme = () => setTheme('off')
|
||
|
||
const isRetro = computed(() => false)
|
||
const themeClass = computed(() => '')
|
||
|
||
return {
|
||
theme: readonly(theme),
|
||
setTheme,
|
||
cycleTheme,
|
||
isRetro,
|
||
themeClass
|
||
}
|
||
}
|