Skip to content

Bump gfx so SVGIcon draws stroke packs correctly - #433

Merged
tannevaled merged 2 commits into
mainfrom
gfx-root-attrs
Aug 30, 2026
Merged

Bump gfx so SVGIcon draws stroke packs correctly#433
tannevaled merged 2 commits into
mainfrom
gfx-root-attrs

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

gfx's SVG rasteriser never read the root <svg>'s own presentation attributes, so a pack that declares fill="none" once on the root had every closed path filled. Iconoir's magnifier came through SVGIcon as a solid disc — the open handle path still stroked, so it looked deliberate rather than broken.

Fixed in go-gfx/gfx#33, released as v0.18.0.

Verified here through the seam consumers actually use — SVGIcon onto a real PixelPainter, not gfx directly: the magnifier is a stroked loupe again, 8.8% dark coverage in its box where the filled disc was 40%.

This unblocks the icon ports held as drafts in go-reddit/reader, go-xrkit/player and go-pkgx/registry-viewer.

Only go.mod/go.sum change. gofmt clean, build, vet, tests pass.

🤖 Generated with Claude Code

tannevaled and others added 2 commits August 30, 2026 18:32
gfx's SVG rasteriser never read the root <svg>'s own presentation attributes, so
a pack that declares fill="none" once on the root had every closed path filled.
Iconoir's magnifier came through SVGIcon as a solid disc; the open handle path
still stroked, so it looked deliberate.

Fixed in go-gfx/gfx#33 and released as v0.18.0. Verified here through the seam
consumers actually use — SVGIcon onto a real PixelPainter — not through gfx
directly: the magnifier is a stroked loupe again, 8.8% dark coverage in its box
where the filled disc was 40%.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
rougelex carries 'replace github.com/go-widgets/toolkit => ../', so it builds
against the parent working copy — which means any change to the parent's
dependencies leaves its own go.mod stale, and 'go vet' refuses with 'updates to
go.mod needed'. Bumping gfx in the parent did exactly that.

Caught by CI rather than locally: I had run build, vet and tests on the parent
module but not the nested one, and not the coverage gate.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@tannevaled
tannevaled merged commit 1229688 into main Aug 30, 2026
1 check passed
@tannevaled
tannevaled deleted the gfx-root-attrs branch August 30, 2026 16:46
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