r-thomson / Nightfall

A macOS menu bar utility for quickly toggling dark mode, written in Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Record this computers' screen

mijndert opened this issue · comments

While toggling to dark/light mode for the first time, a prompt comes up asking the user to grant Nightfall permission to record the screen.
I consider this a bug.

The prompt appears because the fade effect is done by capturing an image of the screen using CGDisplayCreateImage. Without screen recording permissions, the effect can't be accomplished.

This info would be relevant in the README, I believe, with link to the relevant piece of code for this. Sketched me out for a second after brew install'ing and came straight to the repo to see what was going on.

Great utility @r-thomson nonetheless. I use to use Automator for this, but Nightfall does the same job 10x better. Thank you!

@synchronizing Thank you for the suggestion, I’ve added it to the project’s README