Skip to content

Commit

Permalink
修复 20H2 系统运行报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
XIU2 committed Sep 16, 2020
1 parent f5fd5c5 commit 303a2f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.4.0")]
[assembly: AssemblyFileVersion("4.0.4.0")]
[assembly: AssemblyVersion("4.0.5.0")]
[assembly: AssemblyFileVersion("4.0.5.0")]
4 changes: 2 additions & 2 deletions Registry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ public static string Get_SystemColor()
/// <returns>浅色模式返回 true,深色模式返回 false</returns>
public static bool Get_SystemUsesLightTheme()
{
if (Convert.ToInt32(Registry_SystemVersion.Get_DisplayVersion()) < 1903 && Convert.ToInt32(Registry_SystemVersion.Get_ReleaseId()) < 1903)
/*if (Convert.ToInt32(Registry_SystemVersion.Get_ReleaseId()) < 1903)
{
return false;
}
}*/
// 浅色模式下开始菜单磁贴背景颜色强制为白色(浅色为1,深色为 0)
if ((int)Registry.GetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize", "SystemUsesLightTheme", 0) == 1)
{
Expand Down

0 comments on commit 303a2f6

Please sign in to comment.