Skip to content

Commit

Permalink
Correctly clear ring animations on SignupFail (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
valff authored Apr 16, 2024
1 parent edb2c23 commit 711af5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions orb-ui/src/engine/pearl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,9 +617,10 @@ impl EventHandler for Runner<PEARL_RING_LED_COUNT, PEARL_CENTER_LED_COUNT> {
slider.set_progress(2.0, None);
}
self.stop_ring(LEVEL_FOREGROUND, false);
self.stop_ring(LEVEL_NOTICE, true);
self.stop_center(LEVEL_FOREGROUND, true);
self.set_ring(
LEVEL_BACKGROUND,
LEVEL_FOREGROUND,
ring::Idle::<PEARL_RING_LED_COUNT>::new(
Some(Argb::PEARL_USER_SIGNUP),
Some(1.0),
Expand All @@ -645,9 +646,10 @@ impl EventHandler for Runner<PEARL_RING_LED_COUNT, PEARL_CENTER_LED_COUNT> {
slider.set_progress(2.0, None);
}
self.stop_ring(LEVEL_FOREGROUND, false);
self.stop_ring(LEVEL_NOTICE, true);
self.stop_center(LEVEL_FOREGROUND, true);
self.set_ring(
LEVEL_BACKGROUND,
LEVEL_FOREGROUND,
ring::Idle::<PEARL_RING_LED_COUNT>::new(
Some(Argb::PEARL_USER_SIGNUP),
Some(3.0),
Expand Down

0 comments on commit 711af5a

Please sign in to comment.