Skip to content

feat(settings): Glass Transparency for Liquid Glass - #818

Merged
aaf2tbz merged 1 commit into
mainfrom
feat/liquid-glass-transparency
Nov 20, 2026
Merged

aaf2tbz merged 1 commit into
mainfrom
feat/liquid-glass-transparency

Conversation

@aaf2tbz

@aaf2tbz aaf2tbz commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

Closes #807. Adds a Glass Transparency slider under the Liquid Glass switch in Settings, from 0 % to 100 % in steps of 10. It works like macOS's own Liquid Glass Tinted-to-Clear choice: higher values let the game's art and the desktop show more clearly through the library's panels, with a lighter blur.

The issue also asked to drop "Electron" from the UI category. #810 already removed it from the issue templates.

Changes

  • MSGlass.swift. ms_glass_begin takes a clarity (0 to 1). As it rises:

    • the veil over the desktop thins, down to 15 %
    • the tint on panels and controls thins, down to 25 %
    • from 50 % up, panels and controls switch from .regular to .clear glass
    • deep glass (settings, menus) loses at most 30 % of its tint, so its text stays readable
    • the primary button and the selected card don't change

    A new value retints the existing views in place. Dragging the slider doesn't rebuild the glass.

  • liquid_glass.rs and ui.rs. The value is passed through begin(). GPUI's washes over the glass (header and hero chrome, the footer, menu fills) thin by up to 60 %, and menus keep a floor.

  • settings_preview.rs. The slider row shows only while Liquid Glass is on. You can click or drag along the track.

  • ui_live.rs. Saved as glassTransparency in the UI state. The default is 0 %, which is today's look.

PR Readiness (MANDATORY)

  • Real-game launch test completed for game/runtime/graphics/compatibility changes: N/A (UI only)
  • No hardcoded paths, secrets, or absolute /Users/... paths introduced
  • Config/rules TOML validated: N/A
  • Version metadata in sync: N/A
  • Bottle/runtime migration and launch behavior preserved
  • Docs / compatibility matrix updated for user-facing changes: N/A
  • Regression test added for each bug fix: N/A (feature)

Test notes

  • The Swift is not compiled. The session had no macOS or Swift toolchain. Please build on macOS 26 before merging.
  • Not checked visually. The alpha curves are a first pass and should be tuned against real art in both themes.
  • Type checks: cargo check --tests passes on Linux with the macOS-only FFI stubbed in a scratch copy. cargo fmt --check is clean.

Generated by Claude Code

A slider under Settings' Liquid Glass switch, 0 to 100 % in tens (#807).
Higher thins the veil over the desktop and the tint of panels and controls,
and past the middle makes panels and controls clear glass with a lighter
blur, so the game's art shows through the library's panels. Deep glass
(settings and menus) keeps enough tint for its text, and GPUI's washes over
the glass thin with it. A change retints the glass in place: dragging the
slider rebuilds nothing. 0 % is the look before; it is saved as
glassTransparency with the other display choices.
@aaf2tbz
aaf2tbz force-pushed the feat/liquid-glass-transparency branch from 7ffe1b4 to a1e3728 Compare November 20, 2026 17:20
@aaf2tbz
aaf2tbz merged commit 77c07bd into main Nov 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add transparency slider for Liquid Glass

1 participant