The Mac added support for a system-wide Dark Mode with macOS 10.14, and support for automatic Dark Mode switching came the following year with Catalina. Since then, Apple has made few changes to the Dark Mode experience on the Mac.

A new third-party app, DarkModeBuddy, released today expands the macOS Dark Mode feature with support for switching modes based on the ambient light sensor.

In the app, you can set your own preferences for the ambient light threshold and delay time. The delay time is there to prevent flickering, so the ambient light level must persist for your preferred amount of time.

Here’s Rambo’s explanation on how the app works:

DarkModeBuddy is available on Gumroad with a “pick your pricing” business model. It’s a very nifty new macOS utility for Dark Mode fans, and it’s compatible with macOS 10.15 and newer. Let us know what you think of it down in the comments.

The solution for that is DarkModeBuddy. It’s a tiny app that keeps running in the background and reads the ambient light sensor on your Mac (the same one it uses to adjust the brightness of your screen). When the ambient light level falls below the configured value, DarkModeBuddy automatically switches the Mac into Dark Mode. When the ambient light level rises above the configured value, it goes back into Light mode. This does not happen instantaneously: in order to prevent flickering, the change in ambient light level must persist for a certain amount of time, which can also be configured in the app’s settings.