Skip to content

Backdrop: Radius for a rounded solid ground - #217

Merged
tannevaled merged 1 commit into
mainfrom
feat/backdrop-radius
Aug 16, 2026
Merged

Backdrop: Radius for a rounded solid ground#217
tannevaled merged 1 commit into
mainfrom
feat/backdrop-radius

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

What

Backdrop filled a plain rectangle, so a host wanting a rounded pill/chip/badge ground under an icon or label had to hand-draw a FillRoundRect.

Change

Radius int: > 0 fills a rounded rectangle (via the shared fillRoundRect helper); the zero value keeps the plain FillRect, byte-identical to before. A grid (Step > 0) is drawn as before.

Why

Lets a composed feed/browser draw its subscribe/status marker grounds as a Backdrop widget instead of a raw p.FillRoundRect — the last hand-drawn shape in the reader's newsgroup-browser row.

Tests / gates

  • New TestBackdropRadius: rounded fill leaves the sharp corner unpainted while filling the centre; the zero-radius fill still covers the corner.
  • 100% coverage; gofmt + go vet clean.

🤖 Generated with Claude Code

Backdrop filled a plain rectangle, so a host wanting a rounded pill/chip/badge
ground under an icon or label had to hand-draw a FillRoundRect. Radius > 0 now
fills a rounded rectangle (via the shared fillRoundRect helper); the zero value
keeps the plain FillRect, byte-identical to before. This lets a composed feed /
browser draw its subscribe/status markers as a Backdrop widget rather than a
raw painter call.

100% statement coverage; gofmt + vet clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit 9683519 into main Aug 16, 2026
1 check passed
@tannevaled
tannevaled deleted the feat/backdrop-radius branch August 16, 2026 18:43
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