Skip to content

Commit

Permalink
Fixed an issue with system theme no longer working on Windows 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Peyronnet committed Dec 11, 2021
1 parent f8aea8a commit 517009b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion InternetTest/InternetTest/Classes/Global.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public static void ChangeTheme()

public static bool IsSystemThemeDark()
{
if (Env.WindowsVersion != WindowsVersion.Windows10)
if (Env.WindowsVersion != WindowsVersion.Windows10 && Env.WindowsVersion != WindowsVersion.Windows11)
{
return false; // Avoid errors on older OSs
}
Expand Down

0 comments on commit 517009b

Please sign in to comment.