From deb4f203019d674b24be8cdf9194fd569c0e549d Mon Sep 17 00:00:00 2001 From: Yusyuriv Date: Sat, 8 Jun 2024 10:27:56 +0600 Subject: [PATCH] Explorer plugin native context menu: item type adjustments --- Flow.Launcher.Plugin/Result.cs | 5 ++--- Flow.Launcher.Plugin/ResultItemType.cs | 8 ++++++++ Flow.Launcher/ResultListBox.xaml | 2 +- Flow.Launcher/ViewModel/ResultViewModel.cs | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs | 2 +- 5 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 Flow.Launcher.Plugin/ResultItemType.cs diff --git a/Flow.Launcher.Plugin/Result.cs b/Flow.Launcher.Plugin/Result.cs index 5a84d2937..40cfed9f6 100644 --- a/Flow.Launcher.Plugin/Result.cs +++ b/Flow.Launcher.Plugin/Result.cs @@ -247,10 +247,9 @@ namespace Flow.Launcher.Plugin } /// - /// Item Height Style. Null, Small(for OS Context), Author + /// Item Height Style. Null, Small (for displaying the native context menu in the Explorer plugin), Author /// - public string ItemType { get; set; } - + public ResultItemType ItemType { get; set; } /// /// Progress bar display. Providing an int value between 0-100 will trigger the progress bar to be displayed on the result diff --git a/Flow.Launcher.Plugin/ResultItemType.cs b/Flow.Launcher.Plugin/ResultItemType.cs new file mode 100644 index 000000000..c015f20d6 --- /dev/null +++ b/Flow.Launcher.Plugin/ResultItemType.cs @@ -0,0 +1,8 @@ +namespace Flow.Launcher.Plugin; + +public enum ResultItemType +{ + Default, + Small, + Author +} diff --git a/Flow.Launcher/ResultListBox.xaml b/Flow.Launcher/ResultListBox.xaml index 45445f2ca..a94e71062 100644 --- a/Flow.Launcher/ResultListBox.xaml +++ b/Flow.Launcher/ResultListBox.xaml @@ -224,7 +224,7 @@