Don't manipulate caller supplied background

This commit is contained in:
John Lewin 2018-01-01 11:33:38 -08:00
parent 9e94d116a7
commit 7508f39d5e

View file

@ -46,7 +46,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
{
viewWidget.Selectable = false;
viewWidget.BackgroundColor = Color.Transparent;
this.BackgroundColor = ApplicationController.Instance.Theme.SlightShade;
this.DisabledColor = new Color(ActiveTheme.Instance.SecondaryTextColor, 50);
}
@ -101,6 +100,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
protected override void OnBeforePopup()
{
// Force off-white if content has transparent background
if (this.PopupContent.BackgroundColor == Color.Transparent)
{
this.PopupContent.BackgroundColor = new Color("#f6f6f6");