Add simpler support for colors, not used yet

This commit is contained in:
Miguel de Icaza
2017-12-17 22:34:07 -05:00
parent 6883bc4692
commit dd7e553c9c
3 changed files with 78 additions and 24 deletions

View File

@@ -114,9 +114,9 @@ namespace Terminal {
Recalc ();
if (TextColor != -1)
Driver.SetColor (TextColor);
Driver.SetAttribute (TextColor);
else
Driver.SetColor(Colors.Base.Normal);
Driver.SetAttribute(Colors.Base.Normal);
Clear ();
Move (Frame.X, Frame.Y);
@@ -167,8 +167,8 @@ namespace Terminal {
/// <summary>
/// The color used for the label
/// </summary>
Color textColor = -1;
public Color TextColor {
Attribute textColor = -1;
public Attribute TextColor {
get => textColor;
set {
textColor = value;