mirror of
https://github.com/LifeArchiveProject/WeChatDataAnalysis.git
synced 2026-02-19 14:20:51 +08:00
improvement(wrapped-ui): 移除 VHS 主题并优化 DOS/CRT 视觉效果
- 主题系统收敛为 Modern/Game Boy/DOS(快捷键改为 F1-F3) - 删除 VHS 切换器与相关样式(卡片/控件/年份选择/图表等) - DOS 主题统一使用像素字体,减弱发光强度并细化扫描线/闪烁参数 - DOS 闪烁光标改由 WrappedCRTOverlay 渲染,避免全局样式副作用 - 移除热力图 vhs 配色分支
This commit is contained in:
@@ -58,15 +58,6 @@ export const themedHeatColor = (value, max, theme) => {
|
||||
const light = 20 + 60 * t
|
||||
return `hsl(120 100% ${light.toFixed(1)}%)`
|
||||
}
|
||||
case 'vhs': {
|
||||
// VHS: from dark blue to pink/magenta
|
||||
if (t === 0) return 'rgba(15, 52, 96, 0.3)'
|
||||
// Interpolate from #0f3460 (dark blue) to #e94560 (pink)
|
||||
const r = Math.round(15 + (233 - 15) * t)
|
||||
const g = Math.round(52 + (69 - 52) * t)
|
||||
const b = Math.round(96 + (96 - 96) * t)
|
||||
return `rgb(${r}, ${g}, ${b})`
|
||||
}
|
||||
default:
|
||||
// Modern (off) - use original heatColor
|
||||
return heatColor(value, max)
|
||||
@@ -79,4 +70,3 @@ export const formatHourRange = (hour) => {
|
||||
const hh = String(h).padStart(2, '0')
|
||||
return `${hh}:00-${hh}:59`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user