// SetLightMode.cs // // Enable Light Mode. // Reverts File Explorer and other system surfaces to light mode. // // Usage: dotnet new console -o SetLightMode, replace Program.cs with this // file, then dotnet run. using System; using Microsoft.Win32; using RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"); key.SetValue("AppsUseLightTheme", 1, RegistryValueKind.DWord); Console.WriteLine("Enable Light Mode applied.");