Repository navigation
fix: let Settings opt in to window opacity - #1096
Open
Aschenbath wants to merge 1 commit into
Open
Aschenbath wants to merge 1 commit into
Aschenbath wants to merge 1 commit into
Conversation
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.
Result / 用户结果
Add “Settings follows window opacity” beside the opacity slider. It is off by
default. When enabled, Settings navigation and card backgrounds follow the live
window opacity; at 0% the wallpaper shows through, while text and controls retain
their alpha. The preference persists, can be reset, and reports failed saves.
Fixes #1077.
Design / 设计边界
the resolved preference and uses the existing live wallpaper opacity.
so controls, text and popup backgrounds remain independently readable.
a solid navigation fill when the preference is off, retaining the readability
intent of [Bug] 透明度高了会使文字不清晰 #903. Existing glass cards keep their current appearance when off.
thread or public rendering interface is added. Missing/invalid values mean off.
window_effects.rs, re-exporting the same public type; no budget was increasedand no assertions were removed.
contrast. The setting explicitly leaves that choice to the user.
Evidence / 验证依据
Windows: 111 settings tests passed; the theme/interaction group passed 50 tests (2 native desktop probes ignored), including mouse, keyboard, reset, 620px scrolling, padding hit targets and a real failed save. After the final wording update, the 2 opacity regressions passed again. The production gpui-shell build, 2 file-budget tests, i18n checks (24 passed, 1 ignored), architecture check and its 62 unit tests, and cargo fmt all passed. Native Windows screenshots cover Nord/NordLight, 0%/50%, opt-in off/on, English/Chinese, and 620px scrolling at 96 DPI. macOS, Linux, fractional DPI and the full application suite were not run.
The regressions exercise the actual Settings switch and card rendering path,
including 0/50/100% for both light and dark themes. Before this change there is no
opt-in preference and the surfaces do not follow the live alpha.
Commands:
Native captures below use the production Settings page with isolated settings and
a generated wallpaper. They show off/on at 0% and Chinese text in a light theme.
The OS constrained the client height to 1069px; these are not 1200px-high captures.
Required Review / 必须确认
This change was prepared with AI assistance.