From 1df16035656afe2e7f26f1ea63b08007a4286b72 Mon Sep 17 00:00:00 2001 From: ema Date: Tue, 21 Apr 2026 02:17:27 +0800 Subject: [PATCH] Use theme-dependent gray for acrylic tint --- QuickLook/ViewerWindow.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/QuickLook/ViewerWindow.xaml.cs b/QuickLook/ViewerWindow.xaml.cs index 98dbe0f..abde265 100644 --- a/QuickLook/ViewerWindow.xaml.cs +++ b/QuickLook/ViewerWindow.xaml.cs @@ -408,7 +408,8 @@ public partial class ViewerWindow : Window { var acrylicTintLuminosityOpacity = 0.44d; var t = acrylicTintLuminosityOpacity * (isDarkTheme ? 0.55d : 1.25d); - var brush = new SolidColorBrush(Color.FromArgb((byte)(t * 255d * 0.6d), 255, 255, 255)); + var v = isDarkTheme ? (byte)25 : (byte)225; + var brush = new SolidColorBrush(Color.FromArgb((byte)(t * 255d * 0.6d), v, v, v)); brush.Freeze(); return brush; }