Here's a night shift slider preset that I'd like to share, you can use it to change the strength (color) of night shift.
Tap the icon to toggle Night Shift
Hold the icon to bring up the slider, you can also see the current color temperature of your screen on the right.
This preset is achieved by using apple's private framework CoreBrightness in AppleScript-ObjC, for the one who's only interested in the code, refer to the
source folder in my repo: https://github.com/noonchen/BTT_NightShiftSlider, I'm hoping my preset can give you guys some ideas to create amazing presets/widgets.
NightShiftSlider.bttpreset (100.2 KB)