10 Commits
Author SHA1 Message Date
ZASENJC db1a28da00 fix(macos): 修复 Release 优化下动态 NSColor 闭包提前释放导致启动崩溃
- 在 pale_ink 动态提供器闭包中使用 Retained::autorelease_ptr(color) 将 NSColor 放入自动释放池后再返回裸指针,避免 Release 模式下 objc_retainAutoreleasedReturnValue 优化导致函数返回前即被 drop 释放
- 升级版本至 0.2.4
2026-10-16 18:53:08 +08:00
ZASENJC 0df6e9859d fix(macos): 翻译面板根据底层窗口背景亮度动态平滑切换文字对比色
- 将 pale_ink 改为基于 NSColor::colorWithName_dynamicProvider 的动态颜色提供器,并在浅色背景上适度增强低透明度层级的对比度
- 按钮背景改用 NSButtonCell 动态背景色以跟随文字色调切换
- 通过 CGWindowListCreateImage(OnScreenBelowWindow) 采样窗口底层中心区域亮度,结合迟滞阈值(0.44/0.56)与指数平滑过渡(step_ink_tone)实现亮/暗背景间的自然渐变
- 同步更新窗口 NSAppearance 并触发视图树重绘,升级版本至 0.2.3
2026-10-16 18:05:14 +08:00
ZASENJC b0671bbf73 fix(translate): follow Bing geo redirects and surface both provider errors (#3)
- Follow 301/302/303/307/308 redirects within *.bing.com when fetching the Bing translator token and posting to /ttranslatev3, preserving the POST method/form body and caching the resolved origin on BingToken.
- Combine primary and secondary provider error messages when hedged free translation fails on both channels instead of discarding the first error.
- Fix debug-mode objc2 type encoding check in macOS make_button by using typed NSColor::CGColor and CALayer::setBackgroundColor methods.
- Bump workspace version to 0.2.2.
2026-10-16 17:34:59 +08:00
ZASENJC a4ddb522af feat: add signed native updates for macOS and Windows 2026-10-16 02:06:09 +08:00
ZASENJC 8d4628aeed refactor: separate native platforms and automate signed dual-platform releases 2026-10-16 00:05:02 +08:00
ZASENJC 8e14266c18 feat(windows): align native UI and manage built-in model service
Align the pure-Rust Windows translation, chat, settings, and toolbar design with macOS using shared Lucide icons. Fix hover and scrolling repaint artifacts, dropdown alignment, and native model download folder selection.

Persist manual service stops, cancel active built-in requests, and add confirmed cleanup of built-in models and managed runtime dependencies. Cover lifecycle behavior with Rust tests and add a native Windows repaint regression harness.

Validation: native Windows release build and installed UI verification; isolated Windows service lifecycle checks; six model manager tests; macOS cargo check; git diff --check.
2026-10-15 23:39:28 +08:00
ZASENJC d16722fdf4 feat: add native Windows app and OCR, remove legacy Tauri frontend 2026-10-15 20:29:44 +08:00
ZASENJC 46c2f3664b feat(ai,ui): add built-in HY-MT1.5-1.8B GGUF engine, unified settings UI, translation line spacing, and OCR newline toggle 2026-10-15 02:50:57 +08:00
ZASENJC 2c47dfc79e refactor(storage): remove macOS Keychain runtime calls and persist config directly in 0600 settings.json 2026-10-14 19:17:38 +08:00
ZASENJC 0f04fefbcc feat: rewrite TTREE into 100% pure-Rust modular workspace with native AppKit UI, fast hedged translation, reliable OCR, and Ollama/LMStudio/GGUF AI backends 2026-10-14 19:07:43 +08:00