Add new toggle switch style

This commit is contained in:
John Lewin 2018-04-04 10:11:57 -07:00
parent 9a2facbcd5
commit 64a96dd7ff
11 changed files with 529 additions and 74 deletions

View file

@ -33,6 +33,7 @@ using System.Linq;
using MatterHackers.Agg;
using MatterHackers.Agg.Platform;
using MatterHackers.Agg.UI;
using MatterHackers.Agg.VertexSource;
using MatterHackers.DataConverters3D;
using MatterHackers.Localizations;
using MatterHackers.MatterControl.CustomWidgets;
@ -102,6 +103,12 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
}
};
this.AddChild(new RoundedToggleSwitch(theme)
{
Width = 100,
Height = 34
});
scrollableContent = new FlowLayoutWidget(FlowDirection.TopToBottom)
{
HAnchor = HAnchor.Stretch,