The dark mode preference is not preserved when exiting the app. To recreate: Switch to dark more, exit the app and open it again. I think this could be fixed by saving the chosen mode in [GSettings](https://elementary.io/docs/code/getting-started/#using-gsettings).