Skip to content

Commit 76f6f9e

Browse files
committed
Use Color::srgb* instead of Color::rgb*
Addresses Bevy [12163](bevyengine/bevy#12163)
1 parent be6eab0 commit 76f6f9e

File tree

1 file changed

+2
-2
lines changed
  • crates/bevy_editor_pls_default_windows/src

1 file changed

+2
-2
lines changed

crates/bevy_editor_pls_default_windows/src/gizmos.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ impl EditorWindow for GizmoWindow {
119119
fn app_setup(app: &mut App) {
120120
let mut materials = app.world_mut().resource_mut::<Assets<StandardMaterial>>();
121121
let material_light = materials.add(StandardMaterial {
122-
base_color: Color::rgba_u8(222, 208, 103, 255),
122+
base_color: Color::srgba_u8(222, 208, 103, 255),
123123
unlit: true,
124124
fog_enabled: false,
125125
alpha_mode: AlphaMode::Add,
126126
..default()
127127
});
128128
let material_camera = materials.add(StandardMaterial {
129-
base_color: Color::rgb(1.0, 1.0, 1.0),
129+
base_color: Color::srgb(1.0, 1.0, 1.0),
130130
unlit: true,
131131
fog_enabled: false,
132132
alpha_mode: AlphaMode::Multiply,

0 commit comments

Comments
 (0)