Finished implementation of screen dimming.
Updated how screen dimming works.