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