Bug in theme_manager.set_night_mode()

I maintain the Automatic Dark Mode add-on and I use theme_manager.set_night_mode() to set the dark mode when the system theme is set to dark mode (and vice versa). Unfortunately this doesn’t affect every pane; for instance, if you go into the browse view it will be in light mode when the rest of the app is in dark mode, for instance. How can I get this fixed?

The code was only intended to be run on startup, and making it work after startup will require making changes to any screens that currently assume the theme won’t change. If you are interested in submitting a PR, please post on GitHub.