Fix textviewer highlighting

This commit is contained in:
Paddy Xu
2022-11-23 20:38:53 +01:00
parent b80c264cdf
commit 7b5b01a7b4
5 changed files with 9 additions and 7 deletions

View File

@@ -45,8 +45,9 @@ namespace QuickLook.Plugin.TextViewer
{
_context = context;
SetResourceReference(Control.ForegroundProperty, "WindowTextForeground");
Background = Brushes.Transparent;
Background = OSThemeHelper.AppsUseDarkTheme()
? new SolidColorBrush(Color.FromArgb(150, 255, 255, 255))
: Brushes.Transparent;
FontSize = 14;
ShowLineNumbers = true;
WordWrap = true;