Skip to content

Commit eabb58a

Browse files
authored
Add BorderRadius field to ImageBundle (#14457)
# Objective - Fixes #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.
1 parent e9e29d6 commit eabb58a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/bevy_ui/src/node_bundles.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ pub struct ImageBundle {
8383
pub image: UiImage,
8484
/// The color of the background that will fill the containing node.
8585
pub background_color: BackgroundColor,
86+
/// The border radius of the node
87+
pub border_radius: BorderRadius,
8688
/// The size of the image in pixels
8789
///
8890
/// This component is set automatically

0 commit comments

Comments
 (0)