Skip to content

Commit

Permalink
set timer
Browse files Browse the repository at this point in the history
  • Loading branch information
zdev2 committed Sep 20, 2024
1 parent f7e478d commit 7d2bc4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public FullScreenImagePopUp()
this.Focus();

// Give users at least half a second to admire your fruit pictures before we ninja it away.
timer.Interval = 50; // Half a second sounds more reasonable
timer.Interval = 80; // Half a second sounds more reasonable
timer.Tick += NewTick;

timer.Start();
Expand Down Expand Up @@ -83,7 +83,7 @@ private void OnKeyPress(object? sender, KeyPressEventArgs e)
private void NewTick(object? sender, EventArgs e)
{
// Slow down cowboy, give it a fade out instead of just vanishing.
this.Opacity -= 0.1;
this.Opacity -= 0.05;

if (this.Opacity <= 0)
{
Expand Down

0 comments on commit 7d2bc4b

Please sign in to comment.