Repository navigation
DormCast 0.6.1 · 网页端主题色跟随音乐封面主色
·
0 commits
to 741380516b9c8dc3bdfe946529c15a2c314065a8
since this release
新增功能 · What's New
- 网页端主题色跟随音乐封面主色:
- 浏览器端在加载同源封面
blob:图片后,通过离屏 Canvas 进行中心加权与 36 色相桶聚类提取封面主色,自动生成整套暗色页面主题(背景、卡片、描边、主色按钮、悬停/按下态、滑块、顶部氛围光晕与封面光晕)。 - 对派生主色执行 WCAG 相对亮度校准,保证全色相下文字与按钮的高可读对比度,并同步更新移动端浏览器
<meta name="theme-color">。 - 纯黑白/灰度封面自动切换为中性银灰暗色主题;无封面、封面加载失败或断开连接时自动回退到默认绿色(
#101612/#c9f37f)。 - 有封面歌曲之间切换直接平滑过渡,避免中途闪回默认绿色,并遵循系统
prefers-reduced-motion设置。
- 浏览器端在加载同源封面
- 启动时后台静默检查更新:
- 每次启动桌面端后在后台静默检查一次 GitHub 最新正式 Release(不阻塞界面、不改动按钮与状态文字)。
- 检测到新版本时弹出 Windows 系统托盘通知(以及主窗口内更新确认对话框,点击通知可直接打开并下载校验安装);若已是最新版本、无网络或请求失败则完全静默不做任何反应。
- 修复运行时版本号读取逻辑,改为直接从程序集读取标准化 3 段版本号,避免升级后仍误报旧版本。
English Summary
- Added dynamic cover-driven theming to the browser receiver UI (
theme.js), extracting the dominant color from loaded same-origin cover artwork with center weighting and 36-bin hue clustering, deriving a WCAG-calibrated dark palette and<meta name="theme-color">(neutral silver for monochrome covers, default green when no cover is available). - Added a silent background update check on startup: notifies via Windows tray notification (and update prompt when the window is visible and idle) only when a newer stable Release is available, and stays completely silent with no UI reaction when already up to date or offline.
- Replaced hardcoded version literals with the normalized 3-part assembly version for update checks and diagnostics.
安装与校验 · Install & Verification
- Windows 安装包:
DormCast-0.6.1-Setup-x64.exe(已内置 .NET / WinUI 运行时与原版 VB-CABLE 驱动压缩包) - 便携版:
DormCast-0.6.1-win-x64.zip - 源码包:
DormCast-0.6.1-source.zip - 校验文件:
SHA256SUMS.txt、update.json