Skip to content

refactor(renderer): the library offers hooks for the minimap's look, not glass of its own - #101

Merged
LeslieOA merged 1 commit into
developfrom
refactor/minimap-hooks-not-glass
Nov 1, 2026
Merged

LeslieOA merged 1 commit into
developfrom
refactor/minimap-hooks-not-glass

Conversation

@LeslieOA

@LeslieOA LeslieOA commented Nov 1, 2026

Copy link
Copy Markdown
Member

Leslie (1 Nov): the library shouldn't dictate the UI for buttons and minimaps, but provide hooks that let the app set the display.

  • Removes CanvasGlass, CanvasGlassButton and their Mac native views (added in perf(renderer): a recorded minimap and a text-free overview; Liquid Glass on the Mac #100); Workspace's Mac app has its own (companion PR) and passes them in.
  • The minimap's default is its drawn background again, on every platform; minimapBackground sets the host's (iOS already passes its glass).
  • New hook minimapCornerRadius (and CanvasMinimap's cornerRadius): the corners of the drawn background or what clips the host's (6 by default).

Checks: tsc clean, 200 tests pass, lint as develop. Workspace's Mac build with its own glass looks as before (glass minimap with 12pt corners, glass buttons).

🤖 Generated with Claude Code

…not glass of its own

How a canvas's controls look is the host's: the library draws the
canvas and hands over hooks. #100 put Liquid Glass in the library (a
glass minimap by default on the Mac, and glass views for a host's
buttons); they move to Workspace, which passes them in.

- CanvasGlass, CanvasGlassButton and their Mac native views are gone.
- The minimap's default is its drawn background again, on every
  platform; minimapBackground sets the host's.
- minimapCornerRadius (CanvasMinimap's cornerRadius): its corners, for
  the drawn background and the host's alike (6 by default).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LeslieOA
LeslieOA merged commit 652b828 into develop Nov 1, 2026
1 check 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.

1 participant