mirror of
https://github.com/LifeArchiveProject/WeChatDataAnalysis.git
synced 2026-02-19 06:10:52 +08:00
- 移除 DOS 主题入口、切换器组件与相关样式逻辑,统一主题为 Modern / GameBoy / Win98。 - 新增 WrappedGameboyDither 组件,并在背景与 CRT 叠加层中引入 GameBoy 噪点效果。 - 优化 wrapped 页面视口高度与背景同步逻辑(含 ResizeObserver 与 100dvh 适配),提升桌面容器显示稳定性。 - 调整封面标题与预览位移、回复速度卡片滚动行为等细节,提升主题下视觉与交互一致性。
74 lines
1.4 KiB
Vue
74 lines
1.4 KiB
Vue
<template>
|
|
<div class="win98-switcher select-none">
|
|
<span class="win98-switcher__label">Theme</span>
|
|
|
|
<div class="win98-switcher__group" role="group" aria-label="Theme switcher">
|
|
<button
|
|
v-for="t in themes"
|
|
:key="t.value"
|
|
type="button"
|
|
class="win98-switcher__btn"
|
|
:class="{ 'is-active': theme === t.value }"
|
|
@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: 'win98', label: 'Win98' }
|
|
]
|
|
</script>
|
|
|
|
<style scoped>
|
|
.win98-switcher {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.win98-switcher__label {
|
|
color: rgba(0, 0, 0, 0.75);
|
|
}
|
|
|
|
/* Bevel group container */
|
|
.win98-switcher__group {
|
|
display: inline-flex;
|
|
align-items: stretch;
|
|
padding: 2px;
|
|
background: #c0c0c0;
|
|
border: 1px solid #808080;
|
|
box-shadow:
|
|
inset 1px 1px 0 #ffffff,
|
|
inset -1px -1px 0 #000000;
|
|
}
|
|
|
|
.win98-switcher__btn {
|
|
padding: 4px 10px;
|
|
background: #c0c0c0;
|
|
color: #000000;
|
|
border: 1px solid transparent;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
line-height: 1;
|
|
}
|
|
|
|
.win98-switcher__btn:hover {
|
|
filter: brightness(1.03);
|
|
}
|
|
|
|
.win98-switcher__btn.is-active {
|
|
background: #000080 !important;
|
|
color: #ffffff !important;
|
|
border-color: #000080 !important;
|
|
}
|
|
</style>
|