aboutsummaryrefslogtreecommitdiffstats
path: root/Invert.m
AgeCommit message (Collapse)Author
2021-03-07toggleInvertColors:: Remove debug `NSLog` messageTeddy Wing
Added this for testing, but it no longer makes sense.
2021-03-07Invert: Move `inverted_gamma` to static constTeddy Wing
Since this is a literal, it can be declared statically.
2021-03-07Toggle colour inversion on global hotkeyTeddy Wing
When the registered global hotkey is pressed, toggle screen colour inversion. Move the colour inversion code to the `Invert` class.
2021-03-07Register a global hotkeyTeddy Wing
Build DDHotKey as a static library so we can compile it with ARC turned on and our project with ARC turned off. Since DDHotKey is written with ARC, if I include its headers directly, I'd need to enable ARC on my project in order to compile it. Initialise an `NSApplication` to give us an environment in which to register the global hotkey. A new class `Invert` will respond to the hotkey and respond accordingly.