From e94c4ee6fca1883e411c4260356e1b97dd20f18f Mon Sep 17 00:00:00 2001 From: ema Date: Tue, 21 Apr 2026 02:37:22 +0800 Subject: [PATCH] Fine-tune acrylic tint opacity and color values --- QuickLook/ViewerWindow.xaml.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/QuickLook/ViewerWindow.xaml.cs b/QuickLook/ViewerWindow.xaml.cs index abde265..0e482b7 100644 --- a/QuickLook/ViewerWindow.xaml.cs +++ b/QuickLook/ViewerWindow.xaml.cs @@ -407,9 +407,9 @@ public partial class ViewerWindow : Window private static Brush GetAcrylic10TintLuminosityOpacityBackground(bool isDarkTheme) { var acrylicTintLuminosityOpacity = 0.44d; - var t = acrylicTintLuminosityOpacity * (isDarkTheme ? 0.55d : 1.25d); - var v = isDarkTheme ? (byte)25 : (byte)225; - var brush = new SolidColorBrush(Color.FromArgb((byte)(t * 255d * 0.6d), v, v, v)); + var t = acrylicTintLuminosityOpacity * (isDarkTheme ? 0.6d : 1.25d); + var v = isDarkTheme ? (byte)0x22 : (byte)0xE1; + var brush = new SolidColorBrush(Color.FromArgb((byte)Math.Round(t * 255d * 0.6d), v, v, v)); brush.Freeze(); return brush; }