Skip to content

Commit

Permalink
remove background color from UI example image (#12306)
Browse files Browse the repository at this point in the history
# Objective

- After #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
  • Loading branch information
mockersf authored Mar 4, 2024
1 parent bb02e6a commit 9a6fc76
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/ui/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,6 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
margin: UiRect::top(Val::VMin(5.)),
..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()
},
UiImage::new(asset_server.load("branding/bevy_logo_dark_big.png")),
Expand Down

0 comments on commit 9a6fc76

Please sign in to comment.