Remove background shade, add control borders
- Issue MatterHackers/MCCentral#2663 Evaluate UI fields having a non-white border
This commit is contained in:
parent
fcf0290603
commit
284a3b619d
1 changed files with 15 additions and 1 deletions
|
|
@ -28,6 +28,7 @@ either expressed or implied, of the FreeBSD Project.
|
|||
*/
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using MatterHackers.Agg;
|
||||
using MatterHackers.Agg.UI;
|
||||
|
|
@ -75,7 +76,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
Padding = 5,
|
||||
MinimumSize = new VectorMath.Vector2(400, 65),
|
||||
Margin = new BorderDouble(top: 10),
|
||||
BackgroundColor = theme.MinimalShade
|
||||
};
|
||||
column.AddChild(optionsPanel);
|
||||
|
||||
|
|
@ -86,6 +86,20 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
var settingsData = SettingsOrganizer.Instance.GetSettingsData(key);
|
||||
var row = SliceSettingsTabView.CreateItemRow(settingsData, settingsContext, printer, Color.Black, theme, ref tabIndex);
|
||||
|
||||
var lightGray = new Color("#aaa");
|
||||
|
||||
foreach (var widget in row.Descendants<MHNumberEdit>())
|
||||
{
|
||||
widget.Border = 1;
|
||||
widget.BorderColor = lightGray;
|
||||
}
|
||||
|
||||
foreach (var widget in row.Descendants<MHTextEditWidget>())
|
||||
{
|
||||
widget.Border = 1;
|
||||
widget.BorderColor = lightGray;
|
||||
}
|
||||
|
||||
optionsPanel.AddChild(row);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue