aboutsummaryrefslogtreecommitdiffstats
path: root/main.m
AgeCommit message (Collapse)Author
2021-03-04Reset colours to their original stateTeddy Wing
Found an easy function to remove the colour inversion. Now I need to enable toggling between the two with a keyboard shortcut.
2021-03-04Invert all displaysTeddy Wing
Previously, I was only inverting the main display. Get a list of active displays and invert all of them. Decided to set the maximum display count to eight because that seemed like a sufficiently high number for most people.
2021-03-04Rename `gamma` table to `inverted_gamma`Teddy Wing
More descriptive this way.
2021-03-04Skeleton for error handlingTeddy Wing
2021-03-04Remove unused `CGGammaValue` tablesTeddy Wing
2021-03-04Run foreverTeddy Wing
Rather than sleeping, keep the program active until it's exited manually.
2021-03-03Try inverting display coloursTeddy Wing
Invert the screen colours for as long as the program is active. Only works on the main display currently. Inspired by Nikolai Ruhe's (https://stackoverflow.com/users/104790/nikolai-ruhe) answer on Stack Overflow about screen colour inversion: https://stackoverflow.com/questions/14163788/how-does-on-screen-color-inversion-work-in-os-x/14165523#14165523 and this question: https://stackoverflow.com/questions/32823023/permanently-modifying-rgb-gamma-table