Added ability of system to determine if the background is dark or not and adjust the color of the text accordingly.