Repository navigation
Fix the four open font/eyedropper issues - #91
Merged
Merged
Conversation
The eyedropper (and the colour panel) write the foreground swatch, but a text layer's fill was read once when the layer was created and never again, so picking a colour and clicking back into existing text changed nothing. The live session now follows the foreground: resuming an edit adopts the current pick, and a swatch change mid-session lands on the next keystroke. Fixes #89 Co-Authored-By: Claude Fable 5 <[email protected]>
Font Book is sandboxed on modern macOS, so a font installed by double-clicking lands in ~/Library/Containers/com.apple.FontBook/Data/ Library/Fonts rather than ~/Library/Fonts. Every CoreText app sees it; fontdb's directory scan does not, which is why user-installed fonts were missing from the font menu. Fixes #86 Co-Authored-By: Claude Fable 5 <[email protected]>
…n faces Two font-menu fixes that also improve every other dropdown: * A dropdown now opens scrolled so its current value sits at the top of the list, instead of always starting from the beginning. One shared ScrollHandle serves all dropdowns (only one popup can be open), reset on open/close so the first frame scrolls once and the list is then the user's to scroll. * The font menu renders each family name in the typeface it names, the way Figma previews fonts. Families gpui cannot resolve fall back to the UI font. Fixes #87 Fixes #88 Co-Authored-By: Claude Fable 5 <[email protected]>
clippy's field_reassign_with_default, denied in CI. Co-Authored-By: Claude Fable 5 <[email protected]>
The shell forwards every pointer move to the active tool, hovers included, and the eyedropper sampled on all of them. A click picked the right colour and then travelling toward the toolbar re-sampled whatever the mouse crossed last — usually the white background — so the pick was silently discarded (visible in #89's video: the readout shows the picked orange, then flips to white with no click). Sampling now only follows a held button, like Photoshop's drag-to-sample. Fixes #89 Co-Authored-By: Claude Fable 5 <[email protected]>
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.
Fixes all four open issues, which turned out to share one corner of the app: the type tool and its font menu.
#89 — Eyedropper tool does not work
The eyedropper was writing the foreground swatch correctly; the type tool just never read it again. A text layer's fill was captured once at creation, so picking a colour and clicking back into existing text changed nothing. The live type session now follows the foreground: resuming an edit adopts the current pick immediately, and a colour-panel change mid-session lands on the next keystroke. Unit test included; also verified end-to-end headlessly (black text turns red on resume after sampling red).
#86 — Custom fonts aren't supported
Font Book is sandboxed on modern macOS, so a font installed by double-clicking lands in
~/Library/Containers/com.apple.FontBook/Data/Library/Fonts, not~/Library/Fonts. CoreText apps (Figma) see it; fontdb's directory scan does not. The text engine now scans the container directory too.#88 — Font menu should not start from the beginning
Dropdowns now open scrolled so the current value sits at the top of the list. One shared
ScrollHandleserves every dropdown (only one popup can be open at a time), reset on open/close so it scrolls once per opening and the list is then the user's to scroll. This applies to all dropdowns — blend modes benefit too.#87 — Font names should use the font itself
The font menu renders each family name in the typeface it names, via a
font_dropdownvariant of the shared dropdown. Families the window's text system can't resolve fall back to the UI font.Verified: full workspace test suite passes; native release build and
wasm32-unknown-unknowncheck both clean; all three UI behaviours exercised headlessly under Xvfb/lavapipe (font rows render in their own faces; reopening the menu shows the picked family highlighted at the top).Fixes #86
Fixes #87
Fixes #88
Fixes #89
🤖 Generated with Claude Code