Skip to content

Glim v0.2.0

Choose a tag to compare

@github-actions github-actions released this 14 Oct 09:32
· 24 commits to main since this release

English

Changes

  • Introduce a compact grayscale workbench with direct document tabs, centered workspace search, unified icon controls, and Glim / File / View menus. Align the macOS window buttons with the title-bar controls and leave more space before the Glim brand. Sidebar navigation contains Start and Files; Settings is available from Glim → Settings or ⌘,. Git navigation is temporarily hidden.
  • Make the sidebar proportional: 20% of the window by default, double-click to reset, drag left below 120px to collapse, and drag right up to 50%. Center the Start page within the content area as the sidebar changes.
  • Start new file trees collapsed, restore saved folder expansion on reopening, and expand/scroll/select the file when its tab is activated. Clicking a file-tree row preserves its scroll position; sidebar selections are mutually exclusive. Align top-level folder disclosure icons with navigation and retain the original file-format icons.
  • Redesign Settings, About and Software Update windows and the bordered keyboard-shortcut table. Default file types use a compact, content-sized table with select-all and current/partial association checkmarks; programming languages are grouped as Source Code. Remove the previous-default restoration button and fix table initialization crashes.
  • Unify English/Chinese application translations across Rust controls, native settings/previews and generated preview labels. Discover language catalogs automatically and check missing keys, hardcoded controls and interpolation tokens during builds.
  • Accelerate large standalone PNG previews with macOS ImageIO using a captured-file snapshot, and show loading feedback immediately. Preserve source files and the existing 4,000px standalone preview limit.
  • Bound inline static-image previews to a 2,048px longest edge. Improve streaming GIF composition, use absolute playback deadlines and two bounded lookahead batches (up to three frames / 16 MiB each), release old textures and suspend hidden animations. GIF display previews are bounded to a 2,048px longest edge while compositing uses the original source resolution.

Support and limitations

  • macOS 11 or later, Apple Silicon and Intel only. Ordinary UTF-8 files retain basic editing and automatic/manual saving; diffs, images and unsupported files remain read-only. Source files are not resized or rewritten by image previewing.
  • Local image input remains limited to 128 MiB, static source images to 100 megapixels, and GIF compositing retains its existing 512 MiB canvas budget. Preview scaling can reduce detail at high zoom; GIF buffering is bounded per animation, not by the number of animations in a document. Remote images require network access.
  • Adding an application language requires a complete matching catalog; third-party component controls retain their library's own language support. Technical diagnostics, file content, paths and application/format names are not translated.
  • Real Intel hardware and complete manual UI/GIF performance smoke tests were not performed for this release; no measured smoothness or memory-peak guarantee is claimed.

Validation

  • Code review completed with fixes for theme initialization, stale asynchronous file-tree selection, untranslated close tooltips, and regression fixtures.
  • Local cargo fmt --all --check, cargo clippy --workspace --all-targets --locked -- -D warnings, cargo test --workspace --locked (96 tests), cargo build --locked, and the 336-message English/Chinese catalog check passed.
  • Release CI validates updater-enabled ARM formatting, strict Clippy, tests and native updater checks; builds Apple Silicon and Intel DMGs; verifies bundle identity, architecture, signatures and checksums; signs and verifies both update feeds and checks uploaded assets by downloading them again before publication.

Installation

  • Choose Glim-0.2.0-macos-arm64.dmg for Apple Silicon or Glim-0.2.0-macos-x86_64.dmg for Intel, then drag Glim.app to Applications.
  • Packages are ad-hoc signed, without Apple Developer ID signing or notarization. If Gatekeeper blocks first launch, open once and use System Settings → Privacy & Security → Open Anyway. Do not disable system security.
  • Existing updater-enabled installations (0.1.12+) can use Check for Updates. Older or updater-disabled builds require manual installation. SHA-256 files and signed architecture-specific appcasts are included.

中文

变更

  • 引入紧凑灰阶工作台:主体直接显示文档标签,工作空间搜索居中,统一图标操作,菜单收拢为 Glim/文件/视图。系统窗口按钮与标题栏控件对齐,并加大与 Glim 品牌名的间隔。侧栏保留开始和文件;设置通过 Glim → 设置或 ⌘, 打开,Git 导航入口暂时隐藏。
  • 侧栏改为比例宽度:默认占窗口 20%,双击分隔线恢复默认,向左拖至 120px 以下自动收起,向右最多拖至 50%。开始页随侧栏变化始终在主体内容区域居中。
  • 新文件树默认折叠,重新打开时恢复已保存的展开状态;切换文件标签时展开、滚动并选中对应文件。点击文件树文件保持原滚动位置,侧栏选中块互斥。顶层文件夹展开符号与导航图标对齐,保留原有文件格式图标。
  • 重做设置、关于、软件更新弹窗,以及带表格线的快捷键说明。默认文件类型采用按内容定尺寸的紧凑表格,支持全选、已关联勾选及部分关联半选,编程语言合并为「源代码」。移除恢复默认应用按钮,修复表格初始化崩溃。
  • 统一 Rust 控件、原生设置/预览和生成预览说明的中英文翻译。自动发现语言文件,构建时检查缺失键、硬编码控件和占位符。
  • 独立打开的大 PNG 使用已捕获文件快照,通过 macOS ImageIO 加速预览,并立即显示加载提示;保留原文件和已有的 4000px 独立预览上限。
  • 内嵌静态图片预览最长边限制为 2048px。优化 GIF 顺序合成,使用绝对播放时间轴和两个有界预取批次(每批最多三帧/16 MiB),释放旧纹理并暂停隐藏动画。GIF 显示预览最长边为 2048px,合成仍使用原始分辨率。

支持范围与限制

  • 仅支持 macOS 11 及以上的 Apple Silicon 和 Intel Mac。普通 UTF-8 文件保留基础编辑和自动/手动保存;差异、图片及不支持的文件保持只读。图片预览不会缩放或改写原文件。
  • 本地图片输入仍限制为 128 MiB,静态源图片不超过 1 亿像素,GIF 合成保留现有 512 MiB 画布预算。预览缩放可能降低高倍放大的细节;GIF 缓冲上限按单个动画计算,不限制文档中的动画数量。远程图片需要网络。
  • 新增应用语言需提供键集一致的完整翻译文件;第三方组件内部控件继续使用组件库自身的语言支持。技术诊断、文件正文、路径和应用/格式名称不翻译。
  • 本版本未进行真实 Intel 硬件及完整手动界面/GIF 性能冒烟测试,不宣称已有实测的流畅度或内存峰值保证。

验证

  • 已完成代码 Review,修复主题初始化、异步文件树选中覆盖、关闭按钮提示翻译和回归测试数据问题。
  • 本地 cargo fmt --all --check、cargo clippy --workspace --all-targets --locked -- -D warnings、cargo test --workspace --locked(96 项测试)、cargo build --locked 和 336 条中英文消息检查均通过。
  • 发布 CI 验证启用更新器的 ARM 格式、严格 Clippy、测试及原生更新器检查;构建 Apple Silicon 和 Intel DMG;核对包身份、架构、签名与校验和;签名验证两个更新源,并在发布前回下载核对上传附件。

安装

  • Apple Silicon 选择 Glim-0.2.0-macos-arm64.dmg,Intel 选择 Glim-0.2.0-macos-x86_64.dmg,将 Glim.app 拖入 Applications。
  • 安装包采用 ad-hoc 签名,没有 Apple Developer ID 签名或公证。首次启动如被 Gatekeeper 阻止,先尝试打开,再到「系统设置 → 隐私与安全性 → 仍要打开」批准,无需关闭系统安全保护。
  • 已启用更新器的安装(0.1.12+)可使用「检查更新」;更早版本或未启用更新器的构建需手动安装。附件包含 SHA-256 校验文件和分别签名的两种架构更新源。