r-thomson / Nightfall

A macOS menu bar utility for quickly toggling dark mode, written in Swift.
MIT License
507 stars 13 forks source link

why does nightfall request screen recording capabilities? #36

Closed rbedger closed 1 month ago

rbedger commented 1 month ago

I am probably just ignorant of how Mac permissions work, but I'm curious what it is that requires the request for screen recording capabilities. I denied it and the application works just fine.

ivan commented 1 month ago

It's mentioned in https://github.com/r-thomson/Nightfall?tab=readme-ov-file#using-animated-transitions

r-thomson commented 1 month ago

Nightfall uses a private system API to accomplish the smooth fade between light and dark modes. The way that API works internally is that it takes a screenshot and overlays that while the theme change is happening.

You can use Nightfall without screen recording permission, but the smooth transition won’t work.

rbedger commented 1 month ago

got it, thanks! and my apologies i did not see this question answered in the README before i posted.