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 配色分支
100 lines
1.8 KiB
Vue
100 lines
1.8 KiB
Vue
<template>
|
|
<div class="dos-menu select-none">
|
|
<!-- DOS 风格功能键菜单栏 -->
|
|
<div class="dos-menu-bar">
|
|
<button
|
|
v-for="(t, idx) in themes"
|
|
:key="t.value"
|
|
class="dos-menu-item"
|
|
:class="{ 'is-active': theme === t.value }"
|
|
@click="setTheme(t.value)"
|
|
>
|
|
<span class="dos-fkey">F{{ idx + 1 }}</span>
|
|
<span class="dos-label">{{ t.label }}</span>
|
|
</button>
|
|
</div>
|
|
<!-- 状态提示 -->
|
|
<div class="dos-status">
|
|
Press F1-F3 to switch theme
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
const { theme, setTheme } = useWrappedTheme()
|
|
|
|
const themes = [
|
|
{ value: 'off', label: 'Modern' },
|
|
{ value: 'gameboy', label: 'GameBoy' },
|
|
{ value: 'dos', label: 'DOS' }
|
|
]
|
|
</script>
|
|
|
|
<style scoped>
|
|
.dos-menu {
|
|
font-family: 'Courier New', 'Consolas', monospace;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.dos-menu-bar {
|
|
display: flex;
|
|
background: #000000;
|
|
border: 1px solid #33ff33;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.dos-menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 4px 8px;
|
|
background: #000000;
|
|
color: #33ff33;
|
|
border: none;
|
|
border-right: 1px solid #1a5c1a;
|
|
cursor: pointer;
|
|
text-shadow: 0 0 5px #33ff33;
|
|
transition: all 0.1s;
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
}
|
|
|
|
.dos-menu-item:last-child {
|
|
border-right: none;
|
|
}
|
|
|
|
.dos-menu-item:hover {
|
|
background: #0a1a0a;
|
|
}
|
|
|
|
.dos-menu-item.is-active {
|
|
background: #33ff33;
|
|
color: #000000;
|
|
text-shadow: none;
|
|
}
|
|
|
|
.dos-fkey {
|
|
font-weight: bold;
|
|
padding: 1px 3px;
|
|
background: #1a5c1a;
|
|
color: #33ff33;
|
|
font-size: 9px;
|
|
}
|
|
|
|
.dos-menu-item.is-active .dos-fkey {
|
|
background: #000000;
|
|
color: #33ff33;
|
|
}
|
|
|
|
.dos-label {
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.dos-status {
|
|
margin-top: 4px;
|
|
color: #1a5c1a;
|
|
font-size: 9px;
|
|
text-shadow: 0 0 3px #1a5c1a;
|
|
}
|
|
</style>
|