back port of 8.0 branch modifications related to setting the color in DotMatrixSegment, SevenSegment and SixteenSegment control