mirror of
https://github.com/LifeArchiveProject/WeChatDataAnalysis.git
synced 2026-02-19 22:30:49 +08:00
- 主题系统收敛为 Modern/Game Boy/DOS(快捷键改为 F1-F3) - 删除 VHS 切换器与相关样式(卡片/控件/年份选择/图表等) - DOS 主题统一使用像素字体,减弱发光强度并细化扫描线/闪烁参数 - DOS 闪烁光标改由 WrappedCRTOverlay 渲染,避免全局样式副作用 - 移除热力图 vhs 配色分支
31 lines
792 B
Vue
31 lines
792 B
Vue
<template>
|
|
<div class="flex items-center gap-2">
|
|
<span class="text-xs text-[#00000099]">Theme</span>
|
|
<div class="inline-flex rounded-lg border border-[#EDEDED] overflow-hidden">
|
|
<button
|
|
v-for="t in themes"
|
|
:key="t.value"
|
|
class="px-3 py-1.5 text-xs wrapped-label transition-colors"
|
|
:class="[
|
|
theme === t.value
|
|
? 'bg-[#07C160] text-white'
|
|
: 'bg-white text-[#333] hover:bg-[#F5F5F5]'
|
|
]"
|
|
@click="setTheme(t.value)"
|
|
>
|
|
{{ t.label }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
const { theme, setTheme } = useWrappedTheme()
|
|
|
|
const themes = [
|
|
{ value: 'off', label: 'Modern' },
|
|
{ value: 'gameboy', label: 'Game Boy' },
|
|
{ value: 'dos', label: 'DOS' }
|
|
]
|
|
</script>
|