Skip to content

Commit

Permalink
Add BorderRadius field to ImageBundle (bevyengine#14457)
Browse files Browse the repository at this point in the history
# Objective

- Fixes bevyengine#14453

## Solution

- Added BorderRadius to ImageBundle

## Testing

- Did you test these changes? If so, how?

- Tested on a random picture I found in the examples and it added a
border radius.

- Are there any parts that need more testing?

- I don't fink so.

- How can other people (reviewers) test your changes? Is there anything
specific they need to know?

- Apply a border radius to a random picture.
  • Loading branch information
BlakeBedford authored Jul 24, 2024
1 parent e9e29d6 commit eabb58a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/bevy_ui/src/node_bundles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ pub struct ImageBundle {
pub image: UiImage,
/// The color of the background that will fill the containing node.
pub background_color: BackgroundColor,
/// The border radius of the node
pub border_radius: BorderRadius,
/// The size of the image in pixels
///
/// This component is set automatically
Expand Down

0 comments on commit eabb58a

Please sign in to comment.