docs: document the release banner and the shared icon geometry
Two ledger sections, the README paragraphs for the banner, and the 0.1.13 version row. 「升级提示跨启动存活」records the constraint that is invisible in the code: the probe is throttled to one a day, so a notice held only in memory is visible on the morning a release is found and invisible on every launch after — including the launch right after an update installs. It also records why a restored notice is re-judged rather than trusted, since remembering a claim is how you end up advertising the version the user is already running. 「所有图标共用一份几何」records that the consistency the request asked for is geometric, not chromatic: the tray mark must be flat and alpha-only because the shell tints it, and the app mark must be coloured because nothing tints a dock tile. What made the old icon read as another product was the gradient, the shine, the shadow and six pastel wedge tints — not the presence of colour. Co-Authored-By: Codex <noreply@openai.com>main
parent
8a4c9d2b0d
commit
c8a5d41eca
|
|
@ -294,11 +294,11 @@ Each is overridable in Settings. File actions offer a *collect everything in one
|
|||
|
||||
## Updates
|
||||
|
||||
A new macOS machine installs **`Shift-0.1.12-macOS-universal.dmg`**: builds are ad-hoc signed and not notarized, so Gatekeeper calls Shift an unidentified developer. Double-click the image, drag `Shift.app` to /Applications, then allow the first launch once (right-click → Open, or 允许 in System Settings → Privacy & Security). In-app updates download the same image without a browser, so they never prompt. Details in `docs/RELEASE.md`.
|
||||
A new macOS machine installs **`Shift-0.1.13-macOS-universal.dmg`**: builds are ad-hoc signed and not notarized, so Gatekeeper calls Shift an unidentified developer. Double-click the image, drag `Shift.app` to /Applications, then allow the first launch once (right-click → Open, or 允许 in System Settings → Privacy & Security). In-app updates download the same image without a browser, so they never prompt. Details in `docs/RELEASE.md`.
|
||||
|
||||
The update channel is this repository: a `releases` branch holding the installers plus `shift-update.json`, which names each artifact, its size and its SHA256. The feed URL is derived from the git remote at build time - Gitea, GitHub and GitLab forms are known, and `SHIFT_UPDATE_URL` overrides it - so no update service has to be deployed anywhere.
|
||||
|
||||
Once a day at startup, and on demand from Settings -> **Updates**, Shift reads the manifest, compares versions with semver rules including prereleases, and offers a download. A downloaded installer must match the manifest's exact byte length and recomputed SHA256, and both checks run again immediately before the handoff that installs it. A mismatch deletes the file and reports the error, so a truncated or replaced installer never launches. **Discard** removes the downloaded installer as well as the status. Publishing is one command, `scripts/publish-release.sh`, and `docs/RELEASE.md` covers the manifest format, the flags, and the difference between the integrity the hash proves and the authenticity a signed manifest adds (`--key` plus a key baked in with `SHIFT_UPDATE_PUBKEY`).
|
||||
Once a day at startup, and on demand from Settings -> **Updates**, Shift reads the manifest, compares versions with semver rules including prereleases, and offers a download. A release that has been found is announced at the top of the main window - **Shift x.y.z is available**, with one button that opens Settings -> Updates - and it stays announced across restarts, including the restart that follows an update, because the notice is remembered on disk rather than held in memory. Since the probe itself runs at most once a day, a notice that only lived in RAM would be visible on the morning it was discovered and invisible every launch after. A downloaded installer must match the manifest's exact byte length and recomputed SHA256, and both checks run again immediately before the handoff that installs it. A mismatch deletes the file and reports the error, so a truncated or replaced installer never launches. **Discard** removes the downloaded installer as well as the status. Publishing is one command, `scripts/publish-release.sh`, and `docs/RELEASE.md` covers the manifest format, the flags, and the difference between the integrity the hash proves and the authenticity a signed manifest adds (`--key` plus a key baked in with `SHIFT_UPDATE_PUBKEY`).
|
||||
|
||||
**Install & relaunch** finishes the update without leaving the app. macOS replaces its own `.app` bundle from the downloaded disk image and Windows runs the same installer silently, both from a helper script that starts once Shift has quit and then opens the new copy - so a conversion is interrupted, but nothing is left half-installed and a failed swap reopens the copy you had. The helper receives its paths as process arguments; they are never interpolated into the shell or batch script. The tab states your operating system, architecture, running version and the feed it reads above everything else, so one screenshot explains any report about an update.
|
||||
|
||||
|
|
@ -379,7 +379,7 @@ pnpm mac:release
|
|||
scripts/build-windows-release.sh
|
||||
```
|
||||
|
||||
The release pipeline deliberately emits exactly two installers: `Shift-0.1.12-macOS-universal.dmg` and `Shift-Setup-0.1.12-win-x64.exe`. The macOS app is one universal Mach-O including universal drag, PDF-render and doc-render sidecars. Windows ARM64 uses the x64 installer through the update manifest's compatibility fallback. Full details are in `docs/BUILD_WINDOWS.md` and `docs/RELEASE.md`.
|
||||
The release pipeline deliberately emits exactly two installers: `Shift-0.1.13-macOS-universal.dmg` and `Shift-Setup-0.1.13-win-x64.exe`. The macOS app is one universal Mach-O including universal drag, PDF-render and doc-render sidecars. Windows ARM64 uses the x64 installer through the update manifest's compatibility fallback. Full details are in `docs/BUILD_WINDOWS.md` and `docs/RELEASE.md`.
|
||||
|
||||
**Permissions (macOS).** Screen Recording for capture, Files & Folders for the output folders you choose, Microphone when recording with audio, and Local Network for **Send to a device**. Shift checks Screen Recording before opening the overlay, so a denial surfaces an actionable error rather than a black screenshot. A denied Local Network grant is quieter: Shift still sends its beacons and still answers anyone who addresses it directly, but it receives no group traffic, so the device list simply stays empty. Ad-hoc signed builds get a new code identity on every rebuild and macOS keys these grants to that identity, so an upgrade can ask again; distribution with Developer ID keeps them stable.
|
||||
|
||||
|
|
|
|||
|
|
@ -296,11 +296,11 @@ Shift 会持续维护局域网内其他 Shift 实例的列表,并据此提供
|
|||
|
||||
## 软件更新
|
||||
|
||||
新的 macOS 机器请安装 **`Shift-0.1.12-macOS-universal.dmg`**:本项目的构建采用 ad-hoc 签名且未做公证,Gatekeeper 会把 Shift 判为身份不明的开发者。双击挂载镜像,把 `Shift.app` 拖进「应用程序」,然后允许首次启动一次(右键 → 打开,或在「系统设置 → 隐私与安全性」中点「允许」)。软件内升级自己下载的是同一个镜像、不经浏览器,因此不会弹窗。详见 `docs/RELEASE.md`。
|
||||
新的 macOS 机器请安装 **`Shift-0.1.13-macOS-universal.dmg`**:本项目的构建采用 ad-hoc 签名且未做公证,Gatekeeper 会把 Shift 判为身份不明的开发者。双击挂载镜像,把 `Shift.app` 拖进「应用程序」,然后允许首次启动一次(右键 → 打开,或在「系统设置 → 隐私与安全性」中点「允许」)。软件内升级自己下载的是同一个镜像、不经浏览器,因此不会弹窗。详见 `docs/RELEASE.md`。
|
||||
|
||||
更新通道就是这个仓库:一条 `releases` 分支保存安装包以及 `shift-update.json` 清单,清单写明每个安装包的名称、体积与 SHA256。更新源地址在构建时由 git 远端推导——已适配 Gitea、GitHub、GitLab 三种形式,也可用 `SHIFT_UPDATE_URL` 覆盖——因此无需额外部署任何更新服务。
|
||||
|
||||
Shift 每天启动时检查一次(也可在设置 → **软件更新** 中手动检查),读取清单、按含预发布规则的 semver 比较版本,然后提供下载。下载完成的安装包必须与清单的体积和重新计算的 SHA256 一致,而且这两项会在交接给安装脚本前**再次校验**。任一不符即删除文件并明确报错,因此半成品或被替换的安装包永远不会启动。点击「丢弃」会同时删除已下载的安装包和状态。发布只需一条命令 `scripts/publish-release.sh`;`docs/RELEASE.md` 说明清单格式、参数,以及可选的 ed25519 清单签名——签名用来证明清单的来源,而不只是下载内容与清单一致。
|
||||
Shift 每天启动时检查一次(也可在设置 → **软件更新** 中手动检查),读取清单、按含预发布规则的 semver 比较版本,然后提供下载。发现的版本会显示在主窗口顶部——「Shift x.y.z 可以升级了」,旁边一个按钮直接跳到设置 → 软件更新——并且**跨启动保留**,包括升级装完之后的那一次启动:提示是记在磁盘上的,不是只存在内存里。探测本身一天最多跑一次,所以只活在内存里的话,新版本只在被发现的问题当天出现,之后每次启动都再也看不到。下载完成的安装包必须与清单的体积和重新计算的 SHA256 一致,而且这两项会在交接给安装脚本前**再次校验**。任一不符即删除文件并明确报错,因此半成品或被替换的安装包永远不会启动。点击「丢弃」会同时删除已下载的安装包和状态。发布只需一条命令 `scripts/publish-release.sh`;`docs/RELEASE.md` 说明清单格式、参数,以及可选的 ed25519 清单签名——签名用来证明清单的来源,而不只是下载内容与清单一致。
|
||||
|
||||
**「安装并重启」让你在应用内完成升级**:macOS 会用下载好的磁盘镜像替换自己的 `.app`,Windows 会静默运行同一个安装程序,两者都由一个在 Shift 退出后才启动的辅助脚本执行,完成后自动打开新版本——正在进行的转换会被中断,但不会装到一半卡住,替换失败也会重新打开原来的版本。辅助脚本通过进程参数接收路径,路径不会被拼接进 shell 或批处理脚本文本。该标签页最上方依次显示本机系统、架构、当前版本与更新源,截一张图就能说明升级问题出在哪里。
|
||||
|
||||
|
|
@ -370,7 +370,7 @@ pnpm mac:release
|
|||
scripts/build-windows-release.sh
|
||||
```
|
||||
|
||||
发布链只产出两个安装包:`Shift-0.1.12-macOS-universal.dmg` 与 `Shift-Setup-0.1.12-win-x64.exe`。macOS 是单个通用 Mach-O,内含通用版的拖拽、PDF 渲染与文档渲染伴生进程;Windows ARM64 通过更新清单的兼容回退使用 x64 安装包。完整步骤见 `docs/BUILD_WINDOWS.md` 与 `docs/RELEASE.md`。
|
||||
发布链只产出两个安装包:`Shift-0.1.13-macOS-universal.dmg` 与 `Shift-Setup-0.1.13-win-x64.exe`。macOS 是单个通用 Mach-O,内含通用版的拖拽、PDF 渲染与文档渲染伴生进程;Windows ARM64 通过更新清单的兼容回退使用 x64 安装包。完整步骤见 `docs/BUILD_WINDOWS.md` 与 `docs/RELEASE.md`。
|
||||
|
||||
**权限(macOS)。** 截图与录屏需要「屏幕录制」,输出目录需要「文件与文件夹」授权,带声音录屏需要「麦克风」,「发送到设备」需要「本地网络」。Shift 会在打开截图遮罩前先检查屏幕录制权限,因此被拒绝时给出的是可操作的提示,而不是一张全黑的截图。「本地网络」被拒绝时比较安静:Shift 仍会发出广播、也能回应主动找它的实例,但收不到组播,设备列表于是始终为空。ad-hoc 签名每次重新构建都会得到新的代码身份,而 macOS 正是按这个身份记录上述授权,所以升级后可能重新询问;改用 Developer ID 签名即可保持稳定。
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Shift 工程回归台账
|
||||
|
||||
本文件记录 0.1.2 到 0.1.12 之间已经踩过、并且不应再次引入的工程问题,重点覆盖:
|
||||
本文件记录 0.1.2 到 0.1.13 之间已经踩过、并且不应再次引入的工程问题,重点覆盖:
|
||||
|
||||
- Drop / 局域网设备发现
|
||||
- DOCX、Markdown 与图片转换
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
| 0.1.9 | 重新支持把「最近使用」拖回三个主操作按钮,并且**按钮是唯一落点**——松开在面板其他位置不执行任何操作(见「『最近使用』拖回主面板的三个按钮」);设置面板字号统一到 `--text-*` 阶梯;取消「截图后」行为选项,固定为结果卡片;修复 macOS「运行组件」把 AppKit 文档渲染器报成 Pandoc 缺失且没有安装入口的回归。 |
|
||||
| 0.1.10 | 拖放反馈收束到按钮:面板自身不再做拖拽动画,松开在非按钮处彻底静默(去掉 0.1.9 的提示浮层);「文字识别」对非图片直接拒绝,不再退回格式环;托盘「识别图片文字…」改为「文字识别」。 |
|
||||
| 0.1.11 | Windows 实测「最近使用」拖到三个按钮全部完不成:页内文件拖拽在 WebView2 上 DOM 与原生两条投递路径都可能不上报,改由 `dragEnd` 兜底;开始拖动时先让闲置圆环让开,它无边框且始终置顶,正压在按钮上(两节都在「『最近使用』拖回主面板的三个按钮」里)。三个按钮的可用性判定收进 `src/lib/dropCapabilities.ts`,两种语言、两条投递路径共用一条"能处理就处理,不能处理就禁止"的规则。同一节里另有两处:内部拖拽被原生 `enter` 报成"没有文件"、从而三个按钮全部点亮(`dragPathsKnown()` 改为合并),以及禁止态定为**按钮禁用+光标禁止符号**——光标原本由 wry 固定回报 Copy、页面改不动,现在由 `src-tauri/src/drop_cursor.rs` 在运行时接管那两条回报方法,把页面的判定翻译成原生拖放的拒绝(同一节也记了这条路上"被拒绝的手势没有收尾事件"这个坑)。局域网接收的文件从此也受「完成后在访达中显示」控制,一批只在最后一个落地时显示一次;「运行组件」缺失多项时可以一次装完。 |
|
||||
| 0.1.12 | Windows 实测「运行组件」一键安装失败:`winget` 把“已经装过”报成非零退出码,界面就照着说安装失败(见「Windows 一键安装运行组件」)。同一节还记了 `--source` 未钉住导致的静默挂死、机器级组件必须提权、以及装完之后进程内 PATH 仍是旧值这三处。另有三处与系统资源相关的约束:托盘改用自绘的黑白模板图(`scripts/build-tray-icon.py` 重建,`icon_as_template` 只在 macOS 生效);钉图窗口的放大尺寸与位置必须按 work area 与 DPI 换算后夹取,见「钉图窗口的放大与还原」;闲置时的取样节奏——伴生进程 `native/macos/drag-bridge.swift` 无按压时 10Hz、Windows 手势监视 `monitor_pause` 在圆环关闭时 250ms、发现线程静默时 1.6s——都要在“关掉了就别一直占 CPU”和“还听得见、还能过期”之间取平衡。 |
|
||||
| 0.1.13 | Windows 实测「运行组件」一键安装失败:`winget` 把“已经装过”报成非零退出码,界面就照着说安装失败(见「Windows 一键安装运行组件」)。同一节还记了 `--source` 未钉住导致的静默挂死、机器级组件必须提权、以及装完之后进程内 PATH 仍是旧值这三处。另有三处与系统资源相关的约束:托盘改用自绘的黑白模板图(`scripts/build-icons.py` 重建,应用图标同一份几何,`icon_as_template` 只在 macOS 生效);钉图窗口的放大尺寸与位置必须按 work area 与 DPI 换算后夹取,见「钉图窗口的放大与还原」;闲置时的取样节奏——伴生进程 `native/macos/drag-bridge.swift` 无按压时 10Hz、Windows 手势监视 `monitor_pause` 在圆环关闭时 250ms、发现线程静默时 1.6s——都要在“关掉了就别一直占 CPU”和“还听得见、还能过期”之间取平衡。另有两条:主面板顶部的升级提示与托盘那一行共用同一份状态,而这份状态必须落到磁盘上,否则探测一天只跑一次,用户在探测当天之后就再也看不到提示——包括升级重启后的那一次启动;落盘的提示在恢复时要重新判定它是否还算数,见「升级提示跨启动存活」。 |
|
||||
|
||||
历史提交可以这样定位:
|
||||
|
||||
|
|
@ -414,7 +414,7 @@ N 个组件」,行内的单个安装按钮保持原样,两种入口调用同
|
|||
|
||||
## Windows 一键安装运行组件
|
||||
|
||||
### 0.1.12 之前实测必然失败
|
||||
### 0.1.13 之前实测必然失败
|
||||
|
||||
用户在 Windows 机器上点「一键安装组件」报失败。原先的实现是一条
|
||||
`winget install --id X --exact --silent --accept-package-agreements --accept-source-agreements`,
|
||||
|
|
@ -501,7 +501,7 @@ Shift 绝大部分时间是停在菜单栏里没人碰的。这一节的每条
|
|||
|
||||
在装有 0.1.11 的机器上,两个版本各自空转 60 秒,按进程分别读 `ps -o time=`:
|
||||
|
||||
| 进程(60 秒空转) | 0.1.11 | 0.1.12 | 变化 |
|
||||
| 进程(60 秒空转) | 0.1.11 | 0.1.13 | 变化 |
|
||||
| --- | --- | --- | --- |
|
||||
| `drag-bridge` 伴生进程 | 140 ms | 40 ms | **−71%** |
|
||||
| `shift` 主进程 | 100 ms | 60 ms | −40% |
|
||||
|
|
@ -522,12 +522,72 @@ Shift 绝大部分时间是停在菜单栏里没人碰的。这一节的每条
|
|||
| 最近列表缩略图 | `IntersectionObserver` 只保留在视线内的图片 | `loading="lazy"` 只**推迟**解码,从不**释放**。在 WKWebView 里用 250 张真实截图量过:静止时 13 张解码,滚到底单调涨到 136 张再也不降;观察者接管后同样的滚动稳定在约 20 张。root 必须是列表本身而不是视口——行的裁剪来自列表的 `overflow-y`。 |
|
||||
|
||||
托盘图标也在这一节,因为它省的是同一个东西:`src-tauri/icons/tray-template.png` 是
|
||||
`scripts/build-tray-icon.py` 画的纯 alpha 黑白标记(中性灰只在 Windows 上当底色用,
|
||||
`scripts/build-icons.py` 画的纯 alpha 黑白标记(中性灰只在 Windows 上当底色用,
|
||||
macOS 完全忽略颜色),`icon_as_template(cfg!(target_os = "macos"))` 只在 macOS 生效——
|
||||
Windows 没有可以请求的着色。**别把它换回 `app.default_window_icon()`**:那是 512px 的彩色
|
||||
转盘,`tray-icon` 会把它按 18pt 高等比缩放,在菜单栏里就是一团色块,这正是"系统图标该是
|
||||
Windows 没有可以请求的着色。**别把它换回 `app.default_window_icon()`**:那是彩色转盘,
|
||||
`tray-icon` 会把它按 18pt 高等比缩放,在菜单栏里就是一团色块,这正是"系统图标该是
|
||||
黑白"这条反馈的来由。
|
||||
|
||||
## 升级提示跨启动存活
|
||||
|
||||
主面板顶部要显示升级信息,点一下跳到「设置 → 软件更新」。界面这一半很直接:
|
||||
`useUpdateFlow` 在 MainWindow 里再挂一份,它只**读** Rust 记着的状态并订阅
|
||||
`update://status`,不会自己发探测请求,所以两处视图不会各自查网络,也不会给出
|
||||
对方已经做完的动作。
|
||||
|
||||
难的是另一半:探测**一天只允许跑一次**(`update_check_due` 看 `last_update_check_day`),
|
||||
而原先 `UpdateState` 是纯内存的。两者一叠,"发现新版本"只会在真正跑探测的那一天出现,
|
||||
之后就再也见不到——**尤其是升级装完、应用重启的那一次启动**,恰恰是用户最该看到的时候。
|
||||
实测就是这么撞上的:第一次启动看不到横幅,把时间戳改老才出现。
|
||||
|
||||
| 约束 | 原因 |
|
||||
| --- | --- |
|
||||
| 提示要落盘,存在 `app_data_dir/update-notice.json` | 和 `history.json` 同一目录、同样在安装包之外,因此升级和重装都还在。只有 `available`/`ready` 值得留;其他结果一律**删掉**文件,于是一次失败的检查不会把旧结论留在面板上冒充新闻。 |
|
||||
| 恢复时重新判定它还算不算数 | 版本已经不领先就整条丢掉——用户已经装上那个版本了,留着就是横幅 forever 地推荐他正在跑的版本;这也是清理的唯一时机,`revive_notice` 返回 `None` 时顺手删文件。 |
|
||||
| `ready` 只有在安装包文件真在磁盘上才保留 | "已下载并校验"承诺的是临时目录里的一个文件,系统完全可以在 Shift 关着的时候清掉它。文件没了就降级成 `available`:这句话仍然为真,只是要重新下载一次。 |
|
||||
| 恢复发生在 `setup_tray` **之前** | 托盘那一行(`update::tray_title`)读的是同一份状态。放在后面,横幅回来了而托盘行没有,两个入口自相矛盾。 |
|
||||
| 关掉"每天检查更新"就不恢复 | 这个开关的语义是"别告诉我"。留着提示等于用磁盘缓存绕过用户刚刚做的决定。 |
|
||||
| 用户点"忽略"要连磁盘那份一起删 | 否则"忽略"只有效到下次启动,横幅天天回来。 |
|
||||
|
||||
### 回归测试
|
||||
|
||||
```bash
|
||||
cd src-tauri && cargo test --lib update::
|
||||
```
|
||||
|
||||
`a_notice_for_a_release_still_ahead_survives_the_launch`(并且钉住恢复出来的
|
||||
`current_version` 必须是**现在**在跑的版本,不是当初问的那个)、
|
||||
`an_installed_release_stops_being_announced`、
|
||||
`a_ready_notice_without_its_installer_downgrades_rather_than_lying`。
|
||||
|
||||
## 所有图标共用一份几何
|
||||
|
||||
同一句反馈的后半段是"应用图标要和当前的单色图标保持一致设计"。这句话的重点在**设计**,
|
||||
不在**单色**:托盘那张必须是黑白的,因为它由系统着色;应用图标该是彩色的,因为 Dock
|
||||
瓦片背后没有任何东西给它着色。真正让两张图标成为同一个作品的,是几何和填充规则,不是
|
||||
颜色。所以两者由 `scripts/build-icons.py` 里的同一组常数画出来
|
||||
(`OUTER`/`INNER`/`HUB`/`GAP`/`PLUS_ARM`/`PLUS_BAR`),只有背后允许出现的东西不同。
|
||||
|
||||
| 约束 | 原因 |
|
||||
| --- | --- |
|
||||
| 一致性来自几何与**平涂**,不来自配色 | 六块扇形、同样的扇区间隙角、同样的内外环与 hub 半径、加号同样是从 hub 里**挖**出来的负空间,以及同样一律平涂。旧图标之所以像另一个产品,不是因为它有颜色,而是因为它是一整块橙紫渐变底 + 径向高光 + 投影 + 六块扇形各配一种奶油色——那是另一套视觉语言。 |
|
||||
| 应用图标最多三色,且不得出现渐变/高光/投影/逐扇形配色 | 加了第三色(hub 用 `#f04f24`)仍然守得住,因为它是平涂;一旦加回渐变就立刻回到旧语言。色相全部取自界面本身:`#FFB25C` 是旧母版本来就带的暖色,`#f04f24` 是界面里每个按钮的强调色。 |
|
||||
| hub 深、外环浅的**朝向**不要反过来 | 被替换的那版就是"暖色 hub 在更浅的圆盘里"。Dock 图标换代时把内外反转,老用户会觉得图标被换掉了,而不只是被重画了。 |
|
||||
| 环形几何只在 `scripts/build-icons.py` 定义一次 | 托盘那张 PNG 是用它逐字节重绘出来的(改完脚本跑一遍,产物与仓库里的文件 `cmp` 相同)。几何分两处写就会漂移,而漂移只在 16px 下看得出来。 |
|
||||
| SVG 母版里的瓦片是**内缩**的(820/1024) | `tauri icon` 只会等比缩放母版,**不会**加边距。母版画成满幅,产出的 `icon.png` 就是满幅方块,而仓库里原有的整组图标是 410/512=0.801 的圆角瓦片。 |
|
||||
| 轮盘直径取瓦片的 0.795 | 被替换的那版母版是 r=326 画在 820 的瓦片里(0.795)。照抄这个比例,新图标在 Dock 里的视觉重量和旧的一致,不会突然变大。 |
|
||||
| 加号用瓦片的颜色画,不真的打穿成透明 | 在 Dock 上两种做法看起来完全一样;但 `tauri icon` 合成 iOS/Android 图层时,真的洞会被平台背景填掉。 |
|
||||
| 用 `--tauri` 重生成整组,而不是手搓 | 实测 `tauri icon` 产出的 `icon.icns` 条目(ic07…ic14 + is32/il32/s8mk/l8mk)与 `icon.ico` 尺寸梯(16/24/32/48/64/256)跟仓库里已有的**完全一致**,且它不会碰 `tray-template.png`。 |
|
||||
|
||||
验收看 16px:16px 时轮盘只有约 10px,六条扇区间隙约 0.46px、加号约 0.38px,都已经是
|
||||
亚像素——被替换的那版在 16px 的加号也只有 0.72px,所以这不是退步,而是这套几何在小尺寸
|
||||
下的固有结果。真正必须在 16px 还读得出来的是**外环的扇形分割**和瓦片轮廓,深浅两种桌面
|
||||
下都验过。hub 的 `#f04f24` 要到 24px 才出现像素、48px 才站稳,这是有意的。
|
||||
|
||||
`public/shift-icon.png` 是 `icon.png` 的副本,不是另一张图:它在主窗口与编辑器标题栏里以
|
||||
26 CSS px 显示(Retina 上 52 设备 px),那个尺寸下渐变版的中心已经糊成一团,而平涂版的
|
||||
扇形分割和 hub 还分得开。
|
||||
|
||||
## 「最近使用」拖回主面板的三个按钮
|
||||
|
||||
0.1.8 曾经把这条交互关掉:一行拖出去是文件,拖回来却什么都不是,用户只能重新选一次文件。
|
||||
|
|
|
|||
Loading…
Reference in New Issue