Repository navigation
Conversation
|
This looks really nice! Excited to use it. Thanks everyone for all the hard work |
This was referenced Jul 23, 2026
11 of 16 tasks
|
It looks great, well done ! |
Contributor
|
Closing as superseded by #36580, which adds Opaque, Translucent and Blurred window materials on macOS, Windows and Linux (plus Reduce Visual Effects) and fixes the transparent-terminal flicker. Thank you for this PR, it shaped the design. |
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.
Root cause this fixes: blur & background opacity never visibly worked before because the macOS window set
transparent: truetogether withvibrancy, which suppresses the vibrancy view, and an opaquebackgroundColorpainted over the blur layer.Summary
Adds Window Glass - a translucent window mode that lets the blurred desktop show through the whole app (sidebars, terminals, editor, panels), backed by macOS vibrancy and Windows acrylic.
User-visible changes:
+0.25more opaque so framing stays readable. Floating overlays (dropdowns, dialogs, tooltips, command palette) stay fully opaque for readability.windowBackgroundBlur,terminalBackgroundOpacity), so existing configs keep working.background-blur(boolean or numeric radius) now maps to the Glass Mode setting, alongside the existingbackground-blur-radius.Behavior when Glass Mode is off is unchanged from today - the window is opaque and the terminal/editor/preview render their solid themes (the glass/opacity logic is fully gated on the blur setting).
Screenshots
Testing
pnpm lint- passes (oxlint, switch-exhaustiveness, and thecheck-styled-scrollbarsguard).pnpm typecheck-typecheck:nodeandtypecheck:webboth clean (0 errors).pnpm test- touched suites green:mapper.test.ts,createMainWindow.test.ts,terminal-appearance.test.ts,TerminalSettingsPreview.lifecycle.test.tsx.pnpm build- passes (typecheck → relay → computer-macos → cli → electron-vite → web all succeed).background-blurmapping (boolean / numeric radius /0/ invalid + the "radius not preserved" note).createMainWindowwindow options per platform (macOS vibrancy withouttransparent, Windows acrylic, Linux opaque fallback).Manually verified on macOS (dark mode) via the running dev app: Glass Mode on → vibrancy shows through; Glass Opacity drives terminal/editor/chrome at the expected levels; Glass Mode off → solid themes everywhere (terminal, editor, preview); floating overlays stay opaque; terminal scrollbar matches the file editor. Windows & Linux are not tested and should be verified.
AI Review Report
Reviewed the diff with an AI coding agent across the dimensions CONTRIBUTING requires:
createMainWindow.tsis guarded byprocess.platform- macOS usesvibrancy: 'under-window'+visualEffectState: 'active'(notransparent: true, which was the bug); Windows usesbackgroundMaterial: 'acrylic'; Linux has no native blur surface and keeps an opaquebackgroundColor. No keyboard shortcuts, accelerators, shortcut labels, or filesystem paths were added or changed, so there are nometaKey/CmdOrCtrl/⌘-vs-Ctrl/path.joinconcerns in this PR. The renderer CSS gates everything on aglassclass driven by the blur setting, identical across platforms. macOS verified live; Windows acrylic and Linux opaque-fallback paths are guarded but were not visually verified - flagged in Notes.window.api.app.relaunch()IPC. No SSH/remote-specific behavior.background-blur) with strict value validation; nothing GitHub/GitLab-specific.applyTerminalAppearanceonly setsallowTransparency/theme when blur is on, and the per-pane loop is unchanged. TwodocumentElement.style.setPropertycalls fire only when the blur/opacity settings change.SettingsSwitchRow,NumberField,SettingsSubsectionHeader,SearchableSetting). Flagged and fixed by the review: hardcoded hex in the "pin solid" rules → new--background-solid/--editor-surface-solidtokens; the custom terminal-scrollbar style was reconciled with the "don't write a fourth scrollbar style" rule by mirroring.scrollbar-editor's exact values (xterm owns its internal scrollbar elements, so the class can't be attached) and documenting it -check-styled-scrollbarspasses. Light and dark both covered.Security Audit
Low risk. No input handling, command execution, path handling, auth, secrets, or new dependencies are introduced.
app:relaunchpath that the old Window Blur toggle already used.backgroundColoron a blur surface -sandbox,contextIsolation,webviewTag, and the webview hardening increateMainWindoware untouched.background-blurvalue is parsed through the existing strict integer/boolean validation (rejects anything else), so a malformed config can't smuggle a value through.Notes
process.platformbut should be sanity-checked on those platforms before merge.Comparison to PR #2791
#2791 ("macOS native glass effect as an orthogonal setting") produces the same visual result - a translucent window with the desktop blurred through the shell. This PR reaches it with ~6× less code by layering on settings that already exist instead of building a new feature platform.
windowBackgroundBlur+terminalBackgroundOpacityglassEffect: booleanbg-background-opaqueutil across ~30 componentsWhy ours is smaller:
windowBackgroundBlur+terminalBackgroundOpacity, so there's no new type, predicate module, IPC plumbing, on-disk migration, or onboarding.--popover. The PR feat(theme): macOS native glass effect as orthogonal setting #2791 instead tags ~30 components withbg-background-opaque.Where we differ technically: on macOS we omit
transparent: true(the PR #2791 setstransparent: true+backgroundColor: '#00000000'). That combination suppresses the vibrancy view - the actual reason blur rendered opaque - so we usevibrancy: 'under-window'+visualEffectState: 'active'and omitbackgroundColoron a blur surface. We also cover Windows (acrylic) and Linux (opaque fallback); the PR #2791 is macOS-only.Trade-offs vs #2791:
windowBackgroundBlur); the (PR 2791) keeps them independent. In practice this gives up little - when tested, the existingwindowBackgroundBlurnever actually rendered blur (it showed opaque, the bug fixed here - see Summary), so there was no working "blur without glass" to preserve.glass-light/glass-dark) is (PR 2791)'s lineage, not ours. Ourthemeis the 3-value enum (system/dark/light, seesrc/shared/types.ts), and we reuse the existingwindowBackgroundBlur+terminalBackgroundOpacitysettings rather than adding a key, so there's no on-disk state to convert. A migration here would match zero persisted values.bg-backgroundsurface is translucent by default under glass (we pin exceptions with*-solid; (PR 2791) opts in withbg-background-opaque).prefers-reduced-transparencyfallback yet (PR 2791) has one; could be added as a single media query against the same tokens).ELI5
Window Glass mode makes the whole app translucent with desktop blur (macOS vibrancy / Windows acrylic)—sidebars, terminals, and panels.