*forgot to stage files on last commit

This commit is contained in:
Boris Makogonyuk
2015-11-10 06:36:08 +01:00
parent 724cb0787d
commit 287e15fddc
9 changed files with 33 additions and 10 deletions

View File

@@ -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);