Repository navigation
Description
Theme-driven native window translucency (macOS vibrancy; complement #1916)
The workflow
I maintain a custom CSS theme (~/.bb/theme/glass/theme.css) with translucent surface tokens — softer --surface-raised, alpha --sidebar, lighter scrims — and want the "diffused glass" look to include the desktop showing through the sidebar and chrome, like native macOS apps (Slack, Things, Arc).
Steps: write the theme with translucent layers → run bb theme set glass → the look stops at the app: every alpha layer composites against a solid window background, because the Electron window itself is opaque.
What happens today
createWindowOptions() in apps/desktop/src/desktop-window-factory.ts builds the main window with frame: false, titleBarStyle: "hiddenInset" on macOS and no transparent, vibrancy, or backgroundMaterial option — the window is always opaque:
bb's token system already leans on translucent surfaces (--surface-raised, --surface-scrim, --state-hover mix into transparent at https://github.com/get-bb/bb/blob/c7c6642/apps/app/src/components/ui/theme.css#L521-L523), but with an opaque window those alphas only ever blend over --canvas, never the desktop. There is no theme or setting that can change this.
What you would expect
Native window translucency, theme-driven and opt-in, unified across platforms rather than three divergent mechanisms:
- A theme declares it, selecting the theme activates it. A custom property in
theme.css(sketch:--window-translucency: under-window), read by the renderer when the palette is applied (applyAppThemeCssalready has a change-subscription mechanism — https://github.com/get-bb/bb/blob/c7c6642/apps/app/src/lib/themes/index.ts#L44-L60), forwarded over the existing desktop IPC so main callsBrowserWindow.setVibrancy(). Unset or unrecognized values = today's opaque window. Default themes unchanged. No restart, consistent with how theme selection works today. - Per-platform backends behind that one declaration: macOS
vibrancy: "under-window"(native material, keeps window shadow/resizing;transparent: trueloses them and isn't worth it on macOS); Windows 11backgroundMaterial: "acrylic"; Linux the compositor-transparency route from Linux desktop: add opt-in frameless and transparent windows #1916. - Contrast stays a theme responsibility, documented. bb's theme.css documents exact contrast floors (≥ 4.5:1
--ink/--canvas, theming.md quick-start step 1). A glass theme opts into an unknown backdrop, so the recommended shape keeps the thread content area on an opaque--canvasand translucency for sidebar/chrome (the Slack pattern); theming.md gets a short "glass themes" section stating the contract. This is the same trade-off Slack/Things make.
This complements #1916 rather than competing: that issue lands Linux opt-in flags; this proposes the shared destination — one theme-level declaration with per-platform backends — and fills the macOS/Windows gap #1916 explicitly scopes out ("macOS and Windows ignore both flags"). Happy to align on whether Linux keeps the flags, folds into the declaration, or both.
Context and alternatives
- Workarounds: none from a theme; patching
desktop-window-factory.tsin the app bundle works but dies on every update (and is exactly the kind of unsupported mod issues should replace). - Ruled out:
transparent: trueon macOS (loses native shadow, has resize/maximize regressions); startup flags à la Linux desktop: add opt-in frameless and transparent windows #1916 on macOS (theme selection is runtime-dynamic —applyAppThemeCssre-applies without restart — so glass that requires a relaunch fights the existing UX);backdrop-filterhacks targeting internal classes (unstable across releases). - Demand: Linux desktop: add opt-in frameless and transparent windows #1916 (Linux, opened Aug 19, with a working fork screenshot of bb glass on Hyprland) shows the theme layer composes correctly over a translucent window; the macOS counterpart is currently unrequested and unimplemented.
- Origin: bb thread
thr_tjefq4vaj6("Make a BB theme with diffused opacity") — the theming session that hit this wall. Tested against desktop v0.39.0 / main @ c7c6642.
Proposal sketch only, per CONTRIBUTING.md — no PR until sign-off. If the maintainers prefer a different activation shape (settings toggle vs. theme declaration), that's the alignment I'm looking for.
AGENT GENERATED: by zai/glm-5.3
Activity
itizarsa commentedon Sep 16, 2026
+1 on this.
Same workflow: a monochrome custom theme with translucent sidebar and surface tokens that flattens out because the macOS window is opaque.
Given #1916 already landed the Linux
--transparent-windowflag, a macOS equivalent — opt-invibrancyincreateWindowOptions(), gated behind a setting or a theme-declared field, would close the last gap without changing default behavior.euclodius commentedon Nov 30, 2026
I’d find this useful on Windows 11 too. I’d like a glass theme where the sidebar picks up the desktop or the windows behind BB, while the chat stays easy to read. An opt-in Desktop Acrylic setting would make that possible. If you revisit this request, I’d appreciate including Windows in the discussion. Orca’s Electron implementation of Desktop Acrylic may be a useful reference.