Changed RGBA_Bytes -> Color

This commit is contained in:
Lars Brubaker 2017-10-31 11:43:25 -07:00
parent c6a3c14118
commit 8d1fecab8c
107 changed files with 495 additions and 495 deletions

View file

@ -43,7 +43,7 @@ namespace MatterHackers.MatterControl
this.textScrollWidget = textScrollWidget;
Margin = new BorderDouble(0, 5);
VAnchor = Agg.UI.VAnchor.Stretch;
BackgroundColor = RGBA_Bytes.LightGray;
BackgroundColor = Color.LightGray;
}
public override void OnDraw(Graphics2D graphics2D)
@ -52,7 +52,7 @@ namespace MatterHackers.MatterControl
//graphics2D.Rectangle(LocalBounds, RGBA_Bytes.Black);
double bottom = textScrollWidget.Position0To1 * (Height - thumbHeight);// the 2 is the border
RectangleDouble thumb = new RectangleDouble(0, bottom, Width, bottom + thumbHeight);// the 1 is the border
graphics2D.FillRectangle(thumb, RGBA_Bytes.DarkGray);
graphics2D.FillRectangle(thumb, Color.DarkGray);
base.OnDraw(graphics2D);
}