From 9a6fc76148dce740b4ea6d37a3138f2df8da3627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Tue, 5 Mar 2024 00:41:51 +0100 Subject: [PATCH] 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 --- examples/ui/ui.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/ui/ui.rs b/examples/ui/ui.rs index 14f541da67cba..a3e4c6d74227b 100644 --- a/examples/ui/ui.rs +++ b/examples/ui/ui.rs @@ -283,8 +283,6 @@ fn setup(mut commands: Commands, asset_server: Res) { 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")),