In Textviewer when OS is in dark mode and AllowDarkTheme is enabled in config file use dark background and light text (no syntax highlighting). (#1238)

With AllowDarkTheme disabled (default) use light background and light mode syntax highlighting.
This commit is contained in:
Frank Becker
2022-12-12 06:45:25 -08:00
committed by GitHub
parent 7f7d9805f1
commit 47540eef95
2 changed files with 13 additions and 3 deletions

View File

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