- 将 pale_ink 改为基于 NSColor::colorWithName_dynamicProvider 的动态颜色提供器,并在浅色背景上适度增强低透明度层级的对比度 - 按钮背景改用 NSButtonCell 动态背景色以跟随文字色调切换 - 通过 CGWindowListCreateImage(OnScreenBelowWindow) 采样窗口底层中心区域亮度,结合迟滞阈值(0.44/0.56)与指数平滑过渡(step_ink_tone)实现亮/暗背景间的自然渐变 - 同步更新窗口 NSAppearance 并触发视图树重绘,升级版本至 0.2.3
33 lines
953 B
TOML
33 lines
953 B
TOML
[package]
|
|
name = "ttree-macos"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
authors.workspace = true
|
|
license.workspace = true
|
|
|
|
[features]
|
|
updater-smoke = ["ttree-updater/smoke"]
|
|
|
|
[[bin]]
|
|
name = "ttree"
|
|
path = "src/main.rs"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
ttree-core = { path = "../../crates/ttree-core" }
|
|
ttree-storage = { path = "../../crates/ttree-storage" }
|
|
ttree-platform = { path = "../../crates/ttree-platform" }
|
|
ttree-ocr = { path = "../../crates/ttree-ocr" }
|
|
ttree-translate = { path = "../../crates/ttree-translate" }
|
|
ttree-updater = { path = "../../crates/ttree-updater" }
|
|
ttree-ai = { path = "../../crates/ttree-ai" }
|
|
anyhow.workspace = true
|
|
global-hotkey.workspace = true
|
|
tokio.workspace = true
|
|
block2.workspace = true
|
|
objc2.workspace = true
|
|
objc2-app-kit.workspace = true
|
|
objc2-core-foundation.workspace = true
|
|
objc2-core-graphics.workspace = true
|
|
objc2-foundation.workspace = true
|
|
objc2-quartz-core.workspace = true
|