From ecf83f92c561d9cead038ab50997a02cf6b9f6d3 Mon Sep 17 00:00:00 2001 From: Khiro95 <126525910+Khiro95@users.noreply.github.com> Date: Thu, 25 Apr 2024 20:40:21 +0100 Subject: [PATCH] Make SecondWindows fully transparent --- src/libs/H.NotifyIcon/Core/WindowUtilities.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/H.NotifyIcon/Core/WindowUtilities.cs b/src/libs/H.NotifyIcon/Core/WindowUtilities.cs index f85c7f6..29dcc16 100644 --- a/src/libs/H.NotifyIcon/Core/WindowUtilities.cs +++ b/src/libs/H.NotifyIcon/Core/WindowUtilities.cs @@ -156,7 +156,7 @@ public static unsafe void MakeTransparent(nint hWndHandle) _ = PInvoke.SetLayeredWindowAttributes( hwnd: hWnd, crKey: new COLORREF((uint)ToWin32(System.Drawing.Color.Black)), - bAlpha: 255, + bAlpha: 0, dwFlags: LAYERED_WINDOW_ATTRIBUTES_FLAGS.LWA_COLORKEY | LAYERED_WINDOW_ATTRIBUTES_FLAGS.LWA_ALPHA).EnsureNonZero(); }