mirror of
https://github.com/LifeArchiveProject/WeChatDataAnalysis.git
synced 2026-02-20 06:40:49 +08:00
- 主题系统新增 win98(显示名 Windows 98,快捷键扩展到 F1-F4),并区分 retro(pixel/CRT) 与桌面 GUI 主题 - 年度总结页新增 Win98 桌面背景与底部任务栏(背景色/视口高度适配) - 封面与卡片 slide 形态支持 Win98 窗口外观(title bar/icon/controls) - 主题切换器补充 Win98 选项并新增 Win98 专属切换器 - 新增 Win98 图标资源(Start + 桌面图标)
101 lines
1.8 KiB
Vue
101 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-F4 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' },
|
|
{ value: 'win98', label: 'Win98' }
|
|
]
|
|
</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>
|