Skip to content

fix(desktop): stop pinning management modals to a compositor layer#3961

Merged
esengine merged 1 commit into
main-v2from
fix/desktop-modal-blur
Jun 11, 2026
Merged

fix(desktop): stop pinning management modals to a compositor layer#3961
esengine merged 1 commit into
main-v2from
fix/desktop-modal-blur

Conversation

@esengine

Copy link
Copy Markdown
Owner

Repro (#3838 / #3902 / #3899): open Settings (or trash / history view) on Windows — all text in the panel renders blurry; it snaps crisp after clicking another tab or resizing the window.

Cause: .management-modal carried will-change: transform, opacity plus an entrance animation with fill-mode: both whose 100% frame retains a transform (translate3d(0,0,0) scale(1)). Both keep the modal promoted to a compositor layer whose texture was rasterized during the scaled entrance frames; on fractional display scaling (125%/150%) WebView2 then re-samples that texture instead of re-rasterizing, so text stays soft until something forces a repaint — exactly the "clears after clicking a tab / resizing" behavior in the reports.

Fix: drop will-change and the fill-mode, and end the keyframes at transform: none. The entrance looks identical (no delay, final frame equals the base style), but once it finishes no transform or animation style remains applied, so the layer is demoted and text rasterizes at native DPI.

CSS syntax + z-index token checks pass. Needs a quick visual confirm on a Windows 125%/150% scale machine before release.

Closes #3838
Closes #3902
Closes #3899

will-change: transform plus a fill-mode that keeps the final transform
applied left the settings/history/trash modal permanently composited,
rasterized at the entrance-animation scale. On Windows fractional DPI
the whole panel rendered blurry until a tab switch or resize forced a
repaint. Let the entrance animation end with no retained style so the
modal returns to the normal raster path.

Closes #3838
Closes #3902
Closes #3899
@esengine esengine requested a review from SivanCola as a code owner June 11, 2026 05:51
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) and removed v2 Go rewrite (1.x) — main-v2 branch, active development labels Jun 11, 2026
@esengine esengine merged commit 5bfb10e into main-v2 Jun 11, 2026
14 checks passed
@esengine esengine deleted the fix/desktop-modal-blur branch June 11, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 设置界面模糊了 [Bug]: 设置面板的模糊以及一些UI的建议 [Bug]: 打开设置/回收站/切换视图 字体模糊

1 participant