mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
*forgot to stage files on last commit
This commit is contained in:
@@ -121,13 +121,13 @@ namespace Wox.Helper
|
||||
}
|
||||
[DllImport("user32.dll")]
|
||||
internal static extern int SetWindowCompositionAttribute(IntPtr hwnd, ref WindowCompositionAttributeData data);
|
||||
public static void EnableBlur(Window wind)
|
||||
public static void SetWindowAccent(Window wind, int themeAccentMode)
|
||||
{
|
||||
if (themeAccentMode < 0 || themeAccentMode > 3)
|
||||
themeAccentMode = 0;
|
||||
var windowHelper = new WindowInteropHelper(wind);
|
||||
|
||||
var accent = new AccentPolicy();
|
||||
accent.AccentState = AccentState.ACCENT_ENABLE_BLURBEHIND;
|
||||
accent.GradientColor = 16711680;
|
||||
accent.AccentState = (AccentState) themeAccentMode;
|
||||
var accentStructSize = Marshal.SizeOf(accent);
|
||||
|
||||
var accentPtr = Marshal.AllocHGlobal(accentStructSize);
|
||||
|
||||
Reference in New Issue
Block a user