From 0baf04eb74558cf1422e25d99cd806f771609df3 Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Tue, 27 Sep 2022 11:47:39 -0500 Subject: [PATCH] Merge branch 'dev' into QuickSizeAdjust & Work around dotnet/wpf#6792 --- Flow.Launcher.Plugin/Result.cs | 11 +++ Flow.Launcher/Flow.Launcher.csproj | 10 +++ Flow.Launcher/ReportWindow.xaml.cs | 1 - Flow.Launcher/ResultListBox.xaml | 6 +- Flow.Launcher/Themes/Base.xaml | 15 ++++ .../Search/ResultManager.cs | 88 ++++++++++++++++++- .../Search/SearchManager.cs | 9 +- .../Search/WindowsIndex/IndexSearch.cs | 6 +- global.json | 4 +- 9 files changed, 141 insertions(+), 9 deletions(-) diff --git a/Flow.Launcher.Plugin/Result.cs b/Flow.Launcher.Plugin/Result.cs index 35c491d35f8..13639546709 100644 --- a/Flow.Launcher.Plugin/Result.cs +++ b/Flow.Launcher.Plugin/Result.cs @@ -197,5 +197,16 @@ public ValueTask ExecuteAsync(ActionContext context) { return AsyncAction?.Invoke(context) ?? ValueTask.FromResult(Action?.Invoke(context) ?? false); } + + /// + /// Progress bar display. Providing an int value between 0-100 will trigger the progress bar to be displayed on the result + /// + public int? ProgressBar { get; set; } + + /// + /// Optionally set the color of the progress bar + /// + /// #26a0da (blue) + public string ProgressBarColor { get; set; } = "#26a0da"; } } diff --git a/Flow.Launcher/Flow.Launcher.csproj b/Flow.Launcher/Flow.Launcher.csproj index 0db1915c50f..813a44527be 100644 --- a/Flow.Launcher/Flow.Launcher.csproj +++ b/Flow.Launcher/Flow.Launcher.csproj @@ -115,4 +115,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Flow.Launcher/ReportWindow.xaml.cs b/Flow.Launcher/ReportWindow.xaml.cs index 72c69d74d17..4899edc1463 100644 --- a/Flow.Launcher/ReportWindow.xaml.cs +++ b/Flow.Launcher/ReportWindow.xaml.cs @@ -77,7 +77,6 @@ private Paragraph Hyperlink(string textBeforeUrl, string url) }; link.Inlines.Add(url); link.NavigateUri = new Uri(url); - link.RequestNavigate += (s, e) => SearchWeb.OpenInBrowserTab(e.Uri.ToString()); link.Click += (s, e) => SearchWeb.OpenInBrowserTab(url); paragraph.Inlines.Add(textBeforeUrl); diff --git a/Flow.Launcher/ResultListBox.xaml b/Flow.Launcher/ResultListBox.xaml index f7e82005008..2c78f9babbf 100644 --- a/Flow.Launcher/ResultListBox.xaml +++ b/Flow.Launcher/ResultListBox.xaml @@ -111,7 +111,11 @@ - + + +