flyingpie / windows-terminal-quake

Enable Quake-style dropdown for (almost) any application.
https://wtq.flyingpie.nl
MIT License
598 stars 39 forks source link

[feat-request] configurable stepDelay/stepCount #50

Closed rmobis closed 3 years ago

rmobis commented 3 years ago

It would be nice to be able to customize stepDelay and/or stepCount (https://github.com/flyingpie/windows-terminal-quake/blob/master/windows-terminal-quake/Toggler.cs#L64-L65). The main motivation would be to lower the delay/increase the count, as that would provide a much smoother animation.

However, I did some research (stack overflow, mdsn) and Task.Delay probably wouldn't work for a much shorter delay (anything below 15ms would be moot).

If there's any interest, I could look for alternative solutions and probably even draft a PR. Let me know. =D

flyingpie commented 3 years ago

@rmobis Thank you for the feedback, this will be part of the next release.

Look for the "ToggleAnimationFrameTimeMs" setting:

{
    // How long each frame in the toggle animation takes in milliseconds.
    // The lower this value, the smoother the animation, though values lower than 15 are not supported and will result in a toggle taking more than the configured ToggleDurationMs.
    "ToggleAnimationFrameTimeMs": 25
}