Disable blur when os is not supported

Releated: #330
This commit is contained in:
bao-qian 2015-11-29 12:47:04 +00:00
parent 8b8a303365
commit 547bd46bb3

View File

@ -168,10 +168,13 @@ namespace Wox.Core.Theme
/// Sets the blur for a window via SetWindowCompositionAttribute
/// </summary>
/// <param name="wind">window to blur</param>
/// <param name="status">true/false - on or off correspondingly</param>
private void SetBlurForWindow(Window wind, bool status)
/// <param name="isBlur">true/false - on or off correspondingly</param>
private void SetBlurForWindow(Window wind, bool isBlur)
{
SetWindowAccent(wind, status ? AccentState.ACCENT_ENABLE_BLURBEHIND : AccentState.ACCENT_DISABLED);
if (isBlur)
{
SetWindowAccent(wind, AccentState.ACCENT_ENABLE_BLURBEHIND);
}
}
private void SetWindowAccent(Window wind, AccentState themeAccentMode)