Toggle Windows 10 Default App Mode (Light / Dark theme)

For those of you using AHK or those interested, I recently decided I needed a hotkey to toggle the Windows 10 Default App modes (light theme and dark theme). Lo and behold, AHK and RegEdit to the rescue.

ToggleWindowsDefaultAppMode() {
    RegRead, appMode, HKCU, Software\Microsoft\Windows\CurrentVersion\Themes\Personalize, AppsUseLightTheme
    RegWrite, REG_DWORD, HKCU, Software\Microsoft\Windows\CurrentVersion\Themes\Personalize, AppsUseLightTheme, % !appMode
}

Note: You may need to add the registry key Personalize and its DWORD AppsUseLightTheme if you don’t have them.

3 Likes

thank you so much! i just found out that my scripts break, as I’m using the FindText created by feiyue and with initially making the text on the light background, it breaks it when i have my theme set to dark background. So thank you so much for this!

1 Like