Windows automatic theme switching often does not switch back to light mode

Bug report

Windows doesn’t respect the dark mode setting and won’t let me manually switch to light mode either.

Environment

  • Platform: Windows
  • Platform version: 11
  • App Version: 6.0.0

How to reproduce

This is hard to reproduce reliably. Generally, however, when Windows switches to dark mode Inkdrop follows (I think) but when Windows switches back to light mode, Inkdrop generally (80% of the time?) stays stuck in dark mode. Sometimes it switches to light mode, however.
Before version 6 I could manually switch the theme to light mode and continue working. However, as of version 6 that doesn’t seem to work. The settings window switches to light mode but the main window does not, even if I disable the “Automatically toggle between the default light and default dark themes based on system preferences” setting.
If I force it to light mode, disable the “Automatically toggle…” setting and restart however, the main window is in light mode.
For what it’s worth, I use the Light Switch power toy (Manage your Windows theme with Light Switch | Microsoft Learn) to automatically switch between dark and light mode based on sunrise/sunset time.

Hi @birtles ,

Thanks for the report.

I found that in Windows it should call nativeTheme.shouldUseDarkColorsForSystemIntegratedUI instead of nativeTheme.shouldUseDarkColors.
Confirmed it works on my Windows 11.
It will be landed in the next release!

Thank you so much!

It should have been fixed in v6.1.0 :raising_hands:

Thanks again for the report :heart:

Works great! Thank you!

1 Like