From 3fd9ed31c38aea8bc693fa4c17e0e19f1da192cb Mon Sep 17 00:00:00 2001 From: Lars Brubaker Date: Mon, 18 May 2020 18:00:42 -0700 Subject: [PATCH] Fixe error with icon list --- MatterControlLib/ControlElements/MHTextEditWidget.cs | 3 +-- .../DesignTools/Attributes/EnumDisplayAttribute.cs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/MatterControlLib/ControlElements/MHTextEditWidget.cs b/MatterControlLib/ControlElements/MHTextEditWidget.cs index 2f44febd7..d4d3fdaeb 100644 --- a/MatterControlLib/ControlElements/MHTextEditWidget.cs +++ b/MatterControlLib/ControlElements/MHTextEditWidget.cs @@ -38,10 +38,9 @@ namespace MatterHackers.MatterControl public class MHTextEditWidget : GuiWidget { protected TextWidget noContentFieldDescription = null; - private ThemeConfig theme; + private readonly ThemeConfig theme; private bool mouseInBounds = false; - public MHTextEditWidget(string text, ThemeConfig theme, double pixelWidth = 0, double pixelHeight = 0, bool multiLine = false, int tabIndex = 0, string messageWhenEmptyAndNotSelected = "", TypeFace typeFace = null) { this.Padding = new BorderDouble(3); diff --git a/MatterControlLib/DesignTools/Attributes/EnumDisplayAttribute.cs b/MatterControlLib/DesignTools/Attributes/EnumDisplayAttribute.cs index 7c8174fbf..0c62512bd 100644 --- a/MatterControlLib/DesignTools/Attributes/EnumDisplayAttribute.cs +++ b/MatterControlLib/DesignTools/Attributes/EnumDisplayAttribute.cs @@ -36,13 +36,12 @@ namespace MatterHackers.MatterControl.DesignTools { public enum PresentationMode { - DropDownList, IconRow, Tabs, Buttons } - public PresentationMode Mode { get; set; } = PresentationMode.DropDownList; + public PresentationMode Mode { get; set; } = PresentationMode.IconRow; public EnumDisplayAttribute() {