From 160bcc787c9b2f8dacafbf9dca7d7a6b2349386a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Mockers?= Date: Wed, 3 Jul 2024 03:13:55 +0200 Subject: [PATCH] fix remaining issues with background color in examples (#14115) # Objective - Fixes #14097 ## Solution - Switching the uses of `UiImage` in examples to `BackgroundColor` when needed --- examples/state/computed_states.rs | 17 ++++++++--------- examples/state/custom_transitions.rs | 11 +++++------ examples/state/states.rs | 10 +++++----- examples/state/sub_states.rs | 11 +++++------ examples/stress_tests/many_buttons.rs | 11 +++++++---- examples/ui/button.rs | 15 ++++++++++----- examples/ui/display_and_visibility.rs | 8 ++++---- examples/ui/size_constraints.rs | 6 +++--- examples/ui/ui_texture_atlas_slice.rs | 15 ++++++++++----- examples/ui/ui_texture_slice.rs | 10 +++++----- 10 files changed, 62 insertions(+), 52 deletions(-) diff --git a/examples/state/computed_states.rs b/examples/state/computed_states.rs index 9179cb884aaa6..aeae9612ed9dd 100644 --- a/examples/state/computed_states.rs +++ b/examples/state/computed_states.rs @@ -224,20 +224,19 @@ fn menu( tutorial_state: Res>, mut next_tutorial: ResMut>, mut interaction_query: Query< - (&Interaction, &mut UiImage, &MenuButton), + (&Interaction, &mut BackgroundColor, &MenuButton), (Changed, With