Add theme driven MHDropDownList

This commit is contained in:
John Lewin 2018-10-17 20:31:31 -07:00
parent 1ec24789c7
commit 4433abb774
15 changed files with 116 additions and 35 deletions

View file

@ -33,14 +33,13 @@ using MatterHackers.Agg.UI;
namespace MatterHackers.MatterControl
{
public class BoundDropList : DropDownList
public class BoundDropList : MHDropDownList
{
private List<KeyValuePair<string, string>> listSource;
public BoundDropList(string noSelectionString, ThemeConfig theme, int maxHeight = 0)
: base(noSelectionString, theme.Colors.PrimaryTextColor, maxHeight: maxHeight, pointSize: theme.DefaultFontSize)
: base(noSelectionString, theme, maxHeight: maxHeight)
{
this.BorderColor = theme.DropListFieldBorder;
}
public List<KeyValuePair<string, string>> ListSource