making the current_slide pop up

This commit is contained in:
Chris Cochrun 2024-12-11 22:46:38 -06:00
parent 67b19fe214
commit 2c5b28578c

View file

@ -389,7 +389,10 @@ impl Presenter {
style.shadow = Shadow {
color: Color::BLACK,
offset: {
if hovered {
if self.current_slide_index as i32 == slide_id
{
Vector::new(5.0, 5.0)
} else if hovered {
Vector::new(5.0, 5.0)
} else {
Vector::new(0.0, 0.0)