Skip to content

Fix the four open font/eyedropper issues - #91

Merged
IAmJSD merged 5 commits into
mainfrom
t3code/fix-current-github-issues
Sep 1, 2026
Merged

IAmJSD merged 5 commits into
mainfrom
t3code/fix-current-github-issues

Conversation

@IAmJSD

@IAmJSD IAmJSD commented Sep 1, 2026 •

Copy link
Copy Markdown
Member

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 ScrollHandle serves 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_dropdown variant 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-unknown check 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

IAmJSD and others added 5 commits September 1, 2026 00:33
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]>
@IAmJSD
IAmJSD merged commit 0f03e42 into main Sep 1, 2026
4 checks passed
@IAmJSD
IAmJSD deleted the t3code/fix-current-github-issues branch September 1, 2026 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant