mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-13 19:19:10 +00:00
Move resource dictionary initialization
This commit is contained in:
@@ -29,6 +29,7 @@ using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
@@ -42,6 +43,21 @@ public partial class TextViewerPanel : TextEditor, IDisposable
|
||||
|
||||
static TextViewerPanel()
|
||||
{
|
||||
// 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);
|
||||
}
|
||||
|
||||
// Initialize the Highlighting Theme Manager
|
||||
HighlightingThemeManager.Initialize();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user