Changed widget layout for the Transparent checkbox so that it is aligned with the other checkboxes on that control

This commit is contained in:
Gregory Diaz 2015-12-28 17:46:15 -08:00
parent 0953cb6e51
commit 37d4a2811b

View file

@ -624,16 +624,15 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
{
gcodeViewWidget.SimulateExtrusion = simulateExtrusion.Checked;
};
layerInfoContainer.AddChild(simulateExtrusion);
}
// put in a render extrusion transparent checkbox
{
CheckBox transparentExtrusion = new CheckBox(LocalizedString.Get("Transparent"), textColor: ActiveTheme.Instance.PrimaryTextColor)
{
Checked = gcodeViewWidget.TransparentExtrusion,
Margin = new BorderDouble(5, 0, 0, 0) * TextWidget.GlobalPointSizeScaleRatio,
HAnchor = HAnchor.ParentLeft,
CheckBox transparentExtrusion = new CheckBox(LocalizedString.Get("Transparent"), textColor: ActiveTheme.Instance.PrimaryTextColor)
{
Checked = gcodeViewWidget.TransparentExtrusion,
};
transparentExtrusion.CheckedStateChanged += (sender, e) =>