remove background color from UI example image (#12306)
# Objective - After https://github.com/bevyengine/bevy/pull/11165, example `ui` is not pretty as it displays the Bevy logo on a white background, with a comment that is now wrong ## Solution - Remove the background color
This commit is contained in:
parent
bb02e6ac43
commit
9a6fc76148
@ -283,8 +283,6 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
|
|||||||
margin: UiRect::top(Val::VMin(5.)),
|
margin: UiRect::top(Val::VMin(5.)),
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
// a `NodeBundle` is transparent by default, so to see the image we have to its color to `WHITE`
|
|
||||||
background_color: Color::WHITE.into(),
|
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
UiImage::new(asset_server.load("branding/bevy_logo_dark_big.png")),
|
UiImage::new(asset_server.load("branding/bevy_logo_dark_big.png")),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user