feat(ui): 划词追问框与语音胶囊磨砂玻璃质感#519
Merged
Merged
Conversation
1. 更新检查:超时从 8s 提至 15s,error 态展示具体错误原因 + 重试按钮 2. GitHub 登录:device flow 两个 HTTP 请求加 15s timeout,防网络差时永远卡住 3. 网络连通性:新增 check_network 命令(HEAD apic.openless.top + github.com), PermissionsSection 从硬编码"可用"改为真实探测 + 30s 轮询 + 离线重试 4. Marketplace:加载失败卡片增加重试按钮 5. i18n:五语言新增 networkOffline / settings.about.retryBtn Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
webview 无法模糊透明窗口背后的桌面(Tauri 上游限制 #2827/#10064/#6876),原 backdrop-filter 在 qa / capsule 透明浮窗里是死代码。改用纯静态 CSS 的「假毛玻璃」:半透明白底 + 分形噪点颗粒 + 内描边高光 + 柔和阴影,三平台像素一致、零运行时开销。 - tokens.css: 新增 --ol-frost-grain(不透明灰度分形噪点 data URI) - global.css: 新增 .ol-frost 类,::before 叠噪点颗粒层 - QaPanel / Capsule: 外壳套用 .ol-frost,移除这两个面上死的 backdrop-filter
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Collaborator
Author
|
关于 pr_agent 指出的网络检测 该判断位于既有网络检测代码(commit captive portal 误报是真实但边缘的场景,且正确修复需要校验响应内容/可达性(非一行能改),已记录为后续单独跟进,本次不在此 PR 内扩大范围。 本 PR 核心改动(磨砂玻璃:tokens.css / global.css / QaPanel.tsx / Capsule.tsx)已过本地 code-reviewer,CI 三平台构建 + pr_agent 均已通过。 |
appergb
pushed a commit
that referenced
this pull request
May 22, 2026
…s/Linux 修复 自 v1.3.4-11-beta-tauri 以来的改动: - feat(ui): 给划词追问框与语音胶囊加磨砂玻璃质感(#519) - fix(linux): 修复 Linux 主窗口控件(#518 / issue #517) - fix(windows): 缩短 Windows IME 提交超时(#514 / issue #491) - fix(windows): 流式 SendInput 节流(#513 / issue #491) - feat(asr): 新增更大的 Foundry Whisper 模型(#512 / issue #511) - fix(asr): 修复智谱 ASR endpoint 处理(#510 / issue #507) - fix(ui+network): 更新/登录/网络检测/市场加载四项修复 - fix(asr): 修复智谱批量 ASR 分片(#509 / issue #508) 本次只动版本号,逻辑改动已在上述 PR 落盘。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
背景
划词追问框(
qa窗口)与语音胶囊(capsule窗口)都是 Tauri 的transparent: true浮窗。它们原本写了backdrop-filter: blur()想做毛玻璃,但 webview 无法模糊透明窗口背后的桌面像素 —— 这是 Tauri 已知的上游限制(tauri-apps/tauri#2827、#10064、#6876)。所以原来的backdrop-filter在这两个面上是死代码,三平台都不生效。方案
不做真实高斯模糊(webview 做不到;原生 vibrancy / 截屏方案经评估后均排除),改用纯静态 CSS 的「假毛玻璃」:
.ol-frost::before,磨砂质感来源)box-shadow)零运行时 / 动画开销,macOS / Windows / Linux 像素一致。
改动
tokens.css--ol-frost-grain—— 不透明灰度分形噪点(inline SVG data URI)global.css.ol-frost类(::before噪点层,z-index:-1+isolation:isolate保证噪点压在宿主背景之上、内容之下)QaPanel.tsx.ol-frost,移除死的backdrop-filterCapsule.tsx.ol-frost,移除死的backdrop-filter及不再用到的useBackdrop范围说明
Capsule.tsx里CircleButton(取消按钮)和「正在翻译」徽章另有各自的backdrop-filter,本 PR 刻意不动:取消按钮的是页内模糊(非死代码),徽章的虽是死代码但属独立小组件,留待后续单独清理,避免本 PR 越界。测试
tsc --noEmit通过vite build通过tauri build跑过,磨砂层正常渲染🤖 Generated with Claude Code
PR Type
Enhancement, Bug fix
Description
Probe real network status and latency
Harden GitHub/update requests with timeouts
Add retry actions for failed states
Apply shared frosted-glass overlay styling
Diagram Walkthrough
File Walkthrough
4 files
Add network probe and HTTP timeoutsSurface update errors and extend timeoutAdd retry action for load failuresShow update errors with retry button12 files
Register new network check commandApply frosted overlay styling to capsuleAdd network offline and retry stringsAdd network offline and retry stringsAdd network offline and retry stringsAdd network offline and retry stringsAdd network offline and retry stringsExpose network check IPC helperSwitch QA panel to frosted shellReport live network availability in settingsAdd reusable frosted glass utility classAdd frosted noise texture token