Invert color the whole Gnome Desktop Environment for reading purposes. This extention use xcalib program for inverting the color, so you need to install xcalib first( in debian-based ditro you can use 'sudo apt-get install xcalib').
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
Why not just if (state) _toggleInvert(); ?? (just nitpicking, but the whole _toggleInvert() method could be a lot simpler: state = !state; button.child.icon_name = state ? EnabledIcon : DisabledIcon; Util.spawn([...]);
Thank you for your good review.