Skip to content

Conversation

@ickshonpe
Copy link
Contributor

@ickshonpe ickshonpe commented Nov 8, 2025

Objective

There was discussion in the Next Generation Scene/UI about adding BackgroundColor to Node. I don't know about that, but it reminded me that border radius isn't part of Node. All the other properties that affect a Node's shape are there, border radius should be there too.

Solution

  • Add a border_radius: BorderRadius field.
  • Remove the Component derive from BorderRadius.

Testing

The internal changes are relatively trivial. There could be mistakes in the examples though, because of the large number of changes.

* Instead add a `border_radius: BorderRadius` field to `Node`.
@hukasu hukasu added A-UI Graphical user interfaces, styles, layouts, and widgets S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged M-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide labels Nov 8, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2025

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 added D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward and removed S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged labels Nov 9, 2025
@alice-i-cecile
Copy link
Member

@rossleonardy, could I get your review here please?

@alice-i-cecile alice-i-cecile added this to the 0.18 milestone Nov 10, 2025
Copy link
Contributor

@rossleonardy rossleonardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pleased with this outcome !

@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Nov 11, 2025
@mockersf mockersf added this pull request to the merge queue Nov 13, 2025
Merged via the queue into bevyengine:main with commit a37c14c Nov 14, 2025
36 checks passed
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Nov 15, 2025
# Objective

There was discussion in the `Next Generation Scene/UI` about adding
`BackgroundColor` to `Node`. I don't know about that, but it reminded me
that border radius isn't part of `Node`. All the other properties that
affect a `Node`'s shape are there, border radius should be there too.

## Solution

* Add a `border_radius: BorderRadius` field.
* Remove the `Component` derive from `BorderRadius`.

## Testing

The internal changes are relatively trivial. There could be mistakes in
the examples though, because of the large number of changes.
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Nov 16, 2025
# Objective

There was discussion in the `Next Generation Scene/UI` about adding
`BackgroundColor` to `Node`. I don't know about that, but it reminded me
that border radius isn't part of `Node`. All the other properties that
affect a `Node`'s shape are there, border radius should be there too.

## Solution

* Add a `border_radius: BorderRadius` field.
* Remove the `Component` derive from `BorderRadius`.

## Testing

The internal changes are relatively trivial. There could be mistakes in
the examples though, because of the large number of changes.
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Nov 16, 2025
# Objective

There was discussion in the `Next Generation Scene/UI` about adding
`BackgroundColor` to `Node`. I don't know about that, but it reminded me
that border radius isn't part of `Node`. All the other properties that
affect a `Node`'s shape are there, border radius should be there too.

## Solution

* Add a `border_radius: BorderRadius` field.
* Remove the `Component` derive from `BorderRadius`.

## Testing

The internal changes are relatively trivial. There could be mistakes in
the examples though, because of the large number of changes.
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Nov 18, 2025
# Objective

There was discussion in the `Next Generation Scene/UI` about adding
`BackgroundColor` to `Node`. I don't know about that, but it reminded me
that border radius isn't part of `Node`. All the other properties that
affect a `Node`'s shape are there, border radius should be there too.

## Solution

* Add a `border_radius: BorderRadius` field.
* Remove the `Component` derive from `BorderRadius`.

## Testing

The internal changes are relatively trivial. There could be mistakes in
the examples though, because of the large number of changes.
beicause pushed a commit to beicause/bevy that referenced this pull request Nov 26, 2025
# Objective

There was discussion in the `Next Generation Scene/UI` about adding
`BackgroundColor` to `Node`. I don't know about that, but it reminded me
that border radius isn't part of `Node`. All the other properties that
affect a `Node`'s shape are there, border radius should be there too.

## Solution

* Add a `border_radius: BorderRadius` field.
* Remove the `Component` derive from `BorderRadius`.

## Testing

The internal changes are relatively trivial. There could be mistakes in
the examples though, because of the large number of changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-UI Graphical user interfaces, styles, layouts, and widgets D-Straightforward Simple bug fixes and API improvements, docs, test and examples M-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants