mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-07 02:00:21 +08:00
Use theme-dependent gray for acrylic tint
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user