Skip to content

Commit

Permalink
AppsUseLightTheme -> SystemUsesLightTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyome22 committed Aug 12, 2020
1 parent 818521f commit ce409b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RunCat/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
using System.Diagnostics;
using System.Windows.Forms;
using System.Resources;
using System.Linq;

namespace RunCat
{
Expand Down Expand Up @@ -76,7 +77,7 @@ private string GetAppsUseTheme()
try
{
RegistryKey rKey = Registry.CurrentUser.OpenSubKey(keyName);
int theme = (int)rKey.GetValue("AppsUseLightTheme");
int theme = (int)rKey.GetValue("SystemUsesLightTheme");
rKey.Close();
return theme == 0 ? "dark" : "light";
}
Expand Down

0 comments on commit ce409b3

Please sign in to comment.