Move dark background from parent widget to bed bounds

This commit is contained in:
John Lewin 2019-02-26 21:54:25 -08:00
parent 80502c2407
commit 06dd6a9fcb
2 changed files with 3 additions and 0 deletions

View file

@ -33,6 +33,7 @@ using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using MatterControl.Printing;
using MatterHackers.Agg;
using MatterHackers.Agg.UI;
using MatterHackers.MatterControl.PrinterCommunication;
using MatterHackers.MatterControl.SlicerConfiguration;
@ -63,6 +64,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
this.printer = printer;
this.probePositions = probePositions;
contentRow.BackgroundColor = Color.Transparent;
contentRow.AddChild(probePositionsWidget = new ProbePositionsWidget(printer, probePoints, probePositions, AppContext.Theme)
{
HAnchor = HAnchor.Stretch,

View file

@ -98,6 +98,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
public override void OnDraw(Graphics2D graphics2D)
{
graphics2D.FillRectangle(scaledBedRect, theme.SlightShade);
graphics2D.Rectangle(scaledBedRect, lightColor);
// Draw some basic bed gridlines