From aed3c10aa418e3e3e331bae95e793b2476200a06 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 12 Aug 2021 20:08:49 +0800 Subject: [PATCH] style: change searchbar anim time to 0.1 second to avoid flicking --- src/Views/Widgets/Histories.xaml.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Views/Widgets/Histories.xaml.cs b/src/Views/Widgets/Histories.xaml.cs index bb2718a8..35475c62 100644 --- a/src/Views/Widgets/Histories.xaml.cs +++ b/src/Views/Widgets/Histories.xaml.cs @@ -167,13 +167,13 @@ namespace SourceGit.Views.Widgets { ThicknessAnimation anim = new ThicknessAnimation(); anim.From = new Thickness(0); anim.To = new Thickness(0, -32, 0, 0); - anim.Duration = TimeSpan.FromSeconds(.3); + anim.Duration = TimeSpan.FromSeconds(.1); searchBar.BeginAnimation(MarginProperty, anim); } else { ThicknessAnimation anim = new ThicknessAnimation(); anim.From = new Thickness(0, -32, 0, 0); anim.To = new Thickness(0); - anim.Duration = TimeSpan.FromSeconds(.3); + anim.Duration = TimeSpan.FromSeconds(.1); searchBar.BeginAnimation(MarginProperty, anim); txtSearch.Focus(); @@ -195,7 +195,7 @@ namespace SourceGit.Views.Widgets { ThicknessAnimation anim = new ThicknessAnimation(); anim.From = new Thickness(0); anim.To = new Thickness(0, -32, 0, 0); - anim.Duration = TimeSpan.FromSeconds(.3); + anim.Duration = TimeSpan.FromSeconds(.1); searchBar.BeginAnimation(MarginProperty, anim); }