///<inheritdoc/> public override void Redraw(Rect bounds) { base.Redraw(bounds); Driver.SetAttribute(HasFocus ? ColorScheme.Focus : GetNormalColor()); var colorIndex = 0; for (var y = 0; y < (Height.Anchor(0) - 1) / verticalZoom; y++) { for (var x = 0; x < Width.Anchor(0) / horizontalZoom; x++) { var foregroundColorIndex = y == 0 ? colorIndex + colorsPerLine : colorIndex - colorsPerLine; Driver.SetAttribute(Driver.MakeAttribute((Color)foregroundColorIndex, (Color)colorIndex)); var selected = x == Cursor.X && y == Cursor.Y; DrawColorBox(x, y, selected); colorIndex++; } } }