From 68b0a928b6c914bccc219be257565b0b2e72bc81 Mon Sep 17 00:00:00 2001 From: ema Date: Mon, 23 Jun 2025 01:26:09 +0800 Subject: [PATCH] Support light mode Lyric --- .../Syntax/Light/Lyric.xshd | 39 +++++++++++++++++++ QuickLook/TrayIconManager.cs | 2 +- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Light/Lyric.xshd diff --git a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Light/Lyric.xshd b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Light/Lyric.xshd new file mode 100644 index 0000000..3bf3691 --- /dev/null +++ b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Light/Lyric.xshd @@ -0,0 +1,39 @@ + + + + + + + + + + + : + + + + + + + , + + + + + + \{ + \} + + + \[ + \] + + + \b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)? + + + + + + + diff --git a/QuickLook/TrayIconManager.cs b/QuickLook/TrayIconManager.cs index 59314b1..ff5576c 100644 --- a/QuickLook/TrayIconManager.cs +++ b/QuickLook/TrayIconManager.cs @@ -44,7 +44,7 @@ internal class TrayIconManager : IDisposable }) { Enabled = !App.IsUWP }; - private string _attr = App.IsUWP ? $" (UWP{(App.IsSandBox ? string.Empty : "-SandBox")})" : string.Empty; + private readonly string _attr = App.IsUWP ? $" (UWP{(App.IsSandBox ? string.Empty : "-SandBox")})" : string.Empty; private TrayIconManager() {