The idea being that, once the brightness passes a certain level, one could switch to a different visual scheme to give greater visibility. Also, if it could be some sort of listener type thing, that would be even better, but I'll take what I can get.
I believe one could look it up with IOKit. Running the ioreg command in the terminal as below gives two lines where a brightness value is visible.
% ioreg -c AppleGraphicsControlBacklight | grep brightness
| | | "IODisplayParameters" = {"brightness"={"min"=0,"value"=408,"max"=1024},"commit"={"reg"=0}}
| | | "IODisplayParameters" = {"brightness"={"min"=0,"value"=408,"max"=1024},"commit"={"reg"=0}}
Maybe someone with enough IOKit knowledge could put together a sample...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With