From 9b65081171a2bc842c0277137d0a4ab215123ded Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Sat, 19 Oct 2024 18:08:17 -0700 Subject: [PATCH] Fix red background in `ui_material` example (#15978) # Objective The `ui_material` recently gained a harsh red background via #15898. I'm assuming this was added for testing and forgotten about. https://pixel-eagle.com/project/b25a040a-a980-4602-b90c-d480ab84076d/run/5268/compare/5259?screenshot=UI%20(User%20Interface)/ui_material.png ## Solution Remove the red background ## Testing `cargo run --example ui_material` --- examples/ui/ui_material.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/ui/ui_material.rs b/examples/ui/ui_material.rs index 849cdba687..51752f2557 100644 --- a/examples/ui/ui_material.rs +++ b/examples/ui/ui_material.rs @@ -1,6 +1,6 @@ //! Demonstrates the use of [`UiMaterials`](UiMaterial) and how to change material values -use bevy::{color::palettes::css::RED, prelude::*, reflect::TypePath, render::render_resource::*}; +use bevy::{prelude::*, reflect::TypePath, render::render_resource::*}; /// This example uses a shader source file from the assets subdirectory const SHADER_ASSET_PATH: &str = "shaders/custom_ui_material.wgsl"; @@ -46,7 +46,6 @@ fn setup( border: UiRect::all(Val::Px(10.)), ..default() }, - BackgroundColor(RED.into()), )); }); }