From 0dd57be793916b752bceeec7fcb173b40746c2be Mon Sep 17 00:00:00 2001 From: EaZy Date: Mon, 22 Jun 2026 12:41:10 +0100 Subject: [PATCH 1/2] Better Dark Mode & Image Viewer Toggle Fixes Overview This pull request introduces improved dark mode support by adding a tri-state theme cycle option to the tray menu, and fixes an issue with the Image Viewer background toggle affecting the global application theme. Changes: 1. Global Theme Tray Cycle: Added AppTheme option in SettingHelper and SetTheme method in App.xaml.cs; added tray menu item in TrayIconManager.cs to cycle Auto/Light/Dark with dynamic label. 2. Image Viewer Background Toggle Fix: Decoupled Image Viewer canvas background from global Theme; added CanvasTheme property and saved LastCanvasTheme; updated bindings in ImagePanel.xaml. Files modified: QuickLook/App.xaml.cs; QuickLook/TrayIconManager.cs; QuickLook.Plugin.ImageViewer/ImagePanel.xaml.cs; QuickLook.Plugin.ImageViewer/ImagePanel.xaml How to test: Run QuickLook, use tray menu to cycle theme, open image and toggle background; canvas background should change without affecting global UI. --- .../ImagePanel.xaml | 6 +++--- .../ImagePanel.xaml.cs | 18 +++++++++++++--- QuickLook/App.xaml.cs | 21 +++++++++++++++++-- QuickLook/TrayIconManager.cs | 14 +++++++++++++ 4 files changed, 51 insertions(+), 8 deletions(-) diff --git a/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml b/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml index e177a8509..fedc4a78c 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml +++ b/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml @@ -1,4 +1,4 @@ -