Skip to content

Elliptical border radius support#24779

Open
ickshonpe wants to merge 17 commits into
bevyengine:mainfrom
ickshonpe:elliptical-radius
Open

Elliptical border radius support#24779
ickshonpe wants to merge 17 commits into
bevyengine:mainfrom
ickshonpe:elliptical-radius

Conversation

@ickshonpe

@ickshonpe ickshonpe commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Objective

Add elliptical border radius support.

Fixes #24782

Solution

Changes are relatively simple, mostly API related boiler plate.

  • BorderRadius fields are now Val2s.
  • ResolvedBorderRadius are now Vec2s.
  • Updated ComputedNode::contains_point, picking should respect the borders of elliptical nodes.
  • Updated the shaders. The geometry is not that much more complicated really, just in two dimensions.

Some of the examples and doc tests still need to be updated. The implementation is working though and ready for review.

Testing

New testbed scene:

cargo run --example testbed_ui -- ellipticalborderradius

Showcase

ellip

@ickshonpe ickshonpe force-pushed the elliptical-radius branch from a11ab49 to 4db663c Compare June 27, 2026 20:59
@ickshonpe ickshonpe added A-Rendering Drawing game state to the screen A-UI Graphical user interfaces, styles, layouts, and widgets M-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide M-Release-Note Work that should be called out in the blog due to impact D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes S-Needs-Review Needs reviewer attention (from anyone!) to move forward M-Deliberate-Rendering-Change An intentional change to how tests and examples are rendered labels Jun 27, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in Rendering Jun 27, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in UI Jun 27, 2026
@ickshonpe ickshonpe added the C-Feature A new feature, making something new possible label Jun 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

It looks like your PR has been selected for a highlight in the next release blog post, but you didn't provide a release note.

Please review the instructions for writing release notes, then expand or revise the content in the release notes directory to showcase your changes.

@github-actions

Copy link
Copy Markdown
Contributor

It looks like your PR is a breaking change, but you didn't provide a migration guide.

Please review the instructions for writing migration guides, then expand or revise the content in the migration guides directory to reflect your changes.

@ickshonpe ickshonpe mentioned this pull request Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen A-UI Graphical user interfaces, styles, layouts, and widgets C-Feature A new feature, making something new possible D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes M-Deliberate-Rendering-Change An intentional change to how tests and examples are rendered M-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide M-Release-Note Work that should be called out in the blog due to impact S-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

Status: Needs SME Triage
Status: Needs SME Triage

Development

Successfully merging this pull request may close these issues.

Elliptical border radius support

1 participant