From 8f073c5b6fb5abdfe35008f4caf97060066efe0c Mon Sep 17 00:00:00 2001 From: Boris Makogonyuk Date: Wed, 20 Jul 2016 01:30:15 +0200 Subject: [PATCH] Hardcoded supported accents version 8 (Windows 8 is 6.2, Windows 7 is 6.1). (#817) Added check before applying blur. --- Wox.Core/Resource/Theme.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Wox.Core/Resource/Theme.cs b/Wox.Core/Resource/Theme.cs index 391456d2c7..3107b26de6 100644 --- a/Wox.Core/Resource/Theme.cs +++ b/Wox.Core/Resource/Theme.cs @@ -15,6 +15,7 @@ namespace Wox.Core.Resource public class Theme : Resource { private static List themeDirectories = new List(); + private static Version supportedAccentsVersion = new Version(6, 2); public Settings Settings { get; set; } public Theme() @@ -59,7 +60,7 @@ namespace Wox.Core.Resource // Exception of FindResource can't be cathed if global exception handle is set var isBlur = Application.Current.TryFindResource("ThemeBlurEnabled"); - if (isBlur is bool) + if (isBlur is bool && Environment.OSVersion.Version >= supportedAccentsVersion) { SetBlurForWindow(Application.Current.MainWindow, (bool)isBlur); }