Force the app to always use light theme in Electron?



  • Apparently Electron now automatically tries to apply dark mode styling to the app, if MacOS uses the dark theme. Unfortunately, it makes some texts in my app unreadable, since they are still displayed in their default black color. I want to keep the app always using the light theme, until I have time to add proper dark theme support.

    I searched a bit but surprisingly couldn’t find much information about it. How can I do it?

    Thanks



  • Interestingly, if I build the app in production mode and launch it, it seems to start under the light theme?


Log in to reply