mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-21 03:41:30 +12:00
[Feature] Faster fading (#178), version 1.0.17.46
This commit is contained in:
parent
f4338c1c50
commit
7b526db87e
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ namespace SystemTrayMenu.UserInterface
|
|||
|
||||
public class Fading : IDisposable
|
||||
{
|
||||
private const int Interval60FPS = 10; // 100fps=>1s/100fps=~10ms
|
||||
private const int Interval100FPS = 10; // 100fps=>1s/100fps=~10ms
|
||||
|
||||
private const double StepIn = 0.20;
|
||||
private const double StepOut = 0.10;
|
||||
|
@ -27,7 +27,7 @@ namespace SystemTrayMenu.UserInterface
|
|||
|
||||
internal Fading()
|
||||
{
|
||||
timer.Interval = Interval60FPS;
|
||||
timer.Interval = Interval100FPS;
|
||||
timer.Tick += Tick;
|
||||
void Tick(object sender, EventArgs e)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue