Removed toolbar animation

This commit is contained in:
Jaex 2017-10-29 17:24:27 +03:00
parent 97b4b343b0
commit 2faaf4d981
2 changed files with 0 additions and 24 deletions

View file

@ -86,8 +86,6 @@ public Color CurrentColor
internal bool IsClosing { get; private set; }
internal IContainer components = null;
internal OpacityAnimation toolbarAnimation;
internal Rectangle toolbarAnimationRectangle;
internal int toolbarHeight;
private InputManager InputManager => ShapeManager.InputManager;
@ -765,17 +763,6 @@ private void Draw(Graphics g)
{
DrawTextAnimation(g, ShapeManager.MenuTextAnimation);
}
// Draw animation under toolbar on startup
if (Config.EnableAnimations && toolbarAnimation != null && toolbarAnimation.IsActive)
{
toolbarAnimation.Update();
using (Pen toolbarAnimationPen = new Pen(Color.FromArgb((int)(toolbarAnimation.Opacity * 255), 5, 100, 255), 3) { Alignment = PenAlignment.Inset })
{
g.DrawRectangleProper(toolbarAnimationPen, toolbarAnimationRectangle.Offset(3));
}
}
}
internal void DrawRegionArea(Graphics g, Rectangle rect, bool isAnimated)

View file

@ -904,17 +904,6 @@ internal void CreateToolbar()
private void MenuForm_Shown(object sender, EventArgs e)
{
form.toolbarHeight = menuForm.Height;
form.toolbarAnimationRectangle = form.RectangleToClient(menuForm.Bounds);
form.toolbarAnimation = new OpacityAnimation()
{
FadeInDuration = TimeSpan.FromMilliseconds(500),
Duration = TimeSpan.FromMilliseconds(500),
FadeOutDuration = TimeSpan.FromMilliseconds(500)
};
form.toolbarAnimation.Start();
form.CenterCanvas();
}