]> git.taranathan.com Git - asteroids.git/commitdiff
revert color on unhover, works
authorTaran Nathan <moogoesmeow123@gmail.com>
Thu, 25 Jun 2026 16:38:26 +0000 (18:38 +0200)
committerTaran Nathan <moogoesmeow123@gmail.com>
Thu, 25 Jun 2026 17:10:06 +0000 (19:10 +0200)
src/systems.rs

index e7e628d3824b4dcae4f7ab33e3ba90e9129c756c..4ce119dd43bcc812052eb7085ca05fe318161c72 100644 (file)
@@ -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 => (),
         }
     }
 }