mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
fixup
This commit is contained in:
@@ -15,7 +15,6 @@ namespace Wox.Core.Resource
|
|||||||
public class Theme : Resource
|
public class Theme : Resource
|
||||||
{
|
{
|
||||||
private static List<string> themeDirectories = new List<string>();
|
private static List<string> themeDirectories = new List<string>();
|
||||||
private static Version supportedAccentsVersion = new Version(6, 2);
|
|
||||||
public Settings Settings { get; set; }
|
public Settings Settings { get; set; }
|
||||||
|
|
||||||
public Theme()
|
public Theme()
|
||||||
@@ -60,7 +59,7 @@ namespace Wox.Core.Resource
|
|||||||
|
|
||||||
// Exception of FindResource can't be cathed if global exception handle is set
|
// Exception of FindResource can't be cathed if global exception handle is set
|
||||||
var isBlur = Application.Current.TryFindResource("ThemeBlurEnabled");
|
var isBlur = Application.Current.TryFindResource("ThemeBlurEnabled");
|
||||||
if (isBlur is bool && Environment.OSVersion.Version >= supportedAccentsVersion)
|
if (isBlur is bool && Environment.OSVersion.Version >= new Version(6, 2))
|
||||||
{
|
{
|
||||||
SetBlurForWindow(Application.Current.MainWindow, (bool)isBlur);
|
SetBlurForWindow(Application.Current.MainWindow, (bool)isBlur);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user