making the current_slide pop up
This commit is contained in:
parent
67b19fe214
commit
2c5b28578c
1 changed files with 4 additions and 1 deletions
|
@ -389,7 +389,10 @@ impl Presenter {
|
||||||
style.shadow = Shadow {
|
style.shadow = Shadow {
|
||||||
color: Color::BLACK,
|
color: Color::BLACK,
|
||||||
offset: {
|
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)
|
Vector::new(5.0, 5.0)
|
||||||
} else {
|
} else {
|
||||||
Vector::new(0.0, 0.0)
|
Vector::new(0.0, 0.0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue