Repository navigation
行情条位置边界管理(三端工作区钳制)与 MSIX 任务栏图标修复 - #43
Merged
Merged
Conversation
商店版有包身份,任务栏图标取自 AppxManifest 的 Square44x44Logo 资源 而不是 exe 内嵌图标。包里原先只有一张无变体的 PNG,Windows 按 plated 语义给它画底板,颜色取 BackgroundColor(transparent 解析成系统强调色), 于是任务栏上多出一圈蓝底;exe/msi 版没有包身份,所以正常。 - 新增 targetsize-N × altform-unplated/lightunplated 变体,由 scripts/msix-icons.mjs 用 Chrome headless 生成、产物提交,CI 不需要 图片库(与 website 图片管线同一约定) - 打包时用 makepri 生成 resources.pri,文件名里的限定符才会被 MRT 解析 - Validate 步骤校验变体齐全;生成后回读 dump 确认两个 AlternateForm 都在(makepri 对空索引同样返回 0)
Read-Utf8 无条件把参数 Join-Path 到当前目录,传绝对路径时拼成 "$PWD/C:\Users\...",GetFullPath 以「路径格式不正确」失败。校验 resources.pri 的那次回读用的正是 %TEMP% 下的绝对路径,于是图标校验 通过之后、makeappx 之前必挂。 - Read-Utf8(两个步骤)按 IsPathRooted 区分绝对/相对路径 - Validate 步骤的错误串去掉非 ASCII 的破折号,遵循本文件「字面量只用 ASCII」的约定 - priconfig 去掉 createconfig 默认写的 <packaging>:命中 Scale 等限定符 的资源会被拆进独立资源包,平铺 MSIX 只带一个 PRI,将来补 scale 资产 就会取不到 - msix-icons.mjs 渲染成功后才清空产物目录,并显式报出缺失的尺寸
工作区并集覆盖作为三端统一边界,Windows 在 WM_MOVING 实时钳制, 其余平台去抖后钳制;恢复路径合并为单点,修复扩展屏位置无法记忆的问题。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
本分支包含两组改动:
行情条位置边界
Monitor::work_area(),已扣除 Windows 任务栏 / macOS 菜单栏与 Dock / Linux 面板),不再按显示器矩形或primary_monitor()的尺寸假设WM_MOVING中实时修正候选RECT,拖拽时贴边、不会先钻到任务栏后面;macOS/Linux 在停止移动 200ms 后钳制,Resized走同一套兜底(高度增长不会进入任务栏)restore_ticker_position;修复既有缺陷:负坐标(左侧/上方)扩展屏与右侧扩展屏的位置此前无法保存/恢复设计:docs/superpowers/specs/2026-11-24-ticker-position-bounds-design.md
计划:docs/superpowers/plans/2026-11-24-ticker-position-bounds.md
MSIX 任务栏图标修复
Square44x44Logo的 unplated/lightunplated 变体 +makepri)验证
cargo test --manifest-path src-tauri/Cargo.toml:139 passed / 0 failedcargo check:无警告;npx vue-tsc --noEmit:通过WM_MOVING:本机真实模态拖拽验证修正后的RECT生效npm test在 Node 20.19.4 + vitest 4.1.12 下于收集阶段失败(改动前即存在,本 PR 未改前端行为);CI(Node 22)覆盖已知限制
Resized可能把(0,0)写回位置存档(仅影响QUANT_BACKEND=wayland或无 XWayland)手动验收清单