Don't manipulate caller supplied background
This commit is contained in:
parent
9e94d116a7
commit
7508f39d5e
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue