Repository navigation
refactor(renderer): the library offers hooks for the minimap's look, not glass of its own - #101
Merged
Merged
Conversation
…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>
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.
Leslie (1 Nov): the library shouldn't dictate the UI for buttons and minimaps, but provide hooks that let the app set the display.
CanvasGlass,CanvasGlassButtonand 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.minimapBackgroundsets the host's (iOS already passes its glass).minimapCornerRadius(andCanvasMinimap'scornerRadius): the corners of the drawn background or what clips the host's (6 by default).Checks:
tscclean, 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