Skip to content

Backdrop: Stroke/StrokeWidth for a bordered rounded ground - #219

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

Backdrop: Stroke/StrokeWidth for a bordered rounded ground#219
tannevaled merged 1 commit into
mainfrom
feat/backdrop-stroke

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

What

Backdrop.Radius gave a rounded fill but no border, so a bordered pill/chip still needed a hand-drawn StrokeRoundRect over the Backdrop.

Change

Stroke RGBA (non-zero alpha) outlines the optionally-rounded fill, StrokeWidth thick (< 1 treated as 1). The zero value draws no border, byte-identical. With Fill + Radius + Stroke, a Backdrop is a complete pill/chip ground — a host composites a Label/icon over it instead of hand-drawing fill+border.

Why

Lets the reader's remaining bordered pill (the preview A−/A+ zoom pills) become a Backdrop + Label instead of pt.FillRoundRect + pt.StrokeRoundRect.

Tests / gates

  • TestBackdropStroke: no Stroke → no border colour; Stroke set (width defaulted from < 1) → border painted, centre stays the fill.
  • 100% coverage; gofmt + go vet clean.

🤖 Generated with Claude Code

Backdrop.Radius gave a rounded fill but no border, so a bordered pill/chip still
needed a hand-drawn StrokeRoundRect over the fill. Stroke (non-zero alpha) now
outlines the optionally-rounded fill, StrokeWidth thick (< 1 treated as 1); the
zero value draws no border, byte-identical. With Radius + Fill + Stroke a
Backdrop is a complete pill/chip ground — a host composites a Label/icon over it
instead of hand-drawing fill+border.

100% statement coverage; gofmt + vet clean.

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