v1.0.7
[1.0.7] - 2026-09-04
相对 [1.0.6] 的最终变更如下。
变更
- 界面边距与卡片间距统一:主窗口外围内边距、卡片间距、卡片标题与内容间隙及底部清理按钮间隙统一对齐为 6 px;修复展开状态下清理区域卡片与底部按钮之间的多余高度计算偏差,使折叠与展开状态下卡片到底部清理按钮的间距保持严格一致(均为 6 px)。
- UI 依赖迁移至 gpui-kit:将原有的
gpui与gpui-componentgit 依赖统一迁移至 crates.io 发布的gpui-kit0.6;最低支持的 Rust 工具链升级至 1.97.1+(Edition 2024),并移除本地proc-macro-error2patch 补丁。 - 模块解耦与 Win32 资源 RAII:将庞大的
app.rs与settings_page.rs按职责拆分为子模块;新增src/win32/handle.rs提供 Win32 内核对象与注册表键的 RAII 封装,统一资源生命周期管理以防止句柄泄露;拆分独立elevation模块处理管理员提权检测与重新拉起。 - 项目文档:更新中英文 README 与开发者规范以反映模块化架构及
gpui-kit依赖变更。
[1.0.7] - 2026-09-04
Final changes since [1.0.6].
Changed
- Unified UI padding and card spacing — Window content padding, inter-card gaps, card title-to-content spacing, and the cleanup-button gap are now strictly aligned to a unified 6 px grid. Corrected the expanded-height calculation to remove excess bottom gap, ensuring the space between the bottom card and the cleanup button remains exactly 6 px in both collapsed and expanded states.
- Migrated UI dependencies to gpui-kit — Replaced direct git dependencies for
gpuiandgpui-componentwith the crates.io releasegpui-kit0.6. The minimum supported Rust toolchain is updated to 1.97.1+ (Edition 2024), and the localproc-macro-error2patch is removed. - Modular architecture and Win32 RAII handles — Split the monolithic
app.rsandsettings_page.rsinto dedicated submodules by responsibility. Addedsrc/win32/handle.rswith RAII wrappers for Win32 kernel handles and registry keys to guarantee leak-free resource cleanup across NT, process, and volume subsystems, and isolated UAC elevation handling intosrc/win32/elevation.rs. - Project documentation — Updated Chinese and English READMEs and repository guidelines to document the modularized codebase and
gpui-kitdependency.