Skip to content

Instantly share code, notes, and snippets.

@PyroGenesis
Last active March 28, 2026 00:13
Show Gist options
  • Select an option

  • Save PyroGenesis/e3f2d59b636f03653b64e07ba4e1e8aa to your computer and use it in GitHub Desktop.

Select an option

Save PyroGenesis/e3f2d59b636f03653b64e07ba4e1e8aa to your computer and use it in GitHub Desktop.
Enable Windows Dark Mode via registry (no activation needed)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize]
"AppsUseLightTheme"=dword:00000000
"SystemUsesLightTheme"=dword:00000000
@AdiMajsterek
Copy link
Copy Markdown

AdiMajsterek commented May 16, 2024

It's regedit.exe not regedit.msc.
.msc files are Microsoft Managment Console files.

@PyroGenesis
Copy link
Copy Markdown
Author

It's regedit.exe not regedit.msc.
.msc files are Microsoft Managment Console files.

Edited, thanks.

@FleeksLoft
Copy link
Copy Markdown

Just as a confirmation, it works! :D

@BC100Dev
Copy link
Copy Markdown

Might aswell adapt for a project

@Finnsflyer
Copy link
Copy Markdown

worked, thanks (I ain't activating windows)

@Romric215
Copy link
Copy Markdown

how do you turn it back?

@PyroGenesis
Copy link
Copy Markdown
Author

how do you turn it back?

@Romric215 Just delete the two entries mentioned in the registry and you should be back to light mode

@circuit1465
Copy link
Copy Markdown

Tysm! works really well and easy

@Osara001
Copy link
Copy Markdown

It works, however the google chrome still has light theme though set as system default. How can I get dark mode system wide?

@PeterGabaldon
Copy link
Copy Markdown

Equivalents reg commands

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v AppsUseLightTheme /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v SystemUsesLightTheme /t REG_DWORD /d 0 /f

@iamzakibb
Copy link
Copy Markdown

Thanks a lot !

@yuliannnnnn
Copy link
Copy Markdown

Thanks so fcking much

@utilyre
Copy link
Copy Markdown

utilyre commented Dec 6, 2025

It works after a restart on Windows 11. Thanks!

@KolyaKorruptis
Copy link
Copy Markdown

changing these registry entries used to be enough on windows 10. but on windows 11 explorer (and startbar with it) do not get the change.
you can force it by restarting explorer, but there should be a less brutal solution, since switching through the windows settings does not require restarting explorer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment