Skip to content

Commit

Permalink
Merge pull request #4 from HandsomeMichael/zdev2
Browse files Browse the repository at this point in the history
set timer
  • Loading branch information
HandsomeMichael authored Sep 20, 2024
2 parents a260ee3 + 7d2bc4b commit 0a4e5d0
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 0a4e5d0

Please sign in to comment.