Skip to content

Commit 9b65081

Browse files
authored
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`
1 parent da5d2fc commit 9b65081

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/ui/ui_material.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Demonstrates the use of [`UiMaterials`](UiMaterial) and how to change material values
22
3-
use bevy::{color::palettes::css::RED, prelude::*, reflect::TypePath, render::render_resource::*};
3+
use bevy::{prelude::*, reflect::TypePath, render::render_resource::*};
44

55
/// This example uses a shader source file from the assets subdirectory
66
const SHADER_ASSET_PATH: &str = "shaders/custom_ui_material.wgsl";
@@ -46,7 +46,6 @@ fn setup(
4646
border: UiRect::all(Val::Px(10.)),
4747
..default()
4848
},
49-
BackgroundColor(RED.into()),
5049
));
5150
});
5251
}

0 commit comments

Comments
 (0)