diff --git a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Controls/DropDownButton.xaml b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Controls/DropDownButton.xaml new file mode 100644 index 0000000..325b648 --- /dev/null +++ b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Controls/DropDownButton.xaml @@ -0,0 +1,70 @@ + + + + + + + + + \ No newline at end of file diff --git a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Controls/SearchPanel.xaml b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Controls/SearchPanel.xaml new file mode 100644 index 0000000..a7b948d --- /dev/null +++ b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Controls/SearchPanel.xaml @@ -0,0 +1,110 @@ + + + + \ No newline at end of file diff --git a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Plugin.cs b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Plugin.cs index 73ab3a8..f94b2c7 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Plugin.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Plugin.cs @@ -49,6 +49,20 @@ public class Plugin : IViewer _hlmLight = GetHighlightingManager(Themes.Light, "Light"); _hlmDark = GetHighlightingManager(Themes.Dark, "Dark"); + + // Implementation of the Search Panel Styled with Fluent Theme + { + var groupDictionary = new ResourceDictionary(); + groupDictionary.MergedDictionaries.Add(new ResourceDictionary() + { + Source = new Uri("pack://application:,,,/QuickLook.Plugin.TextViewer;component/Controls/DropDownButton.xaml", UriKind.Absolute) + }); + groupDictionary.MergedDictionaries.Add(new ResourceDictionary() + { + Source = new Uri("pack://application:,,,/QuickLook.Plugin.TextViewer;component/Controls/SearchPanel.xaml", UriKind.Absolute) + }); + Application.Current.Resources.MergedDictionaries.Add(groupDictionary); + } } public bool CanHandle(string path) diff --git a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/QuickLook.Plugin.TextViewer.csproj b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/QuickLook.Plugin.TextViewer.csproj index 5415b39..7aacf43 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/QuickLook.Plugin.TextViewer.csproj +++ b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/QuickLook.Plugin.TextViewer.csproj @@ -59,7 +59,7 @@ - +