From: Taran Nathan Date: Thu, 25 Jun 2026 16:38:26 +0000 (+0200) Subject: revert color on unhover, works X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=c5be22ae5eb87aae7c88794649b593601827a40c;p=asteroids.git revert color on unhover, works --- diff --git a/src/systems.rs b/src/systems.rs index e7e628d..4ce119d 100644 --- a/src/systems.rs +++ b/src/systems.rs @@ -418,9 +418,11 @@ pub fn button_quit( } Interaction::Hovered => { *border_color = - BorderColor::all(Color::srgb(166.0 / 255., 255. / 255., 196. / 255.)) + BorderColor::all(Color::srgb(166.0 / 255., 255. / 255., 196. / 255.)); + } + Interaction::None => { + *border_color = BorderColor::all(Color::WHITE); } - Interaction::None => (), } } }