mattercontrol/ConfigurationPage/SettingsViewBase.cs

25 lines
701 B
C#
Raw Normal View History

2015-04-08 15:20:10 -07:00
using MatterHackers.Agg;
using MatterHackers.Agg.UI;
namespace MatterHackers.MatterControl.ConfigurationPage
{
2015-04-08 15:20:10 -07:00
public class SettingsViewBase : AltGroupBox
{
protected FlowLayoutWidget mainContainer;
2017-06-15 22:45:02 -07:00
protected TextImageButtonFactory buttonFactory;
2017-06-15 22:45:02 -07:00
public SettingsViewBase(string title, TextImageButtonFactory buttonFactory)
: base(new TextWidget(title, pointSize: 18, textColor: ActiveTheme.Instance.SecondaryAccentColor))
2015-04-08 15:20:10 -07:00
{
2017-06-15 22:45:02 -07:00
this.buttonFactory = buttonFactory;
2015-04-08 15:20:10 -07:00
this.Margin = new BorderDouble(2, 4, 2, 0);
2017-06-15 22:45:02 -07:00
mainContainer = new FlowLayoutWidget(Agg.UI.FlowDirection.TopToBottom)
{
HAnchor = HAnchor.ParentLeftRight,
Margin = new BorderDouble(left: 6)
};
2015-04-08 15:20:10 -07:00
}
}
}