Forum Discussion
discostew
Nov 18, 2026Copper Contributor
Bug: Autoruns 14.3 opens in Light mode when “Use System Setting” is selected and Windows is Dark
Autoruns 14.3 opens in Light mode when “Use System Setting” is selected and Windows is Dark
Environment: Windows 11 25H2, build 26220.9836. Reproduced with both Autoruns.exe and Autoruns64.exe version 14.3. The debugger trace below is from Autoruns64.exe.
Steps to reproduce
- In Windows Settings → Personalization → Colors, set Choose your mode to Dark.
- Open Autoruns and select Options → Theme → Use System Setting.
- Close Autoruns completely and reopen it.
Expected: Autoruns opens in Dark mode, following the Windows app theme.
Actual: Autoruns opens in Light mode. Selecting Options → Theme → Dark explicitly displays the dark theme.
Debugger trace
I captured these calls in order during a fresh launch with Use System Setting selected. The excerpt omits unrelated debugger output.
TRACE CALL SetPreferredAppMode mode=3 caller=Autoruns64+0x17332 TRACE RETURN SetPreferredAppMode 0 TRACE CALL ShouldAppsUseDarkMode caller=Autoruns64+0x34a36 TRACE RETURN ShouldAppsUseDarkMode 0
Mode 3 is ForceLight. Autoruns applies that process-level override before asking ShouldAppsUseDarkMode(), which returns 0 (false). A separate Process Monitor capture confirmed that reads of the Windows AppsUseLightTheme setting succeeded and returned 0 (Dark). https://github.com/microsoft/PowerToys/blob/main/src/modules/ZoomIt/ZoomIt/Utility.cpp#L2066-L2090
I ran the same API sequence in a separate test process on the same machine. ShouldAppsUseDarkMode() returned true before ForceLight, false while the override was active, and true again after restoring the previous process mode. This suggests that Autoruns’ Use System Setting check is reading the effect of its own override.
1 Reply
- BlauerCopper Contributor
maybe try querying the system preference before calling SetPreferredAppMode