Fix line rendering quirks
This commit is contained in:
parent
ecaaabcc92
commit
5709caff91
3 changed files with 9 additions and 5 deletions
|
|
@ -131,7 +131,7 @@ namespace MatterHackers.MatterControl
|
|||
{
|
||||
graphics2D.Render(
|
||||
glyph,
|
||||
verticalLine ? new Vector2(this.LocalBounds.XCenter, 11) : new Vector2(this.Width - 11, this.LocalBounds.YCenter),
|
||||
verticalLine ? new Vector2(centerX, 11) : new Vector2(this.Width - 11, centerY),
|
||||
theme.TextColor);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -55,11 +55,15 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
contentRow.AddChild(new TextWidget("Printing Guide...".Localize(), pointSize: theme.DefaultFontSize, textColor: theme.TextColor));
|
||||
|
||||
contentRow.AddChild(xOffsetWidget = new NozzleOffsetTemplateWidget(templatePrinter.ActiveOffsets, FlowDirection.LeftToRight, theme));
|
||||
contentRow.AddChild(xOffsetWidget = new NozzleOffsetTemplateWidget(templatePrinter.ActiveOffsets, FlowDirection.LeftToRight, theme)
|
||||
{
|
||||
Padding = new BorderDouble(left: 4)
|
||||
});
|
||||
|
||||
contentRow.AddChild(yOffsetWidget = new NozzleOffsetTemplateWidget(templatePrinter.ActiveOffsets, FlowDirection.TopToBottom, theme)
|
||||
{
|
||||
Margin = new BorderDouble(top: 15)
|
||||
Margin = new BorderDouble(top: 15),
|
||||
Padding = new BorderDouble(top: 4)
|
||||
});
|
||||
|
||||
this.NextButton.Enabled = false;
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ namespace MatterHackers.MatterControl
|
|||
{
|
||||
var calibrationLine = new CalibrationLine(direction, (i % 5 == 0) ? i : -1, theme)
|
||||
{
|
||||
Margin = 1,
|
||||
// Margin = 1,
|
||||
IsNegative = i < 20,
|
||||
OffsetIndex = i,
|
||||
};
|
||||
|
|
@ -115,7 +115,7 @@ namespace MatterHackers.MatterControl
|
|||
rect = new RectangleDouble(0, 0, this.LocalBounds.Width - 20, this.LocalBounds.Height);
|
||||
}
|
||||
|
||||
rect.Inflate(-2);
|
||||
rect.Inflate(-1);
|
||||
|
||||
var center = rect.Center;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue