From 201dd62a74f94890079c9830605e13204929dabf Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Wed, 3 Jul 2024 06:51:44 -0700 Subject: [PATCH] Fix border color in `ui_texture_slice` and `ui_texture_atlas_slice` examples. (#14121) # Objective Fixes #14120 `ui_texture_slice` and `ui_texture_atlas_slice` were working as intended, so undo the changes. ## Solution Partially revert https://github.com/bevyengine/bevy/pull/14115 for `ui_texture_slice` and `ui_texture_atlas_slice`. ## Testing Ran those two examples, confirmed the border color is the thing that changes when buttons are hovered. --- examples/ui/ui_texture_atlas_slice.rs | 15 +++++---------- examples/ui/ui_texture_slice.rs | 10 +++++----- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/examples/ui/ui_texture_atlas_slice.rs b/examples/ui/ui_texture_atlas_slice.rs index 2ff2dd03c0..77901211b7 100644 --- a/examples/ui/ui_texture_atlas_slice.rs +++ b/examples/ui/ui_texture_atlas_slice.rs @@ -19,31 +19,26 @@ fn main() { fn button_system( mut interaction_query: Query< - ( - &Interaction, - &mut TextureAtlas, - &Children, - &mut BackgroundColor, - ), + (&Interaction, &mut TextureAtlas, &Children, &mut UiImage), (Changed, With