Improve legibility of dark grey text when converting to dark theme
Blending such text yields colors that don't have a high contrast. Instead, we now detect these dark colors and invert them, which produces colors with much higher contrast for dark color schemes.