From 165cbb734c45e809008c623a682acabf08d72352 Mon Sep 17 00:00:00 2001 From: Dobin Park Date: Fri, 8 Oct 2021 03:22:56 +0900 Subject: [PATCH] Adjust Plugin List template --- Flow.Launcher/Languages/en.xaml | 2 +- Flow.Launcher/SettingWindow.xaml | 99 +++++++++++++++++++++++------ Flow.Launcher/SettingWindow.xaml.cs | 12 ++-- 3 files changed, 89 insertions(+), 24 deletions(-) diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index 4a9b92700..d0137de91 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -51,7 +51,7 @@ New action keyword: Current Priority: New Priority: - Priority: + Priority Plugin Directory Author Init time: diff --git a/Flow.Launcher/SettingWindow.xaml b/Flow.Launcher/SettingWindow.xaml index 7dc8829be..7f3ddc8e9 100644 --- a/Flow.Launcher/SettingWindow.xaml +++ b/Flow.Launcher/SettingWindow.xaml @@ -190,7 +190,8 @@ - + + @@ -418,8 +419,7 @@ - - + @@ -429,33 +429,93 @@ - - + Margin="0, 0, 0, 0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ui:ScrollViewerHelper.AutoHideScrollBars="{Binding AutoHideScrollBar, Mode=OneWay}" ItemContainerStyle="{StaticResource PluginList}" ScrollViewer.IsDeferredScrollingEnabled="True" ScrollViewer.CanContentScroll ="False" > - - - - - - + + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Flow.Launcher/SettingWindow.xaml.cs b/Flow.Launcher/SettingWindow.xaml.cs index aa341f431..08d0eb88a 100644 --- a/Flow.Launcher/SettingWindow.xaml.cs +++ b/Flow.Launcher/SettingWindow.xaml.cs @@ -184,13 +184,13 @@ namespace Flow.Launcher settings.PluginSettings.Plugins[id].Disabled = viewModel.SelectedPlugin.PluginPair.Metadata.Disabled; } - private void OnPluginPriorityClick(object sender, MouseButtonEventArgs e) + private void OnPluginPriorityClick(object sender, RoutedEventArgs e) { - if (e.ChangedButton == MouseButton.Left) - { + + PriorityChangeWindow priorityChangeWindow = new PriorityChangeWindow(viewModel.SelectedPlugin.PluginPair.Metadata.ID, settings, viewModel.SelectedPlugin); priorityChangeWindow.ShowDialog(); - } + } private void OnPluginActionKeywordsClick(object sender, MouseButtonEventArgs e) @@ -266,5 +266,9 @@ namespace Flow.Launcher FilesFolders.OpenPath(Path.Combine(DataLocation.DataDirectory(), Constant.Themes)); } + /*private void OnPluginPriorityClick(object sender, RoutedEventArgs e) + { + + }*/ } } \ No newline at end of file