Automatic Dark Theme

Could it be possible to add a new theme choosing between dark and light depending on the system’s theme on macOS Mojave and later ?

For instance light theme is better at day but dark theme is better for reading at night. macOS Catalina already has a feature that changes the theme depending on the time of the day. Is it possible for Mailspring to adapt it’s with Catalina’s ?

Thanks


(Originally posted by lsonnino on GitHub.)

(Original post had 7 upvotes.)

The Problem
Currently you have to manually switch between Light theme and Dark theme.

Proposed Solution
Changing the theme automatically can be done in many different ways. I think the best approach will be the user choosing a time period for when a particular theme to be chosen. For example, from 7 AM to 7 PM, Mailspring will be using a Light theme, and from 7 PM to 7 AM, Mailspring will be using a Dark theme.

Alternative Solutions
Another way will be to look at the system theme and deciding based on that. For example, on Windows, Mailspring can check a Registry value called “AppsUseLightTheme” located at “HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize” And if it’s set on 0, that means Windows is using Dark Mode, and if it’s set to 1, that means Windows is using Light mode.