From 284a3b619d69f60946d59d29eca72a44527624ee Mon Sep 17 00:00:00 2001 From: John Lewin Date: Sat, 20 Jan 2018 10:16:36 -0800 Subject: [PATCH] Remove background shade, add control borders - Issue MatterHackers/MCCentral#2663 Evaluate UI fields having a non-white border --- .../View3D/PrinterBar/PrintPopupMenu.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/PartPreviewWindow/View3D/PrinterBar/PrintPopupMenu.cs b/PartPreviewWindow/View3D/PrinterBar/PrintPopupMenu.cs index f40b27b98..203256389 100644 --- a/PartPreviewWindow/View3D/PrinterBar/PrintPopupMenu.cs +++ b/PartPreviewWindow/View3D/PrinterBar/PrintPopupMenu.cs @@ -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()) + { + widget.Border = 1; + widget.BorderColor = lightGray; + } + + foreach (var widget in row.Descendants()) + { + widget.Border = 1; + widget.BorderColor = lightGray; + } + optionsPanel.AddChild(row); }