Add support for themed text/number edit fields

This commit is contained in:
John Lewin 2018-10-14 20:05:37 -07:00
parent 151e753db2
commit 34708054ee
44 changed files with 598 additions and 108 deletions

View file

@ -249,7 +249,7 @@ namespace MatterHackers.MatterControl.EeProm
private GuiWidget CreateMHNumEdit(ref MHNumberEdit numberEditToCreate)
{
numberEditToCreate = new MHNumberEdit(0, pixelWidth: 80, allowNegatives: true, allowDecimals: true)
numberEditToCreate = new MHNumberEdit(0, theme, pixelWidth: 80, allowNegatives: true, allowDecimals: true)
{
SelectAllOnFocus = true,
VAnchor = VAnchor.Center,

View file

@ -298,7 +298,7 @@ namespace MatterHackers.MatterControl.EeProm
CreateSpacer(row);
double.TryParse(newSetting.Value, out double currentValue);
var valueEdit = new MHNumberEdit(currentValue, pixelWidth: 80 * GuiWidget.DeviceScale, allowNegatives: true, allowDecimals: true)
var valueEdit = new MHNumberEdit(currentValue, theme, pixelWidth: 80 * GuiWidget.DeviceScale, allowNegatives: true, allowDecimals: true)
{
SelectAllOnFocus = true,
TabIndex = currentTabIndex++,