API change for NewStyle to support terminals with different color depths