From e30af374c9854c60c5fba55a9273d54d4b5e6665 Mon Sep 17 00:00:00 2001 From: DB p Date: Mon, 22 Nov 2021 14:18:14 +0900 Subject: [PATCH] Adjust Delay Duration to fix blink --- Flow.Launcher/MainWindow.xaml.cs | 4 ++-- Flow.Launcher/ViewModel/MainViewModel.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 50b4efc2b..b1a23a79c 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -274,14 +274,14 @@ namespace Flow.Launcher { From = 0, To = 1, - Duration = TimeSpan.FromSeconds(0.2), + Duration = TimeSpan.FromSeconds(0.18), FillBehavior = FillBehavior.Stop }; var da2 = new DoubleAnimation { From = Top + 10, To = Top, - Duration = TimeSpan.FromSeconds(0.2), + Duration = TimeSpan.FromSeconds(0.18), FillBehavior = FillBehavior.Stop }; var da3 = new DoubleAnimation diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index ab351c3d7..c0074f1a9 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -720,7 +720,7 @@ namespace Flow.Launcher.ViewModel MainWindowOpacity = 0; if (_settings.UseAnimation) { - await Task.Delay(30); + await Task.Delay(50); } LastQuerySelected = true; break; @@ -728,7 +728,7 @@ namespace Flow.Launcher.ViewModel MainWindowOpacity = 0; if (_settings.UseAnimation) { - await Task.Delay(30); + await Task.Delay(50); } LastQuerySelected = false; break;